button.cart-toggle,
.cart-toggle {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    position: relative;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
    font: inherit;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-transform: none !important;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cart-toggle:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

.cart-toggle svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
    flex-shrink: 0;
    overflow: visible;
}

.cart-toggle-count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #A08B64;
    color: #17120E;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 0;
    text-align: center;
    font-family: 'Noto Serif Display', Georgia, serif;
}

.cart-toggle-count.is-empty { display: none; }

html.light-mode .site-nav.is-scrolled .cart-toggle,
html.light-mode body.no-hero .site-nav:not(.is-scrolled) .cart-toggle {
    color: #17120e !important;
    background: rgba(23, 18, 14, 0.06) !important;
    border-color: rgba(23, 18, 14, 0.35) !important;
}

html.light-mode body:not(.home):not(.no-hero) .site-nav:not(.is-scrolled) .cart-toggle {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Open mobile menu: cream panel — keep cart icon dark even on home hero */
html.light-mode.nav-mobile-open .site-nav .cart-toggle,
html.light-mode.nav-mobile-open body.home .site-nav:not(.is-scrolled) .cart-toggle,
html.light-mode.nav-mobile-open body:not(.home):not(.no-hero) .site-nav:not(.is-scrolled) .cart-toggle {
    color: #2B2118 !important;
    background: rgba(43, 33, 24, 0.06) !important;
    border-color: rgba(43, 33, 24, 0.55) !important;
}

html.light-mode.nav-mobile-open .site-nav .cart-toggle svg {
    stroke: #2B2118 !important;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 240;
    background: rgba(23, 18, 14, 0.46);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    right: min(420px, 100vw);
}

.cart-drawer {
    --cart-w: min(420px, 100vw);
    position: fixed;
    top: 0;
    bottom: 0;
    left: auto;
    right: calc(-1 * var(--cart-w) - 24px);
    z-index: 250;
    display: flex;
    flex-direction: column;
    width: var(--cart-w);
    height: 100%;
    background: #2B2118;
    color: #C9B8A4;
    font-family: 'Noto Serif Display', Georgia, serif;
    box-shadow: -24px 0 60px rgba(23, 18, 14, 0.35);
    transform: none;
    visibility: hidden;
    pointer-events: none;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.45s;
}

html.light-mode .cart-drawer {
    background: #FAF7F2;
    color: #5C4F45;
    box-shadow: -24px 0 60px rgba(42, 33, 27, 0.12);
}

.cart-drawer.is-open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
    .cart-overlay,
    .cart-drawer,
    .cart-drawer.is-open {
        transition: none;
    }
}

.cart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(201, 181, 143, 0.22);
}

html.light-mode .cart-head { border-bottom-color: rgba(42, 33, 27, 0.1); }

.cart-kicker {
    margin: 0 0 4px;
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #A08B64;
}

.cart-head h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    color: #FAEDDC;
    letter-spacing: 0.02em;
    text-transform: none !important;
    -webkit-text-stroke: 0 !important;
}

html.light-mode .cart-head h2 { color: #2A211B; }

.cart-drawer button {
    appearance: none !important;
    -webkit-appearance: none !important;
    box-sizing: border-box;
    font-family: inherit !important;
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0;
}

.cart-close {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
}

.cart-close:hover { color: #A08B64 !important; }

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 28px 64px;
}

.cart-empty[hidden],
.cart-list[hidden],
.cart-foot[hidden] { display: none !important; }

.cart-empty-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(160, 139, 100, 0.12);
    color: #A08B64;
}

.cart-empty-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 500;
    color: #FAEDDC;
}

html.light-mode .cart-empty-title { color: #2A211B; }

.cart-empty-text {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 240px;
}

.cart-empty-cta,
.cart-checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #A08B64 !important;
    color: #17120E !important;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 500;
    line-height: 1 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cart-empty-cta:hover,
.cart-checkout:hover {
    background: #C9B58F;
    color: #17120E !important;
}

.cart-list {
    flex: 1;
    overflow: auto;
    padding: 12px 18px 8px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 6px;
    border-bottom: 1px solid rgba(201, 181, 143, 0.16);
}

html.light-mode .cart-item { border-bottom-color: rgba(42, 33, 27, 0.08); }

.cart-item-thumb {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 5;
    background: #34281E;
}

html.light-mode .cart-item-thumb { background: #fff; }

.cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-name {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    color: #FAEDDC;
    text-decoration: none;
}

html.light-mode .cart-item-name { color: #2A211B; }

.cart-item-name:hover { color: #A08B64; }

.cart-item-price {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: #A08B64;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border-radius: 999px;
    background: #34281E;
    border: 1px solid rgba(201, 181, 143, 0.22);
}

html.light-mode .cart-item-qty {
    background: #fff;
    border-color: rgba(42, 33, 27, 0.12);
}

.cart-item-qty button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
}

.cart-item-qty span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 34px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #FAEDDC;
}

html.light-mode .cart-item-qty span { color: #2A211B; }

.cart-item-remove {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer;
    opacity: 0.7;
}

.cart-item-remove:hover { color: #A08B64; opacity: 1; }

.cart-foot {
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(201, 181, 143, 0.22);
}

html.light-mode .cart-foot { border-top-color: rgba(42, 33, 27, 0.1); }

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 15px;
}

.cart-subtotal strong {
    font-size: 22px;
    font-weight: 500;
    color: #A08B64;
}

.cart-note {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.85;
}

.cart-checkout { width: 100%; cursor: pointer; position: relative; z-index: 1; }

body.cart-open { overflow: hidden; }
