/* =========================================================
   Store page
   ========================================================= */

.page-store .site-main {
    background: var(--color-cream);
}

/* Category cards */
.store-categories {
    padding: 1.1rem 0 0.35rem;
}

.store-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.store-category-card {
    /* Fallback keeps the tint gradients valid for categories without artwork. */
    --store-card-bg: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 88px;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background-color: #e8dcc8;
    background-image: var(--store-card-bg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

.store-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 36, 28, 0.12);
    color: inherit;
}

.store-category-card--cream {
    color: #4a3228;
    background-image:
        linear-gradient(90deg, rgba(240, 231, 216, 0.94) 0%, rgba(240, 231, 216, 0.6) 62%, rgba(240, 231, 216, 0.28) 100%),
        var(--store-card-bg);
}

.store-category-card--cream .store-category-card__title {
    color: var(--color-primary);
}

.store-category-card--red,
.store-category-card--teal {
    color: #fff;
}

.store-category-card--red {
    background-color: var(--color-primary);
    background-image:
        linear-gradient(90deg, rgba(139, 29, 29, 0.94) 0%, rgba(139, 29, 29, 0.72) 62%, rgba(139, 29, 29, 0.45) 100%),
        var(--store-card-bg);
}

.store-category-card--teal {
    background-color: var(--color-teal);
    background-image:
        linear-gradient(90deg, rgba(58, 107, 98, 0.94) 0%, rgba(58, 107, 98, 0.72) 62%, rgba(58, 107, 98, 0.45) 100%),
        var(--store-card-bg);
}

.store-category-card__icon {
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
}

.store-category-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-category-card__body {
    flex: 1 1 auto;
    min-width: 0;
}

.store-category-card__title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.2;
}

.store-category-card__desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.88rem;
    opacity: 0.88;
}

.store-category-card__arrow {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    display: grid;
    place-items: center;
    opacity: 0.85;
}

/* Search */
.store-search {
    padding: 1rem 0 0.5rem;
}

.store-search__form {
    display: flex;
    align-items: center;
}

.store-search__field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 36px;
    padding: 0.1rem 0.1rem 0.1rem 0.75rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 14px rgba(59, 36, 28, 0.04);
}

.store-search__field i {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    flex: 0 0 auto;
}

.store-search__field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--color-text);
    padding: 0.2rem 0;
    line-height: 1.2;
}

.store-search__submit {
    flex: 0 0 auto;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
    line-height: 1.2;
    transition: background var(--transition);
}

.store-search__submit:hover {
    background: var(--color-primary-dark);
}

/* Featured */
.store-featured {
    padding: 1.4rem 0 3rem;
}

.store-section-head {
    margin-bottom: 1rem;
}

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.9rem 1.9rem;
}

.store-product-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition);
    color: inherit;
}

a.store-product-card__link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

a.store-product-card__link:hover,
a.store-product-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.store-product-card:hover {
    transform: translateY(-2px);
    color: inherit;
}

.store-product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #efe8dc;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.store-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-product-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.65rem 0.1rem 0.15rem;
    background: transparent;
}

.store-product-card__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.3;
    color: #3b241c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-product-card__price {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

.store-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--color-text-muted);
}

.store-pagination {
    margin-top: 1.75rem;
}

.store-pagination .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.store-pagination .pagination > li > a,
.store-pagination .pagination > li > span {
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0 0.55rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 34px;
    text-align: center;
}

.store-pagination .pagination > .active > a,
.store-pagination .pagination > .active > span,
.store-pagination .pagination > .active > a:hover,
.store-pagination .pagination > .active > span:hover {
    background: var(--color-primary);
    color: #fff;
}

.store-pagination .pagination > li > a:hover {
    background: rgba(139, 29, 29, 0.08);
    color: var(--color-primary);
}

.store-pagination .page-item.disabled .page-link,
.store-pagination .pagination > .disabled > span,
.store-pagination .pagination > .disabled > a,
.store-pagination .pagination > .disabled > span:hover,
.store-pagination .pagination > .disabled > a:hover,
.store-pagination .pagination > .disabled > span:focus,
.store-pagination .pagination > .disabled > a:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* Category banner */
.store-category-banner {
    position: relative;
    overflow: hidden;
    background: #ebe2d4;
    line-height: 0;
}

