/* =====================================================
   Achar House — storefront stylesheet
   Palette: maroon & white (timeless, high-contrast)
   ===================================================== */
:root {
  --maroon: #6b4a2a;
  /* primary */
  --maroon-dark: #523820;
  /* hover / footer */
  --maroon-deep: #362515;
  /* darkest */
  --maroon-soft: #FAF6F0;
  /* tinted white surface */
  --maroon-mid: #8c6137;
  /* secondary accent */
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --ink: #2E2013;
  --muted: #85705E;
  --line: #EAE2D8;
  --border: #D1C7BD;
  --gold: #D9A726;
  /* stars & deals only */
  --radius: 14px;
  --shadow: 0 2px 10px rgba(54, 37, 21, .08);
  --shadow-lg: 0 12px 32px rgba(54, 37, 21, .16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55
}

h1,
h2,
h3,
.serif {
  font-family: 'Fraunces', serif
}

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

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

input,
select,
textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  width: 100%;
  outline: none;
  color: var(--ink)
}

input:focus,
select:focus,
textarea:focus {
  border-color: #6b4a2a
}

.hidden {
  display: none !important
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px
}

/* ---------- Announcement + Header ---------- */
.announce {
  background: #6b4a2a;
  color: #FAF5ED;
  text-align: center;
  font-size: 13px;
  padding: 8px 16px;
  font-weight: 500
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line)
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px
}

.logo img {
  height: 70px;
  width: auto;
  vertical-align: middle
}

.logo .jar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #6b4a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px
}

.logo b {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--maroon-deep)
}

.logo small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 600
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: 6px
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500
}

.nav-links a:hover,
.nav-links a.on {
  color: #6b4a2a
}

.nav-spacer {
  flex: 1
}

.icon-btn {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px
}

.icon-btn:hover,
.icon-btn.on {
  color: #6b4a2a
}

.icon-btn .hi {
  font-size: 13.5px
}

.mini-count {
  position: absolute;
  top: -7px;
  right: -10px;
  background: #6b4a2a;
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px
}

.cart-btn {
  position: relative;
  background: #6b4a2a;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px
}

.cart-btn:hover {
  background: var(--maroon-dark)
}

.cart-count {
  background: #fff;
  color: #6b4a2a;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  align-items: center;
  padding: 52px 0 40px
}

.hero h1 {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 600;
  color: var(--maroon-deep)
}

.hero h1 em {
  color: #6b4a2a;
  font-style: normal
}

.hero p {
  color: var(--muted);
  margin: 16px 0 26px;
  max-width: 46ch
}

.btn {
  display: inline-block;
  background: #6b4a2a;
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  border: none;
  cursor: pointer
}

.btn:hover {
  background: var(--maroon-dark)
}

.btn.ghost {
  background: transparent;
  border: 1.5px solid #6b4a2a;
  color: #6b4a2a;
  margin-left: 10px
}

.btn.ghost:hover {
  background: var(--maroon-soft)
}

.hero-art {
  position: relative;
  height: 300px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow)
}

.hero-art span {
  font-size: 110px;
  filter: drop-shadow(0 12px 16px rgba(78, 13, 25, .25))
}

.hero-badge {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600
}

.hero-badge small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 11px
}

.hb1 {
  top: 18px;
  left: -16px
}

.hb2 {
  bottom: 22px;
  right: -12px
}

/* ---------- Offer strip ---------- */
.offers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 44px
}

.offer-card {
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  background: var(--maroon-soft);
  border: 1px solid var(--line)
}

.offer-card:hover {
  box-shadow: var(--shadow-lg)
}

.offer-card .ic {
  font-size: 28px
}

.offer-card b {
  display: block;
  font-size: 15px;
  color: var(--maroon-deep)
}

.offer-card span {
  font-size: 12.5px;
  color: var(--muted)
}

/* ---------- Seasonal band ---------- */
.season-band {
  background: #f7f5f1;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 26px 22px;
  margin: 0 0 46px;
  box-shadow: var(--shadow)
}

