/* ==========================================================================
   style.css — Dawater Dala (দাওয়াতের ডালা by Jarin) design system
   --------------------------------------------------------------------------
   Warm food palette: deep green + orange/gold accent, cream base.
   Mobile-first. Uses CSS variables, Grid + Flexbox, subtle transitions.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand greens */
  --green-950: #0c2a1a;
  --green-900: #143c2c;
  --green-800: #1b5e20;
  --green-700: #247545;
  --green-600: #2e8b57;
  --green-100: #e4efe5;
  --green-50:  #f0f6f1;

  /* warm orange / gold accent */
  --orange-500: #f59e0b;
  --orange-600: #e8860c;
  --orange-700: #d97706;
  --orange-100: #fdeed6;

  /* neutral base */
  --cream:      #fbf6ed;
  --cream-dark: #f3ebdc;
  --white:      #ffffff;
  --ink:        #1e2b24;
  --muted:      #68766f;
  --line:       #e8e0d4;

  /* feedback */
  --red:     #d64545;
  --red-bg:  #fcecec;
  --green-bg:#e7f3e9;

  /* typography */
  --font-sans: 'Poppins', 'Hind Siliguri', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* spacing scale */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px;
  --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  /* shadows */
  --shadow-sm: 0 1px 3px rgba(20, 60, 44, 0.08);
  --shadow-md: 0 6px 18px rgba(20, 60, 44, 0.10);
  --shadow-lg: 0 14px 34px rgba(20, 60, 44, 0.16);
  --shadow-cta: 0 8px 22px rgba(230, 134, 12, 0.35);

  --header-h: 74px;
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--orange-600); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main { display: block; min-height: 60vh; }

.page { padding: var(--sp-6) 0 var(--sp-9); }

/* section helpers */
.section { padding: var(--sp-8) 0; }
.section--tight { padding: var(--sp-6) 0; }
.section--alt { background: var(--cream-dark); }
.section--top { padding-top: var(--sp-6); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange-100); color: var(--orange-700);
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: var(--r-full);
}
.section-tag.is-light { background: rgba(255, 255, 255, 0.16); color: #ffe2ae; }
.section-title {
  margin: 10px 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2; font-weight: 700; color: var(--ink);
}
.section-sub { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.section-link {
  font-weight: 600; font-size: 0.9rem; display: inline-flex;
  align-items: center; gap: 6px; white-space: nowrap;
}
.section-link::after { content: '→'; transition: transform 0.2s ease; }
.section-link:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   3. Buttons + badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 13px 24px; border-radius: var(--r-md);
  border: 2px solid transparent; background: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  text-align: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--green-800); color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-900); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { background: #b9c4bc; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-outline {
  border-color: var(--green-800); color: var(--green-800); background: transparent;
}
.btn-outline:hover { background: var(--green-800); color: var(--white); transform: translateY(-2px); }
.btn-outline:disabled { border-color: #cfd6d1; color: #a7b1ab; cursor: not-allowed; transform: none; }

.btn-light-outline { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-light-outline:hover { background: var(--white); color: var(--green-900); transform: translateY(-2px); }

.btn-ghost { color: var(--muted); border-color: transparent; }
.btn-ghost:hover { color: var(--green-800); background: var(--green-50); transform: none; }

.btn-accent { background: var(--orange-500); color: #3c2a06; }
.btn-accent:hover { background: var(--orange-600); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-cta); }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: var(--r-full); line-height: 1.4;
}
.badge-discount { background: var(--red); color: var(--white); }
.badge-new { background: var(--green-800); color: var(--white); }
.badge-out { background: #9aa59e; color: var(--white); }
.badge-lg { padding: 7px 14px; font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex; align-items: center; gap: var(--sp-4);
  height: var(--header-h);
  position: relative;
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.18rem; color: var(--green-900); }
.brand-sub {
  font-size: 0.6rem; letter-spacing: 0.22em; font-weight: 600;
  color: var(--orange-600); text-transform: uppercase;
}

/* nav links */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
}
.nav-link:hover { color: var(--green-800); background: var(--green-50); }
.nav-link.is-active { color: var(--green-800); font-weight: 600; }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 3px; border-radius: var(--r-full); background: var(--orange-500);
}
.nav-mobile-cta { display: none; }

/* search */
.nav-search {
  display: flex; align-items: center; flex: 1 1 300px; max-width: 340px;
  position: relative;
}
.nav-search-icon {
  position: absolute; left: 14px; color: var(--muted); pointer-events: none;
  display: inline-flex;
}
.nav-search-icon svg, .nav-search-btn svg { width: 17px; height: 17px; }
.nav-search input {
  width: 100%; height: 44px; padding: 0 92px 0 40px;
  border: 2px solid var(--line); border-radius: var(--r-full);
  background: var(--cream); color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-search input:focus {
  outline: none; border-color: var(--green-700); background: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.12);
}
.nav-search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 34px; width: 42px; border: none; border-radius: var(--r-full);
  background: var(--green-800); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.nav-search-btn:hover { background: var(--green-900); }

/* actions */
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--white); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--green-800); border-color: var(--green-700); background: var(--green-50); }

