.products-page-hero {
    min-height: 58vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(45,31,28,.48), rgba(45,31,28,.48)),
        url('/static/images/hero/product_hero.png');
    background-size: cover;
    background-position: center;
}

.products-page-content {
    max-width: 720px;
    color: #fff;
}

.products-page-content span,
.products-category-panel > span,
.products-results-top span {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--color-primary);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.products-page-content span {
    color: #f3d4cf;
}

.products-page-content h1 {
    margin-bottom: 24px;
    color: #fff;
    font-size: 76px;
    line-height: .95;
}

.products-page-content p {
    max-width: 590px;
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.9;
}

.products-catalog-section {
    padding: 96px 0 130px;
    background: #f8f4f1;
}

.products-catalog-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.products-category-panel,
.products-results-panel {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(72,51,45,.06);
}

.products-category-panel {
    position: sticky;
    top: 110px;
    padding: 24px;
}

.products-category-list {
    display: grid;
    gap: 10px;
}

.products-category-list button {
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: transparent;
    color: #463936;
    cursor: pointer;
    text-align: left;
}

.products-category-list button:hover,
.products-category-list button.active {
    border-color: rgba(199,119,112,.24);
    background: rgba(199,119,112,.1);
}

.products-filter-switch {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(117, 92, 77, .12);
}

.products-filter-switch span {
    display: block;
    margin-bottom: 12px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-filter-switch button {
    width: 100%;
    min-height: 42px;
    margin-bottom: 10px;
    padding: 0 16px;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.64);
    color: #5c4d49;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.products-filter-switch button:hover,
.products-filter-switch button.active {
    border-color: rgba(199,119,112,.42);
    background: rgba(199,119,112,.13);
    color: var(--color-primary);
}

.products-filter-switch button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.products-results-panel {
    padding: 34px;
}

.products-results-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 24px;
    align-items: center;
    margin-bottom: 34px;
}

.products-results-top h2 {
    color: #2f2f2f;
    font-size: 48px;
    line-height: 1;
}

.products-brand-filter {
    display: flex;
    gap: 10px;
    margin: -8px 0 28px;
    padding: 4px 2px 22px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(117, 92, 77, .42) transparent;
}

.products-brand-filter button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 18px;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: #5c4d49;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.products-brand-filter button:hover,
.products-brand-filter button.active {
    border-color: rgba(199,119,112,.42);
    background: rgba(199,119,112,.13);
    color: var(--color-primary);
}

.products-public-search input {
    width: 100%;
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    background: #fff;
    color: #2f2f2f;
    font-size: 15px;
    outline: none;
}

.products-public-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.products-public-card {
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    border-radius: 22px;
    background: rgba(255,255,255,.84);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.products-public-card:hover {
    border-color: rgba(199,119,112,.2);
    box-shadow: 0 28px 70px rgba(72,51,45,.11);
    transform: translateY(-5px);
}

.products-public-image {
    position: relative;
    height: 230px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 0;
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.72), transparent 34%),
        linear-gradient(145deg, #f8e4df 0%, #efc9c3 48%, #f7eee9 100%);
    cursor: zoom-in;
}

.products-public-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 26px rgba(92, 61, 50, 0.16));
    transition: transform .42s ease, filter .42s ease;
}

.products-public-image::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,.36), transparent 46%),
        linear-gradient(135deg, transparent, rgba(255,255,255,.28));
    transition: opacity .32s ease;
}

.products-public-image span {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 1;
    min-height: 34px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, 10px);
    transition: opacity .28s ease, transform .28s ease;
    white-space: nowrap;
}

.products-public-image:hover::before,
.products-public-image:focus-visible::before {
    opacity: 1;
}

.products-public-image:hover img,
.products-public-image:focus-visible img {
    filter: drop-shadow(0 24px 30px rgba(92, 61, 50, 0.24));
    transform: scale(1.08) rotate(-1deg);
}

.products-public-image:hover span,
.products-public-image:focus-visible span {
    opacity: 1;
    transform: translate(-50%, 0);
}

.products-public-content {
    padding: 22px;
}

.products-public-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.products-public-badges span,
.products-public-badges b {
    display: inline-block;
    color: var(--color-primary);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-public-badges b {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(202, 122, 112, 0.12);
    letter-spacing: 1.4px;
    font-weight: 600;
}

.products-public-content h3 {
    margin-bottom: 12px;
    color: #2f2f2f;
    font-size: 26px;
    line-height: 1;
}

.products-public-content p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 66px;
    color: #6f625f;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.products-public-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.products-public-meta strong {
    color: #2f2f2f;
    font-size: 26px;
    font-weight: 500;
}

