:root {
  --forest: #2d5a27;
  --medium: #4a7c3f;
  --light-green: #6b9b5a;
  --maroon: #8b1e2e;
  --rich-red: #b22234;
  --light-red: #d94452;
  --white: #ffffff;
  --cream: #f8f6f2;
  --cream2: #f0ede7;
  --charcoal: #161616;
  --gray: #555555;
  --gray-light: #888;
  --beige: #e4e1db;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm:
    0 2px 8px rgba(26, 26, 26, 0.08), 0 1px 3px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(45, 90, 39, 0.12);
  --shadow-lg: 0 20px 48px rgba(45, 90, 39, 0.16);
  --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.14);
  --radius-xs: 6px;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;
  --transition: 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  font-family: "Inter", sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.2;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
ul {
  list-style: none;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
:focus-visible {
  outline: 2px solid var(--medium);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Botanical divider ---------- */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 42px;
}
.leaf-divider .line {
  height: 1px;
  width: 64px;
  background: var(--beige);
}
.leaf-divider svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Section label ---------- */
.section-head {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p.kicker {
  color: var(--medium);
  font-size: 14.5px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}
.section-head .rule {
  width: 56px;
  height: 2px;
  background: var(--rich-red);
  margin: 18px auto 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  height: 52px;
  width: auto;
}
.nav-menu {
  display: flex;
  gap: 38px;
}
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--forest);
  transition: width 0.25s ease;
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-icons button {
  color: var(--forest);
  position: relative;
  display: flex;
}
.nav-icons svg {
  width: 21px;
  height: 21px;
}
.cart-count {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--rich-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-burger {
  display: none;
  color: var(--forest);
}
.nav-burger svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--cream);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 26px;
    transition: right 0.35s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-burger {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(
    120deg,
    #1f3d1c 0%,
    var(--forest) 46%,
    var(--medium) 100%
  );
  overflow: hidden;
  padding: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.06),
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(107, 155, 90, 0.25),
      transparent 45%
    );
}
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 32px 90px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-text p.eyebrow {
  color: #cfe3c8;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  font-weight: 500;
}
.hero-text h1 {
  color: #fff;
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.hero-text h1 em {
  font-style: italic;
  color: #f3c6c1;
  font-weight: 500;
}
.hero-text p.sub {
  color: #e3eedf;
  font-size: 17px;
  max-width: 440px;
  margin: 26px 0 36px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.btn-primary {
  background: var(--rich-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(178, 34, 52, 0.35);
}
.btn-primary:hover {
  background: var(--maroon);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-art {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 80px 24px 60px;
    text-align: left;
  }
  .hero-art {
    height: 260px;
    order: -1;
  }
}

/* ---------- Marquee strip ---------- */
.strip {
  background: var(--cream);
  border-bottom: 1px solid var(--beige);
  border-top: 1px solid var(--beige);
  padding: 14px 0;
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 26s linear infinite;
  width: max-content;
}
.strip-track span {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--medium);
  font-size: 15px;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Categories ---------- */
.categories {
  padding: 96px 0;
  background: var(--white);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  height: 320px;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
}
.cat-card .cat-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cat-card:hover .cat-bg {
  transform: scale(1.08);
}
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(26, 26, 26, 0.72) 0%,
    rgba(26, 26, 26, 0.05) 55%
  );
}
.cat-card .cat-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
}
.cat-card .cat-label h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 4px;
}
.cat-card .cat-label span {
  font-size: 13.5px;
  color: #edeae2;
}
@media (max-width: 1000px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Products ---------- */
.products {
  padding: 96px 0;
  background: var(--cream);
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--beige);
  background: #fff;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray);
  transition: all 0.2s ease;
}
.pill.active,
.pill:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}
.sort-select {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--beige);
  background: #fff;
  font-size: 13.5px;
  color: var(--gray);
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.prod-card {
  background: #fff;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--beige);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease;
  position: relative;
}
.prod-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.prod-media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.prod-media .swatch {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.prod-card:hover .swatch {
  transform: scale(1.06);
}
.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--rich-red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 2;
}
.wish-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}
.wish-btn svg {
  width: 17px;
  height: 17px;
  color: var(--forest);
  transition: all 0.2s ease;
}
.wish-btn.active svg {
  color: var(--rich-red);
  fill: var(--rich-red);
}
.quick-view {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -46px;
  text-align: center;
  padding: 12px 0;
  background: rgba(45, 90, 39, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: bottom 0.3s ease;
  z-index: 2;
  cursor: pointer;
}
.prod-card:hover .quick-view {
  bottom: 0;
}
.prod-info {
  padding: 18px 18px 20px;
}
.prod-cat {
  font-size: 12px;
  color: var(--medium);
  font-weight: 500;
  margin-bottom: 4px;
}
.prod-name {
  font-size: 16.5px;
  font-weight: 600;
  font-family: "Playfair Display", serif;
  color: var(--charcoal);
  margin-bottom: 6px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.prod-name:hover {
  color: var(--forest);
  text-decoration: underline;
}
.prod-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.prod-rating svg {
  width: 13px;
  height: 13px;
  color: var(--light-red);
}
.prod-rating span {
  font-size: 12.5px;
  color: var(--gray);
}
.prod-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.prod-price {
  font-size: 17px;
  font-weight: 600;
  color: var(--forest);
}
.prod-price .old {
  font-size: 13px;
  color: #999;
  font-weight: 400;
  text-decoration: line-through;
  margin-left: 6px;
}
.add-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  flex-shrink: 0;
}
.add-cart-btn:hover {
  background: var(--maroon);
  transform: scale(1.08);
}
.add-cart-btn svg {
  width: 16px;
  height: 16px;
}
.mini-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--beige);
  border-radius: 999px;
  overflow: hidden;
}
.mini-qty button {
  width: 26px;
  height: 26px;
  font-size: 14px;
  color: var(--forest);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.mini-qty button:hover {
  background: var(--cream);
}
.mini-qty span {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}
.prod-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.center-more {
  text-align: center;
  margin-top: 48px;
}
.btn-ghost {
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--forest);
  color: var(--forest);
  font-weight: 600;
  font-size: 14.5px;
  transition: all 0.25s ease;
}
.btn-ghost:hover {
  background: var(--forest);
  color: #fff;
}
@media (max-width: 1000px) {
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .prod-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .prod-info {
    padding: 12px 12px 14px;
  }
  .prod-name {
    font-size: 14px;
  }
}

