:root {
  --cream: #f5ecdf;
  --cream-soft: #fbf5ec;
  --terracotta: #c65a3a;
  --terracotta-dark: #9d3f25;
  --espresso: #2a1a12;
  --olive: #4a5938;
  --mustard: #e3a54b;
  --ink: #1a1209;
  --shadow: 0 20px 50px -20px rgba(42, 26, 18, .25);
}

* { -webkit-font-smoothing: antialiased; }
html, body { overflow-x: hidden; }

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(42,26,18,.07) 1px, transparent 0);
  background-size: 24px 24px;
}

.serif { font-family: "Fraunces", serif; font-optical-sizing: auto; }

/* ---------- TICKER ---------- */
.top-ticker {
  background: var(--espresso);
  color: var(--cream);
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .55rem 0;
  overflow: hidden;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  padding-left: 100%;
}
.ticker-track span { display: inline-flex; align-items: center; gap: .6rem; }
.ticker-track i { color: var(--mustard); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- NAVBAR ---------- */
.navbar-custom {
  background: rgba(245, 236, 223, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 26, 18, .1);
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 1030;
}
.brand {
  font-family: "Fraunces", serif;
  font-weight: 900;
  font-size: 1.65rem;
  color: var(--espresso);
  letter-spacing: -.02em;
  font-style: italic;
  text-decoration: none;
}
.brand .amp { color: var(--terracotta); font-style: normal; }
.nav-link-custom {
  color: var(--espresso) !important;
  font-weight: 500;
  font-size: .95rem;
  padding: .5rem 1rem !important;
  position: relative;
  transition: color .2s;
}
.nav-link-custom:hover { color: var(--terracotta) !important; }
.nav-link-custom::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: .35rem;
  height: 1.5px; background: var(--terracotta);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-link-custom:hover::after { transform: scaleX(1); }

.cart-btn {
  background: var(--espresso);
  color: var(--cream) !important;
  border: none;
  border-radius: 50px;
  padding: .6rem 1.1rem;
  font-weight: 500;
  font-size: .9rem;
  position: relative;
  display: inline-flex; align-items: center; gap: .55rem;
  transition: transform .2s, background .2s;
  text-decoration: none;
}
.cart-btn:hover { background: var(--terracotta); color: var(--cream); transform: translateY(-2px); }
.cart-count {
  background: var(--mustard);
  color: var(--espresso);
  border-radius: 50%;
  min-width: 22px; height: 22px;
  padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  font-family: "Fraunces", serif;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.4); }
}