.season-band .sb-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px
}

.season-band h2 {
  font-size: 25px;
  font-weight: 600;
  color: var(--maroon-deep)
}

.season-band .lead {
  color: var(--muted);
  font-size: 13.5px
}

.season-band .grid {
  padding-bottom: 0
}

/* ---------- Filters ---------- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 8px 0 18px;
  flex-wrap: wrap;
  gap: 12px
}

.section-head h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--maroon-deep)
}

.section-head p {
  color: var(--muted);
  font-size: 14px
}

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
  margin-bottom: 25px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted)
}

.chip:hover {
  border-color: #6b4a2a;
  color: #6b4a2a
}

.chip.active {
  background: #6b4a2a;
  border-color: #6b4a2a;
  color: #fff
}

.toolbar .right,
.section-head .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center
}

.toolbar select,
.section-head select {
  width: auto;
  padding: 8px 12px;
  font-size: 13px
}

.toolbar input,
.section-head input {
  width: 190px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 999px
}

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 56px
}

.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer
}

.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg)
}

.pimg {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden
}

.pimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: contain;
  padding: 10px;
  box-sizing: border-box;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
  z-index: 2
}

.badge.bogo {
  background: #6b4a2a;
  color: #fff
}

.badge.deal {
  background: var(--gold);
  color: #fff
}

.badge.combo {
  background: var(--maroon-deep);
  color: #fff
}

.badge.best {
  background: #fff;
  color: #6b4a2a;
  border: 1px solid #6b4a2a
}

.badge.season {
  background: var(--maroon-mid);
  color: #fff
}

.veg-mark {
  position: absolute;
  top: 12px;
  right: 44px;
  width: 16px;
  height: 16px;
  border: 1.5px solid;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 2
}

.veg-mark i {
  width: 8px;
  height: 8px;
  border-radius: 50%
}

.veg-mark.v {
  border-color: #2E7D32
}

.veg-mark.v i {
  background: #2E7D32
}

.veg-mark.n {
  border-color: #B23B2E
}

.veg-mark.n i {
  background: #B23B2E
}

.wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 15px;
  box-shadow: var(--shadow);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center
}

.wish-btn:hover {
  transform: scale(1.1)
}

.pbody {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1
}

.pbody h3 {
  font-family: Arial, sans-serif !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.pbody .sub {
  font-size: 12.5px;
  color: var(--muted)
}

.stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px
}

.stars small {
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px
}

.prow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px
}

.price b {
  font-size: 17px;
  color: var(--maroon-deep)
}

.price s {
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px
}

.add {
  background: #6b4a2a;
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px
}

.add:hover {
  background: var(--maroon-dark)
}

.add.preorder-btn,
.btn.btn-preorder,
.btn-preorder {
  background: #0056b3 !important;
  color: #fff !important;
  border-color: #0056b3 !important;
}

.add.preorder-btn:hover,
.btn.btn-preorder:hover,
.btn-preorder:hover {
  background: #004085 !important;
  border-color: #004085 !important;
}

/* ---------- Trust ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line)
}

.trust div {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted)
}

.trust .ic {
  font-size: 26px;
  display: block;
  margin-bottom: 8px
}

.trust b {
  color: var(--ink);
  display: block;
  font-size: 14px
}

/* ---------- Product detail ---------- */
.crumb {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 6px
}

.crumb a {
  color: #6b4a2a
}

.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  padding: 16px 0 40px
}

.dimg {
  border-radius: 20px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 150px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden
}

.dimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
}

.dinfo h1 {
  font-family: Arial, sans-serif !important;
  font-size: 32px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--maroon-deep)
}

.dinfo .sub {
  color: var(--muted);
  font-size: 14px
}

.dinfo .price {
  margin: 14px 0
}

.dinfo .price b {
  font-size: 26px;
  color: var(--maroon-deep)
}

.dinfo .desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 8px 0 18px
}