/* ---------- Promo banner ---------- */
.promo {
  background: linear-gradient(100deg, var(--maroon), var(--rich-red));
  padding: 52px 0;
  position: relative;
  overflow: hidden;
}
.promo::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  top: -160px;
  right: -80px;
}
.promo-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.promo-text p.tag {
  color: #f6d9ce;
  font-size: 13.5px;
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 8px;
}
.promo-text h3 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
}
.countdown {
  display: flex;
  gap: 14px;
}
.countdown .box {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-s);
  padding: 12px 16px;
  text-align: center;
  min-width: 64px;
}
.countdown .box .num {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  font-family: "Playfair Display", serif;
}
.countdown .box .lbl {
  color: #f6d9ce;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.promo .btn-primary {
  background: #fff;
  color: var(--maroon);
  box-shadow: none;
}
.promo .btn-primary:hover {
  background: #f6d9ce;
}

/* ---------- Why choose us ---------- */
.why {
  padding: 96px 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.why-item {
  text-align: center;
  padding: 8px;
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.why-icon svg {
  width: 26px;
  height: 26px;
  color: var(--forest);
}
.why-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.why-item p {
  font-size: 14px;
  color: var(--gray);
  max-width: 230px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Testimonials ---------- */
.testi {
  padding: 96px 0;
  background: var(--cream);
}
.testi-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}
.testi-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.testi-slide {
  min-width: 100%;
  padding: 0 20px;
}
.testi-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 22px;
}
.testi-stars svg {
  width: 16px;
  height: 16px;
  color: var(--light-red);
}
.testi-slide p.quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 26px;
}
.testi-person {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--forest);
}
.testi-person span {
  font-weight: 400;
  color: var(--gray);
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.testi-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--beige);
  transition: all 0.25s ease;
}
.testi-dots button.active {
  background: var(--forest);
  width: 22px;
  border-radius: 6px;
}

