:root {
    --vir-bg: #f7f4ef;
    --vir-surface: #ffffff;
    --vir-surface-soft: #f2eee8;
    --vir-text: #1f1a17;
    --vir-text-soft: #6f655d;
    --vir-border: rgba(31, 26, 23, 0.08);
    --vir-shadow: 0 18px 50px rgba(24, 18, 14, 0.08);
    --vir-shadow-soft: 0 10px 30px rgba(24, 18, 14, 0.06);
    --vir-primary: #7a5c45;
    --vir-primary-hover: #684c37;
    --vir-radius-lg: 24px;
    --vir-radius-md: 18px;
    --vir-radius-sm: 12px;
    --vir-container: 1320px;
    --carousel-card-width: 700px;
    --carousel-gap: 28px;
}

body {
    background: var(--vir-bg);
    color: var(--vir-text);
}

body.modal-open {
    overflow: hidden;
}

.container {
    width: min(100% - 32px, var(--vir-container));
    margin: 0 auto;
}

.products-page {
    overflow: hidden;
    padding-bottom: 48px;
}

.products-hero {
    padding: 56px 0 18px;
    animation: vir-fade-up 0.7s ease both;
}

.products-kicker {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--vir-primary);
}

.products-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.products-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--vir-text-soft);
}

.product-section {
    padding: 10px 0 42px;
    animation: vir-fade-up 0.75s ease both;
}

.product-section__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.product-section__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vir-primary);
    opacity: 0.78;
}

.product-section__header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.product-section__header--empty {
    gap: 10px;
    margin-bottom: 0;
}

.product-section__empty-text {
    max-width: 760px;
    margin: 0;
    color: var(--vir-text-soft);
    line-height: 1.7;
    font-size: 0.98rem;
}

.products-mobile-floating-nav {
    display: none;
}

.products-mobile-shell {
    display: none;
}

.products-desktop-shell {
    display: block;
}

.product-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
}

.product-carousel__viewport {
    overflow: hidden;
    width: 100%;
}

.product-carousel__track {
    display: flex;
    align-items: stretch;
    gap: var(--carousel-gap);
    padding: 10px 0;
    will-change: transform;
}

.product-carousel__nav {
    width: 56px;
    height: 56px;
    border: 1px solid var(--vir-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--vir-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--vir-shadow-soft);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease,
        filter 0.25s ease;
    z-index: 2;
}

.product-carousel__nav:hover {
    transform: translateY(-2px) scale(1.04);
    background: #fff;
    box-shadow: 0 18px 34px rgba(24, 18, 14, 0.12);
    filter: saturate(1.05);
}

.product-carousel__nav:active {
    transform: translateY(0) scale(0.98);
}

.product-carousel__nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--vir-shadow-soft);
    filter: none;
}

.product-carousel__nav:focus-visible {
    outline: 2px solid rgba(122, 92, 69, 0.35);
    outline-offset: 2px;
}

.product-card {
    width: var(--carousel-card-width);
    min-width: var(--carousel-card-width);
    display: flex;
    flex-direction: column;
    background: var(--vir-surface);
    border: 1px solid var(--vir-border);
    border-radius: var(--vir-radius-lg);
    overflow: hidden;
    box-shadow: var(--vir-shadow-soft);
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease;
    outline: none;
    opacity: 0.58;
    transform: scale(0.92);
    filter: saturate(0.88) blur(0.35px);
}

.product-card.is-active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 24px 60px rgba(24, 18, 14, 0.14);
    filter: saturate(1);
    border-color: rgba(122, 92, 69, 0.16);
}

.product-card.is-active:hover,
.product-card:hover,
.product-card:focus-within {
    box-shadow: 0 28px 68px rgba(24, 18, 14, 0.16);
}

.product-card.is-active:hover {
    transform: translateY(-4px) scale(1.012);
}

.product-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #ece7df 0%, #f5f0e8 100%);
    overflow: hidden;
}

.product-card__image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 42%),
        linear-gradient(to top, rgba(0,0,0,0.04), transparent 40%);
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.product-card:hover .product-card__image-wrap::after,
.product-card.is-active .product-card__image-wrap::after,
.product-card--stacked .product-card__image-wrap::after {
    opacity: 0.9;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 28px;
    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease,
        opacity 0.35s ease;
}

.product-card.is-active .product-card__image,
.product-card:hover .product-card__image,
.product-card--stacked:hover .product-card__image {
    transform: scale(1.05);
    filter: saturate(1.03);
}