.savings {
  color: #2E7D32;
  font-weight: 600
}

.wopts {
  display: flex;
  gap: 10px;
  margin: 6px 0 20px
}

.wopt {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600
}

.wopt.active {
  border-color: #6b4a2a;
  background: var(--maroon-soft);
  color: #6b4a2a
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff
}

.qty button {
  background: none;
  font-size: 17px;
  padding: 7px 15px;
  color: #6b4a2a
}

.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700
}

.dactions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 6px 0 20px;
  flex-wrap: wrap
}

.bogo-note {
  background: var(--maroon-soft);
  border: 1px dashed #6b4a2a;
  color: #6b4a2a;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px
}

.meta-list {
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px
}

.meta-list li {
  list-style: none;
  padding: 3px 0
}

label.fl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 5px
}

/* ---------- Share ---------- */
.share-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 18px;
  flex-wrap: nowrap
}

.share-row .lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-right: 2px;
  white-space: nowrap
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap
}

.share-btn.wa {
  background: #25D366
}

.share-btn.fb {
  background: #1877F2
}

.share-btn.x {
  background: #111
}

.share-btn.copy {
  background: #fff;
  color: #111;
  border: 1px solid #111
}

.share-btn:hover {
  filter: brightness(.93)
}

/* ---------- Reviews ---------- */
.reviews {
  padding: 8px 0 60px;
  max-width: 720px
}

.reviews h2 {
  font-size: 24px;
  margin-bottom: 14px;
  color: var(--maroon-deep)
}

.rsummary {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px
}

.rsummary .big {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 600;
  color: #6b4a2a
}

.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  margin-bottom: 12px
}

.review b {
  font-size: 14px
}

.review .stars {
  font-size: 12px
}

.review p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px
}

.rate-form {
  background: var(--maroon-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-top: 22px
}

.rate-form h3 {
  margin-bottom: 12px;
  font-size: 17px;
  color: var(--maroon-deep)
}

.star-input {
  font-size: 28px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 12px;
  color: #EADCD0
}

.star-input span.on {
  color: var(--gold)
}

.rate-form .row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px
}

/* ---------- Cart / Checkout ---------- */
.page-title {
  font-size: 30px;
  font-weight: 600;
  padding: 30px 0 20px;
  color: var(--maroon-deep)
}

.cart-wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  padding-bottom: 60px;
  align-items: start
}

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

.citem {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center
}

.citem .ci-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0
}

.citem .ci-info {
  flex: 1
}

.citem .ci-info b {
  font-size: 15px
}

.citem .ci-info small {
  display: block;
  color: var(--muted);
  font-size: 12.5px
}

.citem .ci-price {
  font-weight: 700;
  min-width: 80px;
  text-align: right;
  color: var(--maroon-deep)
}

.citem .rm {
  background: none;
  color: var(--muted);
  font-size: 18px;
  padding: 4px
}

.citem.free {
  border: 1.5px dashed #6b4a2a;
  background: var(--maroon-soft)
}

.free-tag {
  background: #6b4a2a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px
}

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
  position: sticky;
  top: 86px
}

.summary h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--maroon-deep)
}

.srow {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 5px 0;
  color: var(--muted)
}

.srow.total {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink)
}

.coupon {
  display: flex;
  gap: 8px;
  margin: 12px 0
}

.coupon button {
  background: var(--maroon-deep);
  color: #fff;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px
}

.checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #6b4a2a;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px;
  margin-top: 12px
}

.checkout-btn:hover {
  background: var(--maroon-dark)
}

.empty {
  text-align: center;
  padding: 70px 0;
  color: var(--muted)
}

.empty .ic {
  font-size: 56px;
  display: block;
  margin-bottom: 12px
}

.ck-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 28px;
  padding-bottom: 60px;
  align-items: start
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px
}

.panel h3 {
  font-size: 17px;
  margin-bottom: 16px;
  color: var(--maroon-deep)
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px
}

.frow.one {
  grid-template-columns: 1fr
}