/* ---------- Newsletter ---------- */
.newsletter {
  padding: 90px 0;
  background: var(--forest);
  position: relative;
  overflow: hidden;
}
.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 80% 30%,
    rgba(107, 155, 90, 0.35),
    transparent 45%
  );
}
.news-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.news-inner p.kicker {
  color: #cfe3c8;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}
.news-inner h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}
.news-inner p.sub {
  color: #dce9d8;
  font-size: 15px;
  margin-bottom: 32px;
}
.news-form {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}
.news-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--charcoal);
}
.news-form input:focus {
  outline: none;
}
.news-form button {
  background: var(--rich-red);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: background 0.2s ease;
}
.news-form button:hover {
  background: var(--maroon);
}
.news-note {
  color: #b9d2b1;
  font-size: 12.5px;
  margin-top: 14px;
}
@media (max-width: 560px) {
  .news-form {
    flex-direction: column;
    border-radius: 20px;
  }
  .news-form button {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
footer {
  background: #1e3b1b;
  color: #d6e2d2;
  padding: 72px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.foot-brand img {
  height: 48px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.foot-brand p {
  font-size: 13.5px;
  color: #b7c9b2;
  max-width: 260px;
  line-height: 1.7;
}
.foot-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.foot-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.foot-social a:hover {
  background: var(--rich-red);
}
.foot-social svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
.foot-col h5 {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}
.foot-col ul li {
  margin-bottom: 11px;
}
.foot-col a {
  font-size: 13.5px;
  color: #b7c9b2;
  transition: color 0.2s ease;
}
.foot-col a:hover {
  color: #fff;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 26px 0;
  font-size: 12.5px;
  color: #9bb194;
}
.pay-icons {
  display: flex;
  gap: 10px;
}
.pay-icons span {
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #d6e2d2;
}
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  z-index: 470;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: #fff;
  z-index: 471;
  transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}
.cart-drawer.show {
  right: 0;
}
.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--beige);
}
.cart-head h3 {
  font-size: 20px;
}
.cart-head button svg {
  width: 20px;
  height: 20px;
  color: var(--gray);
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--beige);
}
.cart-item .swatch {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-s);
  flex-shrink: 0;
}
.ci-info {
  flex: 1;
}
.ci-info h5 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--charcoal);
  font-family: "Inter", sans-serif;
  margin-bottom: 4px;
}
.ci-info .ci-price {
  font-size: 13.5px;
  color: var(--forest);
  font-weight: 600;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.qty-row button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--beige);
  border-radius: 6px;
  font-size: 14px;
  color: var(--forest);
}
.qty-row span {
  font-size: 13.5px;
  min-width: 16px;
  text-align: center;
}
.ci-remove {
  color: #b3b3b3;
  font-size: 12px;
  text-decoration: underline;
  margin-top: 6px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
  font-size: 14px;
}
.cart-foot {
  padding: 22px 24px 28px;
  border-top: 1px solid var(--beige);
}
.cart-sub {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 600;
}
.cart-foot .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ---------- Quick view modal ---------- */
.qv-modal {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.qv-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.qv-box {
  background: #fff;
  border-radius: var(--radius-l);
  max-width: 760px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.3s ease;
  max-height: 88vh;
}
.qv-modal.show .qv-box {
  transform: translateY(0);
}
.qv-media {
  aspect-ratio: 1/1;
}
.qv-media .swatch {
  width: 100%;
  height: 100%;
}
.qv-content {
  padding: 32px;
  overflow-y: auto;
}
.qv-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.qv-content .prod-cat {
  margin-bottom: 8px;
}
.qv-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.qv-content .qv-price {
  font-size: 20px;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 16px;
}
.qv-content p.desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .qv-box {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

/* ---------- Product Detail Page (PDP) overlay ---------- */
.pdp-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  overflow-y: auto;
}
.pdp-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.pdp-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pdp-cart-btn {
  margin-left: auto;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--forest);
  flex-shrink: 0;
}
.pdp-cart-btn svg {
  width: 22px;
  height: 22px;
}
.pdp-cart-btn .cart-count {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--rich-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-weight: 600;
  font-size: 14px;
}
.pdp-back svg {
  width: 18px;
  height: 18px;
}
.pdp-crumb {
  color: var(--gray);
  font-size: 13px;
}
.pdp-crumb span {
  color: var(--charcoal);
}
.pdp-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 32px 100px;
}
.pdp-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
.pdp-media-main {
  aspect-ratio: 1/1;
  border-radius: var(--radius-l);
  overflow: hidden;
  margin-bottom: 14px;
}
.pdp-media-main .swatch {
  width: 100%;
  height: 100%;
}
.pdp-thumbs {
  display: flex;
  gap: 10px;
}
.pdp-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-s);
  cursor: pointer;
  border: 2px solid transparent;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.pdp-thumb.active {
  border-color: var(--forest);
}
.pdp-cat {
  font-size: 13px;
  color: var(--medium);
  font-weight: 600;
  margin-bottom: 8px;
}
.pdp-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 12px;
}
.pdp-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.pdp-rating-row .stars {
  display: flex;
  gap: 2px;
}
.pdp-rating-row .stars svg {
  width: 15px;
  height: 15px;
  color: var(--light-red);
}
.pdp-rating-row .rev-count {
  font-size: 13px;
  color: var(--gray);
  text-decoration: underline;
}
.pdp-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}
.pdp-price-row .price {
  font-size: 30px;
  font-weight: 700;
  color: var(--forest);
  font-family: "Playfair Display", serif;
}
.pdp-price-row .old {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}
.pdp-price-row .discount {
  font-size: 14px;
  color: var(--rich-red);
  font-weight: 600;
}
.pdp-tax {
  font-size: 12.5px;
  color: var(--gray);
  margin-bottom: 24px;
}
.pdp-highlights {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 26px;
}
.pdp-highlights li {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 6px;
}
.pdp-qty-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.pdp-qty-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}
.pdp-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--beige);
  border-radius: 999px;
  overflow: hidden;
}
.pdp-qty button {
  width: 38px;
  height: 38px;
  font-size: 17px;
  color: var(--forest);
  font-weight: 600;
}
.pdp-qty button:hover {
  background: var(--cream);
}
.pdp-qty span {
  min-width: 34px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.pdp-stock {
  font-size: 13px;
  color: var(--medium);
  font-weight: 600;
}
.pdp-cta-row {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.btn-wish {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid var(--beige);
  color: var(--charcoal);
  transition: all 0.2s ease;
}
.btn-wish svg {
  width: 17px;
  height: 17px;
}
.btn-wish:hover {
  border-color: var(--rich-red);
  color: var(--rich-red);
}
.pdp-delivery {
  border: 1px solid var(--beige);
  border-radius: var(--radius-m);
  padding: 18px 20px;
  margin-bottom: 32px;
}
.pdp-delivery-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--gray);
  padding: 8px 0;
}
.pdp-delivery-row:not(:last-child) {
  border-bottom: 1px dashed var(--beige);
}
.pdp-delivery-row svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
  flex-shrink: 0;
  margin-top: 1px;
}
.pdp-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--beige);
}
.pdp-section h4 {
  font-size: 19px;
  margin-bottom: 16px;
}
.pdp-desc {
  font-size: 14.5px;
  color: var(--gray);
  line-height: 1.8;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table tr td {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--beige);
}
.spec-table tr td:first-child {
  color: var(--gray);
  width: 160px;
}
.spec-table tr td:last-child {
  color: var(--charcoal);
  font-weight: 500;
}
.review-card {
  padding: 18px 0;
  border-bottom: 1px solid var(--beige);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.review-badge {
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-badge svg {
  width: 11px;
  height: 11px;
}
.review-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
}
.review-text {
  font-size: 13.5px;
  color: var(--gray);
  margin-top: 4px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .pdp-body {
    padding: 32px 20px 80px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* fade in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* toast — on mobile raise above bottom CTA */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 901px) {
  .toast {
    bottom: 26px;
  }
}

.pdp-made {
  width: 100%;
}

/* ================================================
   MOBILE BOTTOM CART CTA  (Blinkit-style)
   Hidden on desktop, slides up from bottom on mobile
   ================================================ */
.mobile-cart-cta {
  /* always in DOM but only rendered on mobile */
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--forest);
  color: #fff;
  padding: 14px 20px;
  border-radius: 16px 16px 0 0;
  align-items: center;
  justify-content: space-between;
  z-index: 460;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
  gap: 12px;
}
.mobile-cart-cta.show {
  transform: translateY(0);
}
.mcc-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mcc-count {
  font-size: 11px;
  color: #cfe3c8;
  font-weight: 500;
  margin-bottom: 1px;
  white-space: nowrap;
}
.mcc-price {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.mcc-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: inherit;
}
.mcc-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Only show on mobile (≤900px) */
@media (max-width: 900px) {
  .mobile-cart-cta {
    display: flex;
  }

  /* PDP extra padding at bottom so content isn't hidden behind CTA */
  .pdp-body {
    padding-bottom: 90px;
  }

  /* Breadcrumb wraps nicely on small screens */
  .pdp-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .pdp-crumb {
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 70px);
  }

  /* PDP grid stacks vertically */
  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pdp-body {
    padding: 24px 16px 90px;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* PDP CTA row stacks on very small screens */
  .pdp-cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .pdp-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .btn-wish {
    width: 100%;
    justify-content: center;
  }

  /* Thumbs scroll horizontally on mobile */
  .pdp-thumbs {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .pdp-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .mcc-price {
    font-size: 15px;
  }
  .mcc-btn {
    font-size: 13px;
    padding: 9px 13px;
  }
}

/* ============ AUTH & NAV ADDITIONS ============ */
.nav-divider {
  height: 1px;
  background: var(--beige);
  margin: 8px 0;
}
.nav-profile-header {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}
#navAuthSection {
  display: flex;
  flex-direction: column;
  gap: 26px; /* Match existing gap */
}
#navAuthSection a {
  color: var(--charcoal);
}
#navAuthSection .logout-link {
  color: var(--rich-red);
}

