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

:root {
  --wine: #6E1F3B;
  --wine-dark: #4E1329;
  --gold: #B9922A;
  --gold-light: #E8D9B5;
  --cream: #FBF6EF;
  --blush: #F4DCD9;
  --ink: #2B2320;
  --ink-soft: #6b5c56;
  --success: #3F6B4A;
  --danger: #A8402F;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(78, 19, 41, 0.10);
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--wine);
  color: var(--cream);
  padding: 22px 0 18px;
  text-align: center;
}

.brand {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cream);
}

.tagline {
  margin-top: 4px;
  font-size: 14px;
  color: var(--gold-light);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 10px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  background: var(--blush);
  padding: 12px 18px;
  font-size: 13.5px;
  color: var(--wine-dark);
}

.trust-strip span { white-space: nowrap; }

/* ---------- Product grid ---------- */
.grid-section { padding: 34px 0 60px; }

.grid-section h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  text-align: center;
  color: var(--wine-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-card .thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-card .info { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; }

.product-card .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  min-height: 44px;
}

.product-card .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--wine);
  margin: 0 0 12px;
}

.cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  margin-top: auto;
  transition: background 0.15s ease;
}

.cta-btn:hover { background: var(--wine-dark); }

.cta-btn.gold {
  background: var(--gold);
  color: var(--wine-dark);
}
.cta-btn.gold:hover { background: #a17f22; }

/* ---------- Product page ---------- */
.product-header {
  background: var(--wine);
  padding: 14px 0;
}

.gallery { padding-top: 18px; }

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--blush);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  width: 64px;
  height: 64px;
  background: none;
  flex-shrink: 0;
}

.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.urgency-bar {
  margin-top: 16px;
  background: var(--wine-dark);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  gap: 10px;
}

.urgency-bar .timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 6px;
}

.product-title {
  font-size: 21px;
  font-weight: 700;
  margin: 18px 0 4px;
  color: var(--ink);
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--wine);
  margin: 0 0 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  font-size: 12.5px;
  background: var(--blush);
  color: var(--wine-dark);
  padding: 6px 11px;
  border-radius: 999px;
}

.details-box {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.details-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--wine-dark);
}

.details-box ul {
  margin: 0;
  padding-right: 0;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.details-box li { margin-bottom: 5px; }

.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--wine-dark);
  margin: 26px 0 12px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gold-light);
  border-radius: 8px;
  overflow: hidden;
}

.qty-control button {
  background: var(--blush);
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  color: var(--wine-dark);
}

.qty-control input {
  width: 42px;
  text-align: center;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.qty-control input:focus { outline: none; }

form.checkout-form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 12px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #e6ddd3;
  border-radius: 9px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.field .error {
  display: none;
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 5px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

.field.has-error .error { display: block; }

.order-summary {
  background: var(--blush);
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 4px;
  margin-bottom: 16px;
  font-size: 14.5px;
}

.order-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  color: var(--wine-dark);
}

.order-summary .row.total {
  border-top: 1px solid rgba(110,31,59,0.2);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--wine);
}

.submit-btn {
  width: 100%;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 16.5px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(110,31,59,0.25);
}

.submit-btn:hover { background: var(--wine-dark); }

.cod-note {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Thank you page ---------- */
.ty-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 50px 18px 70px;
  text-align: center;
}

.ty-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.ty-wrap h1 {
  font-size: 23px;
  color: var(--wine-dark);
  margin: 0 0 6px;
}

.ty-wrap p.sub { color: var(--ink-soft); margin: 0 0 26px; }

.ty-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  text-align: right;
  margin-bottom: 16px;
}

.ty-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--wine-dark);
  text-align: right;
}

.ty-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14.5px;
  border-bottom: 1px dashed #eee0d3;
}
.ty-row:last-child { border-bottom: none; }
.ty-row.total { font-weight: 700; color: var(--wine); font-size: 16px; }

.ty-address { text-align: right; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wine-dark);
  color: var(--gold-light);
  text-align: center;
  padding: 22px 18px;
  font-size: 13px;
  margin-top: 40px;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: sticky;
  bottom: 0;
  background: var(--cream);
  padding: 10px 0 16px;
  z-index: 5;
}

@media (min-width: 860px) {
  .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .gallery-main { max-width: 480px; }
}
