/* ==========================================================================
   Premium Dog — Design System
   Mobile-first, RTL-safe (both Arabic and Hebrew are RTL, dir is always rtl)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Rubik:wght@400;500;600;700&display=swap');

:root {
  /* Brand palette */
  --green-dark:   #1f3d2b;
  --green:        #2b5540;
  --green-light:  #4a7860;
  --gold:         #c9a24c;
  --gold-light:   #e2c57a;
  --gold-dark:    #9c7c34;
  --cream:        #faf6ee;
  --cream-2:      #f2ead9;
  --earth:        #8a6d4f;
  --earth-light:  #c9b79a;
  --ink:          #2a2620;
  --muted:        #7a7266;
  --white:        #ffffff;
  --danger:       #b8503f;
  --success:      #3f7d58;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(42, 38, 32, 0.08);
  --shadow-md: 0 8px 24px rgba(42, 38, 32, 0.12);
  --shadow-lg: 0 16px 48px rgba(42, 38, 32, 0.18);

  --header-h: 64px;
  --container-w: 1180px;

  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-he: 'Rubik', 'Segoe UI', Tahoma, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  direction: rtl;
}

html[lang="he"] body { font-family: var(--font-he); }
html[lang="ar"] body { font-family: var(--font-ar); }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ar);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 18px;
}

main { flex: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--green-dark); }
h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-dark);
  background: rgba(201, 162, 76, 0.14);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-light); box-shadow: var(--shadow-md); }
.btn-dark {
  background: var(--green-dark);
  color: var(--cream);
}
.btn-dark:hover { background: var(--green); }
.btn-outline {
  background: transparent;
  border-color: var(--green-dark);
  color: var(--green-dark);
}
.btn-outline:hover { background: var(--green-dark); color: var(--cream); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 61, 43, 0.08);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-dark);
}
.brand__logo { width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; border-radius: 50%; }
.brand__name-en { display: block; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--gold-dark); font-weight: 700; }

.main-nav {
  display: none;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  font-weight: 600;
  color: var(--green-dark);
  padding: 8px 2px;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold-dark); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-toggle {
  display: flex;
  border: 1.5px solid var(--green-dark);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--green-dark);
}
.lang-toggle button.active { background: var(--green-dark); color: var(--cream); }

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(31,61,43,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}
.icon-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--danger);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--cream);
}
.cart-badge[data-count="0"] { display: none; }

