* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --page: var(--cv-page);
    --paper: var(--cv-paper);
    --ink: var(--cv-ink);
    --muted: var(--cv-muted);
    --line: var(--cv-line);
    --soft: var(--cv-soft);
    --accent: var(--cv-accent);
    --danger: var(--cv-sale);
    --radius: var(--cv-radius);
}

body {
    background: var(--page);
    color: var(--ink);
    font-family: var(--cv-font-family);
    font-size: var(--cv-base-font-size);
    line-height: var(--cv-body-line-height);
    letter-spacing: 0;
}

.mobile-cart-header,
.mobile-cart-item-count,
.mobile-checkout-label,
.mobile-empty-recommendations,
.desktop-cart-benefit,
.cart-product-shelf,
.app-footer {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
    letter-spacing: 0;
}

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--cv-header-bg);
    border-bottom: var(--cv-border-width) solid var(--line);
    z-index: 1000;
    backdrop-filter: blur(14px);
    transition: transform .24s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-inner {
    max-width: 1220px;
    min-height: 70px;
    margin: 0 auto;
    padding: 14px 22px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 22px;
    align-items: center;
}

.logo {
    color: var(--ink);
    font-size: 13px;
    font-weight: var(--cv-label-weight);
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-left {
    width: 100%;
}

.search-form {
    position: relative;
    width: min(520px, 100%);
    margin: 0 auto;
    display: flex;
}

.search-form input {
    width: 100%;
    height: 42px;
    border: var(--cv-border-width) solid var(--line);
    border-radius: var(--cv-input-radius);
    background: var(--paper);
    color: var(--ink);
    padding: 0 44px 0 14px;
    outline: none;
}

.search-form input::placeholder,
.md-form-input::placeholder {
    color: var(--muted);
}

.search-form input:focus {
    border-color: var(--ink);
}

.search_sbtn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: var(--cv-button-radius);
    background: var(--ink);
    color: var(--cv-button-text);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 360px;
    overflow: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    z-index: 30;
}

.search-item {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
}

.search-item:hover {
    background: var(--soft);
}

.search-item img {
    width: 50px;
    height: 62px;
    object-fit: cover;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cart-icon,
.account-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    display: grid;
    place-items: center;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--cv-badge-bg);
    color: var(--cv-badge-text);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.cart-section {
    padding: 38px 0 0;
}

.cart-container,
.container_na {
    width: min(1220px, calc(100% - 44px));
    margin: 0 auto;
}

.cart-page-head {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.cart-eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cart-page-head h1 {
    font-size: clamp(42px, 7vw, 78px);
    font-weight: 520;
    line-height: .95;
}

.cart-page-head p {
    max-width: 580px;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.cart-shop-link,
.continue-shopping,
.view-all-btn {
    min-height: 42px;
    border: 1px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    font-weight: 700;
}

.cart-shop-link:hover,
.continue-shopping:hover,
.view-all-btn:hover {
    background: var(--ink);
    color: var(--cv-button-text);
}

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

.cart-items-panel,
.cart-summary {
    background: var(--paper);
    border: 1px solid var(--line);
}

.cart-items-panel {
    padding: 18px;
}

.cart-items-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.cart-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}

.cart-select-all input,
.cart-item-select input {
    accent-color: var(--ink);
}

.delete-selected-btn {
    border: 1px solid var(--line);
    background: var(--soft);
    color: var(--muted);
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
}

.delete-selected-btn:not(:disabled) {
    color: var(--danger);
    background: var(--soft);
}

.delete-selected-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cart-items {
    display: grid;
}

.cart-item {
    display: grid;
    grid-template-columns: 22px 118px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.cart-item-select {
    padding-top: 5px;
}

.cart-item-select input {
    width: 16px;
    height: 16px;
}

.cart-image img {
    width: 118px;
    height: 148px;
    object-fit: cover;
    background: var(--soft);
}

.cart-details {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.product-title {
    font-size: 15px;
    line-height: 1.28;
    font-weight: 560;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
    color: var(--muted);
    font-size: 12px;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--line);
    background: var(--soft);
}

.quantity-box button {
    width: 34px;
    height: 34px;
    border: 0;
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
}

.quantity-box input {
    width: 48px;
    height: 34px;
    border: 0;
    text-align: center;
    background: var(--paper);
    outline: none;
}

.item-price {
    font-size: 14px;
    font-weight: 720;
}

.cart-sale-price,
.cart-sale-label {
    display: block;
    color: var(--cv-sale);
    font-weight: var(--cv-label-weight);
}

.cart-was-price {
    display: block;
    color: var(--muted);
    text-decoration: line-through;
    font-size: 12px;
}

.cart-sale-label {
    font-size: 11px;
    text-transform: uppercase;
}

.cart-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.remove-item,
.edit-cart-item {
    width: fit-content;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.edit-cart-item:hover {
    color: var(--ink);
}

.remove-item:hover {
    color: var(--danger);
}

.cart-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.cart-edit-modal.is-open {
    display: block;
}

.cart-edit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .38);
}

.cart-edit-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(420px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    transform: translate(-50%, -50%);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
}

.cart-edit-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
}

