/* =========================================================
   ZARVAAN CART — LUXURY BLACK & GOLD
   ========================================================= */

:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --panel: #111111;
  --panel-soft: #151515;
  --gold: #c6a45a;
  --champagne: #e5cc8a;
  --text: #f5f0e6;
  --muted: #a6a095;
  --border: rgba(198, 164, 90, 0.24);
  --danger: #d88d80;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --page-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
}

body, button, a { -webkit-tap-highlight-color: transparent; }

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

button { font: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}

.announcement-bar {
  padding: 8px 16px;
  background: var(--gold);
  color: #080706;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.container {
  width: min(var(--page-width), calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid rgba(198, 164, 90, 0.13);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
}

.wordmark {
  color: var(--text);
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 5px;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-dot { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  color: #c5c0b7;
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav-link:hover,
.nav-link.active { color: var(--champagne); }

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 19px;
}

.icon-link {
  position: relative;
  width: 22px;
  height: 26px;
  display: grid;
  place-items: center;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
}

.icon-link:hover { color: var(--champagne); }

.account-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  padding: 11px 13px;
  background: transparent;
  color: var(--text);
  font-size: 9px;
  letter-spacing: 1.05px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.account-link:hover {
  background: rgba(198, 164, 90, 0.1);
  border-color: var(--gold);
}

.account-greeting {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.account-greeting strong { color: var(--champagne); }

.bag-count {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #090909;
  font-size: 9px;
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s;
}

.page-intro {
  padding: 70px 20px 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.page-intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 78px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.page-intro h1 em,
.order-card h2 em,
.empty-state h2 em {
  color: var(--champagne);
  font-weight: 400;
}

.intro-copy {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.035em;
}

.intro-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
}

.intro-rule::before,
.intro-rule::after {
  width: 42px;
  height: 1px;
  background: var(--border);
  content: "";
}

.intro-rule span {
  width: 5px;
  height: 5px;
  margin: 0 9px;
  transform: rotate(45deg);
  background: var(--gold);
}

.cart-section {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 52px;
}

.cart-main { min-width: 0; }

.cart-heading-row {
  min-height: 52px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-heading-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.cart-heading-row h2 span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.text-link {
  padding-top: 10px;
  color: var(--champagne);
  font-size: 9px;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.text-link span { margin-left: 5px; }

.cart-items { display: flex; flex-direction: column; }

.cart-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 23px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(198, 164, 90, 0.15);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 136px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(198, 164, 90, 0.11), transparent 65%),
    linear-gradient(145deg, #171511, #090909 75%);
  border: 1px solid rgba(198, 164, 90, 0.12);
}

.product-visual img {
  display: block;
  width: 100%;
  height: 136px;
  padding: 8px;
  object-fit: contain;
  transition: transform 250ms ease;
}

.product-visual:hover img { transform: scale(1.04); }

.product-visual .image-fallback {
  padding: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.08em;
  text-align: center;
}

.product-info { min-width: 0; padding: 2px 0; }

.product-category {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.product-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}

.product-size {
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  height: 32px;
  border: 1px solid var(--border);
}

.quantity-control button {
  width: 31px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--champagne);
  cursor: pointer;
  font-size: 16px;
}

.quantity-control button:disabled { opacity: 0.3; cursor: not-allowed; }

.quantity-value {
  min-width: 25px;
  color: var(--text);
  font-size: 11px;
  text-align: center;
}

.remove-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.product-price {
  padding-top: 4px;
  color: var(--champagne);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.cart-notice {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--champagne);
  font-size: 11px;
}

.order-card {
  position: sticky;
  top: 24px;
  padding: 28px 25px 24px;
  background: linear-gradient(155deg, #15130f, #0c0c0c 58%);
  border: 1px solid var(--border);
}

.order-card h2 {
  margin: 0 0 25px;
  font-family: var(--serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.1;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.summary-line strong {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.summary-total {
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
}

.summary-total strong {
  color: var(--champagne);
  font-size: 19px;
  font-weight: 600;
}

.shipping-note {
  margin: 0 0 22px;
  color: #827d73;
  font-size: 9px;
  line-height: 1.7;
}

.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 17px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: center;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-gold {
  background: var(--gold);
  color: #080706;
}

.button-gold:hover:not(:disabled) {
  background: var(--champagne);
}

.button:disabled { opacity: 0.38; cursor: not-allowed; }

.checkout-button { width: 100%; }

.demo-note {
  margin: 11px 0 0;
  color: #817b70;
  font-size: 9px;
  text-align: center;
}

.summary-divider {
  height: 1px;
  margin: 24px 0 17px;
  background: rgba(198, 164, 90, 0.15);
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.trust-line span { color: var(--gold); }

.help-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--champagne);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cart-footnote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid rgba(198, 164, 90, 0.15);
  color: var(--muted);
  font-size: 10px;
}

.cart-footnote p { margin: 0; }
.footnote-icon { color: var(--gold); }

.empty-state {
  padding: 55px 20px 62px;
  text-align: center;
  border-bottom: 1px solid rgba(198, 164, 90, 0.15);
}

.empty-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 31px;
  letter-spacing: 0.12em;
}

.empty-state h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
}

.empty-state > p:not(.eyebrow) {
  margin: 12px auto 24px;
  max-width: 360px;
  color: var(--muted);
  font-size: 11px;
}

.empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.button-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--champagne);
}

.button-outline:hover { border-color: var(--gold); background: #14110b; }

.site-footer {
  padding: 36px 20px 30px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-brand {
  display: inline-block;
  font-size: 24px;
}

.site-footer p {
  margin: 8px 0 17px;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.site-footer > span {
  color: #777168;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 17px;
  transform: translateY(15px);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--border);
  background: #17140e;
  color: var(--champagne);
  font-size: 11px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { transform: translateY(0); opacity: 1; }

[hidden] { display: none !important; }

@media (max-width: 1000px) {
  .cart-section { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .cart-item { grid-template-columns: 100px minmax(0, 1fr) auto; gap: 17px; }
  .product-visual, .product-visual img { min-height: 120px; height: 120px; }
  .order-card { padding: 24px 20px; }
  .nav-links { gap: 16px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }

  .navbar {
    min-height: 78px;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .wordmark { font-size: 25px; letter-spacing: 4px; }
  .menu-toggle { display: block; grid-column: 3; grid-row: 1; }
  .nav-actions { grid-column: 2; grid-row: 1; gap: 14px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 18px 24px 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.is-open { display: flex; }
  .account-greeting { display: none; }
  .page-intro { padding: 52px 18px 35px; }
  .cart-section {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 65px;
  }
  .order-card { position: static; }
  .cart-heading-row { align-items: flex-start; }
  .cart-heading-row h2 { font-size: 24px; }
  .text-link { max-width: 130px; text-align: right; line-height: 1.6; }
  .cart-item { grid-template-columns: 92px minmax(0, 1fr); gap: 15px; }
  .product-visual, .product-visual img { min-height: 112px; height: 112px; }
  .product-name { font-size: 23px; }
  .product-price { grid-column: 2; grid-row: 2; padding-top: 0; }
  .product-info { grid-column: 2; grid-row: 1; }
  .cart-item { position: relative; padding-right: 2px; }
  .product-price { align-self: start; }
  .cart-footnote { margin-top: 20px; }
}

@media (max-width: 420px) {
  .announcement-bar { font-size: 8px; letter-spacing: 0.11em; }
  .container { width: calc(100% - 28px); }
  .wordmark { font-size: 22px; letter-spacing: 3px; }
  .account-link { padding: 9px 8px; font-size: 8px; }
  .nav-actions { gap: 10px; }
  .cart-section { width: calc(100% - 28px); }
  .cart-item { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .product-visual, .product-visual img { min-height: 100px; height: 100px; }
  .product-name { font-size: 21px; }
  .item-controls { gap: 11px; }
  .quantity-control button { width: 27px; }
  .empty-actions { flex-direction: column; }
  .empty-actions .button { width: 100%; }
}