.store-category-banner__img {
    display: block;
    width: 100%;
    height: auto;
}

/* Listing layout */
.store-listing {
    padding: 1.35rem 0 3rem;
    background: var(--color-cream);
}

.store-listing__layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.store-filters {
    position: sticky;
    top: calc(var(--header-height) + 0.75rem);
    --store-filter-inline: 0.85rem;
    padding-bottom: 1.15rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.store-filters__group + .store-filters__group {
    margin-top: 1.5rem;
}

.store-filters__group--categories {
    padding: 1rem var(--store-filter-inline) 0;
}

.store-filters__group:not(.store-filters__group--categories) {
    padding-left: var(--store-filter-inline);
    padding-right: var(--store-filter-inline);
}

.store-filters__heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: #3b241c;
}

.store-filters__heading--accent {
    color: var(--color-primary);
}

.store-filters__heading-link {
    display: inline-flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 0.5rem;
    min-width: 0;
    color: inherit;
}

.store-filters__heading-link:hover {
    color: var(--color-primary-dark);
}

.store-filters__heading .fa {
    color: inherit;
    font-size: 0.95rem;
}

.store-filters__icon {
    display: block;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.store-filters__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.store-filters__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.store-filters__toggle-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    margin: 0 0 0 0.35rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.store-filters__chevron {
    transition: transform 0.28s ease;
}

.store-filters__group--collapsible .store-filters__heading {
    transition: margin-bottom 0.28s ease;
}

.store-filters__panel {
    display: grid;
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows 0.28s ease, opacity 0.22s ease, visibility 0s;
}

.store-filters__panel > .store-filters__checks,
.store-filters__panel > .store-filters__categories {
    min-height: 0;
    overflow: hidden;
}

.store-filters__group.is-collapsed .store-filters__heading {
    margin-bottom: 0;
}

.store-filters__group.is-collapsed .store-filters__chevron {
    transform: rotate(-90deg);
}

.store-filters__group.is-collapsed .store-filters__panel {
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
}

@media (max-width: 991.98px) {
    .store-filters__group.is-collapsed-until-desktop .store-filters__heading {
        margin-bottom: 0;
    }

    .store-filters__group.is-collapsed-until-desktop .store-filters__chevron {
        transform: rotate(-90deg);
    }

    .store-filters__group.is-collapsed-until-desktop .store-filters__panel {
        grid-template-rows: 0fr;
        opacity: 0;
        visibility: hidden;
        transition: grid-template-rows 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-filters__chevron,
    .store-filters__group--collapsible .store-filters__heading,
    .store-filters__panel {
        transition: none;
    }
}

.store-filters__categories,
.store-filters__checks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-filters__categories li + li {
    margin-top: 0.2rem;
}

.store-filters__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.58rem 0.7rem;
    border-radius: 8px;
    color: #2c2c2c;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.3;
    transition: background var(--transition), color var(--transition);
}

.store-filters__category-main {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.store-filters__category-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: #2c2c2c;
    font-size: 0.95rem;
    line-height: 1;
}

.store-filters__category-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.store-filters__category-title {
    min-width: 0;
}

.store-filters__category > .fa-angle-right {
    flex: 0 0 auto;
    font-size: 0.95rem;
    opacity: 0.95;
}

.store-filters__category:hover {
    color: var(--color-primary);
    background: rgba(139, 29, 29, 0.05);
}

.store-filters__category:hover .store-filters__category-icon {
    color: var(--color-primary);
}

.store-filters__category.is-active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
}

.store-filters__category.is-active .store-filters__category-icon {
    color: #fff;
}

.store-filters__category.is-active:hover {
    color: #fff;
    background: var(--color-primary-dark);
}

.store-filters__checks li + li {
    margin-top: 0.55rem;
}

.store-check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.35;
    color: #3a3a3a;
    cursor: pointer;
}

.store-check input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1.5px solid #b8b8b8;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    position: relative;
}