.product-card__code {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--vir-text);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .product-card__code,
.product-card.is-active .product-card__code,
.product-card--stacked:hover .product-card__code {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.1);
}

.product-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    flex: 1;
}

.product-card__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card__category {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--vir-surface-soft);
    color: var(--vir-primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-card__category,
.product-card.is-active .product-card__category,
.product-card--stacked:hover .product-card__category {
    background: #ebe3d8;
    transform: translateY(-1px);
}

.product-card__content h3 {
    margin: 0;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-card__content h3,
.product-card.is-active .product-card__content h3,
.product-card--stacked:hover .product-card__content h3 {
    transform: translateY(-1px);
}

.product-card__description {
    margin: 0;
    color: var(--vir-text-soft);
    line-height: 1.65;
    font-size: 0.96rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .product-card__description,
.product-card.is-active .product-card__description,
.product-card--stacked:hover .product-card__description {
    color: #60564e;
}

.product-card__meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.product-card__meta li {
    color: var(--vir-text);
    font-size: 0.93rem;
    line-height: 1.5;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.product-card:hover .product-card__meta li,
.product-card.is-active .product-card__meta li,
.product-card--stacked:hover .product-card__meta li {
    transform: translateX(1px);
}

.product-card__freight {
    margin: 0;
    font-size: 0.89rem;
    color: var(--vir-text-soft);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.product-card:hover .product-card__freight,
.product-card.is-active .product-card__freight,
.product-card--stacked:hover .product-card__freight {
    color: #655c54;
}

.product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.btn {
    appearance: none;
    border: 0;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.91rem;
    font-weight: 700;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease;
    width: auto;
}

.btn-primary {
    background: var(--vir-primary);
    color: #fff;
    box-shadow: 0 10px 22px rgba(122, 92, 69, 0.18);
}

.btn-primary:hover {
    background: var(--vir-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(122, 92, 69, 0.24);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--vir-surface-soft);
    color: var(--vir-text);
    border: 1px solid var(--vir-border);
}

.btn-secondary:hover {
    background: #ebe4da;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(24, 18, 14, 0.08);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--vir-primary);
    border: 1px solid rgba(122, 92, 69, 0.25);
}

.btn-outline:hover {
    background: rgba(122, 92, 69, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(24, 18, 14, 0.05);
}

.btn-outline:active {
    transform: translateY(0);
}

.btn-full {
    width: 100%;
}

.product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.product-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 16, 13, 0.52);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s ease;
}

.product-modal__dialog {
    position: relative;
    width: min(1120px, calc(100% - 24px));
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    background: var(--vir-surface);
    border-radius: 28px;
    overflow: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    animation: vir-modal-in 0.3s ease both;
}

.product-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--vir-text);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.product-modal__close:hover {
    transform: rotate(90deg) scale(1.04);
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.product-modal__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
}

.product-modal__gallery {
    padding: 24px;
    background: #f3efe9;
}

.product-modal__main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 20px;
    display: block;
    background: linear-gradient(135deg, #ece7df 0%, #f5f0e8 100%);
    padding: 28px;
    animation: vir-fade-in 0.3s ease both;
}

.product-modal__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}

.product-modal__thumb {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-modal__thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(24, 18, 14, 0.08);
}

.product-modal__thumb.is-active {
    border-color: var(--vir-primary);
    box-shadow: 0 10px 20px rgba(122, 92, 69, 0.12);
}

.product-modal__thumb img {
    display: block;
    width: 100%;
    height: 104px;
    object-fit: contain;
    background: linear-gradient(135deg, #ece7df 0%, #f5f0e8 100%);
    padding: 12px;
}

.product-modal__info {
    padding: 38px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-modal__code,
.product-modal__category {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--vir-surface-soft);
    color: var(--vir-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.product-modal__category {
    margin-top: -8px;
}

.product-modal__info h3 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.product-modal__description {
    margin: 0;
    color: var(--vir-text-soft);
    line-height: 1.72;
}

.product-modal__details {
    display: grid;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid var(--vir-border);
    border-bottom: 1px solid var(--vir-border);
}

.product-modal__details p {
    margin: 0;
    line-height: 1.65;
    color: var(--vir-text);
    font-size: 0.95rem;
}

.product-modal__actions {
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

@keyframes vir-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vir-fade-in {
    from {
        opacity: 0.2;
        filter: blur(1px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes vir-modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1200px) {
    :root {
        --carousel-card-width: 620px;
    }
}

@media (max-width: 1080px) {
    :root {
        --carousel-card-width: 520px;
    }

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

@media (max-width: 820px) {
    .products-mobile-floating-nav {
        display: block;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 40;
        background: rgba(247, 244, 239, 0.12);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        border-bottom: none;
        box-shadow: none;
    }

    .products-mobile-shell {
        display: block;
        overflow: hidden;
        padding-top: 42px;
    }

    .products-desktop-shell {
        display: none;
    }

    .container {
        width: min(100% - 8px, var(--vir-container));
    }

    .products-page {
        padding-bottom: 22px;
    }

    .products-hero {
        padding: 24px 0 8px;
    }

    .products-hero h1 {
        font-size: 1.85rem;
    }

    .products-hero p {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .products-mobile-topbar {
        display: grid;
        gap: 1px;
        padding: 1px 0 2px;
        align-items: center;
    }

    .products-mobile-hint {
        font-size: 0.56rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--vir-primary);
        opacity: 0.5;
        line-height: 3;
        margin: 0;
    }

    .products-mobile-tabs {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }

    .products-mobile-tabs::-webkit-scrollbar {
        display: none;
    }

    .products-mobile-tab {
        border: 1px solid rgba(122, 92, 69, 0.09);
        background: rgba(255, 255, 255, 0.76);
        color: var(--vir-text);
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 0.77rem;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        transition: all 0.22s ease;
        box-shadow: 0 1px 6px rgba(24, 18, 14, 0.025);
    }

    .products-mobile-tab.is-active {
        background: rgba(122, 92, 69, 0.92);
        color: #fff;
        border-color: rgba(122, 92, 69, 0.92);
        box-shadow: 0 5px 12px rgba(122, 92, 69, 0.14);
    }

    .products-mobile-sections {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc(100% - 4px);
        gap: 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-left: 2px;
        padding-right: 4px;
    }

    .products-mobile-sections::-webkit-scrollbar {
        display: none;
    }

    .product-section--mobile-slide {
        scroll-snap-align: start;
        padding: 2px 0 14px;
    }

    .product-section__header {
        margin-bottom: 8px;
        gap: 1px;
    }

    .product-section__header h2 {
        font-size: 1.04rem;
    }

    .product-mobile-list {
        display: grid;
        gap: 12px;
    }

    .product-card--stacked {
        width: 100%;
        min-width: 0;
        opacity: 1;
        transform: none;
        filter: none;
        border-radius: 20px;
        box-shadow:
            0 12px 28px rgba(24, 18, 14, 0.08),
            0 2px 8px rgba(24, 18, 14, 0.035);
        border-color: rgba(122, 92, 69, 0.09);
    }

    .product-card--stacked:hover {
        transform: translateY(-2px);
        box-shadow:
            0 16px 34px rgba(24, 18, 14, 0.11),
            0 4px 12px rgba(24, 18, 14, 0.05);
    }

    .product-card__image {
        padding: 14px;
    }

    .product-card__content {
        padding: 14px;
        gap: 8px;
    }

    .product-card__content h3 {
        font-size: 1.16rem;
    }

    .product-card__description,
    .product-card__meta li,
    .product-card__freight {
        font-size: 0.87rem;
        line-height: 1.5;
    }

    .product-card__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn {
        width: 100%;
        min-height: 42px;
        font-size: 0.86rem;
        padding: 0 13px;
    }

    .product-modal__dialog {
        width: min(100% - 16px, 100%);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 22px;
    }

    .product-modal__gallery,
    .product-modal__info {
        padding: 16px;
    }

    .product-modal__main-image {
        padding: 18px;
        border-radius: 16px;
    }

    .product-modal__thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 10px;
    }

    .product-modal__thumb img {
        height: 72px;
        padding: 10px;
    }

    .product-modal__info h3 {
        font-size: 1.45rem;
    }

    .product-modal__description,
    .product-modal__details p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .product-modal__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 520px) {
    .products-kicker {
        font-size: 0.74rem;
    }

    .products-hero h1 {
        font-size: 1.68rem;
    }

    .product-card__code {
        top: 10px;
        left: 10px;
        font-size: 0.7rem;
        padding: 6px 9px;
    }

    .product-card__category {
        font-size: 0.68rem;
        padding: 5px 8px;
    }

    .product-modal__thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
}