
:root {
  --green: #075b34;
  --green-dark: #034523;
  --orange: #e64a08;
  --red: #9f1818;
  --gold: #d99b18;
  --cream: #fff9ef;
  --surface: #ffffff;
  --surface-soft: #fff4e5;
  --text: #211812;
  --muted: #73645b;
  --border: #ead8c0;
  --success: #13733b;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(67,37,15,.11);
}

body.dark {
  --cream: #111714;
  --surface: #18211c;
  --surface-soft: #202b24;
  --text: #f5efe8;
  --muted: #c7bdb4;
  --border: #33453a;
  --shadow: 0 18px 50px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  transition: background .2s ease, color .2s ease;
}

button, input, select, textarea { font: inherit; }

.offer-bar { overflow: hidden; color: white; background: var(--green-dark); }

.offer-marquee {
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 10px max(18px, calc((100vw - 1320px) / 2));
  background: color-mix(in srgb, var(--cream) 96%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 5px 18px rgba(0,0,0,.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 76px; height: 76px; object-fit: contain; }
.brand strong { display: block; color: var(--green); font-family: Georgia, serif; font-size: 23px; }
.brand span { display: block; color: #9a5417; font-size: 12px; font-weight: 700; }

.primary-nav { display: flex; gap: 21px; }
.primary-nav a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 800; }
.primary-nav a:hover { color: var(--orange); }

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

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  transition: transform .22s ease, box-shadow .22s ease;
}

.social-icon i { font-size: 28px; }

.social-icon.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-icon.whatsapp { background: #25d366; }

.social-icon:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 22px rgba(0,0,0,.24);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  padding: 11px 14px;
  color: white;
  background: var(--orange);
  border: 0;
  border-radius: 11px;
  font-weight: 900;
  cursor: pointer;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: var(--orange);
  background: white;
  border-radius: 999px;
  font-size: 12px;
}

main { width: min(1320px, calc(100% - 24px)); margin: auto; }

.hero {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 22px;
  align-items: stretch;
  padding: 34px 0 18px;
}

.hero-copy {
  padding: clamp(30px, 6vw, 72px);
  color: white;
  background: radial-gradient(circle at 85% 15%, rgba(217,155,24,.35), transparent 28%), linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #ffd76f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--orange); }

.hero h1, .section-heading h2, .desktop-summary h2, .checkout-card h2, .drawer h2, .pickup-card h2 {
  margin: 0;
  font-family: Georgia, serif;
  line-height: 1.1;
}

.hero h1 { max-width: 760px; font-size: clamp(40px, 6vw, 72px); }
.hero p { max-width: 650px; margin: 20px 0 0; color: rgba(255,255,255,.9); font-size: 17px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-actions a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 900;
}

.primary-link { color: var(--green-dark); background: white; }
.secondary-link { color: white; border: 1px solid rgba(255,255,255,.45); }

.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; color: #fff3cb; font-size: 13px; font-weight: 700; }

.hero-logo-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-logo-card img { width: min(100%, 320px); max-height: 310px; object-fit: contain; }
.hero-logo-card strong { color: var(--green); font-family: Georgia, serif; font-size: 22px; }
.hero-logo-card span { color: var(--muted); }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 12px 0 38px;
}

.quick-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(67,37,15,.05);
}

.quick-actions i { width: 28px; color: var(--orange); font-size: 24px; text-align: center; }
.quick-actions span, .quick-actions strong, .quick-actions small { display: block; }
.quick-actions small { color: var(--muted); }

.featured-section { padding: 18px 0 26px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2 { font-size: clamp(32px, 4vw, 46px); }
.section-heading > span { color: var(--muted); }

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

.mini-product-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mini-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-product-card img { width: 100%; height: 180px; object-fit: cover; background: #f1e5d6; transition: transform .3s ease; }
.mini-product-card:hover img { transform: scale(1.04); }
.mini-product-card div { padding: 14px; }
.mini-product-card h3 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 18px; }
.mini-product-card span { color: var(--success); font-weight: 900; }

.catalog { padding: 36px 0 56px; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px,1fr) 200px 200px auto;
  gap: 12px;
  margin-bottom: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid #cfbda7;
  border-radius: 10px;
}

