/* Seven Point Crockery — Shopping Cart (redesigned to match reference) */
:root {
  --navy: #142638;
  --navy-soft: #1f3a4d;
  --cream: #F8F5EF;
  --cream-deep: #efe9dd;
  --gold: #C9A15D;
  --gold-soft: #e3d5b8;
  --gold-pale: #f5ecd9;
  --white: #ffffff;
  --ink: #142638;
  --muted: #5b6675;
  --line: #e7e2d6;
  --shadow: 0 8px 24px rgba(20, 38, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 38, 56, 0.14);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--cream); color: var(--ink); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

/* Topbar */
.topbar { background: var(--navy); color: var(--white); padding: 10px 0; font-size: 0.82rem; font-weight: 600; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.topbar-item svg { color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.brand-mark { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-title { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.03em; color: var(--navy); line-height: 1.1; }
.brand-sub { font-size: 0.68rem; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; flex-wrap: nowrap; }
.nav a { position: relative; font-size: 0.9rem; font-weight: 600; color: var(--navy); padding: 6px 0; white-space: nowrap; transition: color 0.2s ease; }
.nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-wrap { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; min-width: min(22vw, 240px); }
.search-wrap svg { color: var(--muted); flex: 0 0 auto; }
.search-wrap input { border: none; background: transparent; color: var(--ink); width: 100%; outline: none; font-size: 0.9rem; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; position: relative; cursor: pointer; color: var(--navy); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn .count { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.68rem; font-weight: 800; }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--cream-deep); border: 1px solid var(--gold-soft); color: var(--navy); border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 0.82rem; letter-spacing: 0.04em; cursor: pointer; position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cart-pill:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cart-pill .count { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 0 5px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; color: var(--navy); font-size: 1.1rem; }

/* Cart hero */
.cart-hero { background: linear-gradient(90deg, #f3ecdd 0%, #f3ecdd 34%, rgba(243,236,221,0.85) 46%, rgba(243,236,221,0) 62%), #f3ecdd url("../cart-hero-bg.png") no-repeat right center / auto 100%; border-bottom: 1px solid var(--line); overflow: hidden; }
.cart-hero-inner { display: flex; align-items: center; padding: 28px 0 36px; min-height: 220px; }
.cart-hero-copy { max-width: 520px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 8px 18px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.cart-hero h1 { margin: 0 0 8px; font-family: "Manrope", sans-serif; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); line-height: 1.05; }
.cart-hero h1 em { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; color: var(--gold); }
.cart-hero p { margin: 0; font-size: 1.02rem; color: var(--muted); line-height: 1.55; }

/* Wave divider */
.wave-divider { line-height: 0; background: var(--cream); }
.wave-divider svg { width: 100%; height: 90px; display: block; }

/* Layout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); gap: 24px; padding: 28px 0 36px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Items panel */
.cart-items { padding: 22px 24px; }
.items-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.items-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.items-head h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.items-head h2 span { color: var(--muted); font-weight: 700; }

.cart-item { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.item-image-wrap { position: relative; }
.item-image-wrap img { width: 130px; height: 130px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--cream); }
.item-wishlist { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: all 0.2s ease; }
.item-wishlist:hover { border-color: var(--gold); color: var(--gold); }
.item-wishlist.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.item-info h3 { margin: 0 0 6px; font-family: "Manrope", sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.item-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.qty-controls { display: inline-flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-controls button { width: 38px; height: 38px; background: transparent; border: none; font-size: 1.2rem; cursor: pointer; color: var(--navy); display: grid; place-items: center; transition: background 0.2s ease; }
.qty-controls button:hover:not(:disabled) { background: var(--cream); }
.qty-controls button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-controls span { min-width: 36px; text-align: center; font-weight: 800; color: var(--navy); font-size: 0.95rem; }
.item-price-wrap { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
.item-price { font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); white-space: nowrap; }
.remove-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid #f3c2c2; border-radius: 999px; background: #fff5f5; color: #c0392b; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: all 0.2s ease; }
.remove-btn:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
.remove-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.form-error { color: #c0392b; font-size: 0.82rem; font-weight: 600; margin: 6px 0 0; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-state h3 { margin: 0 0 8px; color: var(--navy); font-family: "Manrope", sans-serif; }
.empty-state .primary-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: var(--white); border-radius: 999px; padding: 12px 22px; font-weight: 700; margin-top: 12px; }

/* Summary panel */
.summary { padding: 0; overflow: hidden; position: sticky; top: 96px; }
.summary-head { background: var(--navy); padding: 18px 22px; display: flex; align-items: center; gap: 12px; }
.summary-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.12); color: var(--white); display: grid; place-items: center; }
.summary-head h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--white); }
.summary > *:not(.summary-head) { padding-left: 22px; padding-right: 22px; }
.summary-list { display: grid; gap: 12px; margin: 18px 0 0; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.summary-row strong { color: var(--navy); font-weight: 700; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--gold-pale); color: var(--navy); font-family: "Manrope", sans-serif; font-size: 1.15rem; font-weight: 800; }
.total span:last-child { letter-spacing: -0.02em; }

#stockStatus { margin: 12px 0 0; font-size: 0.85rem; font-weight: 600; color: #c0392b; min-height: 1.2em; }
#stockStatus:empty { display: none; }

.summary-actions { display: grid; gap: 10px; margin-top: 16px; }
.gold-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 22px; background: var(--gold); color: var(--navy); border: none; border-radius: 999px; font-family: "Manrope", sans-serif; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 12px 28px rgba(201,161,93,0.4); transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.gold-btn:hover { background: #b98f4e; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(201,161,93,0.5); }
.gold-btn.is-disabled { opacity: 0.5; pointer-events: none; }
.whatsapp-btn, .continue-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 22px; background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; font-size: 0.92rem; font-weight: 700; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.whatsapp-btn:hover { background: #25D366; border-color: #25D366; color: #063; transform: translateY(-1px); }
.continue-btn:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.whatsapp-btn.is-disabled, .continue-btn.is-disabled { opacity: 0.5; pointer-events: none; }

.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 20px; padding: 12px 14px; background: var(--gold-pale); border: 1px solid var(--gold-soft); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--navy); line-height: 1.5; font-weight: 600; text-align: center; }
.security-note svg { flex: 0 0 auto; color: var(--navy); }

/* Trust strip */
.trust-strip { background: var(--cream); border-top: 1px solid var(--line); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 6px 10px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); padding-left: 24px; }
.trust-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: var(--white); color: var(--navy); display: grid; place-items: center; border: 1px solid var(--gold-soft); }
.trust-item strong { display: block; font-family: "Manrope", sans-serif; font-size: 0.95rem; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.trust-item span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

/* Footer */
footer { padding: 48px 0 40px; background: var(--navy); color: rgba(255,255,255,0.85); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col-brand p { max-width: 280px; }
.footer-title { color: var(--white); font-family: "Manrope", sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 12px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand div > div:first-child { font-family: "Manrope", sans-serif; font-weight: 800; color: var(--white); letter-spacing: 0.04em; }
.footer-brand div > div:last-child { font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 0.12em; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 28px; padding-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; color: rgba(255,255,255,0.55); font-size: 0.85rem; text-align: center; }

/* Responsive */
@media (max-width: 980px) {
  .cart-hero { background: linear-gradient(90deg, rgba(243,236,221,0.92) 0%, rgba(243,236,221,0.75) 45%, rgba(243,236,221,0.15) 100%), #f3ecdd url("../cart-hero-bg.png") no-repeat right center / cover; }
  .cart-hero-inner { min-height: auto; padding: 24px 0 28px; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .trust-item + .trust-item { border-left: none; border-top: 1px solid var(--line); padding-left: 10px; padding-top: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .topbar { display: none; }
  .nav { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-actions { width: auto; justify-content: flex-end; gap: 8px; }
  .search-wrap { display: none; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-title { font-size: 0.85rem; }
  .brand-title, .brand-sub { white-space: nowrap; }
  .cart-pill { padding: 8px 12px; font-size: 0.72rem; gap: 6px; }
  .cart-pill .count { min-width: 18px; height: 18px; font-size: 0.62rem; }
  .icon-btn { width: 38px; height: 38px; }
  .nav-toggle { width: 38px; height: 38px; }
  .brand-sub { font-size: 0.58rem; }
  .cart-item { grid-template-columns: 100px 1fr; gap: 12px; }
  .cart-item img { width: 100px; height: 100px; }
  .item-price-wrap { grid-column: 2; align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
