/* Seven Point Crockery — Checkout (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;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { 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); }
.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; }
.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; }

/* Checkout hero */
.checkout-hero {
  position: relative;
  background: linear-gradient(135deg, #f3ecdd 0%, #e9dcc4 100%);
  overflow: hidden;
}
.checkout-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 32px;
  padding: 28px 0 56px;
  min-height: 240px;
}
.checkout-hero-copy { max-width: 520px; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.crumbs a { color: var(--muted); transition: color 0.2s ease; }
.crumbs a:hover { color: var(--navy); }
.crumb-sep { color: var(--gold); }
.checkout-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;
}
.checkout-hero p { margin: 0; font-size: 1.02rem; color: var(--muted); line-height: 1.55; }
.checkout-hero-visual { display: flex; justify-content: center; align-items: center; }
.checkout-hero-visual img { width: 100%; max-width: 520px; height: auto; max-height: 260px; object-fit: contain; object-position: center; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 60px; display: block; }

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

/* Billing panel */
.form-panel { padding: 24px 26px 26px; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.panel-icon { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--white); display: grid; place-items: center; }
.panel-head h2 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); flex: 1; }
.secure-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-pale); border: 1px solid var(--gold-soft); color: var(--navy); border-radius: 999px; padding: 7px 14px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.secure-pill svg { color: var(--gold); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 0.78rem; font-weight: 700; color: var(--navy); letter-spacing: 0.01em; }
.req { color: #c0392b; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); background: #fbfaf7;
  border-radius: var(--radius-sm); color: var(--ink); padding: 13px 15px;
  font-size: 0.95rem; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
input::placeholder, textarea::placeholder { color: #a9a294; }
input:focus, select:focus, textarea:focus {
  border-color: var(--gold); background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 161, 93, 0.22);
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; cursor: pointer; }
textarea { min-height: 100px; resize: vertical; }

.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--navy); line-height: 1.5; font-size: 0.9rem; font-weight: 600; }
.checkbox-row input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); cursor: pointer; flex: 0 0 auto; }
.checkbox-row label { font-weight: 600; color: var(--navy); cursor: pointer; }

#checkoutStatus { margin: 14px 0 0; font-size: 0.88rem; font-weight: 600; color: #c0392b; min-height: 1.2em; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.primary-btn, .secondary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 999px; padding: 14px 26px; font-weight: 700; cursor: pointer;
  font-size: 0.95rem; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.primary-btn { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.primary-btn:hover { background: var(--navy-soft); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.primary-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.secondary-btn { background: var(--gold); color: var(--navy); }
.secondary-btn:hover { background: #b98f4e; transform: translateY(-1px); }

/* Order summary */
.summary-panel { 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-panel > *:not(.summary-head) { padding-left: 22px; padding-right: 22px; }
.order-list { display: grid; gap: 0; padding-top: 18px; }
.order-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.order-item:last-child { border-bottom: none; }
.order-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--cream); }
.order-item h4 { margin: 0 0 4px; font-size: 0.9rem; font-weight: 700; color: var(--navy); line-height: 1.35; }
.order-item .meta { color: var(--muted); font-size: 0.8rem; }
.order-item .price { font-weight: 800; color: var(--navy); font-size: 0.92rem; white-space: nowrap; }
.empty-state { padding: 24px 0; color: var(--muted); text-align: center; font-size: 0.92rem; }

.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.summary-row strong { color: var(--navy); font-weight: 700; }
.total-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  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-row span:last-child { letter-spacing: -0.02em; }

.gold-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 18px; 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; letter-spacing: 0.01em;
  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); }

.whatsapp-btn, .continue-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 10px; 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); }

.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) {
  .checkout-hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 24px 0 48px; gap: 18px; }
  .checkout-hero-visual { order: 0; }
  .checkout-hero-visual img { max-height: 220px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .summary-panel { 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; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 20px 18px; }
  .summary-panel > *:not(.summary-head) { padding-left: 18px; padding-right: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .primary-btn, .secondary-btn { width: 100%; }
  .panel-head { flex-wrap: wrap; }
  .secure-pill { margin-left: auto; }
}
