:root {
  color-scheme: light;
  --green: #35875a;
  --green-dark: #1f6e45;
  --gold: #f8c914;
  --ink: #202124;
  --muted: #7b7d7d;
  --line: #e7e7e7;
  --surface: #ffffff;
  --soft: #fbfbfb;
  --shadow: 0 18px 45px rgba(26, 63, 42, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
}

body.cart-open {
  overflow: hidden;
}

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

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

button,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 8px clamp(22px, 5vw, 110px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 270px;
}

.logo-tile {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
  flex: 0 0 auto;
}

.logo-tile img {
  width: 92px;
  max-width: none;
  height: 132px;
  object-fit: cover;
  object-position: center 35%;
  mix-blend-mode: multiply;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: #1d1d1d;
  font-size: 22px;
  line-height: 1;
}

.brand-text small {
  margin-top: 4px;
  color: #7a6b4d;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 58px);
  color: #252525;
  font-size: 18px;
  font-weight: 500;
}

nav a {
  padding: 16px 0;
  white-space: nowrap;
}

.whatsapp-pill,
.cart-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: var(--radius);
  background: #25d366;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.22);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.cart-trigger {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(53, 135, 90, 0.22);
  border-radius: var(--radius);
  background: #fff;
  color: var(--green-dark);
  cursor: pointer;
}

.cart-trigger svg {
  width: 22px;
  height: 22px;
}

.cart-trigger b {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #1d2d21;
  font-size: 12px;
}

.whatsapp-pill svg,
.cart-whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(34px, 5vw, 76px) clamp(22px, 7vw, 150px) clamp(42px, 6vw, 90px);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #17221b;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 18px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: clamp(360px, 36vw, 560px);
  object-fit: cover;
}

.best-sellers {
  padding: 22px clamp(22px, 5vw, 96px) 72px;
}

.section-title {
  margin: 0 auto 42px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 8px;
  color: var(--green);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title p {
  margin-bottom: 0;
  color: #7d7f80;
  font-size: clamp(20px, 2vw, 30px);
  font-style: italic;
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3vw, 48px);
  align-items: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 42px);
}

.product-card {
  position: relative;
  min-width: 0;
  transition: transform 220ms ease, filter 220ms ease;
}

.image-wrap {
  position: relative;
  min-height: 300px;
  overflow: visible;
  border-radius: 0 0 46px 0;
  background: #fcfcfc;
}

.image-wrap img {
  width: 100%;
  height: 300px;
  border-radius: 0 0 46px 0;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.02);
}

.discount {
  position: absolute;
  top: 40px;
  left: -14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 22px 0 16px;
  background: var(--gold);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  clip-path: polygon(0 0, 84% 0, 100% 50%, 84% 100%, 0 100%);
}

.discount::after {
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 14px;
  height: 30px;
  background: #e7b800;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  content: "";
}

.discount svg {
  width: 20px;
  height: 20px;
}