.navbar-toggler {
  border: 1px solid var(--espresso);
  padding: .3rem .55rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* ---------- HERO ---------- */
.hero {
  padding: 4rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .78rem; font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 1.5rem;
}
.eyebrow .dot { width: 6px; height: 6px; background: var(--terracotta); border-radius: 50%; }
.hero-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 6rem);
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--espresso);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--terracotta); }
.hero-title .underline {
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
.hero-sub {
  font-size: 1.08rem;
  color: rgba(42, 26, 18, .75);
  max-width: 460px;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}
.btn-primary-custom {
  background: var(--espresso);
  color: var(--cream);
  border: none;
  border-radius: 50px;
  padding: 1rem 1.8rem;
  font-weight: 500;
  transition: transform .2s, background .2s;
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none;
}
.btn-primary-custom:hover { background: var(--terracotta); color: var(--cream); transform: translateY(-2px); }
.btn-ghost {
  color: var(--espresso);
  background: transparent;
  border: 1.5px solid var(--espresso);
  border-radius: 50px;
  padding: 1rem 1.8rem;
  font-weight: 500;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }

.hero-stats {
  display: flex; gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(42, 26, 18, .15);
}
.hero-stat .num {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 2rem;
  color: var(--espresso);
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(42, 26, 18, .6);
  margin-top: .4rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 540px;
  margin: 0 auto;
}
.hero-image-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 10px solid var(--cream-soft);
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  animation: gentle-zoom 12s ease-in-out infinite alternate;
}
@keyframes gentle-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}
.hero-badge {
  position: absolute;
  background: var(--cream);
  border-radius: 16px;
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: .7rem;
  font-size: .88rem;
  animation: float 5s ease-in-out infinite;
}
.hero-badge.b1 { top: 8%; left: -5%; animation-delay: .5s; }
.hero-badge.b2 { bottom: 12%; right: -8%; animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-badge .icon {
  width: 38px; height: 38px;
  background: var(--terracotta);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.hero-badge .label {
  font-size: .7rem;
  color: rgba(42, 26, 18, .6);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.hero-badge .value {
  font-family: "Fraunces", serif;
  font-weight: 600;
  color: var(--espresso);
}
.decor-star {
  position: absolute;
  color: var(--terracotta);
  font-size: 2rem;
  animation: pulse 3s ease-in-out infinite;
}
.decor-star.s1 { top: 10%; right: 20%; }
.decor-star.s2 { bottom: 20%; left: 8%; animation-delay: 1s; }
@keyframes pulse {
  0%,100% { transform: scale(1) rotate(0); opacity: .6; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
}

/* ---------- SECTIONS ---------- */
.section { padding: 5rem 0; }
.section-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.02em;
  color: var(--espresso);
  line-height: 1.05;
}
.section-title em { font-style: italic; color: var(--terracotta); }

/* ---------- CATEGORIES ---------- */
.cat-scroll {
  display: flex; gap: 1rem;
  overflow-x: auto;
  padding: 1rem .25rem 2rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--cream-soft);
  border: 1.5px solid rgba(42, 26, 18, .12);
  border-radius: 50px;
  padding: .85rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--espresso);
}
.cat-chip .emoji { font-size: 1.25rem; }
.cat-chip:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(42, 26, 18, .1); }
.cat-chip.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
  background: var(--cream-soft);
  border-radius: 24px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  border: 1px solid rgba(42, 26, 18, .08);
  position: relative;
  height: 100%;
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(42, 26, 18, .35);
}
.product-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  background: var(--cream-soft);
}
.product-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-image img { transform: scale(1.08); }

.tag-veg {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  background: var(--cream);
  color: var(--olive);
  font-size: .72rem;
  padding: .3rem .7rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .35rem;
}
.tag-hot { background: var(--cream); color: var(--terracotta); }

.product-body {
  padding: 1.4rem 1.5rem 1.5rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.product-rating {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem;
  color: rgba(42, 26, 18, .65);
  margin-bottom: .5rem;
}
.product-rating i { color: var(--mustard); }
.product-name {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--espresso);
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.product-desc {
  font-size: .85rem;
  color: rgba(42, 26, 18, .6);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
}
.product-price {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--espresso);
}
.product-price .cents { font-size: .85rem; color: rgba(42, 26, 18, .5); }
.add-btn {
  background: var(--espresso);
  color: var(--cream);
  border: none;
  border-radius: 50px;
  padding: .6rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: all .2s;
  white-space: nowrap;
}
.add-btn:hover { background: var(--terracotta); transform: scale(1.05); }
.add-btn.added { background: var(--olive); }

/* ---------- PROMO ---------- */
.promo {
  background: var(--espresso);
  color: var(--cream);
  border-radius: 28px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.promo::before {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--terracotta) 0%, transparent 70%);
  right: -100px; top: -150px;
  opacity: .5;
}
.promo-content { position: relative; z-index: 1; }
.promo-tag {
  display: inline-block;
  background: var(--mustard);
  color: var(--espresso);
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.promo h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.promo h2 em { color: var(--mustard); font-style: italic; }

/* ---------- FEATURES ---------- */
.feature { text-align: center; padding: 2rem 1rem; }
.feature-icon {
  width: 70px; height: 70px;
  background: var(--cream-soft);
  border: 1.5px solid rgba(42, 26, 18, .12);
  border-radius: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: var(--terracotta);
  margin-bottom: 1.2rem;
  transition: transform .3s;
}
.feature:hover .feature-icon {
  transform: translateY(-5px) rotate(-8deg);
  background: var(--terracotta);
  color: var(--cream);
}
.feature h5 { font-family: "Fraunces", serif; font-weight: 500; color: var(--espresso); margin-bottom: .5rem; }
.feature p { font-size: .9rem; color: rgba(42, 26, 18, .65); margin: 0; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}
footer .brand { color: var(--cream); }
footer h6 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--mustard);
}
footer a {
  color: rgba(245, 236, 223, .7);
  text-decoration: none;
  font-size: .92rem;
  display: block;
  padding: .3rem 0;
  transition: color .2s;
}
footer a:hover { color: var(--mustard); }
.footer-socials { display: flex; gap: .8rem; margin-top: 1rem; }
.footer-socials a {
  width: 40px; height: 40px;
  border: 1px solid rgba(245, 236, 223, .25);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all .2s;
}
.footer-socials a:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}
.footer-bottom {
  border-top: 1px solid rgba(245, 236, 223, .15);
  margin-top: 3rem;
  padding-top: 2rem;
  font-size: .85rem;
  color: rgba(245, 236, 223, .5);
}
.ssm-credit {
  color: var(--mustard) !important;
  font-weight: 600;
  display: inline !important;
  padding: 0 !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.ssm-credit:hover { border-bottom-color: var(--mustard); }

/* ---------- TOAST ---------- */
.toast-pop {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--espresso);
  color: var(--cream);
  padding: .85rem 1.5rem;
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  display: inline-flex; align-items: center; gap: .6rem;
}
.toast-pop.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-pop i { color: var(--mustard); }