/* Auth Modal */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 40px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}
.auth-overlay.show .auth-modal {
  transform: translateY(0);
}
.close-auth {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray);
}
.close-auth svg {
  width: 20px;
  height: 20px;
}
.auth-modal h3 {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.auth-modal p {
  font-size: 14.5px;
  color: var(--gray);
  margin-bottom: 28px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--beige);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 32px;
  max-width: 1240px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  height: 46px;
  width: auto;
  object-fit: contain;
}
.nav-menu {
  display: flex;
  gap: 6px;
}
.nav-menu > a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray);
  position: relative;
  padding: 7px 12px;
  border-radius: var(--radius-xs);
  transition:
    color var(--transition),
    background var(--transition);
}
.nav-menu > a:hover {
  color: var(--forest);
  background: rgba(45, 90, 39, 0.07);
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-icons button {
  color: var(--charcoal);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition:
    background var(--transition),
    color var(--transition);
}
.nav-icons button:hover {
  background: var(--cream2);
  color: var(--forest);
}
.nav-icons svg {
  width: 20px;
  height: 20px;
}
.cart-count {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--rich-red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  line-height: 1;
}
.nav-burger {
  display: none;
  color: var(--charcoal);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.nav-burger:hover {
  background: var(--cream2);
}
.nav-burger svg {
  width: 22px;
  height: 22px;
}

/* Mobile close button for drawer */
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--cream2);
  color: var(--charcoal);
  cursor: pointer;
  border: none;
}
.nav-close svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100dvh;
    width: 82%;
    max-width: 300px;
    background: #fff;
    flex-direction: column;
    padding: 80px 28px 36px;
    gap: 4px;
    transition: right 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    z-index: 300;
    overflow-y: auto;
  }
  .nav-menu > a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-s);
    color: var(--charcoal);
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-close {
    display: flex;
  }
  .nav-burger {
    display: flex;
  }
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--beige);
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s ease;
}
.google-btn:hover {
  background: var(--cream);
}
.google-btn svg {
  width: 22px;
  height: 22px;
}

/* Hide mobile nav items on desktop */
.mobile-only-nav {
  display: none;
}
@media (max-width: 900px) {
  .mobile-only-nav {
    display: flex;
    flex-direction: column;
    gap: 26px; /* matches the nav-menu gap */
  }
}

/* ==============================================
   RANGLOOM � DESIGN UPGRADE OVERRIDES
   ============================================== */

/* ---- Hero ---- */
.hero {
  background: linear-gradient(130deg, #162f13 0%, #2d5a27 50%, #3d7535 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 100px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-text {
  max-width: 580px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #a8d4a0;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: #a8d4a0;
  border-radius: 2px;
}
.hero-text h1 {
  font-size: clamp(40px, 5.5vw, 66px);
  color: #fff;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-text h1 em {
  font-style: italic;
  color: #c8f0be;
}
.hero-text .sub {
  font-size: 16px;
  color: #b8d8b4;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-ctas .btn-primary {
  background: #fff;
  color: var(--forest);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 15px;
  padding: 14px 32px;
}
.hero-ctas .btn-primary:hover {
  background: #f0fce8;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.hero-ctas .btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  padding: 14px 32px;
}
.hero-ctas .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.3));
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 80px 24px 60px;
    text-align: left;
  }
  .hero {
    min-height: auto;
  }
  .hero-art {
    height: 200px;
    order: -1;
  }
}

/* ---- Marquee ---- */
.strip {
  background: var(--cream2);
  border-top: 1px solid var(--beige);
  border-bottom: 1px solid var(--beige);
  padding: 12px 0;
}
.strip-track span {
  font-size: 13px;
  color: var(--medium);
  font-weight: 500;
  font-style: normal;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.6px;
}