.quick-view {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: #ffdf46;
  color: var(--green);
  cursor: pointer;
  transform: translate(0, 50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.quick-view svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

.product-content {
  padding-top: 32px;
  text-align: center;
}

.category {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-content h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.price-row strong {
  color: var(--green);
  font-size: 26px;
  font-weight: 500;
}

.price-row span,
.price-row del {
  color: #7a7d7e;
  font-size: 18px;
}

.tray-select {
  position: relative;
  display: block;
  margin-bottom: 14px;
}

.tray-select select {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid #dddddd;
  border-radius: var(--radius);
  background: #fff;
  color: var(--green);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tray-select::after {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 2px solid #a0a4a6;
  border-bottom: 2px solid #a0a4a6;
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
  content: "";
}

.add-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.add-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(53, 135, 90, 0.2);
}

.add-button.added {
  background: #f8c914;
  color: #1f3c2b;
  transform: scale(0.98);
}

.product-card.just-added {
  animation: added-card 520ms ease;
}

.fly-cart-badge {
  position: absolute;
  right: 14px;
  bottom: 88px;
  z-index: 4;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
  animation: fly-to-cart 900ms ease forwards;
  box-shadow: 0 12px 22px rgba(53, 135, 90, 0.26);
}

@keyframes added-card {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fly-to-cart {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(90px, -120px) scale(0.74);
  }
}

.info-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 72px clamp(22px, 7vw, 150px);
  background: #f7fbf8;
}

.info-band article {
  padding: 28px;
  border: 1px solid #edf0ee;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.info-band svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--green);
}

.info-band h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.info-band p,
.cart-section p {
  color: var(--muted);
  line-height: 1.65;
}

.cart-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 54px;
  align-items: start;
  padding: 76px clamp(22px, 7vw, 150px);
}

.cart-section h2 {
  margin-bottom: 12px;
  color: var(--green);
  font-size: clamp(32px, 3vw, 48px);
  font-weight: 500;
}

.cart {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 120px;
  padding: 18px;
}

.empty {
  margin: auto 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius);
  background: #f7fbf8;
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.cart-whatsapp {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(21, 45, 32, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  width: min(620px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -22px 0 45px rgba(0, 0, 0, 0.16);
  transform: translateX(105%);
  transition: transform 260ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.drawer-header button,
.popup-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
}

.drawer-header svg,
.popup-close svg {
  width: 28px;
  height: 28px;
}

.delivery-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 24px;
  background: linear-gradient(90deg, #eefce6 0%, #fffbe8 100%);
  color: #20362a;
  font-size: 18px;
}

.delivery-strip.free {
  background: #e7f8ee;
}

.delivery-strip svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.delivery-strip p {
  margin: 0;
}

.delivery-strip strong {
  color: var(--green);
  font-weight: 800;
}

.cart-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 54px 24px;
  text-align: center;
}

.cart-empty-state[hidden] {
  display: none;
}

.cart-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--green-dark);
}

.cart-empty-state h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.drawer-items {
  align-content: start;
  overflow-y: auto;
  min-height: 0;
  padding: 22px;
}

.drawer-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.drawer-footer[hidden] {
  display: none;
}

.payment-options {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 232, 0.62);
}

.payment-options p {
  margin: 0;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 800;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(53, 135, 90, 0.16);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.payment-options input {
  accent-color: var(--green);
}

.advance-field {
  display: grid;
  grid-template-columns: 1fr 150px;
}

.advance-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--green-dark);
  font-weight: 800;
}

.cart-balance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 0 18px 16px;
  color: var(--muted);
}

.cart-balance strong {
  color: var(--green-dark);
}

.razorpay-button {
  width: calc(100% - 36px);
  min-height: 48px;
  margin: 0 18px 12px;
  border: 0;
  border-radius: var(--radius);
  background: #17231b;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
}

.razorpay-button[hidden] {
  display: none;
}

.payment-help {
  margin: -4px 18px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.payment-help[hidden] {
  display: none;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.35);
  animation: whatsapp-pulse 2.4s ease infinite;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.whatsapp-popup {
  position: fixed;
  right: 24px;
  bottom: 98px;
  z-index: 61;
  width: min(320px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid rgba(53, 135, 90, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 248, 232, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.whatsapp-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.whatsapp-popup strong {
  display: block;
  padding-right: 34px;
  color: var(--green-dark);
  font-size: 18px;
}

.whatsapp-popup p {
  margin: 8px 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.whatsapp-popup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius);
  background: #25d366;
  color: #fff;
  font-weight: 800;
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.footer {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 32px clamp(22px, 7vw, 150px);
  border-top: 1px solid rgba(53, 135, 90, 0.14);
  background: rgba(255, 248, 232, 0.9);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.footer-logo {
  width: 78px;
  height: 78px;
}

.footer-logo img {
  width: 112px;
  height: 158px;
  mix-blend-mode: normal;
}

.footer h2 {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-size: 24px;
}

.footer p {
  margin: 0;
  color: #6c665b;
}

.footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(53, 135, 90, 0.18);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 270px 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .whatsapp-pill {
    padding: 0 16px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar,
  .hero,
  .info-band,
  .cart-section,
  .footer {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    font-size: 16px;
  }

  .hero {
    padding-top: 30px;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-wrap,
  .image-wrap img {
    min-height: 340px;
    height: 340px;
  }

  .footer a {
    justify-self: start;
  }

  .cart-drawer {
    width: 100vw;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding-inline: 18px;
  }

  .best-sellers,
  .hero,
  .info-band,
  .cart-section,
  .footer {
    padding-inline: 18px;
  }

  h1 {
    font-size: 40px;
  }

  .quick-view {
    width: 64px;
    height: 64px;
  }

  .product-content h3 {
    font-size: 22px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

}
