:root {
  --brand: #1e3b28;
  --brand-deep: #14281a;
  --brand-mid: #2f5233;
  --gold: #a9702e;
  --star: #e0a83a;
  --text: #23301f;
  --muted: #4c5a45;
  --sage: #eef1e5;
  --sage-2: #e9efe0;
  --page: #fdfcf8;
  --line: #dde5d4;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(30, 59, 40, 0.08);
  --header-h: 72px;
  --bottom-h: 68px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page);
  line-height: 1.55;
  padding-bottom: calc(var(--bottom-h) + 12px);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { list-style: none; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

/* Top announcement bar — continuous scroll */
.top-bar {
  background: var(--brand);
  color: #f4efe4;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.announce-marquee {
  display: block;
  overflow: hidden;
  width: 100%;
}
.announce-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: marquee-rtl 28s linear infinite;
  will-change: transform;
}
.announce-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  white-space: nowrap;
  padding: 10px 0 10px 36px;
  letter-spacing: 0.2px;
}
.announce-item::after {
  content: "•";
  color: #e0b56a;
  margin-left: 36px;
  font-size: 14px;
}
.announce-item strong { color: #f0d39a; font-weight: 600; }

@keyframes marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .announce-track,
  .cat-marquee-track,
  .t-marquee-track {
    animation-duration: 80s !important;
  }
}

/* Header — logo center, menu right */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 248, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.header-left { min-width: 0; }
.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sage);
  box-shadow: 0 4px 14px rgba(30,59,40,.12);
}
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  cursor: pointer;
  position: relative;
  transition: background .2s;
}
.icon-btn:hover, .icon-btn:focus-visible { background: var(--sage); outline: none; }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
.badge.show { display: inline-flex; }

/* Search */
.search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 12px 0 16px;
}
.search-panel.open { display: block; }
.search-wrap { position: relative; }
.search-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 48px 0 18px;
  background: var(--page);
  color: var(--text);
}
.search-wrap input:focus { outline: 2px solid rgba(30,59,40,.25); border-color: var(--brand); }
.search-results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: 340px;
  overflow: auto;
  z-index: 120;
  display: none;
}
.search-results.open { display: block; }
.search-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--sage);
}
.search-item:last-child { border-bottom: 0; }
.search-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; }
.search-item strong { display: block; font-size: 14px; }
.search-item span { font-size: 12px; color: var(--muted); }
.search-empty { padding: 16px; color: var(--muted); font-size: 14px; }

/* Side menu */
.menu-overlay {
  position: fixed; inset: 0;
  background: rgba(20,40,26,.45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 200;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.side-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--white);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 210;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
}
.side-menu.open { transform: translateX(0); }
.side-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.side-menu-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brand);
}
.side-menu a {
  padding: 12px 10px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text);
}
.side-menu a:hover, .side-menu a.active { background: var(--sage); color: var(--brand); }
.side-menu .menu-meta {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.menu-search {
  margin-top: auto;
  padding-top: 12px;
}
.menu-search-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}
.side-menu .search-results {
  position: static;
  margin-top: 8px;
  max-height: 220px;
  box-shadow: none;
}

/* Hero — same composition on all screen sizes (image AR 1024×572) */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 572;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-deep);
  container-type: inline-size;
  container-name: hero;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 22, 14, 0.82) 0%, rgba(10, 22, 14, 0.58) 42%, rgba(10, 22, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(10, 22, 14, 0.2) 0%, rgba(10, 22, 14, 0.15) 40%, rgba(10, 22, 14, 0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 6cqi));
  margin: 0 auto;
  padding: 6cqi 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2cqi;
}
.hero .eyebrow {
  font-size: clamp(8px, 1.15cqi, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f0d39a;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.6cqi, 54px);
  line-height: 1.12;
  color: #fffaf0;
  font-weight: 700;
  max-width: 16ch;
  text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
.hero-desc {
  color: rgba(255, 248, 235, 0.92);
  max-width: 44ch;
  font-size: clamp(10px, 1.45cqi, 16.5px);
  line-height: 1.55;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2cqi;
  margin-top: 0.4cqi;
}
.hero-actions .btn {
  height: clamp(28px, 4cqi, 46px);
  padding: 0 clamp(12px, 2cqi, 22px);
  font-size: clamp(10px, 1.25cqi, 14px);
}
.btn-on-dark {
  border-color: rgba(255,255,255,.9);
  color: #fff;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
}
.btn-on-dark:hover {
  background: #fff;
  color: var(--brand-deep);
  border-color: #fff;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqi;
  margin-top: 0.5cqi;
}
.hero .trust-pill {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  padding: 0.6cqi 1.2cqi;
  font-size: clamp(8px, 1.1cqi, 12.5px);
  font-weight: 500;
  color: #fff8eb;
  backdrop-filter: blur(6px);
}
.trust-pill {
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-mid); }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* Sections */
.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 32px);
  color: var(--brand-deep);
}
.section-head p { color: var(--muted); max-width: 46ch; font-size: 14.5px; }