.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600
}

.pay-opt input {
  width: auto
}

.pay-opt.active {
  border-color: #6b4a2a;
  background: var(--maroon-soft)
}

.pay-opt .ic {
  font-size: 20px
}

.pay-opt small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px
}

.optin {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px
}

.optin input {
  width: auto;
  margin-top: 3px
}

/* ---------- Payment modal ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(61, 38, 22, .6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.paybox {
  background: #fff;
  border-radius: 18px;
  width: 380px;
  overflow: hidden;
  box-shadow: var(--shadow-lg)
}

.paybox .ph {
  background: var(--maroon-deep);
  color: #fff;
  padding: 18px 20px
}

.paybox .ph b {
  font-size: 15px
}

.paybox .ph small {
  display: block;
  opacity: .7;
  font-size: 12px
}

.paybox .pb {
  padding: 24px 20px;
  text-align: center
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--line);
  border-top-color: #6b4a2a;
  border-radius: 50%;
  margin: 10px auto 16px;
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.paybox .amount {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--maroon-deep)
}

/* ---------- Success ---------- */
.success {
  text-align: center;
  padding: 80px 0
}

.success .ic {
  font-size: 70px;
  display: block;
  margin-bottom: 16px
}

.success h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--maroon-deep)
}

.success p {
  color: var(--muted);
  margin-bottom: 24px
}

.order-id {
  background: var(--maroon-soft);
  border: 1px solid var(--line);
  display: inline-block;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  margin-bottom: 26px;
  color: var(--maroon-deep)
}

/* ---------- Auth (login/register) ---------- */
.auth-wrap {
  max-width: 420px;
  margin: 60px auto 90px;
  padding: 0 20px
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 30px
}

.auth-card h1 {
  font-size: 26px;
  color: var(--maroon-deep);
  margin-bottom: 4px
}

.auth-card .lead {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 20px
}

.auth-tabs {
  display: flex;
  background: var(--maroon-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 20px
}

.auth-tabs button {
  flex: 1;
  border-radius: 999px;
  padding: 9px;
  font-weight: 700;
  font-size: 13.5px;
  background: transparent;
  color: var(--muted)
}

.auth-tabs button.active {
  background: #6b4a2a;
  color: #fff
}

.auth-card .field {
  margin-bottom: 12px
}

.auth-note {
  background: var(--maroon-soft);
  border: 1px dashed var(--maroon-mid);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #6b4a2a;
  margin-top: 16px
}

/* ---------- Account ---------- */
.acct-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 30px 0 18px
}

.acct-head h1 {
  font-size: 28px;
  color: var(--maroon-deep)
}

.acct-head .sub {
  color: var(--muted);
  font-size: 14px
}

.acct-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  flex-wrap: wrap
}

.acct-tabs button {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted)
}

.acct-tabs button.active {
  background: #6b4a2a;
  border-color: #6b4a2a;
  color: #fff
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin-bottom: 16px
}

.order-card .oc-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px
}

.order-card .oc-top b {
  color: var(--maroon-deep)
}

.order-card .oc-top small {
  color: var(--muted)
}

.order-card .items {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px
}

.timeline {
  display: flex;
  /* Keep all dots on one horizontal track even when only some steps have dates. */
  align-items: flex-start;
  margin: 6px 0 4px
}

.tl-step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600
}

.tl-step .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--line);
  margin: 0 auto 6px;
  position: relative;
  z-index: 2
}

.tl-step.done .dot {
  background: #6b4a2a;
  border-color: #6b4a2a
}

.tl-step.done {
  color: #6b4a2a
}

.tl-step::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -50%;
  width: 100%;
  height: 2.5px;
  background: var(--line);
  z-index: 1
}

.tl-step:first-child::before {
  display: none
}

.tl-step.done::before {
  background: #6b4a2a
}

.tl-cancel {
  background: #FBE9E7;
  color: #B23B2E;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-block
}