.cart-link { position: relative; display: inline-flex; }
.cart-link svg { width: 23px; height: 23px; color: var(--ink); transition: color 0.2s ease; }
.cart-link:hover svg { color: var(--green-800); }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--orange-500); color: #3c2a06;
  font-size: 0.72rem; font-weight: 700; line-height: 20px;
  text-align: center; border-radius: var(--r-full);
  border: 2px solid var(--white);
}
.cart-badge.is-hidden { display: none; }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--white); padding: 0 11px;
}
.hamburger span {
  display: block; height: 2.5px; width: 100%; border-radius: var(--r-full);
  background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header.nav-open .hamburger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-header.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .hamburger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile nav + search */
@media (max-width: 899px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 13px 14px; border-radius: var(--r-sm); }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--green-50); }
  .nav-mobile-cta { display: flex; margin-top: 8px; justify-content: center; background: var(--green-800); color: #fff; border-radius: var(--r-md); }
  .nav-mobile-cta:hover { background: var(--green-900); color: #fff; }

  .nav-search { display: none; position: absolute; top: 100%; left: 0; right: 0; max-width: none; padding: 12px 16px 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  .site-header.search-open .nav-search { display: flex; }
  .hamburger { display: inline-flex; }
  .search-toggle { display: inline-flex; }
  .nav-search input { padding-right: 92px; }
}

@media (min-width: 900px) {
  .search-toggle { display: none; }
  .nav-link { margin-right: 2px; }
  .header-inner > .brand { margin-right: var(--sp-4); }
  .header-actions { margin-left: 0; }
  .main-nav { flex: 1; }
}

/* nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-toggle .dd-arrow { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 264px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 130;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown:hover .dd-arrow,
.nav-dropdown.is-open .dd-arrow { transform: rotate(180deg); }
.nav-dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 13px; border-radius: var(--r-sm); color: var(--ink); font-weight: 500;
}
.nav-dropdown-item:hover { background: var(--green-50); color: var(--green-800); }
.nav-dropdown-sub { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.nav-dropdown-sep { height: 1px; background: var(--line); margin: 6px 4px; }

@media (max-width: 899px) {
  .nav-dropdown { position: static; }
  .nav-dropdown-toggle { justify-content: space-between; width: 100%; }
  .nav-dropdown-menu {
    position: static; min-width: 0; box-shadow: none; border: 1px solid var(--line);
    background: var(--cream); margin: 2px 0 4px 10px; padding: 6px;
    display: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--green-950); color: #c9d8cd; margin-top: var(--sp-8); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: var(--sp-6); padding: var(--sp-8) 0 var(--sp-6);
}
.footer-col p { font-size: 0.92rem; margin: var(--sp-4) 0; color: #a8bbae; max-width: 340px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: var(--orange-500); }
.footer-title {
  color: #fff; font-size: 0.95rem; font-weight: 600;
  margin: 0 0 var(--sp-4); letter-spacing: 0.02em;
}
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #a8bbae; font-size: 0.92rem; }
.footer-links a:hover { color: var(--orange-500); }
.footer-contact li {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 12px; font-size: 0.92rem; color: #a8bbae;
}
.fc-icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--orange-500); margin-top: 2px; }
.fc-icon svg { width: 18px; height: 18px; }
.footer-contact a { color: #a8bbae; }
.footer-contact a:hover { color: var(--orange-500); }

.social-links { display: flex; gap: 10px; margin-top: var(--sp-4); }
.social-links a {
  width: 38px; height: 38px; border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: #c9d8cd; transition: all 0.2s ease;
}
.social-links a svg { width: 17px; height: 17px; }
.social-links a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #3c2a06; transform: translateY(-2px); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: var(--sp-4) 0; }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #8fa295; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pm-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.22); color: #c9d8cd;
  padding: 4px 10px; border-radius: 6px;
}

@media (max-width: 899px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* --------------------------------------------------------------------------
   8. Admin panel
   -------------------------------------------------------------------------- */
.admin-panel {
  padding: var(--sp-6) 0;
}
.admin-hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.admin-hero-actions { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.admin-tab-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--sp-5); }
.admin-tab-list .tab-btn {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 18px; font-weight: 600; color: var(--ink);
}
.admin-tab-list .tab-btn.is-active {
  background: var(--green-800); color: var(--white); border-color: transparent;
}
.admin-tab-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.admin-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap;
}
.admin-panel-search { display: flex; flex-direction: column; gap: 8px; }
.admin-panel-search label {
  font-size: 0.92rem; color: var(--muted);
}
.admin-panel-search input,
.admin-panel-meta select {
  width: 100%; max-width: 320px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; background: var(--cream);
}
.admin-panel-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-orders-list,
.admin-products-list { display: grid; gap: var(--sp-4); }
.admin-order-card,
.admin-product-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4); background: #fff; box-shadow: var(--shadow-sm); }
.admin-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); flex-wrap: wrap; }
.admin-order-id { font-weight: 700; margin: 0 0 4px; }
.admin-order-meta { margin: 0; color: var(--muted); font-size: 0.95rem; }
.admin-order-summary { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); margin-bottom: var(--sp-3); }
.status-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-full); font-weight: 700; font-size: 0.85rem; }
.status-নিশ্চিত { background: #e7f3e9; color: #176127; }
.status-প্রস্তুত-হচ্ছে { background: #fef6e7; color: #8a5301; }
.status-ডেলিভারি-পথে { background: #e4f1ff; color: #0f4f8a; }
.status-পৌঁছেছে { background: #e9f7ef; color: #1f5d29; }
.status-বাতিল { background: #fdecea; color: #941d1d; }
.admin-order-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.admin-order-actions label { font-size: 0.9rem; color: var(--muted); }
.admin-order-actions select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--cream); }
.admin-order-items { display: grid; gap: 10px; margin-top: var(--sp-3); }
.admin-order-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-product-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-4); align-items: start; }
.admin-product-main h3 { margin: 0 0 8px; }
.admin-product-cat { margin: 0; color: var(--muted); }
.admin-product-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.admin-product-form { display: grid; gap: 12px; }
.admin-product-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.admin-product-form input[type="number"] { width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--cream); }
.admin-toggle { display: inline-flex; align-items: center; gap: 10px; }
.admin-empty { padding: var(--sp-6); text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .admin-hero,
  .admin-panel-header,
  .admin-product-card { grid-template-columns: 1fr; }
  .admin-order-actions { grid-template-columns: 1fr; }
}