.store-check input:checked {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.store-check input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.store-filters__clear {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: calc(100% - (var(--store-filter-inline) * 2));
    margin-top: 1.35rem;
    margin-left: var(--store-filter-inline);
    margin-right: var(--store-filter-inline);
    min-height: 40px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: border-color var(--transition), color var(--transition);
}

.store-filters__clear .fa {
    font-size: 0.85rem;
}

.store-filters__clear:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.store-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.store-toolbar__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
}

.store-toolbar__search i {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.store-toolbar__search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--color-text);
}

.store-toolbar__sort {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    font-weight: 400;
}

.store-toolbar__sort select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 180px;
    min-height: 42px;
    padding: 0 2rem 0 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    color: var(--color-text);
    font-size: 0.9rem;
    cursor: pointer;
}

.store-toolbar__sort i {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    font-size: 0.85rem;
}

.store-product-grid--listing {
    gap: 1.5rem 1.25rem;
}

.store-product-card--listing .store-product-card__media {
    border-radius: 14px;
}

.store-product-card__body--listing {
    padding: 0.7rem 0.15rem 0.1rem;
}

.store-product-card__body--listing .store-product-card__title {
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
}

.store-product-card__body--listing .store-product-card__price {
    font-size: 0.98rem;
}

/* Themes */
.store-themes {
    padding: 1.1rem 0 0.35rem;
}

.store-themes--top {
    padding-top: 1.1rem;
}

.store-theme-slider {
    position: relative;
}

.store-theme-slider .hero-nav {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    z-index: 3;
}

.store-theme-slider .hero-nav--prev {
    left: 0.5rem;
}

.store-theme-slider .hero-nav--next {
    right: 0.5rem;
}

.store-theme-slider .hero-nav[hidden] {
    display: none !important;
}

.store-theme-grid {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.15rem;
    cursor: grab;
}

.store-theme-grid::-webkit-scrollbar {
    display: none;
}

.store-theme-grid.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.store-theme-card {
    position: relative;
    flex: 0 0 calc((100% - 1.7rem) / 3);
    width: calc((100% - 1.7rem) / 3);
    min-width: 280px;
    display: flex;
    align-items: center;
    height: 118px;
    min-height: 118px;
    max-height: 118px;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    scroll-snap-align: start;
    transition: transform var(--transition);
    color: inherit;
}

.store-theme-card:hover {
    transform: translateY(-2px);
    color: inherit;
}

.store-theme-card__media {
    position: absolute;
    inset: 0;
    display: block;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.store-theme-card__copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    max-width: 58%;
    padding: 1rem 0.85rem 1rem 1.15rem;
    min-width: 0;
}

.store-theme-card__title {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-theme-card__desc {
    font-size: 0.9rem;
    line-height: 1.35;
    color: #3b241c;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1199.98px) {
    .store-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-listing__layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 1.35rem;
    }
}