.products-public-meta small {
    color: #8a7771;
    font-size: 12px;
}

.products-order-button {
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.products-order-button:hover {
    background: #b9655f;
}

.products-public-actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.products-public-actions .products-order-button {
    margin-top: 0;
}

.products-more-button {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(199,119,112,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.products-more-button:hover {
    background: rgba(199,119,112,.08);
}

.products-filter-empty {
    margin-bottom: 28px;
    padding: 34px;
    border-radius: 22px;
    background: rgba(199,119,112,.08);
    text-align: center;
}

.products-filter-empty h3 {
    margin-bottom: 8px;
    color: #2f2f2f;
    font-size: 30px;
}

.products-filter-empty p {
    color: #806d68;
    font-size: 14px;
}

.products-public-card[hidden] {
    display: none;
}

.products-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 122;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 3vw, 24px);
}

.products-detail-modal.is-visible {
    display: flex;
}

.products-detail-modal.is-bouncing .products-detail-card {
    animation: productsDetailBounce .42s cubic-bezier(.2, .9, .24, 1.18);
}

.products-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43,34,30,.36);
    backdrop-filter: blur(10px);
}

.products-detail-card {
    position: relative;
    width: min(940px, calc(100vw - 32px));
    height: min(720px, calc(100dvh - 32px));
    max-height: calc(100dvh - 32px);
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 28px;
    background: #fffaf7;
    box-shadow: 0 30px 90px rgba(72,51,45,.24);
}

.products-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(199,119,112,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.86);
    color: var(--color-primary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.products-detail-media {
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 36%, rgba(255,255,255,.9), rgba(255,248,245,.48) 44%, rgba(199,119,112,.16) 100%),
        linear-gradient(145deg, rgba(199,119,112,.16), rgba(255,255,255,.72));
}

.products-detail-media img {
    width: 100%;
    height: auto;
    max-height: 520px;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    display: block;
    border-radius: 22px;
    filter: drop-shadow(0 24px 34px rgba(92, 61, 50, .18));
}

.products-detail-content {
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    display: grid;
    align-content: start;
    gap: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 58px 48px 46px;
    scrollbar-gutter: stable;
}

.products-detail-content > span {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.products-detail-content h2 {
    color: #2f2f2f;
    font-size: clamp(34px, 4vw, 58px);
    line-height: .95;
}

.products-detail-content p {
    color: #6f625f;
    font-size: 15px;
    line-height: 1.8;
}

#productsDetailDescription {
    white-space: pre-line;
}

.products-detail-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.products-detail-facts div {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(199,119,112,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.68);
}

.products-detail-facts small,
.products-detail-facts strong {
    display: block;
}

.products-detail-facts small {
    margin-bottom: 7px;
    color: #9c817a;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.products-detail-facts strong {
    color: #2f2f2f;
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.products-detail-add {
    width: fit-content;
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.products-detail-add:disabled {
    cursor: not-allowed;
    opacity: .62;
}

@keyframes productsDetailBounce {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(.94);
    }

    62% {
        opacity: 1;
        transform: translateY(-8px) scale(1.018);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.products-image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 4vw, 36px);
}

.products-image-viewer.open {
    display: flex;
}

.products-image-viewer.open .products-image-viewer-card {
    animation: productsImageViewerBounce .42s cubic-bezier(.2, .9, .24, 1.18);
}

.products-image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43,34,30,.38);
    backdrop-filter: blur(10px);
}

.products-image-viewer-card {
    position: relative;
    width: min(760px, calc(100vw - 32px));
    max-height: min(820px, calc(100dvh - 36px));
    margin: 0;
    padding: 64px clamp(18px, 3vw, 32px) clamp(20px, 3vw, 32px);
    display: grid;
    gap: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(199,119,112,.2);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 24%, rgba(255,255,255,.88), rgba(255,248,245,.6) 42%, rgba(239,201,195,.42) 100%),
        #fffaf7;
    box-shadow: 0 34px 96px rgba(72,51,45,.24);
}

.products-image-viewer-card img {
    width: 100%;
    max-height: min(60dvh, 580px);
    object-fit: contain;
    filter: drop-shadow(0 24px 34px rgba(92, 61, 50, 0.18));
}

.products-image-viewer-card figcaption {
    display: grid;
    gap: 6px;
    text-align: center;
}

.products-image-viewer-card figcaption span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-image-viewer-card figcaption strong {
    color: #2f2f2f;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    line-height: 1;
}