/* ---- Admin full-edit UI ---- */
.admin-product-card { grid-template-columns: 1fr; }
.admin-product-main { display: flex; gap: var(--sp-4); align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.admin-product-thumb { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--cream); }
.admin-product-actions { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-3); flex-wrap: wrap; }
.admin-custom-tag { font-size: 0.8rem; color: var(--orange-500); font-weight: 700; }
.admin-order-edit,
.admin-product-edit {
  margin-top: var(--sp-4); padding: var(--sp-4);
  border: 1px dashed var(--line); border-radius: var(--r-md); background: var(--cream);
}
.admin-edit-grid,
.admin-product-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.admin-edit-col { display: flex; flex-direction: column; gap: 12px; }
.admin-edit-col h4 { margin: 0 0 4px; font-size: 1rem; }
.admin-order-edit label,
.admin-product-edit label,
.admin-settings-card label,
.admin-promo-add label {
  display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--muted);
}
.admin-order-edit input,
.admin-order-edit select,
.admin-order-edit textarea,
.admin-product-edit input,
.admin-product-edit select,
.admin-product-edit textarea,
.admin-settings-card input,
.admin-settings-card select,
.admin-promo-add input,
.admin-promo-add select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 10px 12px; background: #fff; color: var(--ink);
}
.admin-order-edit input:focus,
.admin-order-edit select:focus,
.admin-order-edit textarea:focus,
.admin-product-edit input:focus,
.admin-product-edit select:focus,
.admin-product-edit textarea:focus,
.admin-settings-card input:focus,
.admin-settings-card select:focus { outline: none; border-color: var(--green-700); }
.admin-order-edit input[readonly] { background: #f1f4f0; color: var(--muted); }
.admin-order-edit textarea,
.admin-product-edit textarea { resize: vertical; min-height: 70px; }
.admin-edit-actions { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-4); flex-wrap: wrap; }
.admin-order-items-edit { display: grid; gap: 10px; }
.admin-order-edit-item { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.admin-oe-line { font-weight: 700; padding: 10px 0; }
.admin-order-add-item { display: grid; grid-template-columns: 1fr 90px auto; gap: 10px; align-items: end; margin-top: var(--sp-3); }
.admin-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--sp-4); }
.admin-settings-card {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-4);
  background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.admin-settings-card h3 { margin: 0 0 4px; }
.admin-settings-hint { margin: 0; color: var(--muted); font-size: 0.9rem; }
.admin-section-title { font-size: 1.25rem; margin: 0; }
.admin-promo-list { display: grid; gap: 4px; margin-top: 4px; }
.admin-promo-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.admin-promo-info { display: flex; flex-direction: column; gap: 2px; min-width: 140px; }
.admin-promo-msg { color: var(--muted); font-size: 0.88rem; }
.admin-promo-type { color: var(--green-800); font-weight: 600; font-size: 0.9rem; }
.admin-promo-actions { display: flex; align-items: center; gap: 8px; }
.admin-promo-add { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* ---- Admin image upload ---- */
.admin-img-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-settings-card .admin-img-btn,
.admin-product-edit .admin-img-btn,
.admin-product-add-form .admin-img-btn {
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px;
  cursor: pointer; margin: 0; width: auto; padding: 8px 14px;
}
.admin-settings-card .admin-img-btn input,
.admin-product-edit .admin-img-btn input,
.admin-product-add-form .admin-img-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.admin-img-preview {
  width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--cream); flex: 0 0 auto;
}
.admin-product-edit .admin-img-preview { width: 92px; height: 92px; }

@media (max-width: 700px) {
  .admin-order-edit-item { grid-template-columns: 1fr 1fr; }
  .admin-order-add-item { grid-template-columns: 1fr; }
}