/* ---- Sections ---- */
.categories {
  padding: 88px 0;
  background: var(--white);
}
.products {
  padding: 88px 0;
  background: var(--cream);
}
.why {
  padding: 88px 0;
  background: var(--white);
}
.testi {
  padding: 88px 0;
  background: var(--cream2);
}
.section-head {
  margin-bottom: 52px;
}
.section-head p.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--medium);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--charcoal);
}
.section-head .rule {
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--rich-red), var(--maroon));
  border-radius: 2px;
}

/* ---- Category Cards ---- */
.cat-card {
  border-radius: var(--radius-l);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ---- Product Cards ---- */
.prod-card {
  border-radius: var(--radius-m);
  border-color: var(--beige);
}
.prod-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.prod-badge {
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.prod-name {
  font-size: 15.5px;
}
.add-cart-btn {
  width: 36px;
  height: 36px;
}
.add-cart-btn:hover {
  background: var(--maroon);
  transform: scale(1.1);
}

/* ---- Why Us ---- */
.why-grid {
  gap: 22px;
}
.why-item {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-l);
  border: 1px solid var(--beige);
  background: var(--cream);
  transition:
    box-shadow 0.28s ease,
    transform 0.28s ease,
    border-color 0.28s ease;
}
.why-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(45, 90, 39, 0.22);
}
.why-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(45, 90, 39, 0.1),
    rgba(107, 155, 90, 0.06)
  );
  border: 1px solid rgba(45, 90, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.why-icon svg {
  width: 28px;
  height: 28px;
  color: var(--forest);
}
.why-item h4 {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.why-item p {
  font-size: 13.5px;
  color: var(--gray);
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Testimonials ---- */
.testi-slide p.quote {
  position: relative;
  padding-top: 8px;
}
.testi-slide p.quote::before {
  content: "\201C";
  font-family: "Playfair Display", serif;
  font-size: 80px;
  color: var(--medium);
  opacity: 0.18;
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.testi-dots button.active {
  width: 24px;
}

/* ---- Newsletter ---- */
.newsletter {
  background: linear-gradient(
    135deg,
    #1e3b1b 0%,
    var(--forest) 60%,
    #3d7535 100%
  );
}
.news-form {
  border-radius: var(--radius-m);
}
.news-form button {
  border-radius: var(--radius-s);
}

/* ---- Footer ---- */
footer {
  background: #111d0f;
}
.foot-col h5 {
  font-size: 11px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}
.foot-col a {
  font-size: 13.5px;
  color: #9dbf96;
}
.foot-col a:hover {
  color: #fff;
}
.foot-social a {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.foot-social a:hover {
  background: var(--forest);
  border-color: var(--forest);
}

/* ---- Cart Drawer ---- */
.cart-drawer {
  border-radius: var(--radius-l) 0 0 var(--radius-l);
}

/* ---- Auth Modal ---- */
.auth-modal {
  border-radius: var(--radius-xl);
}
.auth-modal h3 {
  color: var(--charcoal);
}

/* ---- Mobile Menu ---- */
.mobile-only-nav {
  border-top: 1px solid var(--beige);
  padding-top: 12px;
  margin-top: 4px;
}
.mobile-only-nav a,
#navAuthSection a {
  font-size: 15px;
  color: var(--gray);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  display: block;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.mobile-only-nav a:hover,
#navAuthSection a:hover {
  background: rgba(45, 90, 39, 0.08);
  color: var(--forest);
}
.logout-link {
  color: var(--rich-red) !important;
}
.nav-profile-header {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  font-weight: 700;
  padding: 6px 14px 2px;
}
#navAuthSection {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ---- Toast ---- */
.toast {
  background: var(--charcoal);
  border-radius: var(--radius-m);
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
}

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  .categories,
  .products,
  .why,
  .testi {
    padding: 60px 0;
  }
  .section-head {
    margin-bottom: 36px;
  }
}

/* ================================================
   LOCATION SYSTEM � Blinkit Style
   ================================================ */

/* --- Navbar Location Button --- */
.loc-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--beige);
  background: #fff;
  cursor: pointer;
  max-width: 240px;
  transition:
    border-color 0.2s,
    background 0.2s;
  flex-shrink: 0;
}
.loc-btn:hover {
  border-color: var(--forest);
  background: rgba(45, 90, 39, 0.04);
}
.loc-pin {
  width: 18px;
  height: 18px;
  color: var(--forest);
  flex-shrink: 0;
}
.loc-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.loc-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}
.loc-area {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
  line-height: 1.1;
}
.loc-chevron {
  width: 14px;
  height: 14px;
  color: var(--gray);
  flex-shrink: 0;
  margin-left: 2px;
  transition: transform 0.2s;
}
.loc-btn.active .loc-chevron {
  transform: rotate(180deg);
}

/* Hide on very small or hide text on medium */
@media (max-width: 640px) {
  .loc-area {
    max-width: 90px;
    font-size: 12.5px;
  }
  .loc-label {
    display: none;
  }
}
@media (max-width: 400px) {
  .loc-btn {
    max-width: none;
  }
  .loc-text {
    display: none;
  }
  .loc-chevron {
    display: none;
  }
}

/* --- Location Modal Overlay --- */
.loc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  z-index: 800;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.loc-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .loc-overlay {
    align-items: flex-end;
    padding-top: 0;
  }
}

/* --- Modal Box --- */
.loc-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(-12px);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.loc-overlay.show .loc-modal {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .loc-modal {
    border-radius: 20px 20px 0 0;
    max-width: 100%;
    transform: translateY(40px);
    padding: 24px 20px 32px;
  }
  .loc-overlay.show .loc-modal {
    transform: translateY(0);
  }
}