.cart-edit-kicker {
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cart-edit-dialog h2 {
    padding-right: 40px;
    font-size: 22px;
    font-weight: 560;
    line-height: 1.15;
}

.cart-edit-product {
    margin: 8px 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.cart-edit-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    overflow: hidden;
}

.cart-edit-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.cart-edit-preview img.has-image {
    display: block;
}

.cart-edit-field {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.cart-edit-colors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cart-edit-color {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}

.cart-edit-color.is-selected {
    border-color: var(--ink);
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--ink);
}

.cart-edit-color img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
    background: var(--paper);
}

.cart-edit-color span {
    display: block;
    padding: 7px 8px;
    color: var(--ink);
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-edit-field select,
.cart-edit-qty {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.cart-edit-field select {
    color: var(--ink);
    padding: 0 12px;
    outline: none;
}

.cart-edit-qty {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    overflow: hidden;
}

.cart-edit-qty button {
    border: 0;
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
}

.cart-edit-qty input {
    min-width: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: var(--paper);
    text-align: center;
    outline: none;
}

.cart-edit-error {
    min-height: 18px;
    margin-top: 12px;
    color: var(--danger);
    font-size: 12px;
}

.cart-edit-save {
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--cv-button-text);
    font-weight: 700;
    cursor: pointer;
}

.cart-edit-save:disabled {
    opacity: .65;
    cursor: wait;
}

.cart-summary {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.cart-summary h3 {
    margin-bottom: 18px;
    font-size: 20px;
    font-weight: 560;
}

.summary-row,
.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 14px;
}

.summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 18px;
    font-weight: 760;
}

.summary-discount {
    color: var(--cv-sale);
}

.checkout-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--cv-button-text);
    font-weight: 700;
    cursor: pointer;
}

.checkout-btn:hover {
    background: var(--accent);
}

.cart-payment-method {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.cart-payment-method__label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.cart-payment-method__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: var(--soft);
}

.cart-payment-method__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-payment-method__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cv-badge-bg);
    color: var(--accent);
}

.cart-payment-method__name {
    font-size: 13px;
    font-weight: 700;
}

.cart-payment-method__note {
    margin-top: 9px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.empty-cart {
    max-width: 580px;
    margin: 26px auto 0;
    padding: 56px 32px;
    border: 1px solid var(--line);
    background: var(--paper);
    text-align: center;
}

.empty-cart-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 22px;
    background: var(--soft);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 32px;
}

.empty-cart h2 {
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 560;
}

.empty-cart p {
    max-width: 390px;
    margin: 0 auto 26px;
    color: var(--muted);
}

.view-all-section {
    padding: 76px 0;
    text-align: center;
}

.view-all-section h2 {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 560;
}

.view-all-section p {
    color: var(--muted);
    margin-bottom: 22px;
}

.footer-main-desktop {
    min-height: 330px;
    padding: 48px 22px;
    background: var(--paper);
    color: var(--ink);
    display: grid;
    place-items: center;
    text-align: center;
}