/* ---- Admin login gate ---- */
.admin-login {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--green-950) 0%, var(--green-800) 60%, var(--green-700) 100%);
  padding: 24px;
}
.admin-login-card {
  width: 100%; max-width: 400px;
  background: var(--white); border-radius: var(--r-lg);
  padding: var(--sp-7); box-shadow: var(--shadow-lg);
  text-align: center;
}
.admin-login-card .brand-mark {
  width: 72px; height: 72px; margin: 0 auto var(--sp-4); display: block;
}
.admin-login-card .brand-mark svg { width: 100%; height: 100%; border-radius: 50%; }
.admin-login-title { margin: 0 0 6px; font-size: 1.5rem; }
.admin-login-sub { margin: 0 0 var(--sp-5); color: var(--muted); font-size: 0.95rem; }
.admin-login-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.admin-login-label { font-size: 0.92rem; color: var(--muted); }
.admin-login-input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 14px; background: var(--cream); font-size: 1rem;
}
.admin-login-input:focus { outline: none; border-color: var(--green-700); }
.admin-login-error { margin: 0; color: var(--red); font-weight: 600; font-size: 0.9rem; }
.admin-login-default {
  margin: var(--sp-3) 0 0; color: var(--muted); font-size: 0.85rem;
  background: #fef6e7; border: 1px dashed var(--orange-500); border-radius: var(--r-md);
  padding: 10px 12px;
}

/* --------------------------------------------------------------------------
   6. Toast
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: 340px;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--white);
  padding: 13px 16px; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); font-size: 0.9rem;
  opacity: 0; transform: translateY(12px) scale(0.97);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast-icon {
  width: 24px; height: 24px; border-radius: var(--r-full); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.toast-success .toast-icon { background: var(--green-600); }
.toast-error .toast-icon { background: var(--red); }
.toast-info .toast-icon { background: var(--orange-500); color: #3c2a06; }

/* --------------------------------------------------------------------------
   7. Home — hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(120deg, var(--green-950) 0%, var(--green-800) 55%, var(--green-700) 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.16), transparent 42%),
                    radial-gradient(circle at 10% 90%, rgba(102, 187, 106, 0.14), transparent 40%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: var(--sp-7);
  padding: var(--sp-8) 0 var(--sp-9);
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px; border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 500; color: #ffe2ae;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.15;
  font-weight: 800; margin: var(--sp-4) 0 var(--sp-3);
}
.hero-title .hl { color: var(--orange-500); }
.hero-text { color: #cfe4d6; font-size: 1.05rem; max-width: 520px; margin: 0 0 var(--sp-5); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-6); }

.hero-offer {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.1); border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--r-lg); padding: 14px 20px; max-width: 480px;
}
.hero-offer .offer-emoji {
  width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--orange-500); display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.hero-offer .offer-emoji svg { width: 26px; height: 26px; color: #3c2a06; }
.hero-offer .offer-text { font-size: 0.85rem; color: #d8e8de; }
.hero-offer .offer-text strong { display: block; font-size: 1.15rem; color: #fff; }

.hero-image { position: relative; }
.hero-image .hero-svg {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-image::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: skewX(-16deg);
  animation: heroShine 5.5s ease-in-out infinite;
}
.hero-image .hero-steam {
  transform-origin: center bottom;
  animation: steamRise 3.8s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-image .hero-steam.s1 { animation-delay: 0s; }
.hero-image .hero-steam.s2 { animation-delay: 1.2s; }
.hero-image .hero-steam.s3 { animation-delay: 2.4s; }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-0.8deg); }
}
@keyframes heroShine {
  0% { left: -60%; }
  55% { left: 120%; }
  100% { left: 120%; }
}
@keyframes steamRise {
  0% { transform: translateY(10px); opacity: 0; }
  30% { opacity: 0.85; }
  100% { transform: translateY(-30px); opacity: 0; }
}
.hero-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink);
  padding: 10px 16px; border-radius: var(--r-full);
  font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.hero-chip.chip-top { top: -14px; right: 6%; }
.hero-chip.chip-bottom { bottom: -16px; left: -4%; animation-delay: 1.5s; }
.hero-chip svg { width: 18px; height: 18px; color: var(--green-700); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --------------------------------------------------------------------------
   8. Trust strip
   -------------------------------------------------------------------------- */
.trust-strip { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  padding: var(--sp-5) 0;
}
.trust-item { display: flex; align-items: center; gap: var(--sp-3); }
.trust-icon {
  width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--green-50); color: var(--green-800);
  display: inline-flex; align-items: center; justify-content: center;
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-item h3 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.trust-item p { margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); }