/* ====================================================== */
/* ============= CART & CHECKOUT PAGES ================== */
/* ====================================================== */

.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(42, 26, 18, .1);
}
.breadcrumb-custom {
  display: flex; align-items: center; gap: .55rem;
  font-size: .85rem;
  color: rgba(42, 26, 18, .6);
  margin-bottom: 1rem;
}
.breadcrumb-custom a {
  color: rgba(42, 26, 18, .6);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb-custom a:hover { color: var(--terracotta); }
.breadcrumb-custom .sep { opacity: .5; }
.breadcrumb-custom .current { color: var(--espresso); font-weight: 500; }

.page-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -.02em;
  color: var(--espresso);
  line-height: 1;
}
.page-title em { font-style: italic; color: var(--terracotta); }

/* ---------- CART PAGE ITEM ---------- */
.cart-page {
  background: var(--cream-soft);
  border-radius: 24px;
  padding: .5rem 1.5rem;
  border: 1px solid rgba(42, 26, 18, .08);
}
.cart-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(42, 26, 18, .08);
}
.cart-row:last-child { border-bottom: none; }
.cart-row .thumb {
  width: 110px; height: 110px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
}
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-row .meta h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--espresso);
  margin: 0 0 .25rem;
}
.cart-row .meta p {
  font-size: .85rem;
  color: rgba(42, 26, 18, .6);
  margin: 0;
}
.cart-row .unit-price {
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: rgba(42, 26, 18, .7);
  font-size: .95rem;
}
.cart-row .line-total {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--espresso);
  min-width: 80px;
  text-align: right;
}

.qty-ctrl {
  display: inline-flex; align-items: center;
  background: var(--cream);
  border-radius: 50px;
  padding: .25rem;
  border: 1px solid rgba(42, 26, 18, .1);
}
.qty-ctrl button {
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--espresso);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qty-ctrl button:hover { background: var(--espresso); color: var(--cream); }
.qty-ctrl .qty { min-width: 34px; text-align: center; font-weight: 600; font-size: .95rem; }

.remove-btn {
  background: none; border: none;
  color: rgba(42, 26, 18, .4);
  font-size: 1.1rem;
  padding: .5rem;
  border-radius: 50%;
  transition: all .2s;
}
.remove-btn:hover { color: var(--terracotta); background: rgba(198, 90, 58, .08); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  background: var(--cream-soft);
  border-radius: 24px;
  border: 1px solid rgba(42, 26, 18, .08);
}
.empty-state .empty-icon {
  width: 110px; height: 110px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
  color: var(--terracotta);
  border: 1.5px dashed rgba(42, 26, 18, .2);
}
.empty-state h3 {
  font-family: "Fraunces", serif;
  color: var(--espresso);
  margin-bottom: .5rem;
}
.empty-state p {
  color: rgba(42, 26, 18, .6);
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

/* ---------- SUMMARY CARD ---------- */
.summary-card {
  background: var(--cream-soft);
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(42, 26, 18, .08);
  position: sticky;
  top: 100px;
}
.summary-card h4 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--espresso);
  font-size: 1.35rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(42, 26, 18, .1);
}
.summary-card .sum-row {
  display: flex; justify-content: space-between;
  padding: .45rem 0;
  font-size: .95rem;
  color: rgba(42, 26, 18, .75);
}
.summary-card .sum-row.total {
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  color: var(--espresso);
  font-weight: 600;
  padding-top: 1rem;
  margin-top: .6rem;
  border-top: 1px dashed rgba(42, 26, 18, .2);
}
.summary-card .sum-row.discount { color: var(--olive); }