/* --- Modal Header --- */
.loc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.loc-modal-head h3 {
  font-size: 18px;
  font-family: "Playfair Display", serif;
  color: var(--charcoal);
}
.loc-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: none;
  cursor: pointer;
  color: var(--gray);
  transition: background 0.2s;
}
.loc-modal-close:hover {
  background: var(--beige);
}
.loc-modal-close svg {
  width: 16px;
  height: 16px;
}

/* --- Detect GPS Button --- */
.loc-detect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 2px solid rgba(45, 90, 39, 0.25);
  background: rgba(45, 90, 39, 0.04);
  color: var(--forest);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.loc-detect-btn:hover {
  border-color: var(--forest);
  background: rgba(45, 90, 39, 0.08);
}
.loc-detect-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.loc-detect-btn.loading span::after {
  content: "�";
}

/* --- OR Divider --- */
.loc-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--gray-light);
  font-size: 12.5px;
  font-weight: 500;
}
.loc-or::before,
.loc-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--beige);
}

/* --- Manual Form --- */
.loc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loc-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--beige);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color 0.2s;
}
.loc-input-wrap:focus-within {
  border-color: var(--forest);
}
.loc-input-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--gray-light);
  flex-shrink: 0;
}
.loc-input-wrap input {
  flex: 1;
  border: none;
  background: none;
  padding: 13px 0;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--charcoal);
  outline: none;
}
.loc-input-wrap input::placeholder {
  color: #bbb;
}
.loc-confirm-btn {
  padding: 13px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.loc-confirm-btn:hover {
  background: var(--medium);
  transform: translateY(-1px);
}

/* --- Recent Locations --- */
.loc-recent {
  margin-top: 20px;
}
.loc-recent-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-light);
  margin-bottom: 8px;
}
.loc-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
  font-size: 14px;
  color: var(--charcoal);
}
.loc-recent-item:hover {
  background: var(--cream);
}
.loc-recent-item svg {
  width: 16px;
  height: 16px;
  color: var(--gray-light);
  flex-shrink: 0;
}

/* --- Detected Address Card --- */
.loc-detected-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(45, 90, 39, 0.06);
  border: 1.5px solid rgba(45, 90, 39, 0.2);
}
.loc-detected-wrap svg {
  width: 22px;
  height: 22px;
  color: var(--forest);
  flex-shrink: 0;
}
.loc-detected-area {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.loc-detected-sub {
  font-size: 12px;
  color: var(--gray);
}
.loc-use-btn {
  margin-left: auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.loc-use-btn:hover {
  background: var(--medium);
}

/* --- Serviceable Badge on hero --- */
.loc-serviceable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #6fcf6f;
  background: rgba(111, 207, 111, 0.12);
  border: 1px solid rgba(111, 207, 111, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.loc-serviceable svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ================================================
   MODERN NAVBAR � Animated & Transitions
   ================================================ */

/* Scroll shadow on navbar */
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Animated burger ? X */
.nav-burger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.nav-burger-icon span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s;
  transform-origin: center;
}
.nav-burger.open .nav-burger-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.open .nav-burger-icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.open .nav-burger-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav menu backdrop overlay (mobile) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 299;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-backdrop.show {
  opacity: 1;
}
@media (max-width: 900px) {
  .nav-backdrop {
    display: block;
    pointer-events: none;
  }
  .nav-backdrop.show {
    pointer-events: auto;
  }
}

/* Desktop nav link � slide-up underline animation */
.nav-menu > a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--forest), var(--medium));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-menu > a:hover::after {
  transform: scaleX(1);
}

/* Location button pulse ring on first visit */
@keyframes locPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 90, 39, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(45, 90, 39, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 90, 39, 0);
  }
}
.loc-btn.pulse {
  animation: locPulse 1.6s ease 3;
}

/* ================================================
   MAP LOCATION MODAL � Blinkit / Zomato Style
   ================================================ */

/* Full-bleed larger modal to accommodate map */
.loc-modal {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}
@media (max-width: 600px) {
  .loc-modal {
    border-radius: 20px 20px 0 0;
    max-height: 94dvh;
    overflow-y: auto;
  }
}

.loc-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 0;
  margin-bottom: 0;
}
.loc-modal-head h3 {
  flex: 1;
  font-size: 17px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--charcoal);
}
.loc-modal-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.loc-modal-back:hover {
  background: var(--beige);
}
.loc-modal-back svg {
  width: 18px;
  height: 18px;
  color: var(--charcoal);
}
.loc-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.loc-modal-close:hover {
  background: var(--beige);
}
.loc-modal-close svg {
  width: 16px;
  height: 16px;
  color: var(--gray);
}

/* Step 1 padding */
#locStep1 {
  padding: 14px 20px 20px;
}

/* Search box */
.loc-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--beige);
  border-radius: 12px;
  padding: 0 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: var(--cream);
  margin-bottom: 14px;
}
.loc-search-wrap:focus-within {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
  background: #fff;
}
.loc-search-wrap > svg {
  width: 17px;
  height: 17px;
  color: var(--gray-light);
  flex-shrink: 0;
}
.loc-search-wrap input {
  flex: 1;
  border: none;
  background: none;
  padding: 13px 0;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--charcoal);
  outline: none;
}
.loc-search-wrap input::placeholder {
  color: #bbb;
}
.loc-search-clear {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--beige);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-search-clear svg {
  width: 11px;
  height: 11px;
  color: var(--gray);
}