/* Compact marketplace-style desktop cart. Mobile rules below remain unchanged. */
@media (min-width: 981px) {
    body { background: #f6f6f6; }
    .main-header { position: sticky; top: 0; height: 52px; min-height: 52px; border-bottom: 1px solid #e8e8e8; background: #fff !important; background-color: #fff !important; backdrop-filter: none; transform: none !important; transition: none; }
    .cart-checkout-header-inner { width: 100%; height: 52px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; background: #fff !important; background-color: #fff !important; }
    .cart-checkout-brand { display: flex; align-items: center; gap: 14px; }
    .cart-checkout-brand > a { color: #111; font-size: 14px; font-weight: 700; letter-spacing: 2px; text-decoration: none; }
    .cart-checkout-divider { color: #b6b6b6; font-size: 20px; font-weight: 300; }
    .cart-checkout-secure { display: inline-flex; align-items: center; gap: 8px; color: #1677d2; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
    .cart-checkout-secure i { font-size: 13px; }
    .cart-checkout-continue { color: #222; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-decoration: none; }
    .cart-checkout-continue:hover { color: #000; text-decoration: underline; }
    .header-inner { width: 100%; max-width: none; min-height: 60px; padding: 0 28px; grid-template-columns: 190px minmax(280px, 680px) 1fr; gap: 28px; }
    .cart-wordmark { color: #111; font-size: 15px; font-weight: 600; letter-spacing: .16em; line-height: 1; white-space: nowrap; }
    .cart-wordmark span { display: inline; }
    .cart-wordmark span + span { margin-left: 2px; color: #6f272d; }
    .search-form { width: 100%; height: 42px; display: grid; grid-template-columns: 22px minmax(0, 1fr) 38px; align-items: center; border: 1px solid #d9d4cf; border-radius: 999px; background: #fff; }
    .search-form > i { color: #777; text-align: center; }
    .search-form input { height: 40px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; }
    .cart-camera-search { width: 36px; height: 36px; display: grid; place-items: center; color: #555; }
    .header-right { min-width: 0; gap: 18px; }
    .cart-header-tool { position: relative; min-width: 44px; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #292929; font-size: 11px; white-space: nowrap; }
    .cart-header-tool i { font-size: 17px; }
    .cart-icon { width: auto; height: auto; border: 0; border-radius: 0; background: transparent; }
    .cart-count { top: 1px; right: 1px; }
    .cart-store-links { min-height: 40px; padding: 0 24px; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 34px); overflow: hidden; border-bottom: 1px solid #242424; background: #050505; color: #fff; }
    .cart-store-links a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; color: #ddd; font-size: 12px; white-space: nowrap; }
    .cart-store-links a:hover { color: #fff; }
    .cart-store-links b { padding: 2px 5px; border-radius: 3px; background: #d92323; color: #fff; font-size: 9px; font-weight: 500; text-transform: uppercase; }
    .cart-section { padding: 30px 0 64px; }
    .cart-container, .container_na { width: min(1280px, calc(100% - 48px)); }
    .cart-page-head { align-items: center; margin-bottom: 20px; }
    .cart-eyebrow { display: none; }
    .cart-page-head h1 { font-size: 24px; font-weight: 650; line-height: 1.2; text-transform: uppercase; }
    .desktop-cart-count { color: #777; font-size: 15px; font-weight: 400; }
    .cart-page-head p { margin-top: 6px; font-size: 13px; line-height: 1.4; }
    .cart-shop-link { min-height: auto; padding: 0 0 3px; border: 0; border-bottom: 1px solid #111; background: transparent; font-size: 12px; font-weight: 500; }
    .cart-shop-link:hover { background: transparent; color: #555; }
    .cart-wrapper { grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
    .cart-items-panel, .cart-summary { border: 0; background: #fff; }
    .cart-items-panel { padding: 0 20px 4px; }
    .desktop-cart-benefit { min-height: 58px; margin: 0 -20px; padding: 12px 20px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e5e5e5; background: #fff8ed; }
    .desktop-cart-benefit i { color: #111; font-size: 18px; }
    .desktop-cart-benefit span { display: grid; gap: 2px; }
    .desktop-cart-benefit strong { font-size: 13px; font-weight: 650; }
    .desktop-cart-benefit small { color: #666; font-size: 11px; }
    .cart-items-toolbar { min-height: 52px; margin: 0; padding: 0; }
    .cart-select-all { color: #222; font-size: 13px; }
    .cart-select-all input, .cart-item-select input { width: 16px; height: 16px; }
    .delete-selected-btn { padding: 0; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
    .cart-item { min-height: 190px; grid-template-columns: 20px 134px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
    .cart-image img { width: 134px; height: 168px; }
    .cart-details { position: relative; min-height: 168px; padding-right: 150px; align-content: start; gap: 9px; }
    .product-title { max-width: 520px; font-size: 14px; font-weight: 450; line-height: 1.45; }
    .item-meta { width: fit-content; padding: 7px 9px; gap: 4px 10px; background: #f5f5f5; color: #666; }
    .item-price { position: absolute; top: 0; right: 0; text-align: right; font-size: 15px; }
    .cart-sale-label { font-size: 10px; }
    .quantity-box { position: absolute; right: 0; bottom: 0; background: #fff; }
    .quantity-box button { background: #fff; }
    .quantity-box input { width: 42px; }
    .cart-item-actions { position: absolute; left: 0; bottom: 3px; }
    .remove-item, .edit-cart-item { color: #333; font-size: 11px; }
    .cart-summary { top: 20px; padding: 22px 20px; }
    .cart-summary h3 { padding-bottom: 15px; border-bottom: 1px solid #e5e5e5; font-size: 17px; font-weight: 650; text-transform: uppercase; }
    .summary-row { margin-bottom: 14px; color: #333; font-size: 13px; }
    .summary-total { align-items: baseline; margin: 18px 0 16px; padding-top: 18px; font-size: 16px; }
    .summary-total-amount { font-size: 22px; }
    .checkout-btn { min-height: 52px; border-radius: 0; background: #111; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }
    .checkout-btn:hover { background: #333; }
    .cart-payment-method { margin-top: 16px; }
    .cart-payment-method__item { padding: 8px 9px; background: #fff; }
    .cart-payment-method__icon { width: 24px; height: 24px; }
    .cart-payment-method__name { font-size: 11px; }
    .view-all-section { display: none; }
    .cart-product-shelf { padding: 48px 0 58px; display: block; background: #fff; }
    .cart-product-shelf header { margin-bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
    .cart-product-shelf header span { color: #777; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
    .cart-product-shelf h2 { margin-top: 5px; font-size: 22px; font-weight: 500; }
    .cart-product-shelf header > a { padding-bottom: 3px; border-bottom: 1px solid #111; font-size: 12px; }
    .cart-product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .cart-product-card { min-width: 0; }
    .cart-product-card > a { display: block; }
    .cart-product-image { height: 280px; display: block; overflow: hidden; background: #f1f1f1; }
    .cart-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
    .cart-product-card:hover img { transform: scale(1.025); }
    .cart-product-name { min-height: 36px; margin-top: 10px; display: -webkit-box; overflow: hidden; color: #333; font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .cart-product-price { margin-top: 5px; display: flex; align-items: center; gap: 7px; font-size: 13px; }
    .cart-product-price strong { font-weight: 600; }
    .cart-product-price del { color: #888; font-size: 11px; }
    .app-footer { margin-top: 0; padding: 48px 0 0; display: block; border-top: 1px solid #e6e6e6; background: #fff; color: #333; }
    .cart-footer-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
    .footer-grid { display: grid; grid-template-columns: 1.15fr 1.15fr 1.2fr .9fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
    .footer-grid section { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
    .app-footer h3 { margin: 0 0 10px; color: #222; font-size: 14px; font-weight: 500; }
    .app-footer .footer-subtitle { margin-top: 18px; }
    .app-footer a { color: #444; font-size: 12px; font-weight: 300; line-height: 1.45; }
    .app-footer a:hover { color: #111; text-decoration: underline; }
    .footer-app { margin-bottom: 8px; display: flex; align-items: center; gap: 11px; color: #333; }
    .footer-app > i { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #ddd; border-radius: 6px; font-size: 17px; }
    .footer-app span { display: flex; flex-direction: column; font-size: 12px; }
    .footer-app small { color: #777; font-size: 10px; }
    .footer-signups { margin-top: 42px; padding-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; border-top: 1px solid #e5e5e5; }
    .footer-signups section { min-width: 0; }
    .footer-signups form, .whatsapp-signup { min-height: 42px; display: grid; grid-template-columns: 1fr auto; border: 1px solid #cfcfcf; background: #fff; }
    .footer-signups input { min-width: 0; padding: 0 13px; border: 0; outline: 0; background: transparent; color: #333; font-size: 12px; }
    .footer-signups button, .whatsapp-signup a { padding: 0 18px; display: flex; align-items: center; border: 0; border-left: 1px solid #111; background: #111; color: #fff; font-size: 11px; font-weight: 400; text-transform: uppercase; cursor: pointer; }
    .footer-signups p { margin: 9px 0 0; color: #666; font-size: 11px; }
    .whatsapp-signup { grid-template-columns: auto 1fr auto; }
    .whatsapp-signup > span { padding: 0 12px; display: flex; align-items: center; border-right: 1px solid #cfcfcf; color: #555; font-size: 12px; }
    .footer-consent { margin-top: 24px; color: #777; font-size: 10px; line-height: 1.5; }
    .footer-consent a { font-size: inherit; text-decoration: underline; }
    .footer-bottom-wrap { width: 100%; margin-top: 30px; background: #111; color: #fff; }
    .footer-bottom { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 11px; }
    .footer-bottom a { color: #f8f1fb; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }

    .cart-edit-backdrop { background: rgba(0, 0, 0, .56); backdrop-filter: blur(3px); }
    .cart-edit-dialog { width: min(680px, calc(100% - 48px)); max-height: min(590px, calc(100vh - 48px)); padding: 22px 24px 24px; overflow: auto; border: 0; border-radius: 0; background: #fff; box-shadow: 0 28px 90px rgba(0, 0, 0, .3); }
    .cart-edit-close { top: 13px; right: 13px; width: 36px; height: 36px; border: 0; border-radius: 0; background: transparent; font-size: 18px; }
    .cart-edit-close:hover { background: #f3f3f3; }
    .cart-edit-kicker { margin-bottom: 5px; color: #777; font-size: 10px; font-weight: 500; }
    .cart-edit-dialog h2 { font-size: 21px; font-weight: 550; }
    .cart-edit-product { max-width: 540px; margin: 5px 48px 17px 0; color: #555; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    #cart-edit-form { display: grid; grid-template-columns: minmax(220px, .82fr) minmax(290px, 1.18fr); grid-template-rows: auto auto auto 1fr auto auto; column-gap: 24px; align-items: start; }
    .cart-edit-preview { grid-column: 1; grid-row: 1 / 7; width: 100%; height: 350px; margin: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: #f2f2f2; }
    .cart-edit-preview img { object-fit: cover; }
    #cart-edit-form > .cart-edit-field { grid-column: 2; margin: 0 0 14px; gap: 7px; color: #222; font-size: 12px; font-weight: 500; }
    .cart-edit-colors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 132px; overflow-y: auto; padding: 1px; }
    .cart-edit-color { border-color: #ddd; border-radius: 0; background: #fff; }
    .cart-edit-color.is-selected { border-color: #111; box-shadow: inset 0 0 0 1px #111; }
    .cart-edit-color img { aspect-ratio: 1 / 1.05; }
    .cart-edit-color span { padding: 6px; font-size: 10px; }
    .cart-edit-field select, .cart-edit-qty { min-height: 44px; border-color: #cfcfcf; border-radius: 0; background: #fff; }
    .cart-edit-field select:focus { border-color: #111; }
    .cart-edit-qty { width: 154px; grid-template-columns: 44px 64px 44px; }
    .cart-edit-qty button { background: #fff; }
    .cart-edit-error { grid-column: 2; min-height: 19px; margin: 0 0 8px; }
    .cart-edit-save { grid-column: 2; min-height: 46px; margin: 0; border-radius: 0; background: #111; font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
    .cart-edit-save:hover { background: #333; }
}

.join-our-world {
    font-size: 26px;
    font-weight: 560;
}

.sub-text,
.md-tc {
    max-width: 620px;
    color: var(--muted);
}

.main-desktop-form {
    width: min(620px, 100%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 18px 0;
}

.md-form-input {
    min-height: 44px;
    border: var(--cv-border-width) solid var(--line);
    background: var(--soft);
    color: var(--ink);
    padding: 0 14px;
    outline: none;
}

.main-subscribe-btn {
    min-height: 44px;
    border: 0;
    background: var(--cv-button-bg);
    color: var(--cv-button-text);
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .header-left {
        grid-column: 1 / -1;
        order: 3;
    }

    .search-form {
        width: 100%;
    }

    .cart-page-head {
        display: block;
    }

    .cart-shop-link {
        margin-top: 18px;
    }

    .cart-wrapper {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    html body {
        background: #fffdfa !important;
        padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .main-header,
    .app-dock,
    .cart-page-head,
    .view-all-section,
    .footer-main-desktop,
    .cart-payment-method,
    .cart-summary > h3,
    .cart-summary > .summary-row,
    .summary-total-label,
    .desktop-checkout-label {
        display: none !important;
    }

    body.is-cart-empty {
        min-height: 100dvh;
        padding-bottom: 0 !important;
    }

    body.is-cart-empty .mobile-cart-header > span {
        font-size: 19px;
        font-weight: 350;
    }

    html body.is-cart-empty .app-dock {
        display: none !important;
    }

    .mobile-cart-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        height: 60px;
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        border-bottom: .5px solid #e7e2dc;
        background: #fffdfa;
        color: #251f22;
        font-size: 16px;
        font-weight: 500;
        text-align: center;
    }

    .mobile-cart-back {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        border: 0;
        background: transparent;
        color: #251f22;
        font-size: 20px;
        cursor: pointer;
    }

    .cart-container,
    .container_na {
        width: 100%;
    }

    .header-inner {
        padding: 12px 14px;
        gap: 12px;
    }

    .logo {
        font-size: 12px;
    }

    .cart-section {
        padding: 60px 0 18px;
    }

    .cart-page-head h1 {
        font-size: 44px;
    }

    .cart-items-panel {
        padding: 0;
        border: 0;
        background: #fffdfa;
    }

    .cart-items-toolbar {
        min-height: 54px;
        margin: 0;
        padding: 8px 12px;
        align-items: center;
        flex-direction: row;
        border-bottom: .5px solid #e7e2dc;
        color: #2c2629;
        font-size: 14px;
    }

    .cart-select-all {
        color: #2c2629;
        font-weight: 500;
    }

    .cart-select-all input,
    .cart-item-select input {
        width: 17px;
        height: 17px;
        appearance: none;
        -webkit-appearance: none;
        border: 1.5px solid #8c7d84;
        border-radius: 50% !important;
        background: #fffdfa;
        cursor: pointer;
    }

    .cart-select-all input:checked,
    .cart-item-select input:checked {
        border-color: #111;
        background-color: #111;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 15px 15px;
    }

    .delete-selected-btn {
        min-height: 36px;
        padding: 0 11px;
        border: 0;
        border-radius: 7px;
        background: #f2f0ec;
        color: #2c2629 !important;
        font-size: 13px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .cart-item {
        position: relative;
        min-height: 108px;
        grid-template-columns: 19px 60px minmax(0, 1fr);
        gap: 8px;
        padding: 8px 10px;
        border-bottom: .5px solid #e7e2dc;
        background: #fffdfa;
    }

    .cart-item:last-child {
        padding-bottom: 8px;
        border-bottom: .5px solid #e7e2dc;
    }

    .cart-item-select {
        padding-top: 4px;
    }

    .cart-image img {
        width: 60px;
        height: 60px;
        border-radius: 6px;
        object-fit: cover;
    }

    .cart-details {
        position: static;
        min-width: 0;
        display: block;
        padding: 0 24px 32px 0;
    }

    .product-title {
        display: -webkit-box;
        margin: 0 0 5px;
        overflow: hidden;
        color: #292326;
        font-size: 13px !important;
        font-weight: 500;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .item-meta {
        display: flex;
        gap: 3px 8px;
        margin-bottom: 7px;
        color: #877c74;
        font-size: 11px;
        line-height: 1.3;
    }

    .item-meta span:last-child {
        display: none;
    }

    .item-price {
        color: #292326;
        font-size: 13px;
        font-weight: 600;
    }

    .quantity-box {
        position: absolute;
        right: 10px;
        bottom: 8px;
        height: 27px;
        overflow: hidden;
        border: 1px solid #e5e1db;
        border-radius: 999px;
        background: #f3f1ed;
    }

    .quantity-box button {
        width: 25px;
        height: 25px;
        background: transparent;
        font-size: 12px;
    }

    .quantity-box input {
        width: 25px;
        height: 25px;
        background: transparent;
        font-size: 12px;
        -moz-appearance: textfield;
    }

    .quantity-box input::-webkit-inner-spin-button,
    .quantity-box input::-webkit-outer-spin-button {
        margin: 0;
        -webkit-appearance: none;
    }

    .cart-item-actions {
        display: contents;
    }

    .edit-cart-item,
    .remove-item {
        position: absolute;
        z-index: 2;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        padding: 0;
        text-decoration: none;
        font-size: 0;
    }

    .edit-cart-item {
        top: 8px;
        right: 8px;
        color: #2c2629;
    }

    .remove-item {
        display: none;
    }

    .edit-cart-item i,
    .remove-item i {
        font-size: 15px;
    }

    .cart-wrapper {
        display: block;
    }

    .cart-summary {
        position: fixed !important;
        top: auto !important;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9994;
        height: 62px;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        border: 0;
        border-top: .5px solid #e7e2dc;
        background: rgba(255, 253, 250, .98);
        box-shadow: none;
    }

    .summary-total {
        margin: 0;
        padding: 0;
        display: grid;
        gap: 1px;
        border: 0;
    }

    .summary-total-amount {
        color: #292326;
        font-size: 15px;
        font-weight: 600;
    }

    .mobile-cart-item-count,
    .mobile-checkout-label {
        display: inline-flex;
    }

    .mobile-cart-item-count {
        color: #877c74;
        font-size: 12px;
        font-weight: 400;
    }

    body .cart-summary .checkout-btn {
        width: auto;
        min-width: 132px;
        min-height: 42px !important;
        margin: 0;
        padding: 0 15px;
        border-radius: 999px !important;
        background: #111;
        font-size: 13px !important;
        font-weight: 550;
    }

    .mobile-checkout-label {
        align-items: center;
        gap: 12px;
    }

    .empty-cart {
        width: 100%;
        min-height: calc(100dvh - 60px);
        margin: 0;
        padding: 24px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        text-align: center;
    }

    body.is-cart-empty .cart-section,
    body.is-cart-empty .cart-container {
        width: 100%;
        min-height: calc(100dvh - 60px);
        margin: 0;
        padding: 0;
    }

    .empty-cart-icon {
        position: relative;
        width: 70px;
        height: 70px;
        margin-bottom: 14px;
        background: transparent;
        color: #111;
        font-size: 40px;
    }

    .empty-cart-icon::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -2px;
        width: 72px;
        height: 13px;
        border-radius: 50%;
        background: #e8e1df;
        transform: translateX(-50%);
        z-index: -1;
    }

    .empty-cart h2 {
        display: none;
    }

    .empty-cart p {
        margin-bottom: 14px;
        color: #7d726a;
        font-size: 13px !important;
    }

    .empty-cart .continue-shopping {
        width: min(190px, 100%);
        min-height: 38px;
        border: 0;
        border-radius: 999px;
        background: #111;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
    }

    .mobile-empty-recommendations {
        display: none !important;
        padding: 20px 0 0;
        border-top: .5px solid #e7e2dc;
        background: #fffdfa;
    }

    .mobile-empty-recommendations > h2 {
        margin: 0 12px 14px;
        color: #292326;
        font-size: 16px !important;
        font-weight: 550;
    }

    .mobile-recommendation-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 8px;
        padding: 0 8px;
    }

    .mobile-recommendation-card {
        position: relative;
        min-width: 0;
        padding-bottom: 8px;
        background: #fffdfa;
    }

    .mobile-recommendation-image {
        display: block;
        width: 100%;
        aspect-ratio: .88;
        overflow: hidden;
        border-radius: 7px 7px 0 0;
        background: #f1eee9;
    }

    .mobile-recommendation-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .mobile-recommendation-heart {
        position: absolute;
        top: 9px;
        right: 9px;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 50% !important;
        background: transparent !important;
        color: #292326;
        font-size: 20px;
    }

    .mobile-recommendation-name {
        min-height: 38px;
        margin: 7px 8px 2px;
        display: -webkit-box;
        overflow: hidden;
        color: #292326;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.25;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .mobile-recommendation-price {
        margin: 0 44px 0 8px;
        color: #292326;
        font-size: 14px;
        font-weight: 600;
    }

    .mobile-recommendation-cart {
        position: absolute;
        right: 8px;
        bottom: 6px;
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border: 1px solid #e4dfd8;
        border-radius: 50%;
        color: #111;
        font-size: 14px;
    }

    .main-desktop-form {
        grid-template-columns: 1fr;
    }

    .cart-edit-dialog {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        max-height: calc(100vh - 24px);
        transform: none;
        border-radius: 14px 14px 0 0;
        padding: 22px 18px 20px;
    }
}