.delivery-bar {
  background: var(--cream);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-top: 1rem;
  font-size: .85rem;
  color: rgba(42, 26, 18, .7);
}
.delivery-bar .track {
  height: 5px;
  background: rgba(42, 26, 18, .08);
  border-radius: 10px;
  margin-top: .55rem;
  overflow: hidden;
}
.delivery-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mustard), var(--terracotta));
  border-radius: 10px;
  transition: width .5s ease;
}
.delivery-bar.free { color: var(--olive); font-weight: 600; }

.promo-box {
  display: flex; gap: .5rem;
  margin-top: 1.2rem;
}
.promo-box input {
  flex: 1;
  border: 1.5px solid rgba(42, 26, 18, .15);
  border-radius: 50px;
  padding: .75rem 1.1rem;
  background: var(--cream);
  font-size: .9rem;
  color: var(--espresso);
  outline: none;
  transition: border-color .2s;
}
.promo-box input:focus { border-color: var(--terracotta); }
.promo-box button {
  background: var(--espresso);
  color: var(--cream);
  border: none;
  border-radius: 50px;
  padding: 0 1.25rem;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
}
.promo-box button:hover { background: var(--terracotta); }

.promo-applied {
  background: rgba(74, 89, 56, .1);
  color: var(--olive);
  padding: .6rem 1rem;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 500;
  margin-top: .8rem;
  display: flex; align-items: center; justify-content: space-between;
}
.promo-applied .clear-promo {
  background: none; border: none;
  color: var(--olive);
  cursor: pointer;
  font-size: 1rem;
}

.checkout-btn {
  width: 100%;
  background: var(--espresso);
  color: var(--cream);
  border: none;
  border-radius: 50px;
  padding: 1.1rem;
  font-weight: 500;
  font-size: 1rem;
  margin-top: 1.5rem;
  transition: all .2s;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  text-decoration: none;
}
.checkout-btn:hover { background: var(--terracotta); color: var(--cream); transform: translateY(-2px); }
.checkout-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.continue-link {
  text-align: center;
  margin-top: 1rem;
  font-size: .88rem;
}
.continue-link a {
  color: rgba(42, 26, 18, .6);
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 26, 18, .2);
  transition: all .2s;
}
.continue-link a:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* ---------- CHECKOUT ---------- */
.step {
  background: var(--cream-soft);
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid rgba(42, 26, 18, .08);
  margin-bottom: 1.25rem;
}
.step-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--cream);
  font-family: "Fraunces", serif;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-title {
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--espresso);
  font-size: 1.3rem;
  margin: 0;
}
.step-title-small {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(42, 26, 18, .55);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  margin-bottom: .2rem;
}

.form-field { margin-bottom: 1rem; }
.form-field.half { display: inline-block; width: calc(50% - .5rem); }
.form-field.half:first-child { margin-right: 1rem; }

.form-label {
  display: block;
  font-size: .85rem;
  color: var(--espresso);
  font-weight: 500;
  margin-bottom: .45rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid rgba(42, 26, 18, .12);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .95rem;
  color: var(--espresso);
  font-family: "DM Sans", sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(198, 90, 58, .1);
}
.form-textarea { resize: vertical; min-height: 90px; }

.pay-method {
  border: 1.5px solid rgba(42, 26, 18, .12);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin-bottom: .75rem;
  background: var(--cream);
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; gap: 1rem;
}
.pay-method:hover { border-color: rgba(198, 90, 58, .4); }
.pay-method input { accent-color: var(--terracotta); width: 18px; height: 18px; flex-shrink: 0; }
.pay-method .pm-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--cream-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--terracotta);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.pay-method .pm-info { flex: 1; }
.pay-method .pm-title {
  font-weight: 600; color: var(--espresso); font-size: .95rem;
}
.pay-method .pm-desc {
  font-size: .82rem; color: rgba(42, 26, 18, .6);
}
.pay-method.selected {
  border-color: var(--terracotta);
  background: rgba(198, 90, 58, .04);
}