/* Suggestions dropdown */
.loc-suggestions {
  border: 1px solid var(--beige);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.loc-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--beige);
}
.loc-suggestion-item:last-child {
  border-bottom: none;
}
.loc-suggestion-item:hover {
  background: var(--cream);
}
.loc-suggestion-item svg {
  width: 18px;
  height: 18px;
  color: var(--gray-light);
  flex-shrink: 0;
  margin-top: 2px;
}
.loc-sug-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}
.loc-sug-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

/* GPS detect button */
.loc-detect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(45, 90, 39, 0.2);
  background: rgba(45, 90, 39, 0.04);
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color 0.2s,
    background 0.2s;
  margin-bottom: 16px;
}
.loc-detect-btn:hover {
  border-color: var(--forest);
  background: rgba(45, 90, 39, 0.08);
}
.loc-detect-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-detect-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.loc-detect-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
}
.loc-detect-sub {
  display: block;
  font-size: 12px;
  color: var(--gray);
}

/* Recent list */
.loc-recent {
  margin-top: 4px;
}
.loc-recent-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-light);
  margin-bottom: 6px;
}
.loc-recent-title svg {
  width: 14px;
  height: 14px;
}
.loc-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.loc-recent-item:hover {
  background: var(--cream);
}
.loc-recent-item svg {
  width: 16px;
  height: 16px;
  color: var(--gray-light);
}
.loc-recent-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
}
.loc-recent-item-sub {
  font-size: 12px;
  color: var(--gray);
}

/* ---- Step 2: MAP ---- */
#locStep2 {
  display: none;
}
.loc-map-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}
#locMap {
  width: 100%;
  height: 100%;
}
@media (max-width: 480px) {
  .loc-map-wrap {
    height: 240px;
  }
}

/* Center pin (fixed, stays centered while map pans � like Blinkit) */
.loc-map-pin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.loc-map-pin-dot {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background: var(--forest);
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.4);
  border: 3px solid #fff;
}
.loc-map-pin-shadow {
  width: 14px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  margin-top: 4px;
}
@keyframes pinBounce {
  0%,
  100% {
    transform: translate(-50%, -108%);
  }
  50% {
    transform: translate(-50%, -118%);
  }
}
.loc-map-pin-center.moving {
  animation: pinBounce 0.4s ease infinite;
}

/* GPS button on map */
.loc-map-gps-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.loc-map-gps-btn:hover {
  background: var(--cream);
}
.loc-map-gps-btn svg {
  width: 20px;
  height: 20px;
  color: var(--forest);
}

/* Address bar below map */
.loc-map-address-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid var(--beige);
}
.loc-map-addr-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(45, 90, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-map-addr-icon svg {
  width: 20px;
  height: 20px;
  color: var(--forest);
}
.loc-map-addr-text {
  flex: 1;
  min-width: 0;
}
.loc-map-area {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-map-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

/* Spinner */
.loc-map-addr-spin {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--beige);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  flex-shrink: 0;
}
.loc-map-addr-spin.active {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Confirm button */
.loc-confirm-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 12px 20px 20px;
  padding: 14px;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  box-shadow: 0 4px 16px rgba(45, 90, 39, 0.35);
}
.loc-confirm-btn:hover {
  background: var(--medium);
  transform: translateY(-1px);
}

/* ================================================
   LOCATION MODAL v2 - Map Pin Drop Styles
   ================================================ */

/* Modal wider for map step */
.loc-modal {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.loc-modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--beige);
  flex-shrink: 0;
}
.loc-modal-head h3 {
  flex: 1;
  font-size: 17px;
  font-family: "Playfair Display", serif;
  color: var(--charcoal);
  margin: 0;
}
.loc-modal-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  flex-shrink: 0;
  transition: background 0.18s;
}
.loc-modal-back:hover {
  background: var(--beige);
}
.loc-modal-back svg {
  width: 16px;
  height: 16px;
}
.loc-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  flex-shrink: 0;
  transition: background 0.18s;
}
.loc-modal-close:hover {
  background: var(--beige);
}
.loc-modal-close svg {
  width: 15px;
  height: 15px;
}

/* Step 1 padding */
#locStep1 {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Search wrap */
.loc-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--beige);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  transition: border-color 0.2s;
}
.loc-search-wrap:focus-within {
  border-color: var(--forest);
}
.loc-search-wrap > svg {
  width: 17px;
  height: 17px;
  color: var(--gray-light);
  flex-shrink: 0;
}
.loc-search-wrap input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--charcoal);
  outline: none;
}
.loc-search-wrap input::placeholder {
  color: #bbb;
}
.loc-search-clear {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--beige);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gray);
}
.loc-search-clear svg {
  width: 12px;
  height: 12px;
}

/* Suggestions dropdown */
.loc-suggestions {
  border: 1px solid var(--beige);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
.loc-sug-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--beige);
  transition: background 0.15s;
}
.loc-sug-item:last-child {
  border-bottom: none;
}
.loc-sug-item:hover {
  background: var(--cream);
}
.loc-sug-item > svg {
  width: 16px;
  height: 16px;
  color: var(--medium);
  flex-shrink: 0;
}
.loc-sug-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
}
.loc-sug-sub {
  font-size: 11.5px;
  color: var(--gray);
  margin-top: 1px;
}

/* GPS detect button */
.loc-detect-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(45, 90, 39, 0.2);
  background: rgba(45, 90, 39, 0.04);
  color: var(--charcoal);
  font-family: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  text-align: left;
}
.loc-detect-btn:hover {
  border-color: var(--forest);
  background: rgba(45, 90, 39, 0.08);
}
.loc-detect-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.loc-detect-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(45, 90, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-detect-icon svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}
.loc-detect-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 2px;
}
.loc-detect-sub {
  font-size: 12px;
  color: var(--gray);
}

