:root {
    --primary-color: #0056A7;
}

body {
    font-family: 'Open Sans', 'Inter', sans-serif;
    color: #333;
}

strong,
b {
    font-weight: 700;
}

.primary-color {
    color: var(--primary-color);
}

.bg-primary-custom {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    margin: 5px 10px 5px 0;
    vertical-align: middle;
}

.btn-primary-custom:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    filter: brightness(0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-success-custom {
    background-color: #46b48f;
    border-color: #46b48f;
    color: white;
}

/* Bootstrap Overrides */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    filter: brightness(0.85);
}

.header {
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 0;
}

.header img {
    max-height: 120px;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.banner-hover-zoom {
    transition: transform 0.5s ease;
}

.banner-hover-zoom:hover {
    transform: scale(1.02);
}

.banner-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: top center;
    /* Ensure the top part is always visible */
    transition: max-height 0.3s ease;
}

/* On larger screens, allow the banner to be taller so it doesn't crop too much */
@media (min-width: 1400px) {
    .banner-img {
        max-height: 650px;
    }
}

@media (min-width: 1800px) {
    .banner-img {
        max-height: 800px;
    }
}

/* Carousel Adjustments */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.8));
    width: 2.5rem;
    height: 2.5rem;
}

@keyframes heartbeat {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    15% {
        transform: translate(-50%, -50%) scale(1.3);
    }

    30% {
        transform: translate(-50%, -50%) scale(1);
    }

    45% {
        transform: translate(-50%, -50%) scale(1.15);
    }

    60% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.heartbeat {
    animation: heartbeat 0.6s ease-in-out;
}

/* Sticky Cart Button */
.sticky-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    padding: 12px 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-weight: 600;
    min-width: 170px;
    justify-content: center;
}

.sticky-cart-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.sticky-cart-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid white;
}

.sticky-offer-btn {
    bottom: 96px;
}

.sticky-category-btn {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 0.75rem;
    border: 1px solid rgba(0, 86, 167, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-color);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    font-weight: 700;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.sticky-category-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sticky-category-btn:hover,
.sticky-category-btn:focus {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    filter: none;
}

.sticky-category-btn__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 86, 167, 0.24);
}

.sticky-category-btn__label {
    letter-spacing: 0.01em;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .sticky-cart-btn {
        right: 16px;
        bottom: 16px;
        padding: 10px 18px;
        min-width: 150px;
    }

    .sticky-offer-btn {
        bottom: 70px;
    }

    .sticky-category-btn {
        left: 16px;
        bottom: 16px;
        padding: 0.7rem;
        border-radius: 22px;
    }

    .sticky-category-btn__label {
        display: none;
    }
}

.offer-actions form {
    display: flex;
}

.offer-actions .btn {
    display: inline-flex;
    align-items: center;
}

.home-description-content {
    max-width: 720px;
    margin: 0 auto;
}

.home-description-content ul,
.home-description-content ol {
    width: fit-content;
    max-width: 100%;
    margin: 1rem auto;
    padding-left: 1.5rem;
    text-align: left;
}

.home-description-content li {
    margin-bottom: 0.35rem;
    text-align: left;
}

.home-description-content li[data-list="bullet"] {
    list-style-type: disc;
}

.home-description-content li[data-list="ordered"] {
    list-style-type: decimal;
}

.shop-hero {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.shop-hero--compact {
    margin-bottom: 1rem;
}

.category-filter-shell {
    position: relative;
    margin-top: 0;
}

.category-filter-panel {
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.06);
}

.category-filter-kicker {
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-filter-title {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 700;
}

.category-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.category-filter-chip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.category-filter-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.category-filter-chip strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.category-filter-chip > span:last-child {
    min-width: 0;
    flex: 1;
}

.category-filter-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.category-filter-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.category-filter-chip.is-active .category-filter-icon {
    background: #fff;
    color: var(--primary-color);
}

.product-description > :last-child {
    margin-bottom: 0;
}

.product-description {
    line-height: 1.5;
}

.product-description.is-collapsed-desktop {
    position: relative;
    max-height: 10.5em;
    overflow: hidden;
}

.product-description.is-collapsed-desktop::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
    pointer-events: none;
}

.product-description-toggle {
    display: none;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

.product-description-toggle.is-visible {
    display: inline-flex;
}

.product-description-toggle.is-visible:hover,
.product-description-toggle.is-visible:focus {
    color: var(--primary-color);
}

.product-description-modal .modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.product-description-modal .modal-header,
.product-description-modal .modal-body {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.product-description-modal-body {
    line-height: 1.7;
}

.product-description-modal-body > :last-child {
    margin-bottom: 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 60px;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(0, 86, 167, 0.18), 0 0 0 rgba(0, 86, 167, 0.18);
    animation: load-more-glow 2.4s ease-in-out infinite;
    transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.load-more-count {
    display: inline-block;
    margin: 0 0.4rem;
}

.load-more-btn:hover,
.load-more-btn:focus {
    box-shadow: 0 12px 26px rgba(0, 86, 167, 0.22), 0 0 0 6px rgba(0, 86, 167, 0.12);
    animation-play-state: paused;
}

@keyframes load-more-glow {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(0, 86, 167, 0.18), 0 0 0 0 rgba(0, 86, 167, 0.12);
    }

    50% {
        box-shadow: 0 10px 24px rgba(0, 86, 167, 0.18), 0 0 0 7px rgba(0, 86, 167, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .load-more-btn {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .category-filter-panel {
        padding: 1rem;
        border-radius: 18px;
    }

    .category-filter-grid {
        grid-template-columns: 1fr;
    }

    .category-filter-grid.category-filter-grid--compact-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-filter-chip {
        padding: 0.9rem;
        gap: 0.75rem;
    }

    .category-filter-chip strong {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .category-filter-grid.category-filter-grid--compact-mobile .category-filter-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .product-description.is-collapsed {
        position: relative;
        max-height: 4.5em;
        overflow: hidden;
    }

    .product-description.is-collapsed::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 2.5em;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
        pointer-events: none;
    }

    .product-description-toggle.is-visible {
        font-size: 0.95rem;
    }

    .load-more-btn {
        width: 100%;
        min-height: 56px;
        padding: 14px 20px;
        font-size: 1rem;
    }
}
