@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
  --bg: #060607;
  --bg-soft: #0c0d0f;
  --gold: #c8a24a;
  --gold-soft: rgba(200, 162, 74, 0.25);
  --text: #e9e9ea;
  --muted: #a9adb3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --maxw: 1180px;
}

/* LIGHT THEME — біло-золота, преміальна */
:root[data-theme='light'] {
  --bg: #f9f5ef;
  --bg-soft: #ffffff;
  --text: #151515;
  --muted: #666a70;
  --gold: #b9933b;
  --gold-soft: rgba(185, 147, 59, 0.25);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
}
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(100% - 32px, var(--maxw));
  margin-inline: auto;
}

.gold {
  color: var(--gold);
}
.muted {
  color: var(--muted);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: 0.2s ease;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 0 var(--gold-soft);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 6px var(--gold-soft);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: var(--gold-soft);
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 6, 7, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
:root[data-theme='light'] .nav {
  background: rgba(249, 245, 239, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Cinzel, serif;
  letter-spacing: 1px;
  font-size: 18px;
  font-weight: 700;
}
.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
}
.nav-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links a {
  padding: 6px 2px;
  position: relative;
  color: #d8d8d8;
}
:root[data-theme='light'] .nav-links a {
  color: #444;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--gold);
}
.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--gold);
}

/* блок з кнопкою теми + корзиною */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #e6e6e6;
}
:root[data-theme='light'] .cart {
  border-color: rgba(0, 0, 0, 0.08);
  color: #333;
}
.cart:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* кнопка перемикання теми */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s ease;
  color: var(--gold);
}
.theme-toggle:hover {
  background: var(--gold-soft);
}

/* HERO */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  background: radial-gradient(
      900px 600px at 80% 10%,
      rgba(200, 162, 74, 0.12),
      transparent 60%
    ),
    radial-gradient(
      800px 600px at 20% 80%,
      rgba(200, 162, 74, 0.08),
      transparent 60%
    );
  overflow: hidden;
}
:root[data-theme='light'] .hero {
  background: radial-gradient(
      900px 600px at 80% 10%,
      rgba(185, 147, 59, 0.18),
      transparent 60%
    ),
    radial-gradient(
      800px 600px at 20% 80%,
      rgba(185, 147, 59, 0.08),
      transparent 60%
    );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 64px 0;
}
.hero-title {
  font-family: Cinzel, serif;
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: 2px;
  line-height: 1.15;
  margin: 0 0 10px;
}
.hero-sub {
  max-width: 540px;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 22px;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
}
:root[data-theme='light'] .hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.96)
  );
  border-color: rgba(0, 0, 0, 0.05);
}
.hero-img {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #000;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.95);
}

/* SECTION */
.section {
  padding: 64px 0;
}
.section-title {
  font-family: Cinzel, serif;
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 22px;
  text-align: center;
}

/* COLLECTION PREVIEW */
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: 0.2s ease;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
}
:root[data-theme='light'] .card {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
}
.card-img {
  aspect-ratio: 16/10;
  background: #000;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body {
  padding: 14px;
}
.card-kicker {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.card-title {
  font-family: Cinzel, serif;
  letter-spacing: 1px;
  margin: 6px 0 8px;
  font-size: 18px;
}
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* PRODUCT GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product {
  background: var(--bg-soft);
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  overflow: hidden;
}
.product-img {
  aspect-ratio: 4/3;
  background: #050506;
}
:root[data-theme='light'] .product-img {
  background: #f0f0f0;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}
.product-name {
  font-family: Cinzel, serif;
  letter-spacing: 1px;
  font-size: 16px;
}
.product-price {
  color: var(--gold);
  font-weight: 600;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* CONTACT base */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}
.panel {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
}
:root[data-theme='light'] .panel {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}
label {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  outline: none;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-soft);
}

.map {
  aspect-ratio: 16/10;
  border-radius: 12px;
  border: 1px dashed var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
}
.social {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: grid;
  place-items: center;
  color: var(--gold);
}

/* FOOTER */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}
:root[data-theme='light'] .footer {
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* gold dust */
.dust {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(
    rgba(200, 162, 74, 0.55) 1px,
    transparent 1.5px
  );
  background-size: 140px 140px;
  opacity: 0.18;
  animation: dustFloat 18s linear infinite;
  mix-blend-mode: screen;
}
@keyframes dustFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-140px);
  }
}