/* Recent list */
.loc-recent {
  border-top: 1px solid var(--beige);
  padding-top: 12px;
}
.loc-recent-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-light);
  margin-bottom: 6px;
}
.loc-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.loc-recent-item:hover {
  background: var(--cream);
}
.loc-recent-item > svg {
  width: 15px;
  height: 15px;
  color: var(--gray-light);
  flex-shrink: 0;
}
.loc-recent-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
}
.loc-recent-item-sub {
  font-size: 11.5px;
  color: var(--gray);
}

/* ---- Step 2: Map ---- */
#locStep2 {
  display: flex;
  flex-direction: column;
}

.loc-map-container {
  position: relative;
  height: 300px;
  width: 100%;
  background: #e8e4de;
}
#locMap {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Fixed center pin */
.loc-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.15s ease;
}
.loc-map-pin svg {
  width: 36px;
  height: 48px;
  display: block;
}
.loc-map-pin-shadow {
  width: 14px;
  height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  margin: 0 auto;
  transform: scaleX(1.2);
}

/* GPS re-center button on map */
.loc-map-gps-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--forest);
  transition: background 0.18s;
}
.loc-map-gps-btn:hover {
  background: var(--cream);
}
.loc-map-gps-btn svg {
  width: 20px;
  height: 20px;
}
.loc-map-gps-btn.spinning svg {
  animation: spin 1s linear infinite;
}

/* Address card below map */
.loc-map-address-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-top: 1px solid var(--beige);
  background: #fff;
}
.loc-map-address-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(45, 90, 39, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.loc-map-address-icon svg {
  width: 18px;
  height: 18px;
  color: var(--forest);
}
.loc-map-address-text {
  flex: 1;
  min-width: 0;
}
.loc-map-area {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-map-sub {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Spinner */
.loc-map-spin {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2.5px solid var(--beige);
  border-top-color: var(--forest);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}
.loc-map-spin.active {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Confirm button */
.loc-confirm-btn {
  margin: 0 20px 20px;
  padding: 14px;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  box-shadow: 0 4px 16px rgba(45, 90, 39, 0.3);
}
.loc-confirm-btn:hover {
  background: var(--medium);
  transform: translateY(-1px);
}

/* Mobile: full-width sheet from bottom */
@media (max-width: 600px) {
  .loc-modal {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }
  .loc-map-container {
    height: 240px;
  }
}

/* Leaflet z-index fix inside modal */
.loc-map-container .leaflet-control-zoom {
  z-index: 5;
}
.loc-map-container .leaflet-pane {
  z-index: 3;
}

/* ================================================
   LOCATION v3  Google PlaceAutocompleteElement styles
   ================================================ */

/* Container for the Google autocomplete web component */
.loc-autocomplete-container {
  width: 100%;
  margin-bottom: 4px;
}

/* Style the gmp-place-autocomplete web component input to match our design */
.loc-autocomplete-container gmp-place-autocomplete {
  width: 100%;
  display: block;
}

/* Override Google autocomplete internal styles via CSS custom properties */
gmp-place-autocomplete {
  --gmp-input-font-family: "Inter", sans-serif;
  --gmp-input-font-size: 14px;
  --gmp-input-padding: 12px 14px;
  --gmp-input-border-radius: 10px;
  --gmp-input-border-color: #e4e1db;
  --gmp-input-border-width: 1.5px;
  --gmp-input-background: #fff;
  --gmp-input-placeholder-color: #bbb;
  --gmp-input-outline-color: #2d5a27;
  width: 100%;
}

/* Ensure the autocomplete list appears above modal */
.pac-container {
  z-index: 2000 !important;
  border-radius: 10px;
  border: 1px solid #e4e1db;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  font-family: "Inter", sans-serif;
}
.pac-item {
  padding: 10px 14px;
  cursor: pointer;
  border-top: 1px solid #f0ede7;
}
.pac-item:hover { background: #f8f5f0; }
.pac-item-query { font-size: 14px; font-weight: 600; color: #2c2c2c; }
.pac-secondary { font-size: 12px; color: #888; }
.pac-icon { display: none; }

/* Override: map pin center stays centered (Google map has no CSS position needed for pin) */
.loc-map-container {
  position: relative;
}
/* Center crosshair dot for the Google Map */
.loc-map-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 10;
  pointer-events: none;
}


/* ═══════════════════════════════════════
   Profile Button & Dropdown
═══════════════════════════════════════ */
.profile-btn-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #e8e2d5;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 9999;
  overflow: hidden;
  animation: dropIn 0.2s ease;
}
.profile-dropdown.open { display: block; }

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pd-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f0f7ee, #fff);
  border-bottom: 1px solid #e8e2d5;
}
.pd-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--forest, #2d5a27);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pd-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.pd-info span {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
  display: block;
}

.pd-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: background 0.15s;
}
.pd-link:hover { background: #f5f1eb; }
.pd-link svg { width: 16px; height: 16px; flex-shrink: 0; color: #555; }

.pd-divider { height: 1px; background: #eee; margin: 4px 0; }

.pd-logout { color: #c0392b; }
.pd-logout svg { color: #c0392b; }
.pd-logout:hover { background: #fff5f5; }

/* Guest state */
.pd-guest {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pd-guest p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}
.pd-login-btn {
  background: var(--forest, #2d5a27);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  transition: background 0.2s;
}
.pd-login-btn:hover { background: #1e3d1b; }
