.catalog-discovery {
    display: grid;
    gap: 1.25rem;
    padding: 1rem 0 2rem;
}

.catalog-discovery__section {
    min-width: 0;
    overflow: hidden;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border: 1px solid rgba(38, 62, 48, .09);
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #fbfcfa 100%);
    box-shadow: 0 12px 34px rgba(30, 47, 37, .07);
}

.catalog-discovery__section--best {
    background:
        radial-gradient(circle at 92% 0%, rgba(244, 196, 95, .16), transparent 28%),
        linear-gradient(135deg, #fff 0%, #fffaf0 100%);
}

.catalog-discovery__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.catalog-discovery__header h2 {
    margin: .3rem 0 0;
    color: #1f2937;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.catalog-discovery__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #a66512;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.catalog-discovery__controls {
    display: flex;
    flex-shrink: 0;
    gap: .45rem;
}

.catalog-slider-button {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    color: #294635;
    border: 1px solid #dce5df;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(31, 53, 40, .09);
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.catalog-slider-button:hover,
.catalog-slider-button:focus-visible {
    color: #fff;
    background: #294635;
    transform: translateY(-2px);
}

.catalog-slider-button:focus-visible {
    outline: 3px solid rgba(183, 121, 31, .3);
    outline-offset: 2px;
}

.catalog-slider-button.swiper-button-disabled {
    opacity: .35;
    pointer-events: none;
}

.catalog-category-swiper,
.catalog-bestseller-swiper {
    width: 100%;
    overflow: hidden;
}

.catalog-category-swiper > .swiper-wrapper,
.catalog-bestseller-swiper > .swiper-wrapper {
    width: 100%;
    height: auto;
    margin: 0 !important;
}

.catalog-category-swiper .swiper-slide,
.catalog-bestseller-swiper .swiper-slide {
    height: auto;
}

.catalog-category-swiper .swiper-slide {
    width: 6.25rem;
}

.catalog-category-chip {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 7.35rem;
    align-items: center;
    flex-direction: column;
    gap: .55rem;
    padding: .4rem .25rem .6rem;
    color: #34433a;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    transition: color .25s ease, transform .25s ease;
}

.catalog-category-chip:hover,
.catalog-category-chip:focus-visible,
.catalog-category-chip.is-active {
    color: #173d2a;
    transform: translateY(-2px);
}

.catalog-category-chip:focus-visible,
.catalog-bestseller-card:focus-visible {
    outline: 3px solid rgba(183, 121, 31, .34);
    outline-offset: 2px;
}

.catalog-category-chip__image,
.catalog-category-chip__icon {
    display: grid;
    width: 4.45rem;
    height: 4.45rem;
    flex: 0 0 4.45rem;
    overflow: hidden;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    border: 3px solid #fff;
    border-radius: 1.35rem;
    background: #294635;
    box-shadow: 0 8px 20px rgba(30, 49, 37, .16);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.catalog-category-chip:hover .catalog-category-chip__image,
.catalog-category-chip:hover .catalog-category-chip__icon,
.catalog-category-chip:focus-visible .catalog-category-chip__image,
.catalog-category-chip:focus-visible .catalog-category-chip__icon,
.catalog-category-chip.is-active .catalog-category-chip__image,
.catalog-category-chip.is-active .catalog-category-chip__icon {
    border-color: #d7ae54;
    box-shadow: 0 10px 24px rgba(90, 63, 20, .22);
    transform: scale(1.035);
}

.catalog-category-chip__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-category-chip__label {
    display: -webkit-box;
    width: 100%;
    max-width: 6.25rem;
    overflow: hidden;
    color: #28382f;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-category-chip__count {
    position: absolute;
    inset-block-start: .05rem;
    inset-inline-end: .1rem;
    z-index: 2;
    display: grid;
    min-width: 1.55rem;
    height: 1.55rem;
    padding-inline: .3rem;
    place-items: center;
    color: #51340d;
    font-size: .65rem;
    font-weight: 900;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #f5d88d;
    box-shadow: 0 4px 12px rgba(58, 42, 17, .14);
}

.catalog-bestseller-swiper .swiper-slide {
    height: auto;
}

.catalog-bestseller-card {
    display: flex;
    height: 100%;
    overflow: hidden;
    color: inherit;
    border: 1px solid rgba(44, 61, 51, .1);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 9px 25px rgba(38, 49, 42, .08);
    transition: box-shadow .3s ease, transform .3s ease;
}

.catalog-bestseller-card:hover,
.catalog-bestseller-card:focus-visible {
    box-shadow: 0 16px 34px rgba(38, 49, 42, .15);
    transform: translateY(-4px);
}

.catalog-bestseller-card__media {
    position: relative;
    display: block;
    width: 7.25rem;
    min-height: 8.25rem;
    flex: 0 0 7.25rem;
    overflow: hidden;
    background: #f2f4f2;
}

.catalog-bestseller-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .5rem;
}

.catalog-bestseller-card__fallback {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 8.25rem;
    place-items: center;
    color: rgba(255, 255, 255, .72);
    font-size: 2.2rem;
    background: linear-gradient(145deg, #294635, #b7791f);
}

.catalog-bestseller-card__rank {
    position: absolute;
    inset-block-start: .45rem;
    inset-inline-start: .45rem;
    display: grid;
    min-width: 1.75rem;
    height: 1.75rem;
    padding-inline: .35rem;
    place-items: center;
    color: #51340d;
    font-size: .68rem;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(255, 235, 178, .94);
}

.catalog-bestseller-card__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: .85rem;
}

.catalog-bestseller-card__category {
    overflow: hidden;
    color: #a66512;
    font-size: .67rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-bestseller-card__body strong {
    display: -webkit-box;
    margin-top: .35rem;
    overflow: hidden;
    color: #202b24;
    font-size: .9rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalog-bestseller-card__meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    margin-top: auto;
    padding-top: .65rem;
}

.catalog-bestseller-card__meta > bdi {
    color: #1f5135;
    font-size: .95rem;
    font-weight: 900;
}

.catalog-bestseller-card__meta > span {
    color: #899189;
    font-size: .68rem;
    white-space: nowrap;
}

@media (max-width: 639px) {
    .catalog-discovery {
        margin-inline: -1rem;
        padding-top: .75rem;
    }

    .catalog-discovery__section {
        border-inline: 0;
        border-radius: 0;
    }

    .catalog-discovery__header {
        align-items: center;
    }

    .catalog-discovery__controls {
        display: flex;
    }

    .catalog-slider-button {
        width: 2.1rem;
        height: 2.1rem;
        font-size: .78rem;
    }

    .catalog-bestseller-card__media {
        width: 6.5rem;
        min-height: 7.4rem;
        flex-basis: 6.5rem;
    }

    .catalog-bestseller-card__fallback {
        min-height: 7.4rem;
    }

    .catalog-bestseller-card__body {
        padding: .7rem;
    }

    .catalog-bestseller-card__meta {
        padding-top: .4rem;
    }

    .products-grid {
        align-items: start;
    }

    .products-grid .card-product {
        align-self: start;
        height: auto;
        min-height: 0;
    }

    .products-grid .card-product .product-content {
        flex: 0 0 auto;
        min-height: 0;
        padding: .75rem;
    }

    .products-grid .card-product .add-to-pack-button-wrapper {
        margin-top: .15rem;
    }

    .products-grid .card-product .product-content > div:first-child {
        min-height: 1rem;
        margin-bottom: .45rem;
    }

    .products-grid .card-product h3 {
        min-height: 2.45rem;
        margin-bottom: .55rem;
        font-size: .92rem;
        line-height: 1.3;
    }

    .products-grid .card-product .product-card-price {
        min-height: 1.75rem;
        margin-bottom: .65rem;
    }

    .products-grid .card-product .product-card-add-btn,
    .products-grid .card-product .add-to-pack-btn {
        min-height: 2.5rem;
        padding: .6rem .45rem;
        font-size: .78rem;
    }

    .products-grid .card-product .product-card-image-action {
        position: absolute;
        right: .75rem;
        bottom: .75rem;
        left: auto;
        width: auto;
        margin: 0;
    }

    .products-grid .card-product .product-card-overlay-button {
        width: 2.75rem;
        height: 2.75rem;
        min-height: 2.75rem;
        padding: 0;
        border-radius: 9999px;
        font-size: .95rem;
    }
}

/* Keep catalog cards consistent with the image-first homepage cards. */
.products-grid .card-product,
.products-grid .card-product:hover {
    background: transparent;
    border: 0 !important;
    box-shadow: none;
}

.products-grid .card-product .product-card-media {
    aspect-ratio: 1;
    border-radius: .875rem;
}

.products-grid .card-product > .pointer-events-none {
    display: none;
}

.products-grid .card-product .product-content {
    flex: 0 0 auto;
    min-height: 0;
    padding: .55rem .75rem 0;
}

.products-grid .card-product .product-content > div:first-child {
    min-height: 0;
    margin-bottom: .2rem;
}

.products-grid .card-product .product-content > div:first-child a {
    color: var(--primary-color, #B7791F);
    font-size: .68rem;
}

.products-grid .card-product h3 {
    min-height: 0;
    margin: 0 0 .2rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.products-grid .card-product .product-card-price {
    min-height: 0;
    margin-bottom: 0;
}

.products-grid .card-product [data-card-final-price] {
    font-size: 1rem;
    font-weight: 500;
}

.products-grid .card-product .product-card-image-action {
    right: .5rem;
    bottom: .5rem;
}

.products-grid .card-product .product-card-overlay-button {
    width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    max-width: none;
    padding: 0;
    background: #111;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .25);
}

.products-grid .card-product .product-card-action-label {
    display: none;
}

.products-grid .card-product .product-card-overlay-button:hover {
    background: #252525;
}

.products-grid .card-product .product-card-overlay-button--disabled,
.products-grid .card-product .product-card-overlay-button--disabled:hover {
    background: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
    .catalog-category-chip,
    .catalog-bestseller-card,
    .catalog-slider-button {
        scroll-behavior: auto;
        transition: none;
    }
}