.hamburger {
  display: flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(31,61,43,0.12);
  background: var(--white);
  align-items: center;
  justify-content: center;
}
.hamburger svg { width: 20px; height: 20px; color: var(--green-dark); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(31,61,43,0.08);
  background: var(--cream);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  color: var(--green-dark);
  border-bottom: 1px solid rgba(31,61,43,0.06);
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 20% -10%, rgba(201,162,76,0.18), transparent 55%), linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 52px 0 60px;
}
.hero__inner {
  display: grid;
  gap: 34px;
  align-items: center;
}
.hero__tagline {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green);
  margin-block: 14px 22px;
}
.hero__tagline .sep { color: var(--gold-dark); margin-inline: 8px; }
.hero__desc { max-width: 46ch; margin-bottom: 26px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero__art svg { width: 62%; height: 62%; }
.hero__art::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 2px dashed rgba(201,162,76,0.5);
  border-radius: 50%;
}

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Sections ---------- */
.section { padding: 54px 0; }
.section--alt { background: var(--white); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 34px; }
.section__head p { margin-top: 10px; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__img {
  aspect-ratio: 1/1;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__brand { font-size: 0.72rem; font-weight: 700; color: var(--gold-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__name { font-size: 0.95rem; font-weight: 700; color: var(--green-dark); min-height: 2.5em; }
.product-card__variant { font-size: 0.8rem; color: var(--muted); }
.product-card__row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.product-card__price { font-weight: 800; color: var(--green-dark); font-size: 1.05rem; }
.product-card__price small { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.product-card select.variant-select {
  border: 1px solid rgba(31,61,43,0.15);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 0.8rem;
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}
/* Inline WhatsApp-catalogue style quantity control */
.qty-control { width: 100%; }
.qty-plus-btn {
  width: 100%;
  min-height: 44px;
  min-width: 44px;
  border: none;
  border-radius: var(--radius-sm);
  background: #25d366;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-plus-btn:hover, .qty-plus-btn:active { background: #1ebe5b; }
.qty-stepper-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  background: var(--green-dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-stepper-card button {
  flex: 0 0 44px;
  min-width: 44px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-stepper-card button:hover, .qty-stepper-card button:active { background: rgba(255,255,255,0.15); }
.qty-stepper-card button:disabled { opacity: 0.4; }
.qty-stepper-card [data-role="qty-value"] {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.out-of-stock-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  padding: 0 6px;
}
.product-card__img[data-role="open-detail"], .product-card__name[data-role="open-detail"] { cursor: pointer; }

/* Skeleton / placeholder cards */
.product-card.is-placeholder .product-card__img { background: linear-gradient(100deg, var(--cream-2) 30%, #ece2ca 50%, var(--cream-2) 70%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.product-card.is-placeholder .bar { height: 10px; border-radius: 4px; background: var(--cream-2); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* "Coming soon" placeholder cards (static, not loading skeletons) */
.product-card--soon { align-items: center; justify-content: center; }
.product-card--soon .product-card__img { background: var(--cream-2); flex-direction: column; gap: 8px; color: var(--earth-light); }
.product-card--soon .product-card__img svg { width: 34%; height: 34%; }
.product-card--soon .product-card__body { align-items: center; text-align: center; }
.product-card--soon .product-card__name { color: var(--earth); font-weight: 700; font-size: 0.82rem; min-height: auto; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 70px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--earth-light);
}
.empty-state svg { width: 64px; height: 64px; color: var(--gold); margin-inline: auto; margin-bottom: 18px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { max-width: 42ch; margin-inline: auto; }

/* ---------- Brand showcase ---------- */
.brand-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) { .brand-strip { grid-template-columns: repeat(4, 1fr); } }
.brand-tile {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.brand-tile__logo { width: 64px; height: 64px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; }
.brand-tile__logo img { width: 70%; height: 70%; object-fit: contain; }
.brand-tile__name { font-weight: 800; color: var(--green-dark); }

/* Brand page cards */
.brand-cards { display: grid; gap: 20px; }
@media (min-width: 720px) { .brand-cards { grid-template-columns: repeat(2, 1fr); } }
.brand-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand-card__top { display: flex; align-items: center; gap: 14px; }
.brand-card__logo { width: 68px; height: 68px; border-radius: 50%; background: var(--cream-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand-card__logo img { width: 68%; height: 68%; object-fit: contain; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 18px;
}
.why-item__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-dark); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item__icon svg { width: 22px; height: 22px; }
.why-item h4 { margin-bottom: 4px; }
.why-item p { font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: var(--cream-2); padding: 44px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; gap: 26px; grid-template-columns: 1fr; margin-bottom: 30px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h4 { color: var(--gold-light); margin-bottom: 12px; font-size: 1rem; }
.site-footer a { color: var(--cream-2); opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--gold-light); }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; color: var(--cream); }
.footer-brand__logo { width: 38px; height: 38px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; text-align: center; font-size: 0.82rem; opacity: 0.75; }
.social-row { display: flex; gap: 10px; margin-top: 10px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.social-row svg { width: 18px; height: 18px; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 18px;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s infinite;
}
.wa-fab svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* When the Send Order bar is visible, lift the WhatsApp FAB above it */
body.has-order-bar .wa-fab { bottom: calc(20px + 64px + env(safe-area-inset-bottom, 0px)); }

/* ---------- Floating Send Order bar ---------- */
.order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 290;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--green-dark);
  color: var(--cream);
  box-shadow: 0 -8px 24px rgba(31,61,43,0.25);
}
.order-bar.hidden { display: none; }
.order-bar__count {
  flex-shrink: 0;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-bar__label {
  flex: 1;
  font-weight: 800;
  font-size: 1rem;
}
.order-bar__total {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-light);
}
body.has-order-bar { padding-bottom: 64px; }

/* ---------- Cart Drawer ---------- */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(20,20,15,0.45);
  z-index: 400; opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(100%, 420px);
  background: var(--cream);
  z-index: 401;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px; border-bottom: 1px solid rgba(31,61,43,0.1);
}
.cart-drawer__close { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; border: none; }
.cart-drawer__close svg { width: 18px; height: 18px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 12px; background: var(--white); border-radius: var(--radius-sm); padding: 10px; }
.cart-item__img { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--cream-2); flex-shrink: 0; overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item__name { font-weight: 700; font-size: 0.9rem; color: var(--green-dark); }
.cart-item__variant { font-size: 0.76rem; color: var(--muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.qty-stepper { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(31,61,43,0.15); border-radius: 999px; padding: 2px 4px; }
.qty-stepper button { width: 24px; height: 24px; border-radius: 50%; border: none; background: var(--cream-2); font-weight: 800; color: var(--green-dark); }
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.cart-item__price { font-weight: 800; color: var(--green-dark); font-size: 0.9rem; }
.cart-item__remove { color: var(--danger); font-size: 0.76rem; font-weight: 700; background: none; border: none; }
.cart-drawer__foot { border-top: 1px solid rgba(31,61,43,0.1); padding: 16px 18px 22px; background: var(--white); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.1rem; color: var(--green-dark); margin-bottom: 14px; }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.cart-empty svg { width: 52px; height: 52px; margin-inline: auto 12px; color: var(--earth-light); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--green-dark); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid rgba(31,61,43,0.15);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  background: var(--white);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 110px; resize: vertical; }
.radio-row { display: flex; gap: 14px; }
.radio-card { flex: 1; border: 1.5px solid rgba(31,61,43,0.15); border-radius: var(--radius-sm); padding: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 0.9rem; }
.radio-card.active { border-color: var(--gold); background: rgba(201,162,76,0.1); }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); max-width: 560px; margin-inline: auto; }
.form-msg { font-size: 0.85rem; font-weight: 700; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.form-msg.error { background: rgba(184,80,63,0.12); color: var(--danger); }
.form-msg.success { background: rgba(63,125,88,0.12); color: var(--success); }
.hidden { display: none !important; }

/* ---------- Filters (Shop) ---------- */
.shop-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .shop-layout { grid-template-columns: 250px 1fr; align-items: start; } }
.search-bar { position: relative; margin-bottom: 20px; }
.search-bar input { padding-inline-start: 42px; }
.search-bar svg { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }

/* Horizontal scrollable category pill bar */
.category-pill-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 14px;
  margin-bottom: 14px;
}
.category-pill-bar::-webkit-scrollbar { display: none; }
.category-pill {
  flex: 0 0 auto;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--cream-2);
  color: var(--green-dark);
  transition: background 0.15s ease, color 0.15s ease;
}
.category-pill:hover { background: var(--earth-light); }
.category-pill.active { background: var(--green-dark); color: var(--cream); }

.filters-panel {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.filter-group h4 { margin-bottom: 10px; font-size: 0.92rem; }
.filter-opt { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.9rem; cursor: pointer; }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--green-dark); }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; padding: 8px 10px; }
.filters-toggle { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filters-toggle button { display: none; }
.results-count { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: flex; align-items: center; gap: 6px; background: var(--cream-2); color: var(--green-dark); border-radius: 999px; padding: 5px 12px; font-size: 0.8rem; font-weight: 700; }
.chip button { background: none; border: none; font-weight: 900; color: var(--danger); }

@media (max-width: 899px) {
  .filters-panel { display: none; }
  .filters-panel.open { display: flex; }
  .filters-toggle button { display: inline-flex; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--cream-2), var(--cream)); padding: 40px 0 30px; text-align: center; }
.page-hero p { max-width: 50ch; margin: 10px auto 0; }
.breadcrumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 10px; }

/* ---------- About page ---------- */
.about-grid { display: grid; gap: 30px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; background: var(--cream-2); display: flex; align-items: center; justify-content: center; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid rgba(31,61,43,0.08); font-size: 0.92rem; }
.hours-table td:first-child { font-weight: 700; color: var(--green-dark); }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 36px; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
.info-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.info-list__item { display: flex; gap: 12px; align-items: flex-start; }
.info-list__item svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 26px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.contact-card svg { width: 26px; height: 26px; color: var(--gold-dark); flex-shrink: 0; }
.contact-card strong { display: block; color: var(--green-dark); }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 230px; background: var(--green-dark); color: var(--cream-2);
  padding: 22px 14px; display: none; flex-direction: column; gap: 4px; flex-shrink: 0;
}
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; color: var(--cream-2); opacity: 0.85; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,0.1); opacity: 1; }
.admin-side svg { width: 18px; height: 18px; }
.admin-main { flex: 1; padding: 20px 16px 60px; max-width: 1100px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 10px; }
.admin-mobile-nav { display: flex; overflow-x: auto; gap: 6px; padding: 10px 16px; background: var(--green-dark); }
.admin-mobile-nav a { color: var(--cream-2); font-size: 0.8rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); white-space: nowrap; }
.admin-mobile-nav a.active { background: var(--gold); color: var(--green-dark); }
@media (min-width: 860px) { .admin-side { display: flex; } .admin-mobile-nav { display: none; } }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 30px; }
@media (min-width: 700px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.stat-card__num { font-size: 2rem; font-weight: 800; color: var(--green-dark); }
.stat-card__label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

.admin-table-wrap { background: var(--white); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-sm); }
table.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid rgba(31,61,43,0.08); font-size: 0.88rem; }
.admin-table th { color: var(--muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table img.thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--cream-2); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge.in-stock { background: rgba(63,125,88,0.14); color: var(--success); }
.badge.out-stock { background: rgba(184,80,63,0.14); color: var(--danger); }
.badge.low-stock { background: rgba(201,130,25,0.16); color: #b8730f; }
.badge.unread { background: rgba(184,80,63,0.14); color: var(--danger); }
.badge.read { background: rgba(122,114,102,0.14); color: var(--muted); }
.badge.pending { background: rgba(201,162,76,0.18); color: var(--gold-dark); }
.row-actions { display: flex; gap: 8px; }
.icon-link { color: var(--green-dark); font-weight: 700; font-size: 0.82rem; }
.icon-link.danger { color: var(--danger); }

.stock-cell { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.quick-stock-edit { display: flex; gap: 4px; }
.quick-stock-edit input {
  width: 58px; padding: 4px 6px; border: 1px solid rgba(31,61,43,0.15);
  border-radius: 6px; font-size: 0.8rem; background: var(--white); color: var(--ink);
}
.quick-stock-edit button {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 6px;
  background: var(--green-dark); color: #fff; border: none; font-weight: 800; font-size: 0.8rem;
}
.quick-stock-edit button:hover { background: var(--green); }
.quick-stock-edit button:disabled { opacity: 0.5; }

/* Sidebar nav badge (e.g. pending reviews count) */
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; margin-inline-start: auto;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 0.68rem; font-weight: 800;
}
.nav-badge.hidden { display: none; }
.admin-mobile-nav .nav-badge { margin-inline-start: 4px; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--green-dark), var(--green)); padding: 20px; }
.login-card { background: var(--cream); border-radius: var(--radius-lg); padding: 34px 28px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); text-align: center; }
.login-card .brand { justify-content: center; margin-bottom: 18px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(20,20,15,0.5); z-index: 500; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
@media (min-width: 700px) { .modal-overlay { align-items: center; } }
.modal-card { background: var(--cream); border-radius: var(--radius-lg) var(--radius-lg) 0 0; width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; padding: 24px; transform: translateY(30px); transition: transform 0.25s ease; }
.modal-overlay.open .modal-card { transform: translateY(0); }
@media (min-width: 700px) { .modal-card { border-radius: var(--radius-lg); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.img-upload-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.img-upload-slot { aspect-ratio: 1/1; border: 1.5px dashed var(--earth-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; background: var(--white); cursor: pointer; }
.img-upload-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-upload-slot svg { width: 22px; height: 22px; color: var(--earth-light); }
.img-upload-slot .remove-img { position: absolute; top: 3px; inset-inline-end: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.variant-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.variant-row input { flex: 1; }
.variant-row button { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: rgba(184,80,63,0.1); color: var(--danger); border: none; font-weight: 800; }

.spinner { width: 22px; height: 22px; border: 3px solid rgba(31,61,43,0.15); border-top-color: var(--green-dark); border-radius: 50%; animation: spin 0.7s linear infinite; margin-inline: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; justify-content: center; padding: 40px; }

.confirm-screen { text-align: center; max-width: 480px; margin: 60px auto; padding: 20px; }
.confirm-screen__icon { width: 84px; height: 84px; border-radius: 50%; background: rgba(63,125,88,0.14); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.confirm-screen__icon svg { width: 44px; height: 44px; }

/* ---------- Star ratings ---------- */
.stars-row { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; }
.star-cell { position: relative; display: inline-block; width: var(--star-size, 18px); height: var(--star-size, 18px); flex-shrink: 0; }
.star-cell svg { position: absolute; inset-inline-start: 0; top: 0; width: var(--star-size, 18px); height: var(--star-size, 18px); }
.star-fill-wrap { position: absolute; inset-inline-start: 0; top: 0; height: 100%; overflow: hidden; }
.star-cell--input { cursor: pointer; min-width: 32px; min-height: 32px; }
.stars-row--input { gap: 4px; }

/* ---------- Reviews ---------- */
.reviews-section { display: flex; flex-direction: column; gap: 22px; }
.reviews-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reviews-summary__avg { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); }
.reviews-summary__count { color: var(--muted); font-size: 0.88rem; }

.review-form-card { background: var(--cream-2); border-radius: var(--radius-md); padding: 18px; }
.review-name-input, .review-comment-input {
  width: 100%; border: 1.5px solid rgba(31,61,43,0.15); border-radius: var(--radius-sm);
  padding: 10px 12px; background: var(--white); color: var(--ink); margin-bottom: 10px; font-family: inherit;
}
.review-comment-input { min-height: 80px; resize: vertical; }

.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review-item { background: var(--white); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-sm); }
.review-item__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.review-item__head strong { color: var(--green-dark); }
.review-item__comment { font-size: 0.9rem; margin-bottom: 8px; }
.review-item__date { font-size: 0.76rem; color: var(--muted); }
.reviews-empty { text-align: center; color: var(--muted); padding: 20px; }

.trust-rating-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 999px; padding: 8px 16px;
  box-shadow: var(--shadow-sm); font-weight: 700; font-size: 0.88rem; color: var(--green-dark);
}

/* ---------- Product detail modal ---------- */
.detail-modal-card { max-width: 720px; }
.detail-modal__top { display: grid; gap: 18px; margin-bottom: 24px; }
@media (min-width: 640px) { .detail-modal__top { grid-template-columns: 1fr 1.2fr; } }
.detail-modal__img { aspect-ratio: 1/1; border-radius: var(--radius-md); background: var(--cream-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-modal__img img { width: 100%; height: 100%; object-fit: cover; }
.detail-modal__img svg { width: 40%; height: 40%; color: var(--earth-light); }
.detail-modal__desc { font-size: 0.9rem; margin: 10px 0 16px; }
.detail-modal__price-row { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.detail-modal__price { font-size: 1.3rem; font-weight: 800; color: var(--green-dark); }

@media (max-width: 480px) {
  .container { padding-inline: 14px; }
  .btn { width: 100%; }
  .hero__ctas .btn { width: 100%; }
}