@media (max-width: 767px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   9. Category quick links
   -------------------------------------------------------------------------- */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-4);
}
.category-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-600); }
.category-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-2); color: var(--white);
}
.category-icon svg { width: 24px; height: 24px; }
.category-name { font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.category-en { font-size: 0.72rem; color: var(--muted); }

.category-card[data-cat="combo"]      .category-icon { background: var(--orange-500); }
.category-card[data-cat="rice"]       .category-icon { background: var(--green-800); }
.category-card[data-cat="dal"]        .category-icon { background: #c98a2a; }
.category-card[data-cat="oil"]        .category-icon { background: #d9a23b; }
.category-card[data-cat="spices"]     .category-icon { background: var(--red); }
.category-card[data-cat="vegetables"] .category-icon { background: var(--green-600); }
.category-card[data-cat="sugar-salt"] .category-icon { background: #7a6bb1; }

/* --------------------------------------------------------------------------
   10. Product cards + grids
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: var(--sp-5);
}
.product-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-thumb-link { display: block; }
.product-thumb {
  position: relative; aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--cream) 0%, #f2ead9 100%);
  display: flex; align-items: center; justify-content: center; padding: var(--sp-4);
  overflow: hidden;
}
.product-thumb img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-thumb .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.product-thumb .badge.badge-discount { left: 12px; }
.product-thumb .badge.badge-new { top: 12px; left: auto; right: 12px; }

.product-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.product-cat {
  margin: 0 0 4px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-600);
}
.product-name { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.product-info-link:hover .product-name { color: var(--green-700); }
.product-unit { margin: 6px 0 0; font-size: 0.8rem; color: var(--muted); }

.product-foot {
  margin-top: auto; padding-top: var(--sp-3);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.product-price { display: flex; flex-direction: column; line-height: 1.2; }
.price-now { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.price-was { font-size: 0.78rem; color: var(--muted); }

.btn-add {
  width: 42px; height: 42px; border: none; border-radius: var(--r-full);
  background: var(--green-800); color: var(--white); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-add svg { width: 20px; height: 20px; }
.btn-add:hover { background: var(--orange-500); color: #3c2a06; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-add:active { transform: scale(0.92); }
.btn-add.is-disabled { background: #d7dcd8; color: #9aa59e; box-shadow: none; }
.btn-add.is-added { animation: pop 0.4s ease; background: var(--orange-500); color: #3c2a06; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* --------------------------------------------------------------------------
   11. Combo highlight banner
   -------------------------------------------------------------------------- */
.combo-banner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-6);
  background: linear-gradient(120deg, var(--green-950), var(--green-800));
  border-radius: var(--r-lg); overflow: hidden; align-items: center;
  box-shadow: var(--shadow-lg);
}
.combo-content { padding: var(--sp-7); color: #fff; }
.combo-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin: var(--sp-3) 0 var(--sp-2); line-height: 1.2; }
.combo-text { color: #cfe4d6; margin: 0 0 var(--sp-4); max-width: 460px; }
.combo-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-4); }
.combo-price { font-size: 2rem; font-weight: 800; color: var(--orange-500); }
.combo-was { font-size: 1.05rem; color: #9db8a8; }
.combo-list { list-style: none; margin: 0 0 var(--sp-5); padding: 0; columns: 2; gap: var(--sp-2); }
.combo-list li { position: relative; padding-left: 20px; font-size: 0.88rem; color: #dceade; margin-bottom: 8px; }
.combo-list li::before { content: '✓'; position: absolute; left: 0; color: var(--orange-500); font-weight: 700; }
.combo-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.combo-image { position: relative; align-self: stretch; min-height: 320px; }
.combo-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .combo-banner { grid-template-columns: 1fr; }
  .combo-image { min-height: 240px; }
  .combo-image img { position: static; }
  .combo-list { columns: 1; }
}
@media (max-width: 480px) { .combo-content { padding: var(--sp-5); } }

/* --------------------------------------------------------------------------
   12. Features
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.feature-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6); text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 60px; height: 60px; border-radius: var(--r-full); margin: 0 auto var(--sp-4);
  background: var(--green-50); color: var(--green-800);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 767px) { .features-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   13. Testimonials
   -------------------------------------------------------------------------- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.testimonial-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--orange-500); font-size: 1rem; letter-spacing: 2px; }
.testimonial-text { margin: 0; font-size: 0.94rem; color: #3a4a41; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: var(--sp-3); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: var(--r-full); flex-shrink: 0;
  background: var(--green-800); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.95rem;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 899px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   14. Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  background: linear-gradient(120deg, var(--green-950), var(--green-800));
  border-radius: var(--r-lg); padding: var(--sp-7);
  text-align: center; color: #fff;
}
.newsletter-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 var(--sp-2); }
.newsletter-sub { color: #cfe4d6; margin: 0 auto var(--sp-5); max-width: 480px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; height: 50px; padding: 0 18px; border-radius: var(--r-full);
  border: 2px solid transparent; background: #fff;
}
.newsletter-form input:focus { outline: none; border-color: var(--orange-500); }
.newsletter-form .btn { height: 50px; }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }

/* --------------------------------------------------------------------------
   15. Page header + breadcrumb
   -------------------------------------------------------------------------- */
.page-header { padding: var(--sp-6) 0 var(--sp-5); }
.page-header h1 { margin: var(--sp-2) 0 0; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
.page-header p { margin: 6px 0 0; color: var(--muted); max-width: 620px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted); margin: var(--sp-4) 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-700); }
.crumb-sep { color: #b6bfba; }

/* --------------------------------------------------------------------------
   16. Shop page
   -------------------------------------------------------------------------- */
.shop-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: var(--sp-6);
  align-items: start;
}
.shop-filters {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 16px);
}
.filter-block { padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.filter-title { margin: 0 0 var(--sp-3); font-size: 0.92rem; font-weight: 600; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list li { margin-bottom: 4px; }
.filter-radio {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 0.92rem; transition: background 0.15s ease;
}
.filter-radio:hover { background: var(--green-50); }
.filter-radio input { accent-color: var(--green-800); width: 16px; height: 16px; }
.filter-radio span { flex: 1; }
.filter-radio em { font-style: normal; font-size: 0.75rem; color: var(--muted); background: var(--cream); padding: 1px 8px; border-radius: var(--r-full); }
.filter-radio:has(input:checked) { background: var(--green-50); font-weight: 600; }

.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-fields .field label { font-size: 0.75rem; color: var(--muted); display: block; margin-bottom: 4px; }
.price-fields .field input {
  width: 100%; height: 40px; padding: 0 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--cream);
}
.price-fields .field input:focus { outline: none; border-color: var(--green-700); background: #fff; }
.filter-actions { display: flex; flex-direction: column; gap: 8px; }

.shop-main { min-width: 0; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-5);
}
.toolbar-result { font-size: 0.9rem; color: var(--muted); }
.toolbar-result strong { color: var(--ink); }
.toolbar-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar-search { position: relative; }
.toolbar-search input {
  height: 44px; width: 230px; padding: 0 14px 0 40px;
  border: 1.5px solid var(--line); border-radius: var(--r-full); background: var(--white);
}
.toolbar-search input:focus { outline: none; border-color: var(--green-700); }
.toolbar-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.toolbar-sort select {
  height: 44px; padding: 0 14px; border: 1.5px solid var(--line);
  border-radius: var(--r-full); background: var(--white); color: var(--ink);
}
.toolbar-sort select:focus { outline: none; border-color: var(--green-700); }

.load-more-wrap { text-align: center; margin-top: var(--sp-6); }

.empty-state {
  text-align: center; padding: var(--sp-8) var(--sp-5);
  background: var(--white); border: 1px dashed var(--line);
  border-radius: var(--r-lg); color: var(--muted);
}
.empty-icon {
  width: 72px; height: 72px; margin: 0 auto var(--sp-4);
  border-radius: var(--r-full); background: var(--green-50); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.empty-icon svg { width: 34px; height: 34px; }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 1.3rem; }
.empty-state p { margin: 0 0 var(--sp-5); }

@media (max-width: 899px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .toolbar-search input { width: 100%; }
  .toolbar-controls { width: 100%; }
  .toolbar-search { flex: 1; }
}

/* --------------------------------------------------------------------------
   17. Product detail
   -------------------------------------------------------------------------- */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7);
  align-items: start;
}
.pd-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery-main {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--cream), #f2ead9);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6); border: 1px solid var(--line);
}
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-main .badge { position: absolute; top: 16px; left: 16px; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: var(--sp-3); }
.gallery-thumb {
  width: 84px; height: 84px; border-radius: var(--r-md); overflow: hidden;
  border: 2px solid var(--line); background: var(--cream); padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.15); }

