/* =========================================================
   VyomBox — style.css (Option 2C + Saffron Gold Accent)
   Rebuilt from scratch | Feb 2026
   ========================================================= */

/* ---------- CSS Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #111827;
  background: #ffffff;
  line-height: 1.6;
}

img, svg, video, canvas{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea{
  font: inherit;
}

:focus-visible{
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ---------- Theme Tokens ---------- */
:root{
  --navy: #0F172A;

  --blue: #2563EB;
  --blueHover: #1D4ED8;

  /* Yellow / Gold accents (logo-aligned) */
  --accent: #f5b400;        /* saffron gold */
  --accent-soft: #fff4d6;   /* soft gold background */

  --bg: #FFFFFF;
  --section: #F3F4F6;
  --card: #FFFFFF;

  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;

  --radius: 14px;
  --radiusSm: 10px;
  --shadow: 0 10px 26px rgba(15, 23, 42, .08);
  --shadowHover: 0 14px 40px rgba(15, 23, 42, .14);

  --max: 1180px;
  --pad: 20px;
}

/* ---------- Layout Helpers ---------- */
.container{
  width: min(var(--max), calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.section{
  padding: 46px 0;
}

.section.alt{
  background: var(--section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid{
  display: grid;
  gap: 18px;
}

.grid-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
  .section{ padding: 34px 0; }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4{
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1{
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800;
  color: var(--navy);
}

h2{
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 750;
  color: var(--navy);
}

h3{
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

p{ margin: 0 0 12px; color: var(--text); }

.small{ font-size: 14px; color: var(--muted); }
.muted{ color: var(--muted); }

.highlight{ color: var(--blue); }

/* Yellow highlight chip for hero word(s) */
.accent-highlight{
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ---------- Header / Nav ---------- */
.siteHeader{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand img{
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.brand .brandText{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand .brandText strong{
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.brand .brandText span{
  font-size: 12px;
  color: var(--muted);
}

.navLinks{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navLinks a{
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}

.navLinks a:hover{
  color: var(--navy);
  background: #F9FAFB;
}

.navLinks a.active{
  color: var(--navy);
  background: #F3F4F6;
}

@media (max-width: 820px){
  .brand{ min-width: auto; }
  .brand .brandText span{ display: none; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  user-select: none;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.btn-primary:hover{
  background: var(--blueHover);
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.btn-outline{
  background: transparent;
  border-color: rgba(37, 99, 235, .45);
  color: var(--blue);
}

.btn-outline:hover{
  border-color: rgba(37, 99, 235, .8);
  background: rgba(37, 99, 235, .06);
}

.btn-ghost{
  background: #F9FAFB;
  border-color: var(--border);
  color: var(--navy);
}

.btn-ghost:hover{
  background: #F3F4F6;
}

/* Backward-compat: .btn.secondary (used in older markup) */
.btn.secondary{
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: #1e293b;
}

.btn.secondary:hover{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ---------- Badges ---------- */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: #EEF2FF;
  color: #1E3A8A;
  border: 1px solid rgba(37, 99, 235, .14);
}

/* ---------- Cards ---------- */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 18px;

  /* Gold “signature” touch */
  border-left: 4px solid transparent;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease, border-left-color .18s ease;
}

.card:hover{
  border-left-color: var(--accent);
}

.card.soft{
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.cardTitle{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* ---------- Hero (with subtle gold glow) ---------- */
.hero{
  padding: 56px 0 42px;
  background:
    radial-gradient(circle at 18% 28%, rgba(245,180,0,0.08), transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
}

.heroWrap{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

.heroCard{
  border-radius: 18px;
  border: 1px solid var(--border);
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 520px at 80% 50%, rgba(245,180,0,.10), transparent 60%),
    #ffffff;
  padding: 22px;
}

.heroActions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.heroMeta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.heroAside{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
}

@media (max-width: 900px){
  .heroWrap{ grid-template-columns: 1fr; }
}

/* ---------- Featured spacing tweaks ---------- */
#featured.section{ padding-top: 34px; }

/* ---------- Product Grid / Product Card ---------- */
.productGrid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px){
  .productGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .productGrid{ grid-template-columns: 1fr; }
}

/* Force 4 columns on large screens (helps if any old CSS overrides) */
@media (min-width: 1100px){
  .productGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.productCard{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.productCard:hover{
  box-shadow: var(--shadowHover);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.22);
}

.productMedia{
  aspect-ratio: 4 / 3;
  background: #F9FAFB;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.productBody{
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.productTitle{
  font-size: 15px;
  font-weight: 750;
  color: var(--navy);
  line-height: 1.25;
  margin: 0;
}

.productDesc{
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.productPriceRow{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.price{
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
}

.price small{
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.productActions{
  padding: 0 14px 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.productActions .btn{
  width: 100%;
}

/* ---------- Tables ---------- */
.tableWrap{
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

table{
  width: 100%;
  border-collapse: collapse;
}

th, td{
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

th{
  background: #F9FAFB;
  color: var(--navy);
  font-weight: 750;
}

/* ---------- Forms ---------- */
.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label{
  font-size: 13px;
  color: var(--navy);
  font-weight: 650;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

input::placeholder, textarea::placeholder{
  color: #9CA3AF;
}

textarea{ min-height: 120px; resize: vertical; }
/* Always-visible form fields */
input[type="text"],
input[type="number"],
input[type="url"],
input[type="email"],
select,
textarea{
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(15,23,42,.22);   /* visible border */
  background: #fff;
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(245,158,11,.75);     /* saffron focus */
  box-shadow: 0 0 0 4px rgba(245,158,11,.18);
}

/* ---------- Footer ---------- */
.siteFooter{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: #fff;
}

.footerRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footerLinks{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footerLinks a{
  font-size: 13px;
  color: var(--muted);
}

.footerLinks a:hover{
  color: var(--navy);
}

/* ---------- Utilities ---------- */
.center{ text-align: center; }
.right{ text-align: right; }
.mt-8{ margin-top: 8px; }
.mt-12{ margin-top: 12px; }
.mt-18{ margin-top: 18px; }
.mt-24{ margin-top: 24px; }
.mb-0{ margin-bottom: 0; }
.hidden{ display: none !important; }

/* ---------- Safe Image Hotfix (prevents oversized images anywhere) ---------- */
main img,
.card img,
section img{
  max-width: 100%;
  height: auto;
}
/* ============================
   Option 2C “Contrast & Mix” Patch
   Add this at END of style.css
   ============================ */

/* 1) Page background becomes lightly tinted; cards remain white */
body{
  background: #f6f8fc; /* soft blue-grey (creates separation) */
}

/* 2) Stronger card separation */
.card{
  background: #ffffff;
  border-color: #dfe6f2; /* slightly darker than before */
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

/* 3) Alternating section background for “mix”
   (Use .alt on sections you want tinted) */
.section.alt{
  background:
    radial-gradient(circle at 15% 10%, rgba(37,99,235,0.06), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(245,180,0,0.06), transparent 55%),
    #f6f8fc;
  border-top: 1px solid #e6edf7;
  border-bottom: 1px solid #e6edf7;
}

/* 4) Card “designed” accent: top micro-gradient strip */
.card{
  position: relative;
  overflow: hidden;
}

.card::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37,99,235,0.55), rgba(245,180,0,0.65));
  opacity: .55;
}

.card:hover::before{ opacity: .9; }
/* Keep the strip subtle unless hovered */
.card:hover::before{ opacity: .9; }

/* Optional: make the product image panel a bit tinted for contrast */
.productMedia{
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}
/* ==============================
   Product Listing Image Fix
   ============================== */

.product-card img,
.products-list img {
  width: 100%;
  max-height: 420px;      /* controls tall images */
  object-fit: cover;      /* crops nicely without distortion */
  border-radius: 14px;
  display: block;
}
/* ===========================
   Products page – Grid + Image sizing (FIX)
   =========================== */

/* Your products.php uses: <div class="grid products"> */
.grid.products{
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: start;
}

/* Optional: slightly tighter cards on small screens */
@media (max-width: 900px){
  .grid.products{
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}
/* Prevent single product card from stretching full width */
.grid.products{
  grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
  justify-content: start;   /* left align columns */
}
/* IMPORTANT: stop huge images when only 1 card exists */
.productMedia{
  height: 230px;        /* fixed height so it never becomes giant */
  aspect-ratio: auto;   /* disable aspect-ratio (it causes huge height on wide cards) */
  overflow: hidden;
}



/* If any older template still uses product-img, keep it safe too */
.product-img{
  height: 230px;
  overflow: hidden;
}
.product-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Optional: consistent card layout */
.product-card {
  overflow: hidden;
}
/* =========================
   Product Card Image Fix
========================= */

.product-img{
  width: 100%;
  height: 260px;            /* control card height here */
  border-radius: 16px;
  overflow: hidden;
  background: #f3f6ff;      /* subtle fallback background */
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;        /* crop nicely */
  display: block;
}
/* =========================
   Products page grid fix
   ========================= */
.grid.products{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

/* optional: slightly tighter on small screens */
@media (max-width: 520px){
  .grid.products{
    grid-template-columns: 1fr;
  }
}
/* =========================
   Product Card Media (FINAL)
   ========================= */

.productMedia{
  aspect-ratio: 4 / 3;
  background: #F9FAFB;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
}

.productMedia img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;   /* IMPORTANT: prevents huge crop (security camera issue) */
  padding: 12px;
  transform: scale(1);
  transition: transform .18s ease;
}

.productCard:hover .productMedia img{
  transform: scale(1.03);
}
/* ===========================
   Products page image sizing
   - keeps cards consistent even when only 1 item is shown
   =========================== */
.productMedia{
  height: 240px;        /* fixed height so single-item pages don't become huge */
  aspect-ratio: auto;   /* override any previous aspect-ratio */
  overflow: hidden;
}

.productMedia.cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;           /* cover should fill edge-to-edge */
}

.productMedia.contain img{
  width: 100%;
  height: 100%;
  object-fit: contain;  /* show full product without cropping */
  padding: 12px;
  background: #F9FAFB;
}

@media (max-width: 640px){
  .productMedia{ height: 200px; }
}
/* ==========================================================
   VyomBox.com – Updated Safety/Compatibility Layer
   Ensures white backgrounds and NO image cropping (object-fit: contain)
   ========================================================== */

.productsGrid, .products-grid, .products-list, .productsList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.productCard, .product-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

/* FIX: Forces White Background for all media boxes */
.productMedia, .product-img {
  aspect-ratio: 4 / 3;
  background: #ffffff !important; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* FIX: Shows full images (like Ashwathama) with no cropping */
.productMedia img,
.product-img img,
.productCard img,
.product-card img,
.product-mini img,
.productsGrid img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* Forces full visibility */
  display: block;
  background-color: #ffffff !important;
  padding: 8px; /* Breathing room for book covers */
  box-sizing: border-box;
}

/* Keep the rest of your button and text styles */
.productContent, .product-body {
  padding: 14px 14px 16px;
}

.productTitle, .product-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.productDesc, .product-desc {
  color: #475569;
  margin: 0 0 12px;
  line-height: 1.35;
}

.productActions, .product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.productActions .btn, .product-actions .btn, .product-actions a, .productActions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(245, 158, 11, .55);
  background: #fff7ed;
  color: #111827;
}

.productActions .btn:hover, .product-actions .btn:hover, .product-actions a:hover, .productActions a:hover {
  filter: brightness(.98);
}

.catPills a, .categoryPills a, .category-pills a, .filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, .55);
  background: #fff;
  color: #111827;
  text-decoration: none;
  margin-right: 8px;
}
/* =========================
   Top Navigation + Dropdown (FINAL)
   ========================= */

/* Ensure header row aligns */
.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* Main nav */
.nav{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:28px;
}

.nav > li{
  position:relative;
}

.nav > li > a{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
  font-weight:650;
  font-size:15px;
  color: var(--navy);
}

.nav > li > a:hover{
  background:#F9FAFB;
}

/* Dropdown */
.dropdown{
  position:absolute;
  top:100%;              /* IMPORTANT: no hover-gap */
  left:0;
  margin-top:10px;       /* visual spacing */
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px;
  min-width:200px;
  display:none;
  z-index:9999;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
}

/* Hover bridge: keeps dropdown open while moving cursor down */
.dropdown::before{
  content:"";
  position:absolute;
  top:-12px;
  left:0;
  right:0;
  height:12px;
  background:transparent;
}

.dropdown li{
  list-style:none;
}

.dropdown a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  font-weight:600;
  color: var(--navy);
}

.dropdown a:hover{
  background:#F8FAFC;
}

/* Show dropdown */
.nav > li:hover .dropdown,
.nav > li:focus-within .dropdown{
  display:block;
}

/* =========================
   Header layout fix for login state
   ========================= */
.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand{
  flex: 0 0 auto;
}

.nav-main{
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  min-width: 260px;
}

.nav{
  flex-wrap: wrap;
  justify-content: center;
}

.nav-auth{
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-auth-links{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.user-chip strong{
  color: var(--navy);
}

@media (max-width: 1180px){
  .nav-main{
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav{
    justify-content: flex-start;
  }
}

@media (max-width: 820px){
  .navbar{
    align-items: flex-start;
  }

  .nav-auth{
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .nav-auth-links{
    justify-content: flex-start;
  }

  .user-chip{
    white-space: normal;
  }
}

@media (max-width: 640px){
  .nav{
    gap: 12px;
  }

  .nav > li > a{
    padding: 6px 8px;
  }

  .nav-auth-links .btn{
    padding: 8px 10px;
  }
}

/* =========================================================
   Admin UI refresh
   ========================================================= */
.admin-shell{
  padding-bottom: 28px;
}

.admin-topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.admin-subtitle{
  color: var(--muted);
  margin-top: 6px;
}

.admin-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.admin-shortcuts{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

.admin-shortcut{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px 16px;
  display:block;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.admin-shortcut strong{
  display:block;
  color:var(--navy);
  margin-bottom:4px;
}

.admin-shortcut span{
  color:var(--muted);
  font-size:13px;
}

.admin-stats-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap:14px;
  margin-bottom:18px;
}

.admin-stat-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 20px rgba(15,23,42,.05);
  min-height:128px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.admin-stat-label{
  font-size:14px;
  font-weight:700;
  color:var(--navy);
}

.admin-stat-value{
  font-size:34px;
  line-height:1;
  font-weight:900;
  color:var(--navy);
  margin:10px 0;
}

.admin-stat-hint{
  color:var(--muted);
  font-size:13px;
}

.admin-panels{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
}

.admin-panel{
  padding:18px;
}

.admin-panel-head,
.admin-table-head,
.admin-filter-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}

.admin-mini-table table th,
.admin-mini-table table td{
  white-space:nowrap;
  vertical-align:top;
}

.status-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid var(--border);
  background:#fff;
  color:var(--navy);
  margin-right:6px;
  margin-bottom:4px;
}

.status-ok{
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#166534;
}

.status-off{
  background:#f8fafc;
  border-color:#cbd5e1;
  color:#475569;
}

.status-warn{
  background:#fffbeb;
  border-color:#fcd34d;
  color:#92400e;
}

.status-neutral{
  background:#eef2ff;
  border-color:#c7d2fe;
  color:#3730a3;
}

.status-paid{
  background:#dcfce7;
  border-color:#86efac;
  color:#166534;
}

.status-pending_verification{
  background:#fffbeb;
  border-color:#fde68a;
  color:#92400e;
}

.status-mismatch{
  background:#fee2e2;
  border-color:#fecaca;
  color:#991b1b;
}

.status-unpaid{
  background:#f8fafc;
  border-color:#e2e8f0;
  color:#475569;
}

.admin-filter-card,
.admin-products-table-card,
.admin-note-card{
  margin-top:14px;
}

.admin-filter-pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.admin-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:700;
  color:var(--navy);
}

.admin-pill span{
  font-size:12px;
  color:var(--muted);
  background:#f8fafc;
  padding:2px 8px;
  border-radius:999px;
}

.admin-pill.is-active{
  background:var(--accent-soft);
  border-color:var(--accent);
}

.admin-filter-grid{
  display:grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(160px, 1fr));
  gap:12px;
  align-items:end;
}

.admin-filter-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  padding-bottom:2px;
}

.admin-products-wrap{
  overflow:auto;
}

.admin-products-table{
  width:100%;
  min-width:1080px;
  border-collapse:collapse;
}

.admin-products-table th,
.admin-products-table td{
  vertical-align:middle;
}

.admin-product-cell{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:290px;
}

.admin-product-cell img,
.admin-product-thumb{
  width:58px !important;
  height:58px !important;
  border-radius:12px;
  border:1px solid var(--border);
  object-fit:contain !important;
  background:#fff;
  padding:4px;
  flex:0 0 58px;
}

.admin-product-thumb-empty{
  border-style:dashed;
  background:#f8fafc;
}

.admin-product-title{
  font-weight:800;
  color:var(--navy);
  margin-bottom:2px;
}

.admin-price-stack{
  white-space:nowrap;
  line-height:1.55;
}

.admin-price-stack span{
  color:var(--muted);
}

.admin-status-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:120px;
}

.admin-inline-form{
  margin:0;
}

.status-toggle{
  width:100%;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:700;
  cursor:pointer;
}

.admin-row-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.admin-row-actions .btn,
.admin-row-actions form{
  margin:0;
}

.admin-flash{
  margin-top:14px;
  padding:14px 16px;
}

.admin-flash-warn{
  background:#fff9e6;
  border-left:4px solid var(--accent);
}

@media (max-width: 1180px){
  .admin-shortcuts,
  .admin-stats-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .admin-panels{
    grid-template-columns:1fr;
  }

  .admin-filter-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px){
  .admin-shortcuts,
  .admin-stats-grid,
  .admin-filter-grid{
    grid-template-columns:1fr;
  }

  .admin-actions{
    width:100%;
  }

  .admin-actions .btn{
    flex:1 1 auto;
  }

  .admin-row-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .admin-row-actions .btn,
  .admin-row-actions form,
  .admin-row-actions form button{
    width:100%;
  }
}