/* ===== CONTACT LOOK LIKE REFERENCE ===== */
.connect-title {
  letter-spacing: 0.18em;
  font-size: 44px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* panels for ref look */
.form-panel,
.studio-panel {
  background: radial-gradient(
      1200px 500px at 10% -10%,
      rgba(200, 162, 74, 0.08),
      transparent 55%
    ),
    #0b0b0b;
  border: 1px solid rgba(200, 162, 74, 0.18);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
}
:root[data-theme='light'] .form-panel,
:root[data-theme='light'] .studio-panel {
  background: radial-gradient(
      1200px 500px at 10% -10%,
      rgba(185, 147, 59, 0.1),
      transparent 55%
    ),
    #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

/* inputs thin gold lines */
.form-panel label {
  display: block;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-panel input,
.form-panel textarea {
  border: 1px solid rgba(200, 162, 74, 0.35);
  transition: 0.2s ease;
}
.form-panel input:focus,
.form-panel textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.12);
}
.form-panel .btn-primary {
  width: 140px;
  justify-self: end;
  margin-top: 6px;
  border: 1px solid var(--gold);
}

/* right map placeholder */
.studio-panel .map {
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(
      135deg,
      rgba(200, 162, 74, 0.12) 0 1px,
      transparent 1px 100%
    ),
    linear-gradient(45deg, rgba(200, 162, 74, 0.12) 0 1px, transparent 1px 100%),
    #0f0f0f;
  background-size: 20px 20px, 20px 20px;
  border: 1px solid rgba(200, 162, 74, 0.22);
  display: grid;
  place-items: center;
  color: rgba(200, 162, 74, 0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

/* studio kicker */
.studio-panel .card-kicker {
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  margin-top: 10px;
}

/* social hover */
.social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: 0.2s ease;
}
.social a:hover {
  background: rgba(200, 162, 74, 0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* subtle extra sparkles */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      2px 2px at 12% 18%,
      rgba(200, 162, 74, 0.55),
      transparent 60%
    ),
    radial-gradient(
      1.5px 1.5px at 70% 10%,
      rgba(200, 162, 74, 0.45),
      transparent 60%
    ),
    radial-gradient(
      2px 2px at 40% 70%,
      rgba(200, 162, 74, 0.4),
      transparent 60%
    ),
    radial-gradient(
      1.2px 1.2px at 85% 65%,
      rgba(200, 162, 74, 0.35),
      transparent 60%
    ),
    radial-gradient(
      2px 2px at 20% 85%,
      rgba(200, 162, 74, 0.35),
      transparent 60%
    );
  opacity: 0.35;
  z-index: 0;
}
.nav,
.section,
.footer,
.hero {
  position: relative;
  z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cols,
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .nav-links {
    display: none;
  } /* burger пізніше */
  .cols,
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
}

/* CART BADGE + PANEL */
.cart {
  position: relative;
}

.cart[data-count]:after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #000;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

/* затемнення фону позаду корзини */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 190;
}
.cart-overlay.open {
  display: block;
}

/* ПРАВА ПАНЕЛЬ КОРЗИНИ */
.cart-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100vh;
  padding: 20px;
  z-index: 200;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  background: #f7f4ee; /* світлий фон як на картинці */
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.6);
}
:root[data-theme='light'] .cart-panel {
  background: #f7f4ee;
}
.cart-panel.open {
  right: 0;
}

/* верх корзини */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cart-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}
.close-cart {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #777;
}

/* список товарів */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* КАРТКА ТОВАРУ В КОРЗИНІ */
.cart-item {
  background: #ffffff;
  border-radius: 18px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}
.cart-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* кружочок з фото */
.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
}
.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* текст справа від фото */
.cart-item-info {
  display: grid;
  gap: 2px;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.cart-item-meta {
  font-size: 12px;
  color: #888;
}
.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

/* кнопка X */
.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 16px;
  color: #555;
}

/* НИЗ КОРЗИНИ: Total + Checkout */
.cart-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 12px;
  margin-top: 8px;
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  color: #222;
}
.cart-footer .btn.btn-primary {
  width: 100%;
  border-radius: 999px;
  background: transparent;
  border-color: #c8a24a;
  color: #c8a24a;
}
.cart-footer .btn.btn-primary:hover {
  box-shadow: 0 0 0 6px rgba(200, 162, 74, 0.25);
}
/* блок з − 1 + і X */
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  color: #555;
}

.cart-qty-value {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
/* ===== CHECKOUT PAGE (Shopify-like light) ===== */
.checkout-only {
  background: #f6f1ea !important;
}

.checkout-page .container {
  width: min(100% - 32px, 1180px);
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 22px;
}
.checkout-steps .step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #444;
  font-size: 13px;
}
.checkout-steps .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-weight: 700;
}
.checkout-steps .step.done .dot {
  background: #b9933b;
  color: #fff;
  border-color: #b9933b;
}
.checkout-steps .step.active .dot {
  border-color: #b9933b;
  color: #b9933b;
}
.checkout-steps .line {
  flex: 0 0 64px;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}

/* layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

/* cards left */
.checkout-card {
  background: var(--bg-soft);
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
:root[data-theme='light'] .checkout-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: #fff;
}
.checkout-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.checkout-card h2 {
  margin: 0;
  font-family: Cinzel, serif;
  font-size: 22px;
  color: var(--text);
}