.pd-category { margin: 0 0 6px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--orange-600); }
.pd-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.25; }
.pd-en-name { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }
.pd-rating { display: flex; align-items: center; gap: 8px; margin: var(--sp-3) 0; font-size: 0.88rem; color: var(--muted); }
.stars { color: #d8d4c8; font-size: 1.05rem; letter-spacing: 1px; }
.stars .star.is-full { color: var(--orange-500); }
.stars .star.is-half { color: var(--orange-500); opacity: 0.55; }
.rating-value { font-weight: 700; color: var(--ink); }

.pd-price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: var(--sp-3) 0; }
.pd-price-now { font-size: 2rem; font-weight: 800; color: var(--green-900); }
.pd-price-was { font-size: 1.1rem; color: var(--muted); }
.pd-save { font-size: 0.82rem; font-weight: 600; color: var(--green-700); background: var(--green-100); padding: 4px 10px; border-radius: var(--r-full); }
.pd-unit { color: var(--muted); font-size: 0.9rem; margin: 0 0 var(--sp-2); }
.pd-short { color: #3a4a41; margin: 0 0 var(--sp-4); }

.pd-stock-row { margin-bottom: var(--sp-4); }
.stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: var(--r-full);
}
.stock-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--green-700); background: var(--green-100); }
.stock-low { color: var(--orange-700); background: var(--orange-100); }
.stock-out { color: var(--red); background: var(--red-bg); }