.search-field input { padding-left: 0; border: 0; background: transparent; }
.search-field input:focus { outline: none; }

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #cfbda7;
  border-radius: 10px;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(217,155,24,.22);
  border-color: var(--gold);
}

.wishlist-filter {
  width: auto;
  padding: 0 16px;
  color: var(--red);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.wishlist-filter.active { color: white; background: var(--red); }

.categories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 18px; }
.categories button {
  flex: 0 0 auto;
  width: auto;
  padding: 10px 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.categories button.active, .categories button:hover { color: white; background: var(--red); border-color: var(--red); }

.page-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 20px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 9px 26px rgba(67,37,15,.07);
  transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(67,37,15,.14); }

.image-wrap { position: relative; height: 235px; overflow: hidden; background: #f1e5d6; }
.image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .image-wrap img { transform: scale(1.05); }

.image-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 20px;
  color: var(--green);
  background: linear-gradient(135deg,#fff2df,white);
  text-align: center;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 700;
}

.brand-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: white;
  background: rgba(7,91,52,.92);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.wishlist-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--red);
  background: rgba(255,255,255,.93);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.wishlist-button.active { color: white; background: var(--red); }

.product-body { padding: 16px; }
.product-category { color: var(--orange); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.product-body h3 { margin: 5px 0 7px; font-family: Georgia, serif; font-size: 21px; line-height: 1.2; }

.product-description {
  max-height: 42px;
  min-height: 42px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  transition: max-height .35s ease;
}

@media (hover:hover) {
  .product-card:hover .product-description { max-height: 300px; }
}

.read-more-btn {
  display: none;
  margin: 0 0 14px;
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.variant-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.variant-grid button {
  padding: 8px 5px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid #dbc8b1;
  border-radius: 8px;
  cursor: pointer;
}

.variant-grid button span, .variant-grid button strong { display: block; font-size: 12px; }
.variant-grid button.active { color: white; background: var(--red); border-color: var(--red); }

.quantity-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 15px; }
.quantity-row > strong { color: var(--success); font-size: 18px; }

.quantity-control {
  display: grid;
  grid-template-columns: 36px 44px 36px;
  overflow: hidden;
  border: 1px solid #dbc8b1;
  border-radius: 9px;
}

.quantity-control button { width: 36px; min-height: 36px; color: var(--text); background: var(--surface); border: 0; cursor: pointer; font-size: 18px; }
.quantity-control span { display: grid; place-items: center; border-right: 1px solid #e4d7c8; border-left: 1px solid #e4d7c8; font-weight: 900; }

.empty-state { padding: 48px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--border); border-radius: 18px; text-align: center; }
.empty-state i { font-size: 34px; }

.desktop-summary {
  position: sticky;
  top: 108px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.summary-title { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 14px; }
.summary-title h2 { font-size: 28px; }
.summary-title > span { color: var(--muted); font-size: 13px; }

.summary-list { display: grid; gap: 8px; max-height: 430px; overflow-y: auto; }

.summary-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeIn .18s ease;
}

.summary-item strong, .summary-item span { display: block; }
.summary-item span { color: var(--muted); font-size: 12px; }
.empty-cart { padding: 24px 8px; color: var(--muted); text-align: center; }

.totals { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.discount-line { color: var(--success); }
.total-line { color: var(--red); font-size: 21px; font-weight: 900; }

.desktop-summary > button, .drawer-checkout, .submit-order {
  width: 100%;
  padding: 14px 18px;
  color: white;
  background: var(--red);
  border: 0;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.desktop-summary > button { margin-top: 16px; }

.pickup-section { padding: 12px 0 40px; }
.pickup-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.pickup-card h2 { font-size: 35px; }
.pickup-card p { margin: 8px 0; color: var(--muted); }
.pickup-actions { display: grid; gap: 10px; }

.pickup-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: white;
  background: var(--green);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}

.pickup-actions a:last-child { background: #25d366; }

.reviews-section { padding: 18px 0 46px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.reviews-grid article { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.stars { color: var(--gold); letter-spacing: 2px; }
.reviews-grid p { color: var(--muted); }

.checkout { padding: 10px 0 72px; }
.checkout-card { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.checkout-card h2 { margin-bottom: 20px; font-size: 34px; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-grid label { display: block; font-weight: 800; }
.form-grid label input, .form-grid label select, .form-grid label textarea { margin-top: 6px; font-weight: 400; }
.full-width { grid-column: 1 / -1; }

.coupon-section { margin-top: 20px; padding: 18px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 14px; }
.coupon-section > div:first-child strong, .coupon-section > div:first-child span { display: block; }
.coupon-section > div:first-child span { color: var(--muted); font-size: 13px; }

.coupon-control { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 12px; }
.coupon-control button { width: auto; padding: 0 18px; color: var(--green); background: var(--surface); border: 1px solid var(--gold); border-radius: 9px; font-weight: 900; cursor: pointer; }

.coupon-message { margin: 8px 0 0; font-weight: 800; }
.coupon-message.success { color: var(--success); }
.coupon-message.error { color: var(--danger); }

.terms { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; }
.terms input { width: auto; margin-top: 4px; }

.status { margin-top: 14px; padding: 14px; border-radius: 9px; line-height: 1.55; }
.status.success { color: var(--success); background: #eaf8f0; border: 1px solid #b7e2c9; }
.status.error { color: var(--danger); background: #fff0ee; border: 1px solid #f3c2bd; }

.submit-order { position: relative; display: grid; place-items: center; }
.button-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,.45);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 90;
  padding: 12px 16px;
  color: white;
  background: var(--green-dark);
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: fadeIn .2s ease;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 44;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  color: white;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(37,211,102,.32);
  text-decoration: none;
  font-weight: 900;
}

.floating-whatsapp i { font-size: 22px; }

.mobile-cart-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 45;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  color: white;
  background: var(--green-dark);
  border-radius: 14px;
  box-shadow: 0 15px 34px rgba(3,69,35,.28);
}

.mobile-cart-bar span, .mobile-cart-bar strong { display: block; }
.mobile-cart-bar button { width: auto; padding: 11px 15px; color: var(--green); background: white; border: 0; border-radius: 9px; font-weight: 900; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(26,18,12,.5); }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(430px,94vw);
  height: 100%;
  padding: 22px;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -18px 0 46px rgba(26,18,12,.2);
  transform: translateX(105%);
  transition: transform .25s ease;
}

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

.drawer-header { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 15px; }
.drawer-header h2 { font-size: 29px; }
.drawer-header button { width: 40px; height: 40px; color: var(--text); background: var(--surface-soft); border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; }
.drawer-checkout { margin-top: 17px; }

footer { padding: 34px max(18px, calc((100vw - 1320px) / 2)); color: var(--muted); background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 78px; height: 78px; object-fit: contain; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { color: var(--green); font-family: Georgia, serif; font-size: 21px; }

footer h3 { margin: 0 0 10px; color: var(--text); }
footer a { display: block; margin: 7px 0; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--orange); }

.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); }
.footer-bottom button { color: var(--muted); background: transparent; border: 0; cursor: pointer; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
  .header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(3,1fr); }
  .mini-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .page-grid { grid-template-columns: 1fr; }
  .desktop-summary { position: static; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  body { padding-bottom: 82px; }
  .offer-marquee { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .header { padding: 9px 11px; }
  .brand img { width: 56px; height: 56px; }
  .brand strong { font-size: 17px; }
  .brand span { display: none; }
  .social-icon { width: 46px; height: 46px; }
  .social-icon i { font-size: 24px; }
  .cart-label { display: none; }
  .icon-button { display: none; }
  main { width: min(100% - 18px,1320px); }
  .hero { padding-top: 18px; gap: 12px; }
  .hero-copy { padding: 28px 22px; border-radius: 20px; }
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 15px; }
  .hero-logo-card { padding: 18px; border-radius: 20px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .mini-product-grid { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .image-wrap { height: 255px; }
  .desktop-summary { display: none; }
  .pickup-card { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .checkout-card { padding: 18px; }

  .product-description { max-height: 42px; }
  .product-description.expanded { max-height: 360px; }
  .read-more-btn { display: inline-block; }

  .floating-whatsapp {
    right: 14px;
    bottom: 86px;
    width: 52px;
    height: 52px;
    justify-content: center;
    padding: 0;
  }

  .floating-whatsapp span { display: none; }
  .mobile-cart-bar { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