.card-fields {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(42, 26, 18, .15);
  display: none;
}
.card-fields.show { display: block; }

.checkout-summary-item {
  display: flex; gap: .85rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(42, 26, 18, .06);
  align-items: center;
}
.checkout-summary-item:last-child { border-bottom: none; }
.csi-thumb {
  width: 50px; height: 50px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
  flex-shrink: 0;
  position: relative;
}
.csi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csi-thumb .qty-bubble {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--espresso);
  color: var(--cream);
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--cream-soft);
}
.csi-info { flex: 1; min-width: 0; }
.csi-info .name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--espresso);
  margin: 0 0 .15rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.csi-info .sub { font-size: .78rem; color: rgba(42, 26, 18, .55); }
.csi-price { font-family: "Fraunces", serif; font-weight: 600; color: var(--espresso); font-size: .95rem; }

/* ---------- SUCCESS ---------- */
.success-card {
  background: var(--cream-soft);
  border-radius: 28px;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(42, 26, 18, .08);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.success-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--olive), var(--mustard), var(--terracotta));
}
.success-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  font-size: 2.8rem;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  animation: pop .5s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 0 0 8px rgba(74, 89, 56, .12);
}
@keyframes pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.success-card h2 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  color: var(--espresso);
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.success-card h2 em { color: var(--terracotta); font-style: italic; }
.success-card .lead-text {
  color: rgba(42, 26, 18, .7);
  max-width: 440px;
  margin: 0 auto 1.5rem;
  font-size: .98rem;
  line-height: 1.55;
}
.order-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  background: var(--cream);
  border: 1px dashed rgba(42, 26, 18, .2);
  padding: .75rem 1.3rem;
  border-radius: 50px;
  margin: 0 auto 2rem;
}
.order-meta .order-num {
  font-family: "Fraunces", serif;
  font-weight: 700;
  color: var(--espresso);
  letter-spacing: .05em;
}
.order-meta .divider { color: rgba(42, 26, 18, .2); }
.order-meta .eta {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--terracotta);
  font-weight: 600;
  font-size: .92rem;
}

/* ---------- TRACKING TIMELINE ---------- */
.tracking {
  background: var(--cream);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  margin: 0 0 2rem;
  border: 1px solid rgba(42, 26, 18, .08);
}
.tracking-head {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(42, 26, 18, .55);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.tracking-head .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta);
  animation: live-pulse 1.5s infinite;
}
@keyframes live-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(198, 90, 58, .5); }
  50%     { box-shadow: 0 0 0 8px rgba(198, 90, 58, 0); }
}

.timeline {
  display: flex;
  position: relative;
  padding: 0 .5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 20px; left: 10%; right: 10%;
  height: 3px;
  background: rgba(42, 26, 18, .1);
  border-radius: 2px;
  z-index: 0;
}
.timeline::after {
  content: "";
  position: absolute;
  top: 20px; left: 10%;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--olive), var(--terracotta));
  border-radius: 2px;
  z-index: 0;
  animation: fill-bar 1.2s ease-out forwards;
  animation-delay: .3s;
}
@keyframes fill-bar {
  to { width: 27%; }
}
.tl-step {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}
.tl-step .dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid rgba(42, 26, 18, .12);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(42, 26, 18, .3);
  font-size: 1.05rem;
  margin-bottom: .6rem;
  transition: all .3s;
}
.tl-step.done .dot {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
}
.tl-step.active .dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
  animation: active-pulse 2s infinite;
}
@keyframes active-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(198, 90, 58, .4); }
  50%     { box-shadow: 0 0 0 10px rgba(198, 90, 58, 0); }
}
.tl-step .label {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(42, 26, 18, .5);
  line-height: 1.25;
}
.tl-step.done .label,
.tl-step.active .label {
  color: var(--espresso);
  font-weight: 600;
}
.tl-step .time {
  font-size: .7rem;
  color: rgba(42, 26, 18, .45);
  margin-top: .2rem;
}