.pd-buy-row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.qty-selector {
  display: inline-flex; align-items: center;
  border: 2px solid var(--line); border-radius: var(--r-md); background: var(--white);
  overflow: hidden;
}
.qty-btn {
  width: 42px; height: 44px; border: none; background: var(--cream);
  color: var(--ink); font-size: 1.1rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.qty-btn:hover { background: var(--green-800); color: #fff; }
.qty-input {
  width: 52px; height: 44px; border: none; text-align: center;
  font-weight: 600; -moz-appearance: textfield; appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.pd-meta {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--white); padding: var(--sp-3) var(--sp-4);
  display: flex; flex-direction: column; gap: 10px;
}
.pd-meta-item { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--muted); }
.pd-meta-item svg { width: 18px; height: 18px; color: var(--green-700); flex-shrink: 0; }
.pd-meta-item strong { color: var(--ink); }

/* tabs */
.pd-tabs { margin-top: var(--sp-8); }
.tab-list { display: flex; gap: 4px; border-bottom: 2px solid var(--line); }
.tab-btn {
  border: none; background: none; padding: 12px 20px;
  font-weight: 600; font-size: 0.95rem; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: var(--green-800); }
.tab-btn.is-active { color: var(--green-900); border-bottom-color: var(--orange-500); }
.tab-panel { padding: var(--sp-5) 0; color: #3a4a41; max-width: 720px; }
.tab-panel h4 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }
.tab-panel p { margin: 0 0 12px; }

/* combo menu list inside product description tab */
.pd-menu { list-style: none; margin: 0 0 var(--sp-5); padding: 0; columns: 2; gap: var(--sp-4); }
.pd-menu li { position: relative; padding-left: 20px; font-size: 0.9rem; color: #3a4a41; margin-bottom: 8px; }
.pd-menu li::before { content: '✓'; position: absolute; left: 0; color: var(--orange-500); font-weight: 700; }

.related { margin-top: var(--sp-8); }

@media (max-width: 899px) {
  .product-detail { grid-template-columns: 1fr; gap: var(--sp-5); }
  .pd-gallery { position: static; }
}

/* --------------------------------------------------------------------------
   18. Cart page
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: var(--sp-6);
  align-items: start;
}
.cart-items-wrap { min-width: 0; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto auto auto;
  align-items: center; gap: var(--sp-4);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-3);
  transition: box-shadow 0.2s ease;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.ci-thumb {
  width: 92px; height: 76px; border-radius: var(--r-md); overflow: hidden;
  background: var(--cream); display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.ci-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.ci-info { min-width: 0; }
.ci-name { font-weight: 600; font-size: 0.98rem; color: var(--ink); display: block; }
.ci-name:hover { color: var(--green-700); }
.ci-unit { margin: 4px 0 0; font-size: 0.78rem; color: var(--muted); }
.ci-price { margin: 6px 0 0; font-weight: 600; font-size: 0.9rem; }
.ci-qty { display: flex; align-items: center; }
.ci-qty .qty-btn { width: 34px; height: 36px; }
.ci-qty .qty-input { width: 42px; height: 36px; }
.ci-subtotal { font-weight: 700; font-size: 1rem; min-width: 84px; text-align: right; }
.ci-remove {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-full);
  background: var(--white); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.ci-remove svg { width: 17px; height: 17px; }
.ci-remove:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }

.cart-actions { display: flex; gap: 10px; margin-top: var(--sp-5); flex-wrap: wrap; }

.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.summary-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.summary-title { margin: 0 0 var(--sp-4); font-size: 1.1rem; font-weight: 700; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 0.92rem; color: var(--muted);
}
.summary-row span:last-child { color: var(--ink); font-weight: 500; }
.summary-row.is-saving span:last-child { color: var(--green-700); font-weight: 600; }
.summary-row.sum-total {
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px;
}
.summary-row.sum-total span:last-child { font-size: 1.25rem; font-weight: 800; color: var(--green-900); }
.summary-card .btn-block { margin-top: 6px; }
.free-label { color: var(--green-700) !important; }

.promo-box { display: flex; gap: 8px; margin-bottom: 8px; }
.promo-box input {
  flex: 1; height: 42px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--cream);
  text-transform: uppercase;
}
.promo-box input:focus { outline: none; border-color: var(--green-700); background: #fff; }
.promo-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 0.82rem; color: var(--green-700); background: var(--green-50);
  border-radius: var(--r-sm); padding: 8px 12px; margin: 0 0 var(--sp-3);
}
.promo-applied button { border: none; background: none; color: var(--green-700); font-weight: 700; cursor: pointer; }
.promo-hint { font-size: 0.75rem; color: var(--muted); margin: 0 0 var(--sp-3); }

@media (max-width: 899px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 84px 1fr auto; grid-template-areas: "thumb info remove" "thumb qty subtotal"; }
  .ci-thumb { grid-area: thumb; }
  .ci-info { grid-area: info; }
  .ci-remove { grid-area: remove; }
  .ci-qty { grid-area: qty; }
  .ci-subtotal { grid-area: subtotal; }
  .ci-subtotal { text-align: left; }
}

/* --------------------------------------------------------------------------
   19. Checkout page
   -------------------------------------------------------------------------- */
.checkout-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-6);
  align-items: start;
}
.checkout-main { min-width: 0; display: flex; flex-direction: column; gap: var(--sp-5); }
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6);
}
.form-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 var(--sp-5); font-size: 1.15rem; font-weight: 700;
}
.form-title::before {
  content: ''; width: 8px; height: 22px; border-radius: var(--r-full);
  background: var(--orange-500); display: inline-block;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-field { display: flex; flex-direction: column; }
.form-field.is-wide { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--cream); color: var(--ink); transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-700); background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.12);
}
.form-field textarea { resize: vertical; min-height: 84px; }
.field-note { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 0.78rem; color: var(--red); margin-top: 6px; font-weight: 500; }
.form-field .is-invalid { border-color: var(--red) !important; background: var(--red-bg) !important; }

