/* घरगुती.com — professional mobile-first design system
   Base = phone. Desktop enhancements in @media (min-width: 768px). */
:root {
  --saffron: #e8722c;
  --saffron-dark: #c85a18;
  --saffron-soft: #fdefe2;
  --green: #2f7d4f;
  --green-dark: #23603b;
  --ink: #26211c;
  --ink-2: #5d5348;
  --muted: #8a8075;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #efe6d9;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 6px 18px rgba(60, 40, 20, .06);
  --shadow-lg: 0 4px 10px rgba(60, 40, 20, .07), 0 18px 40px rgba(60, 40, 20, .12);
  --bn-h: 58px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans Devanagari", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: var(--saffron-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(232, 114, 44, .45); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
main { padding-bottom: calc(var(--bn-h) + env(safe-area-inset-bottom) + 8px); }

/* ================= top bar ================= */
.topbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: #fff; font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(232, 114, 44, .35);
}
.brand-dot { color: var(--green); }
/* hamburger button (phones only — hidden at ≥768px) */
.navtoggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-left: auto; padding: 10px 9px;
  background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.navtoggle span { display: block; width: 100%; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .18s ease, opacity .15s ease; }
.navtoggle:hover { background: var(--saffron-soft); }
.topbar[data-nav="open"] .navtoggle { background: var(--saffron-soft); border-color: var(--saffron); }
.topbar[data-nav="open"] .navtoggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.topbar[data-nav="open"] .navtoggle span:nth-child(2) { opacity: 0; }
.topbar[data-nav="open"] .navtoggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* dropdown nav (phones): hidden below until the button opens it */
.mainnav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: stretch; gap: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(60, 40, 20, .14);
  padding: 6px 16px 12px;
}
.topbar[data-nav="open"] .mainnav { display: flex; }
.mainnav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.mainnav a:hover { color: var(--saffron-dark); text-decoration: none; }
.mainnav a.active { color: var(--saffron-dark); font-weight: 700; }
/* stacked rows in the phone dropdown (direct children only, so the
   language pill's inner links keep their inline styling) */
.mainnav > a:not(.btn) {
  font-size: 1rem;
  display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 6px 2px; border-bottom: 1px solid var(--line);
}
.mainnav > a:not(.btn):last-of-type { border-bottom: 0; }
.mainnav > a.btn { display: inline-flex; justify-content: center; margin-top: 12px; min-height: 44px; }
/* language pill: full-size touch targets inside the phone dropdown */
.mainnav .langswitch a { display: inline-block; padding: 10px 6px; }
.langswitch {
  align-self: flex-start; margin-top: 12px;
  color: var(--muted); font-size: .85rem; font-weight: 600;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px;
}
.langswitch a.active { color: var(--green); }