.products-image-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    z-index: 8;
    border: 1px solid rgba(199,119,112,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: var(--color-primary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 14px 34px rgba(72,51,45,.16);
}

@keyframes productsImageViewerBounce {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(.94);
    }

    62% {
        opacity: 1;
        transform: translateY(-8px) scale(1.018);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.products-brand-filter[hidden] {
    display: none;
}

.products-order-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.products-order-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.products-order-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(41, 31, 27, .42);
    backdrop-filter: blur(8px);
}

.products-order-panel {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 26px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 26px 90px rgba(52, 37, 32, .18);
}

.products-order-panel header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.products-order-panel header span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-order-panel header h2 {
    color: #2f2f2f;
    font-size: 34px;
    line-height: 1;
}

.products-order-panel header p {
    margin-top: 10px;
    color: #7c6b66;
    font-size: 14px;
}

.products-order-panel header button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.products-order-panel form,
.products-order-panel label {
    display: grid;
}

.products-order-panel form {
    gap: 16px;
}

.products-order-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.products-order-panel label {
    gap: 8px;
    color: #5b4d46;
    font-size: 13px;
    font-weight: 600;
}

.products-order-panel input,
.products-order-panel textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 16px;
    background: #fff;
    color: #2f2f2f;
    font: inherit;
    outline: none;
}

.products-order-panel input {
    min-height: 52px;
    padding: 0 16px;
}

.products-order-panel textarea {
    padding: 16px;
    resize: vertical;
}

.products-order-message {
    padding: 13px 16px;
    border-radius: 16px;
    background: rgba(199,119,112,.12);
    color: #9b514d;
    font-size: 13px;
}

.products-order-message.success {
    background: rgba(126, 156, 103, .16);
    color: #557149;
}

.products-payment-box {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(199,119,112,.16);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(240,212,193,.24));
    box-shadow: 0 18px 50px rgba(72,51,45,.08);
    position: relative;
    overflow: hidden;
}

.products-payment-box::before {
    content: '';
    width: 5px;
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--color-primary);
}

.products-payment-box[data-status="available"]::before {
    background: #6f8b5c;
}

.products-payment-box span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-payment-box strong {
    color: #2f2f2f;
    font-size: 23px;
    line-height: 1.2;
}

.products-payment-box p {
    color: #6f625f;
    font-size: 13px;
    line-height: 1.75;
}

.products-payment-box a,
.products-payment-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.products-payment-box a {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.products-payment-box button {
    border: 1px solid rgba(199,119,112,.18);
    background: rgba(255,255,255,.82);
    color: #9d5b55;
    cursor: not-allowed;
}

.products-order-panel footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 4px;
}