@media (max-width: 991.98px) {
    .store-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-listing__layout {
        grid-template-columns: 1fr;
    }

    .store-filters {
        position: static;
    }

    .store-toolbar {
        flex-wrap: wrap;
    }

    .store-toolbar__sort {
        width: 100%;
    }

    .store-toolbar__sort select {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .store-category-grid {
        grid-template-columns: 1fr;
    }

    .store-theme-slider .hero-nav {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .store-theme-slider .hero-nav--prev {
        left: 0.35rem;
    }

    .store-theme-slider .hero-nav--next {
        right: 0.35rem;
    }

    .store-theme-card {
        flex-basis: min(320px, 82vw);
        width: min(320px, 82vw);
        min-width: min(320px, 82vw);
        height: 108px;
        min-height: 108px;
        max-height: 108px;
    }

    .store-theme-card__copy {
        padding: 0.9rem 0.7rem 0.9rem 1rem;
    }

    .store-theme-card__title {
        font-size: 1.08rem;
    }

    .store-theme-card__desc {
        font-size: 0.84rem;
    }

    .store-product-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 480px) {
    .store-product-grid {
        grid-template-columns: 1fr;
    }

    .store-product-grid--listing {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product detail */
.product-detail {
    padding: 1.15rem 0 2.5rem;
}

.product-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.product-breadcrumb a {
    color: var(--color-text-muted);
}

.product-breadcrumb a:hover {
    color: var(--color-primary);
}

.product-breadcrumb [aria-current="page"] {
    color: var(--color-text);
}

.product-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas:
        "gallery info"
        "about about";
    gap: 1.35rem 1.5rem;
    align-items: start;
}

.product-gallery {
    grid-area: gallery;
    min-width: 0;
    max-width: 100%;
}

.product-gallery__stage {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #efe8dc;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
}

.product-gallery__frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.product-gallery__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(0, 0, 0);
}

.product-gallery__frame img.is-sliding {
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
    .product-gallery__frame img.is-sliding {
        transition: none;
    }
}

.product-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #3b241c;
    box-shadow: 0 4px 14px rgba(59, 36, 28, 0.16);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.product-gallery__nav:hover,
.product-gallery__nav:focus {
    background: #fff;
    color: var(--color-primary);
}

.product-gallery__nav--prev {
    left: 0.7rem;
}

.product-gallery__nav--next {
    right: 0.7rem;
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0.7rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.product-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.product-gallery__thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #efe8dc;
    cursor: pointer;
}

.product-gallery__thumb.is-active {
    border-color: var(--color-primary);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    grid-area: info;
    min-width: 0;
}

.product-info__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.product-info__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #2a1c16;
}

.product-info__price {
    margin: 0.7rem 0 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-sizes {
    margin-top: 1.15rem;
}

.product-sizes__label {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2a1c16;
}

.product-sizes__list {
    display: flex;
    gap: 0.65rem;
}

.product-size {
    flex: 1 1 0;
    min-width: 0;
    min-height: 64px;
    padding: 0.55rem 0.45rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.product-size.is-selected {
    border-color: var(--color-primary);
    background: #fbf6f4;
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.product-size__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #2a1c16;
}

.product-size.is-selected .product-size__title {
    color: var(--color-primary);
}

.product-size__meta {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.product-assurances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.product-assurances li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.65rem 0.55rem;
    border: 1px solid rgba(139, 29, 29, 0.22);
    border-radius: 12px;
    background: #fbf6f4;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #6b5348;
}

.product-assurances__head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.product-assurances strong {
    color: #2a1c16;
    font-size: 0.8rem;
    line-height: 1.25;
}

.product-assurances__text {
    display: block;
    color: #6b5348;
}

.product-assurances a.product-assurances__text {
    color: #2a1c16;
    font-size: 0.78rem;
}

.product-assurances a:hover {
    color: var(--color-primary);
}

.product-assurances__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(139, 29, 29, 0.08);
    color: var(--color-primary);
    font-size: 0.95rem;
}

.product-about {
    grid-area: about;
    min-width: 0;
    padding: 1.15rem 1.25rem 1.3rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.product-about__heading {
    margin: 0 0 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-about__card {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.product-about__body {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #4a403a;
}

.product-about__body > :first-child {
    margin-top: 0;
}

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

.product-about__body ul,
.product-about__body ol {
    margin: 0.6rem 0 0;
    padding-left: 1.15rem;
}

.product-about__body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.product-related {
    padding: 0.25rem 0 3rem;
}

.product-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-related__title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.store-product-grid--related {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem 1rem;
}

@media (max-width: 1199.98px) {
    .product-detail__layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }

    .store-product-grid--related {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .product-detail__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "gallery"
            "info"
            "about";
    }

    .product-sizes__list,
    .product-assurances {
        gap: 0.4rem;
    }

    .product-size {
        min-height: 52px;
        padding: 0.4rem 0.2rem;
    }

    .product-size__title {
        font-size: 0.72rem;
    }

    .product-size__meta {
        font-size: 0.65rem;
    }

    .product-assurances li {
        gap: 0.2rem;
        padding: 0.45rem 0.3rem;
        font-size: 0.68rem;
    }

    .product-assurances strong {
        font-size: 0.7rem;
    }

    .store-product-grid--related {
        grid-template-columns: 1fr 1fr;
    }
}