/* Cards */
.cat-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Home categories — continuous horizontal marquee (right → left) */
.section-categories .section-head { margin-bottom: 22px; }
.cat-marquee {
  overflow: hidden;
  width: 100%;
}
.cat-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
  animation: marquee-rtl 30s linear infinite;
  will-change: transform;
  padding: 4px 12px 8px;
}
.cat-marquee .cat-card {
  flex: 0 0 240px;
  width: 240px;
}
.cat-marquee .cat-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Testimonials — continuous horizontal marquee */
.section-testimonials .section-head { margin-bottom: 22px; }
.t-marquee {
  overflow: hidden;
  width: 100%;
}
.t-marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;
  animation: marquee-rtl 35s linear infinite;
  will-change: transform;
  padding: 4px 12px 8px;
}
.t-marquee .t-card {
  flex: 0 0 320px;
  width: 320px;
  margin: 0;
}
.cat-card, .product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover, .product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-card img, .product-card .thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--sage);
}
.cat-card .body, .product-card .body { padding: 14px 16px 18px; }
.cat-card h3, .product-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--brand);
  margin-bottom: 4px;
}
.cat-card p, .product-meta { font-size: 13px; color: var(--muted); }
.product-card .thumb { position: relative; }
.wish-toggle {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.92);
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.wish-toggle.active { background: var(--brand); color: #fff; }
.wish-toggle svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 12px;
}
.price { font-weight: 700; color: var(--brand-deep); font-size: 16px; }
.rating { color: var(--star); font-size: 12.5px; font-weight: 600; }
.card-actions { display: flex; gap: 8px; }

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.chip.active, .chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}
.about-grid img {
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.feature-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--sage);
  border-radius: 14px;
  padding: 14px;
}
.feature-item strong { display: block; color: var(--brand); margin-bottom: 2px; }
.feature-item span { font-size: 13.5px; color: var(--muted); }

/* Delivery table */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
table { width: 100%; border-collapse: collapse; min-width: 420px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--sage); }
th { background: var(--brand); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Testimonials */
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.t-card {
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.t-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 14px; }
.t-card strong { color: var(--brand); display: block; }
.t-card span { font-size: 12.5px; color: var(--gold); }

/* Forms / account / cart panels */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--brand); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--page);
  color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(30,59,40,.2);
  border-color: var(--brand);
}

.cart-list, .wish-list { display: grid; gap: 12px; }
.line-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.line-item img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-ctrl button {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--sage);
  cursor: pointer;
}
.cart-summary {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--sage);
}
.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14.5px;
}
.cart-summary .total {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 8px;
}
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--white);
}
.empty-state h3 {
  font-family: var(--font-display);
  color: var(--brand);
  margin-bottom: 8px;
}

.page-hero {
  padding: 36px 0 10px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  color: var(--brand-deep);
}
.page-hero p { color: var(--muted); margin-top: 6px; }

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: #d7e2cf;
  padding: 48px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 12px;
  font-size: 18px;
}
.site-footer a { color: #b7c6ad; font-size: 14px; display: inline-block; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 14px; color: #9fae93; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  font-size: 13px;
  color: #8f9f84;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Sticky bottom bar — mobile */
.bottom-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--bottom-h);
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  display: none;
  z-index: 150;
  backdrop-filter: blur(10px);
  padding: 0 4px;
  box-shadow: 0 -8px 24px rgba(30,59,40,.08);
}
.bottom-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  min-width: 0;
}
.bottom-bar a svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.bottom-bar a.active { color: var(--brand); }
.bottom-bar .badge {
  top: 4px;
  right: calc(50% - 18px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + 18px);
  transform: translateX(-50%) translateY(20px);
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 300;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .about-grid, .cat-grid, .t-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .form-grid.two { grid-template-columns: 1fr; }
  .cat-marquee .cat-card {
    flex-basis: 210px;
    width: 210px;
  }
  .t-marquee .t-card {
    flex-basis: 280px;
    width: 280px;
  }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(var(--bottom-h) + 16px); }
  .bottom-bar { display: flex; }
  .brand-logo { width: 48px; height: 48px; }
  .about-grid, .cat-grid, .t-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-card .body { padding: 10px 10px 12px; }
  .product-card h3 { font-size: 14.5px; line-height: 1.3; }
  .product-card .card-actions { flex-direction: column; gap: 6px; }
  .product-card .card-actions .btn { width: 100%; height: 34px; font-size: 12px; padding: 0 8px; }
  .product-card .price { font-size: 14px; }
  .wish-toggle { width: 32px; height: 32px; top: 8px; right: 8px; }
  .announce-item { padding: 9px 0 9px 28px; font-size: 12.5px; }
  .announce-item::after { margin-left: 28px; }
  .announce-track { animation-duration: 22s; }
  .cat-marquee .cat-card {
    flex-basis: 180px;
    width: 180px;
  }
  .cat-marquee-track { animation-duration: 24s; gap: 12px; }
  .t-marquee .t-card {
    flex-basis: 260px;
    width: 260px;
  }
  .t-marquee-track { animation-duration: 28s; gap: 12px; }
  .section { padding: 40px 0; }
}
@media (min-width: 761px) {
  body { padding-bottom: 0; }
}
