/* ============================================================
   cart.css — debruns NEW cart pages (ported from heirloomgold)
   Self-contained: defines its own --hg-* variables, so it does
   not depend on any other debruns stylesheet.
   ============================================================ */

:root {
    --hg-navy:    #1a2744;
    --hg-navy-d:  #0f1a32;
    --hg-cream:   #faf7f2;
    --hg-border:  #e8e3d8;
    --hg-line:    #f0ece3;
    --hg-muted:   #8a7a6a;
    --hg-ink:     #2a2a2a;
    --hg-gold:    #b8935e;
    --hg-green:   #2a6e3f;
    --hg-red:     #c0392b;
    --hg-deposit: #f3ebd8;
}

body { margin: 0; background: #fff; }

/* ── Slim header/footer for the standalone shop pages ──────── */
.shop-bar {
    display: flex;
    align-items: center;
    justify-content: center;       /* centre the logo */
    position: relative;
    padding: 20px 24px;
    border-bottom: 1px solid var(--hg-border);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.shop-bar a { text-decoration: none; color: var(--hg-navy); }
/* secondary link (Continue shopping / Back to cart) pinned to the right */
.shop-bar > a:last-child {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
}
@media (max-width: 600px) {
    .shop-bar > a:last-child { display: none; }
}
.shop-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    letter-spacing: 0.02em;
}
.shop-bar__logo {
    height: 64px;
    width: auto;
    max-width: 80vw;
    display: block;
}
@media (max-width: 520px) {
    .shop-bar__logo { height: 46px; }
}
.shop-bar__test {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--hg-gold);
    padding: 3px 8px;
    border-radius: 3px;
    vertical-align: middle;
}
.shop-foot {
    text-align: center;
    padding: 40px 16px;
    color: var(--hg-muted);
    font-size: 12px;
    font-family: 'DM Sans', system-ui, sans-serif;
    border-top: 1px solid var(--hg-line);
    margin-top: 60px;
}

/* ── Page frame ───────────────────────────────────────────── */
.page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--hg-ink);
}