.products-order-panel footer button {
    min-width: 140px;
    min-height: 48px;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.products-order-panel footer button:first-child {
    border: 1px solid rgba(0,0,0,.1);
    background: #fff;
    color: #6f625f;
}

.products-order-panel footer button:last-child {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.products-order-panel footer button:disabled {
    cursor: wait;
    opacity: .72;
}

.products-cart-widget {
    position: fixed;
    right: 28px;
    bottom: 128px;
    z-index: 82;
}

.products-cart-toggle {
    min-height: 58px;
    padding: 0 12px 0 14px;
    border: 1px solid rgba(199,119,112,.28);
    border-radius: 999px;
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
        linear-gradient(135deg, #c77970, #aa5c58);
    color: #fff;
    box-shadow: 0 20px 54px rgba(112, 62, 56, .24);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font: inherit;
}

.products-cart-toggle-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

.products-cart-toggle-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.products-cart-toggle strong {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #a45e58;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.products-cart-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(390px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 128px));
    overflow-y: auto;
    padding: 22px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 26px 90px rgba(52,37,32,.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .22s ease, transform .22s ease;
}

.products-cart-panel.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.products-cart-panel header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.products-cart-panel header span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products-cart-panel header h2 {
    color: #2f2f2f;
    font-size: 30px;
    line-height: 1;
}

.products-cart-panel header button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.products-cart-items {
    display: grid;
    gap: 14px;
}

.products-cart-item {
    padding: 18px;
    border: 1px solid rgba(199,119,112,.13);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(240,212,193,.24));
}

.products-cart-item-top,
.products-cart-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.products-cart-item-top span {
    color: #a75852;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.products-cart-item-top strong {
    color: #2f2f2f;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
}

.products-cart-item h3 {
    margin: 12px 0 8px;
    color: #2f2f2f;
    font-size: 24px;
    line-height: 1.05;
}

.products-cart-item p,
.products-cart-status small {
    color: #6f625f;
    font-size: 13px;
    line-height: 1.65;
}

.products-cart-status {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.06);
}

.products-cart-status a,
.products-cart-status button {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.products-cart-status a {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.products-cart-status button {
    border: 1px solid rgba(199,119,112,.18);
    background: rgba(255,255,255,.82);
    color: #9d5b55;
    cursor: pointer;
}

.products-cart-footer {
    margin-top: 18px;
    padding-top: 18px;
    display: grid;
    gap: 14px;
    border-top: 1px solid rgba(0,0,0,.07);
}

.products-cart-footer div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.products-cart-footer span {
    color: #7a6a66;
    font-size: 12px;
}

.products-cart-footer strong {
    color: #2f2f2f;
    font-family: var(--font-display);
    font-size: 26px;
}

.products-cart-footer a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .products-catalog-layout {
        grid-template-columns: 1fr;
    }

    .products-category-panel {
        position: static;
    }

    .products-category-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .products-category-list button {
        min-width: 190px;
    }

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

@media (max-width: 720px) {
    .products-page-content h1,
    .products-results-top h2 {
        font-size: 44px;
    }

    .products-results-top,
    .products-public-grid {
        grid-template-columns: 1fr;
    }

    .products-results-panel {
        padding: 22px;
    }

    .products-order-grid,
    .products-order-panel footer {
        grid-template-columns: 1fr;
    }

    .products-order-panel {
        padding: 24px;
    }

    .products-order-panel footer {
        display: grid;
    }

    .products-cart-widget {
        right: 16px;
        bottom: 104px;
    }

    .products-cart-panel {
        bottom: 70px;
    }

    .products-cart-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .products-detail-card {
        grid-template-columns: 1fr;
        width: min(100%, calc(100vw - 24px));
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
        grid-template-rows: minmax(190px, 34dvh) minmax(0, 1fr);
        overflow: hidden;
    }

    .products-detail-media {
        min-height: 0;
        padding: 52px 18px 18px;
    }

    .products-detail-media img {
        max-height: 320px;
        aspect-ratio: 4 / 3;
    }

    .products-detail-content {
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        padding: 22px;
    }

    .products-detail-content h2 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .products-detail-facts {
        grid-template-columns: 1fr;
    }

    .products-detail-add {
        width: 100%;
    }
}

.cart-page {
    min-height: 100vh;
    padding: 132px 0 82px;
    background:
        radial-gradient(circle at 8% 0%, rgba(233, 205, 194, .52), transparent 32%),
        linear-gradient(180deg, #fffaf7, #f7eee9);
}

.cart-hero {
    max-width: 760px;
    margin-bottom: 34px;
}

.cart-hero span,
.cart-section-head span,
.cart-summary-card header span,
.cart-payment-box span {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.cart-hero h1 {
    margin-top: 12px;
    color: #241f1c;
    font-family: var(--font-display);
    font-size: clamp(46px, 7vw, 82px);
    font-weight: 500;
    line-height: .95;
}

.cart-hero p {
    max-width: 560px;
    margin-top: 18px;
    color: #6f625f;
    font-size: 16px;
    line-height: 1.8;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 24px;
    align-items: start;
}

.cart-items-column,
.cart-summary-card,
.cart-empty-state,
.cart-item-card {
    border: 1px solid rgba(117, 92, 77, .1);
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 24px 70px rgba(82, 59, 49, .08);
}

.cart-items-column {
    overflow: hidden;
}

.cart-section-head {
    min-height: 92px;
    padding: 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(117, 92, 77, .1);
}

.cart-section-head h2,
.cart-summary-card h2 {
    margin-top: 6px;
    color: #241f1c;
    font-size: 24px;
}

.cart-section-head a,
.cart-empty-state a {
    min-height: 42px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(199,119,112,.22);
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cart-empty-state {
    margin: 24px;
    padding: 34px;
    text-align: center;
}

.cart-empty-state h2 {
    color: #241f1c;
    font-size: 28px;
}

.cart-empty-state p {
    margin: 12px auto 20px;
    color: #6f625f;
}

.cart-items-list {
    display: grid;
}

.cart-item-card {
    margin: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: 92px minmax(220px, 1fr) 150px auto;
    grid-template-areas:
        "image info quantity price"
        "image info quantity remove";
    gap: 18px;
    align-items: center;
    border-radius: 18px;
    box-shadow: none;
}

.cart-item-card img {
    grid-area: image;
    width: 92px;
    height: 92px;
    padding: 10px;
    border-radius: 16px;
    object-fit: contain;
    background:
        radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.72), transparent 34%),
        linear-gradient(145deg, #f8e4df 0%, #efc9c3 48%, #f7eee9 100%);
    filter: drop-shadow(0 12px 20px rgba(92, 61, 50, 0.14));
}

.cart-item-main {
    grid-area: info;
    min-width: 0;
}

.cart-item-main span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
}

.cart-item-main h2 {
    margin: 8px 0;
    color: #241f1c;
    font-size: 22px;
    line-height: 1.12;
}

.cart-item-main p {
    color: #6f625f;
    font-size: 13px;
    line-height: 1.6;
}

.cart-quantity-control {
    grid-area: quantity;
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    border: 1px solid rgba(117, 92, 77, .14);
    border-radius: 999px;
    overflow: hidden;
}

.cart-quantity-control button,
.cart-quantity-control input,
.cart-remove-button {
    min-height: 38px;
    border: 0;
    background: rgba(255,255,255,.72);
    color: #7a5e56;
    font: inherit;
}

.cart-quantity-control button {
    cursor: pointer;
    font-size: 18px;
}

.cart-quantity-control input {
    width: 100%;
    text-align: center;
}

.cart-item-card > strong {
    grid-area: price;
    justify-self: end;
    color: #241f1c;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
}

.cart-remove-button {
    grid-area: remove;
    justify-self: end;
    padding: 0 12px;
    border: 1px solid rgba(199,119,112,.16);
    border-radius: 999px;
    color: #a75b55;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 920px) {
    .cart-item-card {
        grid-template-columns: 92px minmax(0, 1fr) auto;
        grid-template-areas:
            "image info price"
            "image info remove"
            "image quantity quantity";
    }

    .cart-quantity-control {
        width: min(190px, 100%);
    }
}

.cart-summary-card {
    position: sticky;
    top: 96px;
    padding: 24px;
}

.cart-summary-card header {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(117, 92, 77, .1);
}

.cart-summary-lines {
    display: grid;
    gap: 14px;
    padding: 20px 0;
}

.cart-summary-lines div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #6f625f;
    font-size: 13px;
}

.cart-summary-lines strong {
    color: #241f1c;
}

.cart-summary-total {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(117, 92, 77, .1);
}

.cart-summary-total strong {
    font-family: var(--font-display);
    font-size: 30px;
}

.cart-free-shipping-progress {
    margin-top: -4px;
    margin-bottom: 20px;
    padding: 15px 16px;
    border: 1px solid rgba(199,119,112,.14);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,248,245,.88), rgba(255,255,255,.72));
}

.cart-free-shipping-copy span,
.cart-free-shipping-copy strong,
.cart-free-shipping-copy small {
    display: block;
}

.cart-free-shipping-copy span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-free-shipping-copy strong {
    margin-top: 6px;
    color: #2f2925;
    font-size: 14px;
    line-height: 1.35;
}

.cart-free-shipping-copy small {
    margin-top: 5px;
    color: #756965;
    font-size: 12px;
    line-height: 1.45;
}

.cart-free-shipping-track {
    height: 8px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(235, 218, 211, .82);
}

.cart-free-shipping-track span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #c97870, #e4b3aa);
    transition: width .28s ease;
}

.cart-free-shipping-progress[data-complete="true"] .cart-free-shipping-track span {
    background: linear-gradient(90deg, #8fa46f, #c7d7b2);
}

.cart-checkout-form {
    display: grid;
    gap: 14px;
}

.cart-checkout-form.disabled {
    opacity: .72;
}

.cart-checkout-form label {
    display: grid;
    gap: 8px;
    color: #6b5b52;
    font-size: 12px;
}

.cart-checkout-form input,
.cart-checkout-form textarea,
.cart-checkout-form select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(117, 92, 77, .13);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    color: #3b302b;
    font: inherit;
}

.cart-checkout-form small {
    min-height: 16px;
    color: #9d5b55;
    font-size: 11px;
}

.cart-checkout-form small.success {
    color: #60794e;
}

.cart-preparation-option {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid rgba(199,119,112,.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255,248,245,.92), rgba(255,255,255,.72));
}