/* ================= bottom tab bar ================= */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(60, 40, 20, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: var(--bn-h);
  color: var(--muted); font-size: .68rem; font-weight: 600; line-height: 1.15;
  padding: 7px 2px 6px; text-decoration: none; transition: color .15s;
}
.bottomnav a:active { background: #f6ede1; }
.bottomnav a.active { color: var(--saffron-dark); }
.bottomnav svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav .bn-sell .bn-dot {
  background: linear-gradient(135deg, var(--saffron), var(--saffron-dark));
  color: #fff; border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  margin-top: -3px; box-shadow: 0 4px 10px rgba(232, 114, 44, .45);
}
.bottomnav .bn-sell svg { width: 18px; height: 18px; }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; font-size: .97rem; font-weight: 600;
  background: var(--line); color: var(--ink);
  min-height: 44px; transition: transform .12s, box-shadow .15s, background .15s, filter .15s;
}
.btn:hover { text-decoration: none; filter: brightness(.98); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: linear-gradient(135deg, #f0863c 0%, var(--saffron-dark) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(232, 114, 44, .35);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(232, 114, 44, .45); }
.btn-green { background: linear-gradient(135deg, #3a9160 0%, var(--green-dark) 100%); color: #fff; box-shadow: 0 4px 12px rgba(47, 125, 79, .3); }
.btn-danger { background: #c0392b; color: #fff; }
.btn-outline { background: rgba(255, 255, 255, .7); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--saffron); color: var(--saffron-dark); }
.btn-sm { padding: 8px 13px; font-size: .85rem; min-height: 38px; border-radius: 10px; }

/* ================= hero ================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(640px 300px at 12% -10%, rgba(232, 114, 44, .16), transparent 60%),
    radial-gradient(560px 300px at 95% 15%, rgba(47, 125, 79, .14), transparent 60%),
    radial-gradient(420px 260px at 55% 110%, rgba(240, 197, 66, .18), transparent 60%),
    linear-gradient(180deg, #fff7ee 0%, #fbf3e6 100%);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px;
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  margin-bottom: 14px;
}
.hero h1 { margin: 0 0 10px; font-size: 1.55rem; line-height: 1.28; letter-spacing: -.015em; font-weight: 800; }
.hero h1 .hl { color: var(--saffron-dark); }
.hero p { margin: 0 auto 20px; color: var(--ink-2); font-size: .98rem; max-width: 560px; }
.searchbar {
  display: flex; flex-direction: column; gap: 10px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 20px;
  padding: 14px; box-shadow: var(--shadow-lg); max-width: 840px; margin: 0 auto;
}
.searchbar input[type=text], .searchbar select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 12px; font-size: 16px; background: #fff; color: var(--ink);
  min-height: 46px; appearance: none;
}
.searchbar input[type=text]::placeholder { color: var(--muted); }
.searchbar .btn { width: 100%; }

/* trust strip under hero */
.trust-strip {
  display: flex; justify-content: center; gap: 26px; flex-wrap: wrap;
  margin-top: 20px;
}
.trust-strip .t { text-align: center; }
.trust-strip .t b { display: block; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.trust-strip .t span { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ================= hero banner carousel (inside hero) ================= */
.banner { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 22px; }
.banner-track {
  display: flex;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
.banner-slide {
  position: relative; flex: 0 0 100%; min-width: 0; overflow: hidden;
  min-height: 208px;
  display: flex; align-items: flex-end;
  color: var(--ink); text-decoration: none;
  background:
    radial-gradient(300px 170px at 88% 8%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(135deg, #fbe8d3 0%, #f7d9b6 100%);
}
.banner-slide:hover { text-decoration: none; }
.banner-slide.bs-shop {
  background:
    radial-gradient(300px 170px at 88% 8%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(135deg, #e5f1e4 0%, #cfe5cf 100%);
}
/* photo slides: full-bleed image + dark scrim for legible white text */
.bs-media { position: absolute; inset: 0; }
.bs-media img { width: 100%; height: 100%; object-fit: cover; }
.bs-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 11, 5, .82) 0%, rgba(18, 11, 5, .55) 52%, rgba(18, 11, 5, .12) 100%);
}
.bs-emoji {
  position: absolute; right: 12px; bottom: 2px;
  font-size: 5.4rem; line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(90, 55, 20, .3));
  user-select: none;
}
.bs-body { position: relative; z-index: 2; padding: 16px 15px 20px; max-width: 76%; }
.bs-body h3 { margin: 8px 0 3px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.bs-body p { margin: 0 0 10px; font-size: .88rem; color: var(--ink-2); }
.bs-photo { color: #fff; }
.bs-photo .bs-body h3 { color: #fff; }
.bs-photo .bs-body p { color: rgba(255, 255, 255, .88); }
.bs-photo .chip { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.bn-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 1.3rem; line-height: 1;
  box-shadow: 0 4px 12px rgba(60, 40, 20, .3); z-index: 3;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .12s;
}
.bn-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.bn-prev { left: 10px; }
.bn-next { right: 10px; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 9px;
  display: flex; justify-content: center; gap: 7px; z-index: 3;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .55); padding: 0; transition: width .2s, background .2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.banner-dot.active { width: 22px; background: var(--saffron-dark); }

/* ================= horizontal product scroller ================= */
.scroll-row {
  display: flex; gap: 13px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -16px; padding: 4px 16px 10px;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-card { flex: 0 0 62%; max-width: 260px; scroll-snap-align: start; }
.scroll-card .card { height: 100%; }
.row-nav { display: none; gap: 8px; }
.row-arrow {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); transition: border-color .15s, transform .12s;
}
.row-arrow:hover { border-color: var(--saffron); transform: scale(1.06); }

/* ================= sections ================= */
section.block { padding: 26px 0 8px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.block-head h2 { margin: 0; font-size: 1.18rem; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.block-head h2::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--saffron), var(--saffron-dark));
  display: inline-block;
}
.block-head .see-all {
  font-size: .88rem; font-weight: 700; color: var(--saffron-dark);
  background: var(--saffron-soft); border-radius: 999px; padding: 7px 14px;
}
.block-head .see-all:hover { text-decoration: none; background: #fbe1cc; }

/* ================= cards & grids ================= */
.grid { display: grid; gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #e6d5bd; }
.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin: 0 0 4px; font-size: .94rem; font-weight: 700; line-height: 1.35; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--saffron-dark); text-decoration: none; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-img { height: 112px; width: 100%; object-fit: cover; background: #f2e9dc; display: block; }
.card-img-wrap { position: relative; }
.price-tag { color: var(--green); font-weight: 800; }
.price-tag.big { font-size: 1.25rem; }

/* image placeholders: warm gradient tiles with a soft glyph */
.ph {
  height: 112px; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; user-select: none;
  background:
    radial-gradient(120px 80px at 80% 20%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(135deg, #fbe8d3 0%, #f6d9b8 100%);
}
.ph::after { opacity: .9; filter: drop-shadow(0 3px 6px rgba(120, 70, 20, .18)); }
.ph-product::after { content: "🫙"; }
.ph-shop::after { content: "🏠"; }
.ph-leaf { background: radial-gradient(120px 80px at 80% 20%, rgba(255,255,255,.55), transparent 60%), linear-gradient(135deg, #e3f0e2 0%, #cfe5cf 100%); }
.ph-leaf::after { content: "🌿"; }
.ph-berry { background: radial-gradient(120px 80px at 80% 20%, rgba(255,255,255,.55), transparent 60%), linear-gradient(135deg, #f9e3e0 0%, #f2cfca 100%); }
.ph-berry::after { content: "🌶️"; }
.noimg { height: 112px; display: flex; align-items: center; justify-content: center; background: #f2e9dc; color: var(--muted); font-size: .85rem; }

/* chips & ribbons */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 11px;
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
}
.featured-ribbon {
  position: absolute; top: 9px; left: 9px;
  background: linear-gradient(135deg, #f5a623, var(--saffron-dark)); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  box-shadow: 0 3px 8px rgba(200, 90, 24, .4);
}
.verified {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e3f4e9; color: var(--green); border-radius: 999px;
  font-size: .72rem; font-weight: 700; padding: 2px 9px;
}

/* category tiles */
.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-tile {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; color: var(--ink);
  font-size: .93rem; font-weight: 600; min-height: 66px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-tile:hover { text-decoration: none; border-color: var(--saffron); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-emoji {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  background: var(--saffron-soft);
}
.cat-img {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px;
  object-fit: cover; border: 1px solid var(--line);
  background: var(--saffron-soft);
}
.cat-tile:nth-child(3n+2) .cat-emoji { background: #e6f2e8; }
.cat-tile:nth-child(3n+3) .cat-emoji { background: #fdf0d7; }

/* ================= badges ================= */
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.badge-approved { background: #e3f4e9; color: var(--green); }
.badge-pending { background: #fdf0d7; color: #9a6b00; }
.badge-rejected { background: #fbe2de; color: #b03a2e; }
.badge-suspended { background: #eee; color: #666; }
.badge-plan-starter { background: #f1f3f5; color: #495057; border: 1px solid #dee2e6; }
.badge-plan-silver { background: #e9ecef; color: #212529; border: 1px solid #ced4da; }
.badge-plan-gold { background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%); color: #7a5400; border: 1px solid #ffd56b; font-weight: 800; box-shadow: 0 2px 6px rgba(255, 193, 7, .3); }

/* Pricing Plans Grid */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.plan-card { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.plan-card.featured { border-color: var(--saffron); box-shadow: 0 8px 24px rgba(232, 114, 44, .18); }
.plan-card.active-plan { border-color: var(--green); background: #fafffb; }
.plan-ribbon { position: absolute; top: -13px; right: 20px; background: linear-gradient(135deg, var(--saffron), var(--saffron-dark)); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; }
.plan-header { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.plan-name { font-size: 1.3rem; font-weight: 800; margin: 0 0 6px 0; }
.plan-price-row { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 0 0; }
.plan-amount { font-size: 2.2rem; font-weight: 900; color: var(--ink); line-height: 1; }
.plan-period { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.plan-features { list-style: none; padding: 0; margin: 0 0 24px 0; flex-grow: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.92rem; color: var(--ink-2); line-height: 1.45; }
.plan-features li .check { color: var(--green); font-weight: 900; font-size: 1.1rem; line-height: 1; }

/* ================= shop / product detail ================= */
.shop-head {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; margin: 16px 0;
  box-shadow: var(--shadow);
}
.shop-cover { height: 140px; object-fit: cover; width: 100%; background: #f2e9dc; display: block; }
.shop-cover.ph { height: 140px; font-size: 2.6rem; }
.shop-head-body { padding: 15px; display: flex; gap: 13px; align-items: flex-start; flex-wrap: wrap; }
.shop-logo {
  width: 70px; height: 70px; border-radius: 18px; object-fit: cover;
  border: 3px solid #fff; background: #f2e9dc;
  box-shadow: var(--shadow); margin-top: -42px; position: relative; z-index: 2;
}
.shop-logo.noimg { font-size: .68rem; text-align: center; }
.shop-logo.ph { height: 70px; width: 70px; font-size: 1.4rem; margin-top: -42px; }
.ph-lg { height: 250px; font-size: 4rem; border-radius: 14px; }

/* gradient CTA banner */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(340px 180px at 15% 0%, rgba(255, 255, 255, .18), transparent 65%),
    linear-gradient(135deg, #ef7f36 0%, #c85a18 55%, #a94e14 100%);
  border-radius: 20px; padding: 34px 20px; color: #fff;
  box-shadow: 0 14px 34px rgba(200, 90, 24, .35);
}
.cta-banner h2 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 800; }
.cta-banner p { margin: 0 0 18px; opacity: .92; }
.cta-banner .btn { background: #fff; color: var(--saffron-dark); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.cta-banner .btn:hover { background: #fff7ee; }
.shop-head-body h1 { margin: 0 0 4px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.shop-head .actions-row .btn { flex: 1 1 auto; text-align: center; }
.detail-cols { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.panel-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px; }
.panel-box h3 { margin-top: 0; }

/* ================= forms ================= */
.form-card {
  margin: 18px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 20px; padding: 22px 16px; box-shadow: var(--shadow-lg);
}
.form-card h1 { margin-top: 0; font-size: 1.25rem; font-weight: 800; }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: .92rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
  min-height: 46px; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(232, 114, 44, .15);
}
.field textarea { min-height: 92px; }
.field input[type=file] { padding: 10px; background: #fbf7f1; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.checks { display: grid; grid-template-columns: 1fr; gap: 6px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; min-height: 34px; }
.form-error {
  color: #b03a2e; background: #fbe2de; border-radius: 10px;
  padding: 10px 13px; margin-bottom: 14px; font-size: .92rem;
}

/* ================= flashes ================= */
.flashes { max-width: 1120px; margin: 12px auto 0; padding: 0 16px; }
.panel-main .flashes { padding: 0; }
.flash { padding: 12px 15px; border-radius: 12px; margin-bottom: 10px; font-size: .93rem; font-weight: 500; }
.flash-ok { background: #e3f4e9; color: var(--green-dark); }
.flash-err { background: #fbe2de; color: #b03a2e; }
.flash-info { background: #fdf0d7; color: #9a6b00; }

/* ================= tables ================= */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.list { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
table.list th, table.list td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { background: #fbf7f0; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); }
table.list tr:last-child td { border-bottom: 0; }
.thumb { width: 54px; height: 54px; object-fit: cover; border-radius: 12px; background: #f2e9dc; }

/* ================= stats ================= */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px; display: block; color: inherit;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.stat:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat .n { font-size: 1.5rem; font-weight: 800; color: var(--saffron-dark); }
.stat .l { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ================= footer ================= */
.footer {
  margin-top: 40px; padding: 30px 0 22px;
  background: linear-gradient(180deg, #2e2822 0%, #241f1a 100%);
  color: #d9cfc2;
}
.footer p { margin: 3px 0; font-size: .9rem; }
.footer .brand { color: #fff; margin-bottom: 6px; }
.footer .brand-mark { box-shadow: none; }
.footer .muted { color: #9c9084; }

/* ================= panel (admin/seller) ================= */
.panel-body { background: #f4efe7; }
.panel-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #2e2822 0%, #211c17 100%); color: #efe6d8; padding: calc(10px + env(safe-area-inset-top)) 0 0; }
.sidebar .brand { display: flex; padding: 0 16px 10px; color: #f3c49b; }
.sidebar-user { display: none; }
.side-nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-top: 1px solid #423a31; }
.side-nav::-webkit-scrollbar { display: none; }
.side-nav a {
  flex: 0 0 auto; padding: 12px 16px; color: #e7dccb; font-size: .9rem; font-weight: 500;
  white-space: nowrap; min-height: 44px; display: flex; align-items: center;
  border-bottom: 2px solid transparent; transition: background .15s, color .15s;
}
.side-nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.side-nav a.active { background: rgba(232, 114, 44, .16); color: #f6b07a; border-bottom-color: var(--saffron); font-weight: 700; }
.panel-main { flex: 1; padding: 16px 14px 28px; min-width: 0; }
.panel-title { margin: 4px 0 14px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filterbar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.filterbar select, .filterbar input {
  flex: 1 1 140px; padding: 11px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 16px; min-height: 44px; background: #fff;
}

/* ================= responsive (desktop) ================= */
@media (min-width: 768px) {
  main { padding-bottom: 0; }
  .bottomnav { display: none; }

  .topbar-inner { height: 64px; }
  .brand { font-size: 1.45rem; }
  .brand-mark { width: 38px; height: 38px; font-size: 1.3rem; border-radius: 12px; }
  .navtoggle { display: none; }
  .mainnav {
    display: flex; position: static; flex-direction: row; align-items: center;
    gap: 20px; flex-wrap: wrap;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .mainnav > a:not(.btn) { display: inline; min-height: 0; padding: 0; border-bottom: 0; font-size: .95rem; }
  .mainnav > a.btn { margin-top: 0; min-height: 38px; }
  .mainnav .langswitch a { display: inline; padding: 0; }
  .langswitch { align-self: auto; margin-top: 0; }

  .hero { padding: 56px 0 54px; }
  .hero-badge { font-size: .88rem; padding: 6px 16px; }
  .hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
  .hero p { font-size: 1.05rem; margin-bottom: 30px; }
  .searchbar { flex-direction: row; align-items: center; border-radius: 24px; padding: 16px; }
  .searchbar input[type=text], .searchbar select { flex: 1 1 180px; width: auto; padding: 12px 14px; font-size: .97rem; min-height: 0; }
  .searchbar .btn { width: auto; min-height: 46px; padding: 12px 26px; }
  .trust-strip { gap: 56px; margin-top: 26px; }
  .trust-strip .t b { font-size: 1.6rem; }

  section.block { padding: 38px 0 10px; }
  .block-head h2 { font-size: 1.35rem; }
  .banner { border-radius: 26px; margin-bottom: 30px; }
  .banner-slide { min-height: 360px; }
  .bs-media img { object-position: center 40%; }
  .bs-scrim { background: linear-gradient(90deg, rgba(18, 11, 5, .84) 0%, rgba(18, 11, 5, .52) 55%, rgba(18, 11, 5, .1) 100%); }
  .bs-emoji { font-size: 9.5rem; right: 44px; bottom: 8px; }
  .bs-body { padding: 40px 46px; max-width: 58%; }
  .bs-body h3 { font-size: 2.1rem; margin: 12px 0 6px; }
  .bs-body p { font-size: 1.05rem; margin-bottom: 18px; }
  .bs-body .btn-sm { padding: 11px 20px; font-size: .95rem; }
  .bn-arrow { width: 44px; height: 44px; font-size: 1.5rem; opacity: 0; transition: opacity .2s, background .15s, transform .12s; }
  .banner:hover .bn-arrow { opacity: 1; }
  .bn-prev { left: 16px; }
  .bn-next { right: 16px; }
  .banner-dots { bottom: 16px; }
  .row-nav { display: flex; }
  .scroll-row { margin: 0 -6px; padding: 4px 6px 12px; }
  .scroll-card { flex-basis: 240px; max-width: 260px; }
  .grid { gap: 18px; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
  .card-body { padding: 15px; }
  .card-body h3 { font-size: 1.03rem; }
  .card-img, .ph, .noimg { height: 140px; }
  .ph { font-size: 2.6rem; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .cat-tile { min-height: 74px; font-size: 1rem; }

  .shop-cover, .shop-cover.ph { height: 220px; }
  .shop-logo.ph { height: 92px; width: 92px; font-size: 1.8rem; margin-top: -56px; }
  .shop-head-body { padding: 20px; gap: 18px; }
  .shop-logo { width: 92px; height: 92px; border-radius: 22px; margin-top: -56px; }
  .shop-head-body h1 { font-size: 1.55rem; }
  .detail-cols { grid-template-columns: 1.4fr .9fr; gap: 24px; }
  .panel-box { padding: 18px; }

  .form-card { max-width: 640px; margin: 36px auto; padding: 28px; }
  .form-card.wide { max-width: 860px; }
  .form-card h1 { font-size: 1.35rem; }
  .checks { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 12px; }

  .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 15px; margin-bottom: 26px; }
  .stat .n { font-size: 1.7rem; }

  table.list { min-width: 0; }

  .panel-wrap { flex-direction: row; }
  .sidebar { width: 240px; flex-shrink: 0; padding: 18px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .sidebar .brand { display: flex; padding: 0 18px 14px; }
  .sidebar-user { display: block; padding: 10px 18px 16px; border-bottom: 1px solid #423a31; font-size: .85rem; margin-bottom: 10px; }
  .sidebar-user small { color: #a89c8c; }
  .side-nav { display: block; overflow: visible; border-top: 0; }
  .side-nav a { display: block; padding: 11px 18px; font-size: .93rem; min-height: 0; border-bottom: 0; border-left: 3px solid transparent; }
  .side-nav a:hover { background: rgba(255, 255, 255, .05); }
  .side-nav a.active { background: rgba(232, 114, 44, .14); border-left-color: var(--saffron); color: #f6b07a; }
  .panel-main { padding: 28px 32px; }
  .panel-title { font-size: 1.45rem; margin: 0 0 22px; }
  .filterbar select, .filterbar input { flex: 0 0 auto; min-height: 0; font-size: .92rem; padding: 9px 11px; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .sidebar { width: 200px; }
  .panel-main { padding: 20px; }
}
