/* ============================================================
   Manan Digital Store — amber premium theme (Next.js ref design)
   Palette: amber gradient #ffd479 → #ffb020 → #ff6a00 (primary)
            near-black #070a0f (base) · off-white #eef2f8 (text)
            muted #97a3b6 · mint #35e0a1 · sky #4cc9f0 · rose #ff6b81
            WhatsApp green #25D366 (floating button only)
   ============================================================ */
:root {
  --bg: #070a0f;
  --bg-deep: #04070c;
  --bg2: #0b0f15;
  --card: #10151d;
  --card2: #0d1219;
  --border: rgba(255, 255, 255, 0.08);
  --brand: #ffb020;
  --brand-deep: #ff8a00;
  --brand-300: #ffd479;
  --brand-ink: #1a1206;
  --brand-glow: rgba(255, 138, 0, 0.35);
  --brand-soft: rgba(255, 176, 32, 0.10);
  --brand-grad: linear-gradient(120deg, #ffd479 0%, #ffb020 40%, #ff6a00 100%);
  --mint: #35e0a1;
  --sky: #4cc9f0;
  --rose: #ff6b81;
  --wa: #25d366;
  --text: #eef2f8;
  --muted: #97a3b6;
  --accent: #ffb020;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Trebuchet MS", sans-serif;
}

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

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 138, 0, 0.07), transparent 60%),
    radial-gradient(1000px 520px at 8% 108%, rgba(76, 201, 240, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

::selection { background: var(--brand); color: #0b0f15; }
* { scrollbar-width: thin; scrollbar-color: #2a3646 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #1d2634; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(1180px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }

/* ---------- announcement ---------- */
.announce {
  background-image: linear-gradient(120deg, #ffd479 0%, #ffb020 40%, #ff6a00 100%);
  color: var(--brand-ink);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 12px;
  letter-spacing: 0.2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 176, 32, 0.20);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 800; letter-spacing: 0.3px;
  color: var(--text);
}
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--brand-300); }
.nav a.active { border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; margin-left: auto; }

/* ---------- buttons ---------- */
/* .btn-green is the primary CTA class used across storefront + JS (amber gradient) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 800; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-green {
  background-image: linear-gradient(120deg, #ffb020, #ff6a00);
  color: var(--brand-ink);
  box-shadow: 0 12px 30px -12px rgba(255, 138, 0, 0.75);
}
.btn-green:hover { filter: brightness(1.06); box-shadow: 0 18px 40px -14px rgba(255, 138, 0, 0.9); }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.16); }
.btn-outline:hover { border-color: rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.08); }
.btn-wa {
  background-image: linear-gradient(120deg, #35e0a1, #17bd84);
  color: #052018;
  box-shadow: 0 12px 30px -12px rgba(53, 224, 161, 0.7);
}
.btn-wa:hover { filter: brightness(1.05); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-danger { background: var(--danger-soft); color: #fca5a5; border-color: rgba(248, 113, 113, 0.45); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.wa-ico { font-size: 1.15em; }

/* ---------- hero (ref design: grid bg + amber glow + deal cards) ---------- */
.hero {
  position: relative;
  padding: 56px 0 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background:
    radial-gradient(34rem 30rem at 8% 0%, rgba(255, 138, 0, 0.14), transparent 65%),
    radial-gradient(30rem 30rem at 96% 22%, rgba(76, 201, 240, 0.10), transparent 65%),
    var(--bg);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 640px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 176, 32, 0.28); background: rgba(255, 176, 32, 0.08);
  color: var(--brand-300); font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.hero h1 {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 0.98; letter-spacing: -1px;
  color: var(--text);
}
.brand-text {
  background-image: linear-gradient(120deg, #ffe6b0 0%, #ffb020 45%, #ff6a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { color: var(--muted); font-size: 1.05rem; margin: 22px 0 0; max-width: 34rem; line-height: 1.7; }

/* hero search */
.hero-search {
  margin-top: 30px; width: 100%; max-width: 34rem;
  display: flex; gap: 10px; align-items: stretch;
  background: rgba(11, 15, 21, 0.7); border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px; padding: 8px; backdrop-filter: blur(6px);
}
.hero-search-ico {
  display: flex; align-items: center; padding-left: 12px;
  color: var(--muted); flex-shrink: 0;
}
.hero-search input {
  flex: 1; min-width: 0; background: transparent; border: none;
  color: var(--text); font-size: 0.95rem; font-family: inherit; padding: 12px 4px;
}
.hero-search input::placeholder { color: #6f7c90; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { border-color: rgba(255, 176, 32, 0.6); box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.10); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* hero stats */
.hero-stats {
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 32rem;
}
.hero-stats > div { margin: 0; }
.hero-stats dt {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1;
}
.hero-stats dd {
  margin: 6px 0 0; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

/* ---------- hero deal cards (right column) ---------- */
.hero-deals { position: relative; height: 32rem; }
.deals-glow {
  position: absolute; left: 50%; top: 50%; width: 20rem; height: 20rem;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 0deg, #ff8a00, #4cc9f0, #35e0a1, #ff8a00);
  opacity: 0.28; filter: blur(80px); pointer-events: none;
}
.deal-card {
  position: absolute; width: 19rem; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  border-radius: 22px; padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
  animation: deal-float 7s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.deal-card:hover { transform: scale(1.03); border-color: rgba(255, 176, 32, 0.5); }
.deal-card.dc1 { left: 0; top: 4%; transform: rotate(-4deg); }
.deal-card.dc2 { right: 0; top: 38%; transform: rotate(3deg); animation-delay: 0.9s; }
.deal-card.dc3 { left: 8%; bottom: 0; width: 20rem; transform: rotate(-2deg); animation-delay: 1.8s; }
.deal-card.dc1:hover { transform: rotate(-4deg) scale(1.03); }
.deal-card.dc2:hover { transform: rotate(3deg) scale(1.03); }
.deal-card.dc3:hover { transform: rotate(-2deg) scale(1.03); }
@keyframes deal-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -14px; }
}
.deal-top { display: flex; align-items: center; gap: 12px; }
.deal-ico {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  background: #151b25; border: 1px solid rgba(255, 255, 255, 0.08);
}
.deal-title { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; }
.deal-cat { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.deal-bottom {
  margin-top: 14px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(7, 10, 15, 0.6); border-radius: 14px; padding: 10px 14px;
}
.deal-price { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.deal-order {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--brand-grad); color: var(--brand-ink);
  padding: 8px 14px; border-radius: 10px;
}
.deal-order:hover { filter: brightness(1.08); }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.3px; color: var(--text); }
.section-sub { color: var(--muted); margin: 6px 0 24px; }

/* ---------- toolbar / pills ---------- */
.toolbar { margin-bottom: 16px; }
.search {
  width: 100%; padding: 13px 16px; border-radius: 10px; font-size: 1rem;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.pill {
  padding: 8px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  background: var(--card); border: 1px solid rgba(255, 176, 32, 0.35); color: var(--muted); cursor: pointer;
}
.pill:hover { color: var(--text); border-color: var(--brand); }
.pill.active { background-image: linear-gradient(120deg, #ffb020, #ff6a00); border-color: transparent; color: var(--brand-ink); box-shadow: 0 4px 16px var(--brand-glow); }

/* ---------- product grid / cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid rgba(255, 176, 32, 0.16);
  border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 176, 32, 0.55);
  box-shadow: var(--shadow), 0 0 26px rgba(255, 176, 32, 0.20);
}
.card-img { position: relative; height: 160px; background: #0d1219; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder {
  width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-300); font-size: 1.8rem; font-weight: 800;
}
.card-badge {
  position: absolute; top: 10px; left: 10px; background-image: linear-gradient(120deg, #ffb020, #ff6a00); color: var(--brand-ink);
  font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px;
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700; color: var(--sky);
  background: rgba(76, 201, 240, 0.10); border: 1px solid rgba(76, 201, 240, 0.35);
  padding: 3px 10px; border-radius: 999px;
}
.card h3 { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: var(--text); }
.card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price { font-size: 1.25rem; font-weight: 800; font-family: var(--font-display); background-image: linear-gradient(120deg, #ffe6b0 0%, #ffb020 45%, #ff6a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.price-contact { font-size: 1rem; font-weight: 700; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.72rem; color: var(--muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.card .btn { width: 100%; margin-top: 4px; }
.duration { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }

/* ---------- trust badges ---------- */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.badge-card {
  background: var(--card); border: 1px solid rgba(255, 176, 32, 0.16);
  border-radius: var(--radius); padding: 24px; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badge-card:hover { transform: translateY(-3px); box-shadow: 0 0 22px rgba(255, 176, 32, 0.18); }
.badge-ico { font-size: 2rem; margin-bottom: 10px; color: var(--brand-300); }
.badge-card h3 { margin-bottom: 6px; color: var(--text); }
.badge-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(255, 176, 32, 0.20); background: var(--bg-deep); padding: 44px 0 0; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer h4 { margin-bottom: 12px; font-size: 1rem; color: var(--text); }
.footer p { color: var(--muted); font-size: 0.93rem; margin-bottom: 6px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--brand-300); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  font-size: 0.82rem; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
}
.socials a:hover { color: var(--brand-300); border-color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* ---------- floating WhatsApp (brand green — the single exception) ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #04120a; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.45); transition: transform 0.15s ease;
}
.fab:hover { transform: scale(1.08); }

/* ============================================================
   Admin panel
   ============================================================ */
.admin-page { min-height: 100vh; }
.admin-header {
  position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 15, 0.95);
  border-bottom: 1px solid rgba(255, 176, 32, 0.20); backdrop-filter: blur(10px);
}
.login-wrap { min-height: 90vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card {
  background: var(--card); border: 1px solid rgba(255, 176, 32, 0.28); border-radius: var(--radius);
  padding: 36px; width: min(400px, 100%);
  box-shadow: var(--shadow), 0 0 30px rgba(255, 176, 32, 0.10);
  text-align: center;
}
.login-card img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; margin: 0 auto 16px; }
.login-card h2 { margin-bottom: 6px; color: var(--text); }
.login-card .muted { margin-bottom: 20px; font-size: 0.92rem; }
.form-error { color: #fca5a5; background: var(--danger-soft); border: 1px solid rgba(248, 113, 113, 0.45); border-radius: 8px; padding: 10px; margin-bottom: 14px; font-size: 0.9rem; }
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input[type="text"], .field input[type="password"], .field input[type="url"],
.field input[type="file"], .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 9px; font-size: 0.95rem; font-family: inherit;
  background: #0d1219; border: 1px solid var(--border); color: var(--text);
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-row input { width: 18px; height: 18px; accent-color: var(--brand); }
.img-preview { margin-top: 10px; max-height: 120px; border-radius: 8px; border: 1px solid var(--border); }

.tabs { display: flex; gap: 8px; margin: 24px 0; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
}
.tab-btn.active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 16px var(--brand-glow); }

.admin-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.admin-panel-head h3 { font-size: 1.2rem; color: var(--text); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 720px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; background: rgba(255, 176, 32, 0.05); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 176, 32, 0.05); }
.thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #0d1219; }
.thumb-ph { width: 46px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-300); font-weight: 800; font-size: 1.2rem; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-btn { padding: 6px 12px; border-radius: 7px; font-size: 0.82rem; font-weight: 700; cursor: pointer; border: 1px solid var(--border); background: rgba(255,255,255,0.04); color: var(--text); }
.mini-btn:hover { border-color: var(--brand); color: var(--brand-300); }
.mini-btn.danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.45); background: var(--danger-soft); }
.mini-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.toggle { position: relative; width: 44px; height: 24px; appearance: none; -webkit-appearance: none; background: #2a3646; border-radius: 999px; cursor: pointer; transition: background 0.15s; outline: none; }
.toggle:checked { background: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.toggle:checked::after { left: 23px; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4, 7, 12, 0.82); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 30px 14px; overflow-y: auto; }
.modal { background: var(--card); border: 1px solid rgba(255, 176, 32, 0.26); border-radius: var(--radius); width: min(620px, 100%); padding: 28px; box-shadow: var(--shadow), 0 0 30px rgba(255, 176, 32, 0.10); }
.modal h3 { margin-bottom: 18px; color: var(--text); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

/* ============================================================
   Store Manager additions
   ============================================================ */

/* the `hidden` attribute must always win over display rules */
[hidden] { display: none !important; }

/* .btn-red is the admin "primary action" class (Add / Save) — styled green like the mockup */
.btn-red { background-image: linear-gradient(120deg, #ffb020, #ff6a00); color: var(--brand-ink); box-shadow: 0 12px 30px -12px rgba(255, 138, 0, 0.75); }
.btn-red:hover { filter: brightness(1.06); box-shadow: 0 18px 40px -14px rgba(255, 138, 0, 0.9); }

.login-sub { color: var(--muted); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 22px; }
.login-card .field input[type="email"] {
  width: 100%; padding: 11px 13px; border-radius: 9px; font-size: 0.95rem; font-family: inherit;
  background: #0d1219; border: 1px solid var(--border); color: var(--text);
}
.login-card .field input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.control-label {
  color: var(--brand-300); font-size: 0.78rem; font-weight: 800; letter-spacing: 2.5px;
  margin: 30px 0 4px; text-transform: uppercase;
}
.manager-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.manager-head h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.manager-head .tabs { margin: 0; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; text-align: center; border-top: 3px solid var(--brand);
}
.stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; background-image: linear-gradient(120deg, #ffe6b0 0%, #ffb020 45%, #ff6a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin-top: 4px; }

.toolbar-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.search-sm { width: auto; flex: 1; min-width: 200px; }
.filter-select {
  padding: 11px 13px; border-radius: 9px; font-size: 0.92rem; font-family: inherit; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--brand); }

.item-list { display: flex; flex-direction: column; gap: 12px; }
.item-row {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.item-row:hover { border-color: rgba(255, 176, 32, 0.45); box-shadow: 0 0 18px rgba(255, 176, 32, 0.12); }
.item-inactive { opacity: 0.55; }
.item-thumb { flex-shrink: 0; }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 700; font-size: 1.02rem; color: var(--text); }
.item-meta { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.feat-star { color: var(--brand); }

.hint { font-size: 0.8rem; color: var(--muted); margin-top: 5px; }

/* ---------- item details modal (storefront) ---------- */
.modal-close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: rgba(0,0,0,0.5); color: var(--text); font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { border-color: var(--brand); color: var(--brand-300); }
.item-modal { position: relative; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; }
.modal-img {
  height: 220px; border-radius: 10px; overflow: hidden; background: #0d1219;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.modal-img img { width: 100%; height: 100%; object-fit: cover; }
.modal-img .img-placeholder { width: 84px; height: 84px; font-size: 2.4rem; }
.modal-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin: 10px 0 6px; color: var(--text); }
.modal-desc { color: var(--text); margin: 12px 0; }
.modal-details {
  white-space: pre-wrap; color: var(--muted); font-size: 0.93rem;
  background: rgba(255, 176, 32, 0.05); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px; margin: 12px 0;
}
.item-modal .tag-row { margin: 12px 0; }
.btn-block { width: 100%; margin-top: 16px; }
.card.clickable { cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  /* hide floating deal cards below desktop; hero copy takes full width */
  .hero-deals { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .hero-copy { max-width: 100%; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* large screens / TVs: use a bit more width, never stretch edge-to-edge */
@media (min-width: 1600px) {
  .wrap { width: min(1320px, 94%); }
  .hero { padding: 84px 0 72px; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #0b0f15; flex-direction: column; padding: 16px 4%; border-bottom: 1px solid var(--border); gap: 14px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner .btn { display: none; }
  .hero { padding: 44px 0 40px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .modal { padding: 20px; }
  .modal-back { padding: 18px 10px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .manager-head h1 { font-size: 1.6rem; }
  .item-row { flex-wrap: wrap; }
}

/* ============================================================
   SEO additions: FAQ, breadcrumbs, item detail pages
   ============================================================ */

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 1rem; max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:hover { border-color: rgba(255, 176, 32, 0.45); box-shadow: 0 0 20px rgba(255, 176, 32, 0.12); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text); }
.faq-item p { color: var(--muted); font-size: 0.95rem; }

/* ---------- card title / image links (SEO detail pages) ---------- */
.card-img a { display: block; }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--brand-300); }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--brand-300); }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 0.45rem; }

/* ---------- item detail page ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-img .detail-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 176, 32, 0.28);
  box-shadow: 0 0 28px rgba(255, 176, 32, 0.12);
}
.detail-img .img-placeholder { min-height: 320px; font-size: 5rem; }
.detail-info h1 { font-size: 2rem; line-height: 1.25; margin: 0.6rem 0 1rem; color: var(--text); }
.price-lg { font-size: 1.6rem; font-weight: 800; font-family: var(--font-display); background-image: linear-gradient(120deg, #ffe6b0 0%, #ffb020 45%, #ff6a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.detail-short { font-size: 1.05rem; color: var(--text); margin: 1rem 0; }
.detail-full {
  white-space: pre-line;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.detail-meta { list-style: none; margin-top: 1.25rem; color: var(--muted); font-size: 0.92rem; }
.detail-meta li { margin-bottom: 0.35rem; }