.cart-preparation-toggle {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 12px !important;
    cursor: pointer;
}

.cart-preparation-toggle input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.cart-preparation-toggle span,
.cart-preparation-toggle strong,
.cart-preparation-toggle small {
    display: block;
}

.cart-preparation-toggle strong {
    color: #342b27;
    font-size: 13px;
    line-height: 1.35;
}

.cart-preparation-toggle small {
    margin-top: 4px;
    min-height: 0;
    color: #8a7771;
    line-height: 1.5;
}

.cart-preparation-note {
    padding-top: 2px;
}

.cart-billing-card {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(199,119,112,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.68);
}

.cart-billing-card span,
.cart-billing-card strong {
    display: block;
}

.cart-billing-card span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cart-billing-card strong {
    margin-top: 6px;
    color: #3b302b;
    font-size: 13px;
    line-height: 1.35;
}

.cart-billing-card button {
    min-height: 42px;
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid rgba(199,119,112,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.cart-checkout-form textarea {
    min-height: 108px;
    padding-top: 12px;
    resize: vertical;
}

.cart-delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cart-delivery-options button {
    min-height: 44px;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: #8c5e58;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.cart-delivery-options button.active {
    background: var(--color-primary);
    color: #fff;
}

.cart-delivery-note {
    margin-top: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(199,119,112,.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,248,245,.92), rgba(255,255,255,.78));
    box-shadow: 0 18px 44px rgba(122, 90, 84, .08);
}

.cart-delivery-note[data-mode="shipping"] {
    background: linear-gradient(135deg, rgba(245,214,214,.36), rgba(255,255,255,.84));
}

.cart-delivery-note span,
.cart-delivery-note strong,
.cart-delivery-note p {
    display: block;
}

.cart-delivery-note span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.cart-delivery-note strong {
    margin-top: 6px;
    color: #2e2926;
    font-size: 14px;
}

.cart-delivery-note p {
    margin: 7px 0 0;
    color: #746763;
    font-size: 12px;
    line-height: 1.55;
}

.cart-delivery-note button {
    min-height: 38px;
    margin-top: 12px;
    padding: 0 16px;
    border: 1px solid rgba(199,119,112,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: var(--color-primary);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.cart-checkout-message {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(245, 214, 214, .72);
    color: #a74d4d;
    font-size: 13px;
}

.cart-checkout-message.success {
    background: rgba(220, 230, 211, .8);
    color: #60794e;
}

.cart-payment-box {
    padding: 18px;
    border: 1px solid rgba(199,119,112,.14);
    border-radius: 18px;
    background: rgba(255, 248, 245, .82);
}

.cart-payment-box strong,
.cart-payment-box p {
    display: block;
}

.cart-payment-box strong {
    margin-top: 8px;
    color: #241f1c;
}

.cart-payment-box p {
    margin: 8px 0 14px;
    color: #6f625f;
    font-size: 13px;
    line-height: 1.65;
}

.cart-payment-box a,
.cart-payment-box button,
.cart-checkout-form > button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cart-payment-box a,
.cart-checkout-form > button {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
}

.cart-payment-box button {
    width: 100%;
    border: 1px solid rgba(199,119,112,.2);
    background: rgba(255,255,255,.72);
    color: #9d5b55;
}

.cart-checkout-form > button:disabled {
    cursor: wait;
    opacity: .72;
}

.cart-address-modal,
.cart-shipping-modal,
.cart-billing-modal,
.cart-location-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.cart-shipping-modal {
    z-index: 142;
}

.cart-location-modal {
    z-index: 143;
}

.cart-billing-modal {
    z-index: 144;
}

.cart-order-modal {
    position: fixed;
    inset: 0;
    z-index: 145;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.cart-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 144;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.cart-confirm-modal.open {
    display: flex;
}

.cart-order-modal.open {
    display: flex;
}

.cart-confirm-backdrop,
.cart-order-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 34, 29, .28);
    backdrop-filter: blur(10px);
}

.cart-confirm-panel,
.cart-order-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(780px, calc(100dvh - 44px));
    overflow-y: auto;
    padding: 28px;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 24px;
    background: rgba(255, 250, 247, .97);
    box-shadow: 0 30px 90px rgba(84, 55, 47, .24);
    animation: cartModalBounce .34s ease both;
}

.cart-confirm-panel header,
.cart-order-panel header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.cart-confirm-panel header span,
.cart-order-panel header span,
.cart-order-bank h3 {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cart-confirm-panel h2,
.cart-order-panel h2 {
    margin-top: 8px;
    color: #241f1c;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 500;
    line-height: 1;
}

.cart-confirm-panel header button,
.cart-order-panel header button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.76);
    color: var(--color-primary);
    cursor: pointer;
    font-size: 24px;
}