/* form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field.full {
  grid-column: 1 / -1;
}
.checkout-card label {
  display: flex;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.checkout-card input {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--text);
}
:root[data-theme='light'] .checkout-card input {
  border-color: rgba(0, 0, 0, 0.12);
}

/* delivery/payment options */
.delivery-option,
.pay-option {
  display: flex;
  align-items: center; /* Center content vertically */
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--gold-soft);
  background: transparent;
  cursor: pointer;
  color: var(--text);
  transition: 0.2s ease;
  position: relative;
}
:root[data-theme='light'] .delivery-option,
:root[data-theme='light'] .pay-option {
  border-color: rgba(0, 0, 0, 0.1);
  background: #fff;
}
.delivery-option + .delivery-option,
.pay-option + .pay-option {
  margin-top: 10px;
}

/* Radio button refinement */
.delivery-option input,
.pay-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Text Container */
.delivery-option > div:nth-child(2),
.pay-option > div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.delivery-title,
.pay-title {
  font-weight: 600;
  font-size: 14px;
}

/* Price / Badges aligned right */
.delivery-price,
.pay-badges {
  font-weight: 600;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}

/* Active State */
.delivery-option.active,
.pay-option.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 4px 12px rgba(0, 0, 0, 0.05);
  background: rgba(200, 162, 74, 0.03);
}
:root[data-theme='light'] .delivery-option.active,
:root[data-theme='light'] .pay-option.active {
  background: #fff;
  box-shadow: 0 0 0 1px var(--gold), 0 8px 20px rgba(0, 0, 0, 0.05);
}

.agree {
  display: flex;
  align-items: center; /* Force center alignment */
  gap: 12px;
  margin-top: 14px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}
.agree input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  background: transparent;
  flex-shrink: 0;
  display: flex; /* Flex allows easier centering of content */
  align-items: center;
  justify-content: center;
  margin-top: 0; /* Reset */
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
  top: 0px; /* Fine-tune visual alignment if needed */
}
:root[data-theme='light'] .agree input {
  border-color: rgba(0, 0, 0, 0.2);
}
.agree input:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.agree input:checked::after {
  content: '✓';
  color: #000;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: block; /* Ensures checkmark doesn't carry weird text spacing */
}
.agree input:focus {
  box-shadow: 0 0 0 2px var(--gold-soft);
}

/* right summary */
.checkout-right .checkout-summary {
  background: var(--bg-soft);
  border: 1px solid var(--gold-soft);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: 90px;
}
:root[data-theme='light'] .checkout-right .checkout-summary {
  background: #fff;
  border-color: transparent;
}
.checkout-summary h2 {
  margin: 0 0 12px;
  font-family: Cinzel, serif;
  font-size: 22px;
  color: var(--text);
}
.order-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.order-items .summary-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
}
.order-items .summary-item img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 10px 0 14px;
}
.promo-row input {
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--text);
}
:root[data-theme='light'] .promo-row input {
  border-color: rgba(0, 0, 0, 0.12);
  background: #fff;
}

.sum-rows .row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: var(--text);
}
.sum-rows .divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
  margin: 12px 0;
}
.sum-rows .row.total {
  font-size: 18px;
  font-weight: 700;
}
.btn-wide{ width:100%; margin-top:12px; }

/* Hide 'Complete Order' initially */
#placeOrder {
  display: none;
}

.summary-foot{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
}

/* responsive */
@media (max-width: 960px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-right .checkout-summary {
    position: static;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.announcement-bar {
  background: var(--gold);
  color: #000;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  /* Ensure it sits above everything */
  position: relative;
  z-index: 101;
}

:root[data-theme='light'] .announcement-bar {
  background: #222;
  color: #fff;
}
/* Free Shipping Progress */
.fs-progress-container {
  padding: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  margin-bottom: 12px;
  text-align: center;
}
.fs-text {
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}
.fs-bar-bg {
  height: 6px;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.fs-bar-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.4s ease;
}

/* Light theme tweak */
:root[data-theme='light'] .fs-progress-container {
  background: #f0ebe4;
}
/* Summary Item Adjustments for Controls */
.summary-item {
  display: flex !important; /* Force flex for layout */
  align-items: center;
  gap: 12px;
}
.summary-item img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
/* CUSTOM CONFIRM MODAL */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}
.confirm-overlay.open {
  opacity: 1;
  visibility: visible;
}
.confirm-box {
  background: var(--bg-soft);
  border: 1px solid var(--gold-soft);
  padding: 24px 32px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.confirm-overlay.open .confirm-box {
  transform: scale(1);
}
.confirm-title {
  font-family: Cinzel, serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}
.confirm-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.confirm-btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  font-weight: 600;
  min-width: 80px;
}
.confirm-cancel {
  background: transparent;
  border-color: rgba(128, 128, 128, 0.3);
  color: var(--muted);
}
.confirm-cancel:hover {
  border-color: var(--text);
  color: var(--text);
}
.confirm-ok {
  background: var(--gold);
  color: #000;
  box-shadow: 0 4px 12px rgba(200, 162, 74, 0.3);
}
.confirm-ok:hover {
  background: #d4b055;
  transform: translateY(-1px);
}
/* TOAST NOTIFICATION */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 10000;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast-container.show {
  transform: translateX(-50%) translateY(0);
}
.toast-box {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--gold);
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
:root[data-theme='light'] .toast-box {
  background: #fff;
  color: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