.status-pill {
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--maroon-soft);
  color: #6b4a2a
}

/* ---------- Toast / Footer ---------- */
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--maroon-deep);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none
}

#toast.show {
  opacity: 1
}

footer {
  background: #3b2a17;
  color: #FAF6F0;
  padding: 40px 0;
  font-size: 13.5px;
  margin-top: auto
}

footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap
}

footer b {
  color: #ffffff;
  font-family: 'Fraunces', serif;
  font-size: 17px
}

footer a {
  color: #FAF6F0;
  display: block;
  margin-top: 8px;
  cursor: pointer
}

footer a:hover {
  color: #ffffff
}

.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  text-align: center;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0,0,0,0.25);
  color: #FFF;
}

.floating-cart {
  position: fixed;
  right: 30px;
  bottom: 106px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6b4a2a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.16);
  text-decoration: none;
  z-index: 999;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.floating-cart:hover {
  transform: scale(1.08);
  background: var(--maroon-dark);
  color: #fff;
  box-shadow: 2px 2px 15px rgba(0,0,0,0.24);
}

.floating-cart:focus-visible {
  outline: 3px solid #d89f59;
  outline-offset: 3px;
}

.floating-cart-count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d32f2f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wa-popup {
    position: fixed;
    bottom: 176px;
    right: 30px;
    width: 320px;
    background: #f4f0ec;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: waPopupIn 0.3s ease;
}
.wa-popup.show {
    display: flex;
}
@keyframes waPopupIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
.wa-popup-header {
    background: #25d366;
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-avatar {
    width: 40px; height: 40px; background: rgba(255,255,255,0.3); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px;
}
.wa-header-info {
    flex: 1;
}
.wa-header-info strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.wa-header-info span { display: flex; align-items: center; gap: 4px; font-size: 11px; opacity: 0.9; margin-top: 2px; }
.wa-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; display: inline-block; }
.wa-close {
    background: none; border: none; color: white; font-size: 16px; cursor: pointer; padding: 0; opacity: 0.8; outline: none;
}
.wa-close:hover { opacity: 1; }
.wa-popup-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #e5ddd5;
}
.wa-bubble {
    background: white;
    padding: 10px 12px;
    border-radius: 0 12px 12px 12px;
    font-size: 13.5px;
    color: #333;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
    line-height: 1.4;
}
.wa-time {
    font-size: 10px; color: #999; text-align: right; margin-top: 4px;
}
.wa-popup-footer {
    padding: 16px;
    background: white;
}
.wa-btn {
    display: block; width: 100%; background: #25d366; color: white !important; text-align: center;
    padding: 12px; border-radius: 20px; font-weight: bold; text-decoration: none; font-size: 14.5px; border: none; cursor: pointer;
}
.wa-btn:hover { background: #1fb956; color: white !important; }

@media(max-width:840px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px
  }

  .hero h1 {
    font-size: 32px
  }

  .offers-strip {
    grid-template-columns: 1fr 1fr
  }

  .detail,
  .cart-wrap,
  .ck-wrap {
    grid-template-columns: 1fr
  }

  .trust {
    grid-template-columns: repeat(2, 1fr)
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 100;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .menu-btn {
    display: inline-flex !important;
  }

  .icon-btn .hi {
    display: none
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-head .right {
    width: 100%;
    flex-direction: column;
  }

  .section-head .right input, .section-head .right select {
    width: 100%;
    box-sizing: border-box;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .toolbar > div.chips {
    margin-left: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
    width: 100%;
  }

  footer .container {
    flex-direction: column;
    gap: 30px;
  }
}

@media(max-width:520px) {
  .offers-strip {
    grid-template-columns: 1fr
  }

  .citem {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .citem .ci-info {
    flex: 1 1 100%;
    margin-bottom: 10px;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr !important;
  }

  .cart-btn .cart-count {
    font-size: 12px;
  }
  .logo b { font-size: 16px; }
  .logo small { font-size: 9px; }
  .nav { gap: 10px; }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