.cart-confirm-panel > p,
.cart-order-panel > p {
    color: #6f625f;
    font-size: 15px;
    line-height: 1.8;
}

.cart-confirm-summary,
.cart-order-summary {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cart-confirm-summary div,
.cart-order-summary div,
.cart-order-bank {
    border: 1px solid rgba(117, 92, 77, .1);
    border-radius: 16px;
    background: rgba(255,255,255,.58);
}

.cart-confirm-summary div,
.cart-order-summary div {
    padding: 16px;
}

.cart-confirm-summary span,
.cart-confirm-summary strong,
.cart-order-summary span,
.cart-order-summary strong {
    display: block;
}

.cart-confirm-summary span,
.cart-order-summary span {
    color: #8f817b;
    font-size: 12px;
}

.cart-confirm-summary strong,
.cart-order-summary strong {
    margin-top: 6px;
    color: #241f1c;
    font-size: 18px;
}

.cart-confirm-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cart-confirm-actions a,
.cart-confirm-actions button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.cart-confirm-actions a {
    border: 1px solid rgba(199,119,112,.2);
    background: rgba(255,255,255,.72);
    color: #9d5b55;
}

.cart-confirm-actions button {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
}

.cart-confirm-actions button:disabled {
    cursor: wait;
    opacity: .72;
}

.cart-order-bank {
    margin-top: 16px;
    padding: 18px;
}

.cart-order-bank-list {
    margin-top: 12px;
    max-height: 220px;
    overflow: auto;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}

.cart-bank-card {
    padding: 14px;
    border: 1px solid rgba(199,119,112,.12);
    border-radius: 14px;
    background: rgba(255, 250, 247, .72);
}

.cart-bank-card > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cart-bank-card span {
    order: 2;
    max-width: 44%;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(246, 226, 216, .9);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
}

.cart-bank-card strong {
    color: #241f1c;
    font-size: 15px;
}

.cart-bank-card dl {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.cart-bank-card dl div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
}

.cart-bank-card dt {
    color: #9a8b84;
    font-size: 12px;
}

.cart-bank-card dd,
.cart-bank-card p {
    margin: 0;
    min-width: 0;
    color: #4d423d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cart-order-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cart-order-actions a,
.cart-order-actions button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.cart-order-actions a {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.cart-order-actions a[hidden] {
    display: none;
}

.cart-order-actions button {
    border: 1px solid rgba(199,119,112,.2);
    background: rgba(255,255,255,.72);
    color: #9d5b55;
    cursor: pointer;
}

.cart-address-modal.open,
.cart-shipping-modal.open,
.cart-billing-modal.open,
.cart-location-modal.open {
    display: flex;
}

.cart-address-backdrop,
.cart-shipping-backdrop,
.cart-billing-backdrop,
.cart-location-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 34, 29, .26);
    backdrop-filter: blur(10px);
}

.cart-address-panel,
.cart-shipping-panel,
.cart-billing-panel,
.cart-location-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100dvh - 44px));
    overflow-y: auto;
    padding: 26px;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 24px;
    background: rgba(255, 250, 247, .96);
    box-shadow: 0 30px 90px rgba(84, 55, 47, .24);
    animation: cartModalBounce .34s ease both;
}