/* payment options */
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.payment-option { position: relative; cursor: pointer; }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.po-box {
  display: flex; flex-direction: column; gap: 2px;
  border: 2px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); transition: all 0.2s ease;
  background: var(--white); height: 100%;
}
.po-name { font-weight: 700; font-size: 0.98rem; }
.po-desc { font-size: 0.78rem; color: var(--muted); }
.payment-option:hover .po-box { border-color: var(--green-600); }
.payment-option input:checked + .po-box {
  border-color: var(--green-700); background: var(--green-50);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.12);
}
.payment-option input:checked + .po-box .po-name::after { content: ' ✓'; color: var(--green-700); }
.payment-instructions {
  margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--green-50); border: 1px solid var(--green-100);
  border-radius: var(--r-md); font-size: 0.88rem; color: #3a4a41;
}
.payment-instructions p { margin: 0; }

/* checkout summary */
.checkout-summary { position: sticky; top: calc(var(--header-h) + 16px); }
.co-items { margin-bottom: var(--sp-3); }
.co-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.co-item:last-child { border-bottom: none; }
.co-item img {
  width: 52px; height: 52px; border-radius: var(--r-sm);
  background: var(--cream); border: 1px solid var(--line);
  object-fit: contain; padding: 4px; flex-shrink: 0;
}
.co-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-item-name { font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.co-item-qty { font-size: 0.75rem; color: var(--muted); }
.co-item-price { font-weight: 600; font-size: 0.88rem; white-space: nowrap; }
.checkout-empty { font-size: 0.9rem; color: var(--muted); }
.secure-note {
  margin: var(--sp-3) 0 0; font-size: 0.75rem; color: var(--muted);
  text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.secure-note svg { width: 14px; height: 14px; color: var(--green-700); }

@media (max-width: 899px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   20. Order success
   -------------------------------------------------------------------------- */
.success-hero { text-align: center; padding: var(--sp-6) 0 var(--sp-5); }
.success-icon {
  width: 88px; height: 88px; border-radius: var(--r-full);
  background: var(--green-100); color: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-4); animation: success-pop 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.success-icon svg { width: 44px; height: 44px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: check-draw 0.7s 0.3s ease forwards; }
@keyframes success-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
.success-title { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.success-sub { margin: 0; color: var(--muted); }

.order-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.order-meta {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4); text-align: center;
}
.order-meta span { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.order-meta strong { font-size: 0.98rem; }

.order-success-layout {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--sp-6);
  align-items: start;
}
.delivery-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.delivery-card p { font-size: 0.92rem; color: #3a4a41; margin: 0 0 10px; }
.delivery-note {
  background: var(--orange-100); border-radius: var(--r-sm);
  padding: 10px 14px; font-size: 0.85rem !important;
}
.next-steps { margin-top: var(--sp-4); }
.next-steps h4 { margin: 0 0 10px; font-size: 0.95rem; }
.next-steps ol { margin: 0; padding-left: 20px; }
.next-steps li { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }

.success-actions {
  display: flex; gap: var(--sp-3); justify-content: center;
  margin-top: var(--sp-7); flex-wrap: wrap;
}
@media (max-width: 767px) {
  .order-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .order-success-layout { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   21. Contact + About
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6);
  align-items: start;
}
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.info-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.info-card .trust-icon { margin-bottom: var(--sp-3); }
.info-card h3 { margin: 0 0 6px; font-size: 1rem; }
.info-card p, .info-card a { margin: 0; font-size: 0.88rem; color: var(--muted); }
.info-card a:hover { color: var(--green-700); }

.about-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7);
  align-items: center;
}
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  margin: var(--sp-6) 0 0;
}
.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5); text-align: center;
}
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--green-800); }
.stat span { font-size: 0.85rem; color: var(--muted); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }

@media (max-width: 899px) {
  .contact-grid, .about-hero-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   22. Small helpers
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--sp-5); }
.divider { height: 1px; background: var(--line); border: none; }

/* visible focus rings (keyboard accessibility) */
.btn:focus-visible,
.nav-link:focus-visible,
.icon-btn:focus-visible,
.qty-btn:focus-visible,
.gallery-thumb:focus-visible,
.tab-btn:focus-visible,
.brand:focus-visible,
.cart-link:focus-visible,
.hamburger:focus-visible,
.ci-remove:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.6);
  outline-offset: 2px;
}
.payment-option input:focus-visible + .po-box {
  border-color: var(--orange-600);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.4);
}
.nav-search input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35); }
.tab-btn:focus-visible { outline-offset: -2px; }

/* --------------------------------------------------------------------------
   23. Responsive fine-tuning
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-6); padding: var(--sp-6) 0 var(--sp-7); }
  .hero-image { max-width: 420px; margin: 0 auto; }
  .section { padding: var(--sp-6) 0; }
  .page { padding-bottom: var(--sp-7); }
}
@media (max-width: 479px) {
  :root { --header-h: 62px; }
  .brand-name { font-size: 1.02rem; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-sub { font-size: 0.54rem; }
  .hero-cta .btn, .combo-cta .btn { width: 100%; }
  .cart-item { grid-template-columns: 72px 1fr auto; }
  .ci-thumb { width: 72px; height: 62px; }
}