/* ---------- RECAP GRID ---------- */
.recap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}
.recap-box {
  background: var(--cream);
  border: 1px solid rgba(42, 26, 18, .08);
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
}
.recap-box .head {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(42, 26, 18, .5);
  font-weight: 600;
  margin-bottom: .7rem;
  display: flex; align-items: center; gap: .4rem;
}
.recap-box .head i { color: var(--terracotta); }
.recap-box .content {
  font-size: .92rem;
  color: var(--espresso);
  line-height: 1.55;
}
.recap-box .content strong {
  font-family: "Fraunces", serif;
  font-weight: 600;
}

.order-items-recap {
  background: var(--cream);
  border: 1px solid rgba(42, 26, 18, .08);
  border-radius: 18px;
  padding: 1.4rem;
  margin-bottom: 2rem;
  text-align: left;
}
.order-items-recap .head {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: rgba(42, 26, 18, .5);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .4rem;
}
.order-items-recap .head i { color: var(--terracotta); }

.success-actions {
  display: flex; gap: .75rem; justify-content: center;
  flex-wrap: wrap;
}

.help-line {
  margin-top: 2rem;
  font-size: .85rem;
  color: rgba(42, 26, 18, .55);
}
.help-line a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.help-line a:hover { border-bottom-color: var(--terracotta); }

@media (max-width: 575px) {
  .recap-grid { grid-template-columns: 1fr; }
  .timeline::before, .timeline::after { top: 18px; }
  .tl-step .dot { width: 38px; height: 38px; font-size: .95rem; }
  .tl-step .label { font-size: .7rem; }
  .tl-step .time { font-size: .62rem; }
  .success-card { padding: 2.5rem 1.25rem 2rem; }
  .tracking { padding: 1.5rem 1rem 1.25rem; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .navbar-custom { padding: .75rem 0; }
  /* Force-hide the menu on mobile until .show is added */
  .navbar-collapse {
    display: none;
    width: 100%;
    flex-basis: 100%;
    background: var(--cream-soft);
    margin: 1rem -.5rem 0;
    padding: .5rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(42, 26, 18, .1);
    animation: nav-slide-down .25s ease-out;
  }
  .navbar-collapse.show { display: block; }
  @keyframes nav-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .navbar-collapse .nav-link-custom {
    padding: .75rem .5rem !important;
    border-bottom: 1px solid rgba(42, 26, 18, .06);
  }
  .navbar-collapse .nav-item:last-child .nav-link-custom { border-bottom: none; }
  .navbar-collapse .nav-link-custom::after { display: none; }
  /* Hamburger icon morph when open */
  .navbar-toggler.is-open i::before {
    content: "\f659"; /* bi-x-lg */
  }
  .hero { padding: 2.5rem 0 4rem; }
  .hero-visual { margin-top: 3rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .summary-card { position: static; margin-top: 2rem; }
}

@media (max-width: 575px) {
  .brand { font-size: 1.3rem; }
  .cart-btn {
    padding: .5rem .85rem;
    font-size: .85rem;
    gap: .4rem;
  }
  .cart-count { min-width: 20px; height: 20px; font-size: .7rem; }
  .navbar-toggler { padding: .25rem .45rem; }
  .navbar-toggler i { font-size: 1.25rem !important; }
}

@media (max-width: 767px) {
  .cart-row {
    grid-template-columns: 90px 1fr;
    grid-template-areas:
      "thumb meta"
      "thumb controls"
      "total total";
    gap: .8rem 1rem;
  }
  .cart-row .thumb { grid-area: thumb; width: 90px; height: 90px; }
  .cart-row .meta { grid-area: meta; }
  .cart-row .unit-price { display: none; }
  .cart-row .controls { grid-area: controls; display: flex; align-items: center; gap: .75rem; }
  .cart-row .line-total {
    grid-area: total; text-align: left;
    padding-top: .75rem;
    border-top: 1px dashed rgba(42, 26, 18, .12);
  }
  .cart-row .line-total::before { content: "Subtotal: "; font-size: .85rem; color: rgba(42, 26, 18, .55); font-weight: 500; }
  .form-field.half { width: 100%; display: block; margin-right: 0; }
}

@media (max-width: 576px) {
  .hero-badge.b1 { left: 0; }
  .hero-badge.b2 { right: 0; }
  .section { padding: 3rem 0; }
  .promo { padding: 2rem 1.5rem; }
  .page-header { padding: 2rem 0 1.5rem; }
}