.cart-address-panel header,
.cart-shipping-panel header,
.cart-billing-panel header,
.cart-location-panel header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.cart-address-panel header span,
.cart-shipping-panel header span,
.cart-billing-panel header span,
.cart-location-panel header span {
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cart-address-panel header h2,
.cart-shipping-panel header h2,
.cart-billing-panel header h2,
.cart-location-panel header h2 {
    margin-top: 8px;
    color: #2f2925;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 500;
}

.cart-address-panel header button,
.cart-shipping-panel header button,
.cart-billing-panel header button,
.cart-location-panel header button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(117,92,77,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.68);
    cursor: pointer;
    color: #8c5e58;
    font-size: 24px;
}

.cart-location-map {
    overflow: hidden;
    border: 1px solid rgba(199,119,112,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.cart-location-map iframe {
    width: 100%;
    min-height: 340px;
    display: block;
    border: 0;
}

.cart-location-map p {
    margin: 0;
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #6f625f;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.cart-location-panel footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.cart-location-panel footer a,
.cart-location-panel footer button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.cart-location-panel footer a {
    border: 1px solid var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.cart-location-panel footer button {
    border: 1px solid rgba(199,119,112,.2);
    background: rgba(255,255,255,.72);
    color: #9d5b55;
    cursor: pointer;
}

.cart-shipping-panel > p {
    margin-bottom: 18px;
    color: #6f625f;
    font-size: 14px;
    line-height: 1.7;
}

.cart-shipping-rate-list {
    display: grid;
    gap: 12px;
}

.cart-shipping-rate-card {
    padding: 16px;
    border: 1px solid rgba(199,119,112,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.68);
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.cart-shipping-rate-card.selected {
    border-color: rgba(199,119,112,.34);
    background: rgba(246,226,216,.42);
}

.cart-shipping-rate-card > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.cart-shipping-rate-card strong {
    color: #2f2925;
    font-size: 16px;
}

.cart-shipping-rate-card span {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(199,119,112,.12);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
}

.cart-shipping-rate-card p {
    margin-top: 10px;
    color: #6f625f;
    font-size: 13px;
    line-height: 1.6;
}

.cart-shipping-rate-card small {
    display: block;
    margin-top: 8px;
    color: #9a8b84;
    font-size: 12px;
}

.cart-shipping-rate-card button,
.cart-shipping-panel footer button {
    min-height: 42px;
    margin-top: 14px;
    padding: 0 18px;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.cart-shipping-panel footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.cart-shipping-panel footer .cart-shipping-secondary {
    border-color: rgba(199,119,112,.22);
    background: rgba(255,255,255,.72);
    color: #9d5b55;
}

.cart-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.cart-address-grid label {
    display: grid;
    gap: 8px;
    color: #6b5b52;
    font-size: 12px;
}

.cart-address-grid .wide {
    grid-column: 1 / -1;
}

.cart-address-grid input,
.cart-address-grid textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(117, 92, 77, .13);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
    color: #3b302b;
    font: inherit;
}

.cart-address-grid textarea {
    min-height: 108px;
    padding-top: 12px;
    resize: vertical;
}

.cart-address-panel footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.cart-address-panel footer button,
.cart-billing-panel footer button {
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--color-primary);
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.cart-billing-message {
    margin: 14px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(199,119,112,.18);
    border-radius: 14px;
    background: rgba(246,226,216,.36);
    color: #9d5b55;
    font-size: 13px;
    line-height: 1.5;
}

.cart-billing-panel footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.cart-billing-panel footer .cart-billing-secondary {
    border-color: rgba(199,119,112,.22);
    background: rgba(255,255,255,.72);
    color: #9d5b55;
}

@keyframes cartModalBounce {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }

    70% {
        opacity: 1;
        transform: translateY(-3px) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1080px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .cart-delivery-options,
    .cart-address-grid,
    .cart-confirm-summary,
    .cart-confirm-actions,
    .cart-order-summary,
    .cart-order-actions {
        grid-template-columns: 1fr;
    }

    .cart-address-panel,
    .cart-shipping-panel,
    .cart-billing-panel,
    .cart-location-panel,
    .cart-confirm-panel,
    .cart-order-panel {
        padding: 22px;
        border-radius: 20px;
    }

    .cart-address-panel header h2,
    .cart-shipping-panel header h2,
    .cart-billing-panel header h2,
    .cart-location-panel header h2,
    .cart-confirm-panel h2,
    .cart-order-panel h2 {
        font-size: 30px;
    }

    .cart-location-panel footer {
        display: grid;
    }

    .cart-location-panel footer a,
    .cart-location-panel footer button {
        width: 100%;
    }

    .cart-location-map iframe {
        min-height: 280px;
    }

    .cart-shipping-rate-card > div,
    .cart-shipping-panel footer,
    .cart-billing-panel footer,
    .cart-billing-card {
        display: grid;
        justify-content: stretch;
    }

    .cart-shipping-rate-card span {
        justify-self: start;
    }

    .cart-shipping-rate-card button,
    .cart-shipping-panel footer button,
    .cart-billing-panel footer button,
    .cart-billing-card button {
        width: 100%;
    }

    .products-image-viewer {
        align-items: center;
        padding: 14px;
    }

    .products-detail-modal {
        padding: 10px;
    }

    .products-detail-card {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100dvh - 20px);
        border-radius: 20px;
    }

    .products-detail-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .products-image-viewer-card {
        width: min(100%, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
        padding: 62px 16px 18px;
        gap: 14px;
        border-radius: 20px;
    }

    .products-image-viewer-card img {
        max-height: min(48dvh, 360px);
    }

    .products-image-viewer-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .products-image-viewer-card figcaption strong {
        font-size: clamp(24px, 8vw, 34px);
    }
}

@media (max-width: 720px) {
    .cart-section-head {
        padding: 22px;
        display: grid;
    }

    .cart-item-card {
        grid-template-columns: 82px 1fr;
        grid-template-areas:
            "image info"
            "image price"
            "quantity quantity"
            "remove remove";
    }

    .cart-item-card img {
        width: 82px;
        height: 82px;
    }

    .cart-quantity-control,
    .cart-item-card > strong,
    .cart-remove-button {
        justify-self: start;
    }
}
