.shop-hero {
    padding: 76px 0;
    background:
        radial-gradient(
            circle at 85% 14%,
            rgba(113, 51, 75, 0.22),
            transparent 34%
        ),
        var(--graphite);
    color: var(--text-light);
}

.shop-hero__grid {
    display: grid;
    align-items: center;
    gap: 70px;
    grid-template-columns: 1.25fr 0.75fr;
}

.shop-hero h1 {
    max-width: 820px;
    margin-top: 15px;
    font-family: var(--font-heading);
    font-size: clamp(43px, 5vw, 65px);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1;
}

.shop-hero p:not(.section-label) {
    max-width: 650px;
    margin-top: 20px;
    color: var(--text-light-muted);
}

.shop-hero__summary {
    padding: 28px;
    border: 1px solid var(--border-dark);
    background: rgba(12, 13, 13, 0.38);
}

.shop-hero__summary > span {
    color: var(--rose-light);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-hero__summary > strong {
    display: block;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 42px;
    line-height: 1;
}

.shop-hero__summary .button {
    width: 100%;
    margin-top: 22px;
}

.shop-categories {
    border-bottom: 1px solid var(--border);
    background: var(--stone-light);
}

.shop-categories__list {
    display: flex;
    overflow-x: auto;
}

.shop-categories a {
    display: inline-flex;
    min-height: 58px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-right: 1px solid var(--border);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-categories a:hover,
.shop-categories a.is-active {
    background: var(--wine);
    color: #fff;
}

.shop-categories a span {
    opacity: 0.68;
    font-size: 9px;
}

.shop-catalog {
    padding: 54px 0 76px;
    background: var(--stone);
}

.shop-catalog__layout {
    display: grid;
    align-items: start;
    gap: 24px;
    grid-template-columns: 280px minmax(0, 1fr);
}

.shop-filters {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 22px;
    border: 1px solid var(--border);
    background: var(--stone-light);
}

.shop-filters__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-filters__heading h2 {
    font-size: 19px;
}

.shop-filters__heading a {
    color: var(--wine);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-filter-group {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
}

.shop-filter-group > label,
.shop-filter-group legend {
    padding: 0;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-filter-group input[type="search"],
.shop-filter-group input[type="number"],
.shop-filter-group select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    background: var(--stone);
    font-size: 11px;
}

.shop-price-fields {
    display: grid;
    align-items: center;
    gap: 7px;
    grid-template-columns: 1fr auto 1fr;
}

.shop-filter-options {
    display: grid;
    gap: 9px;
}

.shop-filter-options label {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.shop-filter-options input {
    width: 16px;
    height: 16px;
    accent-color: var(--wine);
}

.shop-filter-options span {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
}

.shop-filter-options small {
    color: var(--text-muted);
}

.shop-filters form > .button {
    width: 100%;
    margin-top: 20px;
}

.shop-results__toolbar {
    display: flex;
    min-height: 54px;
    margin-bottom: 18px;
    padding: 8px 12px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--border);
    background: var(--stone-light);
}

.shop-results__toolbar p {
    color: var(--text-muted);
    font-size: 10px;
}

.shop-results__toolbar form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-results__toolbar label {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-results__toolbar select {
    min-height: 37px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    background: var(--stone);
    font-size: 10px;
}

.shop-filter-toggle {
    display: none;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--graphite);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-products-grid,
.related-products__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-product-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--stone-light);
    box-shadow: 0 8px 23px rgba(13, 15, 14, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.shop-product-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.shop-product-card__image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 9 / 10;
    background: var(--stone);
}

.shop-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.shop-product-card:hover .shop-product-card__image img {
    transform: scale(1.025);
}

.shop-product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.product-badge {
    padding: 5px 8px;
    background: rgba(12, 13, 13, 0.86);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-badge--sale {
    background: var(--wine);
}

.shop-product-card__body {
    display: flex;
    padding: 18px;
    flex: 1;
    flex-direction: column;
}

.shop-product-card__brand {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--wine);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-product-card__brand span {
    color: var(--text-muted);
}

.shop-product-card h3 {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.23;
}

.shop-product-card__body > p {
    margin-top: 9px;
    color: var(--text-body);
    font-size: 10px;
}

.shop-product-card__stock {
    margin-top: 12px;
    font-size: 9px;
    font-weight: 700;
}

.is-available {
    color: #486551;
}

.is-unavailable {
    color: #9c3e48;
}

.shop-product-card__footer {
    display: flex;
    margin-top: auto;
    padding-top: 16px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.shop-product-price strong,
.shop-product-price del {
    display: block;
}

.shop-product-price strong {
    font-size: 16px;
}

.shop-product-price del {
    color: var(--text-muted);
    font-size: 10px;
}

.shop-add-button {
    min-height: 39px;
    padding: 8px 12px;
    border: 1px solid var(--wine);
    background: var(--wine);
    color: #fff;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.shop-add-button:hover {
    background: var(--wine-hover);
}

.shop-add-button:disabled {
    border-color: var(--stone-dark);
    background: var(--stone-dark);
    cursor: not-allowed;
    opacity: 0.65;
}

.shop-pagination {
    display: flex;
    margin-top: 30px;
    justify-content: center;
    gap: 6px;
}

.shop-pagination a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    background: var(--stone-light);
    font-size: 10px;
    font-weight: 800;
}

.shop-pagination a:hover,
.shop-pagination a.is-active {
    border-color: var(--wine);
    background: var(--wine);
    color: #fff;
}

.shop-empty {
    padding: 60px 25px;
    border: 1px solid var(--border);
    background: var(--stone-light);
    text-align: center;
}

.shop-empty h2 {
    font-size: 28px;
}

.shop-empty p {
    margin-top: 9px;
    color: var(--text-body);
}

.shop-empty .button {
    margin-top: 20px;
}

.shop-benefits {
    padding: 55px 0;
    background: var(--graphite);
    color: #fff;
}

.shop-benefits__grid {
    display: grid;
    gap: 1px;
    background: var(--border-dark);
    grid-template-columns: repeat(3, 1fr);
}

.shop-benefits article {
    padding: 24px;
    background: var(--graphite);
}

.shop-benefits article > span {
    color: var(--rose);
    font-size: 9px;
    font-weight: 800;
}

.shop-benefits h2 {
    margin-top: 20px;
    font-size: 17px;
}

.shop-benefits p {
    margin-top: 7px;
    color: var(--text-light-muted);
    font-size: 10px;
}

.shop-filter-backdrop {
    position: fixed;
    z-index: 180;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.shop-filter-backdrop[hidden] {
    display: none;
}

.shop-toast {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    max-width: 360px;
    padding: 15px 18px;
    background: var(--black);
    color: #fff;
    box-shadow: var(--shadow-panel);
    font-size: 11px;
}

.shop-toast[hidden] {
    display: none;
}

/* Product page */

.shop-breadcrumbs {
    padding: 13px 0;
    background: var(--black-soft);
    color: var(--text-light-muted);
}

.shop-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 10px;
}

.shop-breadcrumbs li:not(:last-child)::after {
    margin-left: 7px;
    color: var(--rose);
    content: "/";
}

.product-page {
    padding: 58px 0 70px;
    background: var(--stone);
}

.product-page__grid {
    display: grid;
    align-items: start;
    gap: 55px;
    grid-template-columns: 1fr 0.9fr;
}

.product-gallery {
    min-width: 0;
}

.product-gallery__main {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 10;
    background: var(--stone-light);
    box-shadow: var(--shadow-card);
}

.product-gallery__main > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
}

.product-gallery__badges span {
    padding: 6px 9px;
    background: var(--wine);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-gallery__thumbs {
    display: flex;
    gap: 9px;
    margin-top: 10px;
}

.product-gallery__thumbs button {
    width: 78px;
    height: 78px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
}

.product-gallery__thumbs button.is-active {
    border-color: var(--wine);
}

.product-gallery__thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-summary {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    padding: 35px;
    border: 1px solid var(--border);
    background: var(--stone-light);
}

.product-summary__brand {
    color: var(--wine);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.product-summary h1 {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 50px);
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.product-summary__sku {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 9px;
}

.product-summary__price {
    display: flex;
    margin-top: 22px;
    align-items: baseline;
    gap: 12px;
}

.product-summary__price strong {
    font-size: 27px;
}

.product-summary__price del {
    color: var(--text-muted);
    font-size: 13px;
}

.product-summary__description {
    margin-top: 20px;
    color: var(--text-body);
    font-size: 13px;
}

.product-summary__status {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
}

.product-summary__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 18px;
}

.product-summary__tags li {
    padding: 7px 9px;
    border: 1px solid var(--border);
    background: var(--rose-pale);
    font-size: 9px;
    font-weight: 700;
}

.product-buy {
    margin-top: 25px;
}

.product-buy > label {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-buy__row {
    display: grid;
    gap: 10px;
    grid-template-columns: 130px 1fr;
}

.quantity-control {
    display: grid;
    height: 50px;
    border: 1px solid var(--border);
    grid-template-columns: 38px 1fr 38px;
}

.quantity-control button {
    cursor: pointer;
    font-size: 18px;
}

.quantity-control input {
    width: 100%;
    border: 0;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background: transparent;
    text-align: center;
}

.product-delivery-note {
    display: grid;
    gap: 1px;
    margin-top: 25px;
    background: var(--border);
}

.product-delivery-note div {
    padding: 13px;
    background: var(--stone);
}

.product-delivery-note strong {
    display: block;
    font-size: 10px;
}

.product-delivery-note span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 9px;
}

.product-information {
    padding: 65px 0;
    background: var(--rose-light);
}

.product-information__grid {
    display: grid;
    gap: 1px;
    background: var(--border);
    grid-template-columns: repeat(2, 1fr);
}

.product-information article {
    min-height: 220px;
    padding: 27px;
    background: var(--stone-light);
}

.product-information h2 {
    font-size: 18px;
}

.product-information p {
    margin-top: 12px;
    color: var(--text-body);
    font-size: 11px;
}

.related-products {
    padding: 70px 0 78px;
    background: var(--stone);
}

.related-products__grid {
    margin-top: 35px;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1100px) {
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .shop-catalog__layout {
        grid-template-columns: 1fr;
    }

    .shop-filter-toggle {
        display: inline-flex;
    }

    .shop-filters {
        position: fixed;
        z-index: 200;
        top: 0;
        bottom: 0;
        left: 0;
        overflow-y: auto;
        width: min(88vw, 360px);
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    .shop-filters.is-open {
        transform: translateX(0);
    }

    .product-page__grid {
        gap: 30px;
        grid-template-columns: 1fr 0.9fr;
    }
}

@media (max-width: 767px) {
    .shop-hero {
        padding: 56px 0;
    }

    .shop-hero__grid,
    .product-page__grid,
    .product-information__grid,
    .shop-benefits__grid {
        grid-template-columns: 1fr;
    }

    .shop-catalog {
        padding: 40px 0 58px;
    }

    .shop-results__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-results__toolbar form {
        justify-content: space-between;
    }

    .shop-products-grid,
    .related-products__grid {
        grid-template-columns: 1fr;
    }

    .shop-product-card__image {
        aspect-ratio: 4 / 4.2;
    }

    .product-summary {
        position: static;
        padding: 25px 20px;
    }

    .product-gallery__main {
        aspect-ratio: 4 / 4.5;
    }

    .product-buy__row {
        grid-template-columns: 1fr;
    }

    .shop-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }
}