.page-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 400;
    color: var(--hg-navy);
    margin: 0 0 32px;
    letter-spacing: -0.005em;
    line-height: 1.15;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 880px) {
    .page { padding: 28px 16px 64px; }
    .cart-layout { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Deposit notice banner ────────────────────────────────── */
.deposit-note {
    background: #fdf8ee;
    border: 1px solid #e8d9b8;
    border-left: 3px solid var(--hg-gold);
    color: #5a4a30;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
}
.deposit-note strong { color: #3e311f; font-weight: 500; }

/* ── Cart items list ──────────────────────────────────────── */
.cart-items { background: #fff; border: 1px solid var(--hg-border); }

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--hg-line);
    align-items: start;
}
.cart-item:last-child { border-bottom: none; }

.cart-item__img,
.cart-item__img-placeholder {
    width: 120px; height: 120px;
    object-fit: cover; background: #f7f3ea; display: block;
}
.cart-item__img-placeholder {
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #a89a88;
}

.cart-item__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px; font-weight: 400; line-height: 1.25; margin-bottom: 6px;
}
.cart-item__title a { color: var(--hg-navy); text-decoration: none; transition: color 0.15s ease; }
.cart-item__title a:hover { color: var(--hg-navy-d); text-decoration: underline; text-underline-offset: 3px; }

.cart-item__meta {
    font-size: 11px; color: var(--hg-muted);
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}

.cart-item__type {
    display: inline-block; font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; padding: 4px 10px; font-weight: 500; line-height: 1.4;
}
.cart-item__type--full { background: var(--hg-navy); color: #fff; }
.cart-item__type--deposit { background: var(--hg-deposit); color: #6a5420; }

.cart-item__timer {
    font-size: 12px; color: var(--hg-muted); margin-top: 14px;
    font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.cart-item__timer .countdown { color: var(--hg-navy); font-weight: 500; }

.cart-item__remove {
    background: none; border: none; color: var(--hg-red); font-family: inherit;
    font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 0;
    margin-top: 10px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
    transition: color 0.15s ease;
}
.cart-item__remove:hover { color: #8e2a1e; }

.cart-item__price {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px; font-weight: 500; color: var(--hg-navy);
    white-space: nowrap; letter-spacing: -0.01em;
}

@media (max-width: 520px) {
    .cart-item { grid-template-columns: 88px 1fr; gap: 16px; padding: 18px; }
    .cart-item__img, .cart-item__img-placeholder { width: 88px; height: 88px; }
    .cart-item__price { grid-column: 2; font-size: 20px; margin-top: 6px; }
}

/* ── Empty cart ───────────────────────────────────────────── */
.empty-cart { padding: 80px 24px; text-align: center; background: #fff; border: 1px solid var(--hg-border); }
.empty-cart h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px; font-weight: 400; color: var(--hg-navy); margin: 0 0 14px;
}
.empty-cart p { color: var(--hg-muted); margin: 0 0 28px; font-size: 15px; line-height: 1.5; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-voucher {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
    text-decoration: none; border: none; cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
    display: block; width: 100%; background: var(--hg-navy); color: #fff;
    padding: 16px 24px; text-align: center; margin-top: 20px; box-sizing: border-box;
}
.btn-primary:hover { background: var(--hg-navy-d); color: #fff; }
.btn-primary:disabled { background: #8a8d99; cursor: not-allowed; }
.btn-secondary {
    display: inline-block; background: transparent; color: var(--hg-navy);
    border: 1px solid var(--hg-navy); padding: 11px 22px;
}
.btn-secondary:hover { background: var(--hg-navy); color: #fff; }

/* ── Summary panel ────────────────────────────────────────── */
.cart-summary {
    background: var(--hg-cream); border: 1px solid var(--hg-border);
    padding: 30px; position: sticky; top: 24px;
}
.cart-summary h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px; font-weight: 400; color: var(--hg-navy);
    margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--hg-border);
    letter-spacing: 0.005em;
}
.summary-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; font-size: 14px; }
.summary-row .label { color: #6a6258; }
.summary-row .value { color: var(--hg-ink); font-variant-numeric: tabular-nums; }
.summary-row.discount .value { color: var(--hg-green); }
.summary-row.total { border-top: 1px solid var(--hg-border); margin-top: 14px; padding-top: 16px; align-items: baseline; }
.summary-row.total .label {
    color: var(--hg-navy); font-size: 13px; letter-spacing: 0.08em;
    text-transform: uppercase; font-weight: 500;
}
.summary-row.total .value {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px; font-weight: 500; color: var(--hg-navy); letter-spacing: -0.01em;
}

/* ── Voucher form ─────────────────────────────────────────── */
.voucher-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--hg-border); }
.voucher-form label {
    display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--hg-muted); margin-bottom: 8px; font-weight: 500;
}
.voucher-input-row { display: flex; gap: 6px; }
.voucher-input {
    flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid #d6cdba; background: #fff;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--hg-ink); box-sizing: border-box;
}
.voucher-input:focus { outline: none; border-color: var(--hg-navy); }
.voucher-input[readonly] { background: #f7f3ea; color: var(--hg-navy); font-weight: 500; }
.btn-voucher { background: var(--hg-navy); color: #fff; padding: 0 20px; height: auto; white-space: nowrap; }
.btn-voucher:hover { background: var(--hg-navy-d); }
.voucher-msg { font-size: 13px; color: var(--hg-green); margin-top: 10px; }
.voucher-err { font-size: 13px; color: var(--hg-red); margin-top: 10px; }

/* ── Trust message ────────────────────────────────────────── */
.trust-msg { text-align: center; font-size: 11px; letter-spacing: 0.04em; color: var(--hg-muted); margin: 18px 0 0; line-height: 1.5; }

/* ── Waitlist modal ───────────────────────────────────────── */
.notify-modal {
    position: fixed; inset: 0; background: rgba(26, 39, 68, 0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px;
    opacity: 0; visibility: hidden; transition: opacity 0.22s ease, visibility 0.22s ease;
}
.notify-modal.open { opacity: 1; visibility: visible; }
.notify-box {
    background: #fff; padding: 40px 36px 28px; max-width: 440px; width: 100%;
    box-shadow: 0 20px 60px rgba(10, 18, 38, 0.28); text-align: center;
    transform: translateY(10px); transition: transform 0.25s ease; box-sizing: border-box;
}
.notify-modal.open .notify-box { transform: translateY(0); }
.notify-box h3 {
    font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 400;
    color: var(--hg-navy); margin: 0 0 14px; letter-spacing: -0.005em;
}
.notify-box p { color: #6a6258; font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.notify-input {
    width: 100%; padding: 13px 14px; border: 1px solid #d6cdba; background: #fff;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; color: var(--hg-ink); box-sizing: border-box;
}
.notify-input:focus { outline: none; border-color: var(--hg-navy); }
.notify-box .btn-primary { margin-top: 10px; }
.notify-close {
    display: block; width: 100%; background: none; border: none; color: var(--hg-muted);
    font-family: inherit; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 18px 0 0; margin-top: 6px; cursor: pointer; text-decoration: underline;
    text-underline-offset: 3px; transition: color 0.15s ease;
}
.notify-close:hover { color: var(--hg-navy); }
