/* Storefront styles — plain CSS, no build step needed. */
:root {
  --brand: #0b4ea2;
  --brand-dark: #083a7a;
  --accent: #d9a21b;
  --danger: #dc2626;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f7f5;
  --card: #ffffff;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #f4f9f6 linear-gradient(180deg, #fff6dc 0%, #eaf3ff 22%, #e6f6ee 46%, #fdf3d4 70%, #e4f0fb 100%); color: var(--ink);
  font-family: 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5; font-size: 15px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(16px, 2.4vw, 44px); }

/* Top bar + header */
.topbar { background: var(--brand-dark); color: #fff; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header .container { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.logo { font-weight: 700; font-size: 22px; color: var(--brand); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo img { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text small { font-size: 11px; font-weight: 500; color: var(--accent); letter-spacing: .02em; }
.search { flex: 1; display: flex; max-width: 560px; }
.search input { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; padding: 9px 16px; font: inherit; outline: none; }
.search input:focus { border-color: var(--brand); }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 18px; border-radius: 0 999px 999px 0; cursor: pointer; font: inherit; }
.nav-links { display: flex; align-items: center; gap: 18px; margin-left: auto; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.cart-link { position: relative; background: var(--brand); color: #fff !important; padding: 8px 14px; border-radius: 999px; }
.cart-link .cart-count { background: var(--accent); color: #111; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 1px 7px; margin-left: 4px; }
.catbar { background: #fff; border-bottom: 1px solid var(--line); }
.catbar .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: thin; }
.catbar a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line); background: #fff; }
.catbar a:hover, .catbar a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Flash */
.flash { margin: 14px 0; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.flash.success { background: #dcfce7; color: #166534; }
.flash.error { background: #fee2e2; color: #991b1b; }
.errors { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px; }
.errors ul { margin: 0; padding-left: 18px; }

/* Hero slider */
.slider { position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 16px; background: #e5e7eb; aspect-ratio: 16 / 5; }
.slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.slider .slide.on { opacity: 1; z-index: 1; }
.slider img { width: 100%; height: 100%; object-fit: cover; }
.slider .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.slider .dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.slider .dots button.on { background: #fff; width: 22px; border-radius: 6px; }
.hero-fallback { margin-top: 16px; border-radius: var(--radius); background: linear-gradient(120deg, var(--brand), #2f7fe0); color: #fff; padding: 40px 28px; }
.hero-fallback h1 { margin: 0 0 6px; font-size: 30px; }

/* Sections */
.section { margin: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 21px; }
.section-head a { color: var(--brand); font-weight: 600; font-size: 14px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 10px; text-align: center; font-weight: 600; transition: .15s; }
.cat-tile:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.06); }
.cat-tile small { display: block; font-weight: 400; color: var(--muted); }

/* Product grid & card */
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fafafa; display: block; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.08); }
.badge-off { position: absolute; top: 8px; left: 8px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; z-index: 1; }
.badge-out { position: absolute; top: 8px; right: 8px; background: #374151; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; z-index: 1; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.price { font-weight: 700; color: var(--brand); font-size: 16px; }
.price .from { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 3px; }
.price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.card .btn { margin-top: auto; width: 100%; }

/* Buttons & forms */
.btn { display: inline-block; text-align: center; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; background: var(--brand); color: #fff; transition: .15s; }
.btn:hover { background: var(--brand-dark); }
.btn.alt { background: var(--accent); color: #111; }
.btn.alt:hover { background: #b9860f; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f3f4f6; }
.btn[disabled] { background: #d1d5db; color: #6b7280; cursor: not-allowed; }
.btn.block { display: block; width: 100%; }
label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: inherit; background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,78,162,.12); }
.field { margin-bottom: 14px; }
.field .err { color: var(--danger); font-size: 13px; margin-top: 3px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.auth-box { max-width: 440px; margin: 30px auto; }

/* Listing header / pagination */
.page-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 20px 0 14px; }
.page-head h1 { margin: 0; font-size: 24px; }
.sortbar select { width: auto; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .disabled { color: #9ca3af; }
.empty { text-align: center; padding: 50px 10px; color: var(--muted); }

/* Product page */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 20px 0; }
.product .main-img { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.product .main-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product .main-img:hover img { transform: scale(1.06); }
.product h1 { margin: 0 0 6px; font-size: 26px; }
.crumbs { font-size: 13px; color: var(--muted); margin-top: 16px; }
.crumbs a:hover { color: var(--brand); }
.pprice { font-size: 28px; font-weight: 700; color: var(--brand); margin: 10px 0; }
.pprice s { font-size: 17px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.pprice .off { font-size: 13px; background: var(--danger); color: #fff; padding: 2px 8px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options label { margin: 0; cursor: pointer; border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 8px; font-weight: 500; }
.options input:checked + label { border-color: var(--brand); background: #eaf2fd; color: var(--brand-dark); font-weight: 700; }
.options input:disabled + label { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: #f3f4f6; width: 36px; cursor: pointer; font-size: 18px; }
.qty input { width: 52px; border: 0; text-align: center; border-radius: 0; padding: 8px 0; box-shadow: none !important; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.stock-note { font-size: 13px; margin-top: 4px; color: var(--muted); }
.desc { white-space: pre-line; }

/* Cart & checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; margin: 20px 0; align-items: start; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.line .name { font-weight: 600; }
.line .meta { font-size: 13px; color: var(--muted); }
.line .qty-form { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.line .qty-form input { width: 64px; padding: 5px 8px; }
.link-btn { background: none; border: 0; color: var(--danger); cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; font-size: 18px; }
.radio-card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-weight: 500; }
.radio-card input { width: auto; }
.radio-card span:last-child { margin-left: auto; font-weight: 700; }

/* Order status timeline */
.timeline { display: flex; gap: 0; margin: 18px 0; }
.timeline .step { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 22px; }
.timeline .step::before { content: ''; position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #d1d5db; transform: translateX(-50%); z-index: 1; }
.timeline .step::after { content: ''; position: absolute; top: 10px; left: -50%; width: 100%; height: 3px; background: #d1d5db; }
.timeline .step:first-child::after { display: none; }
.timeline .step.done { color: var(--brand-dark); font-weight: 600; }
.timeline .step.done::before, .timeline .step.done::after { background: var(--brand); }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #e5e7eb; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed, .status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #ede9fe; color: #5b21b6; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
table.simple { width: 100%; border-collapse: collapse; }
table.simple th, table.simple td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }

/* Footer */
.footer { background: #111827; color: #d1d5db; margin-top: 50px; padding: 36px 0 16px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer a { display: block; padding: 2px 0; }
.footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid #374151; margin-top: 22px; padding-top: 12px; font-size: 13px; color: #9ca3af; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(30px); background: #111827; color: #fff; padding: 10px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--danger); }

/* Responsive */
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr; }
  .header .container { flex-wrap: wrap; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .slider { aspect-ratio: 16 / 8; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav-links { gap: 10px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }
  .logo-text small { display: none; }
  .logo { font-size: 18px; }
}

.cod-note { margin-top:12px; padding:10px 12px; background:#fff8e6; border:1px solid #f0d58a; border-radius:8px; font-size:14px; color:#6b4e00; }
.options input:disabled + label { opacity:.4; text-decoration:line-through; cursor:not-allowed; }

/* Developer credit with number tooltip */
.dev-credit { position: relative; display: inline-block; color: #fff; font-weight: 600; }
.footer .dev-credit { display: inline-block; padding: 0; }
.dev-credit::after { content: attr(data-tip); position: absolute; left: 50%; bottom: 135%; transform: translateX(-50%); background: #25d366; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dev-credit:hover::after, .dev-credit:focus::after { opacity: 1; }

.wa-btn { display:block; margin-top:10px; text-align:center; background:#25d366; color:#fff; }
.wa-btn:hover { background:#1ebe5a; }

/* Topbar pills */
.topbar .pill { background: rgba(255,255,255,.16); padding: 2px 12px; border-radius: 999px; margin-left: 8px; font-weight: 600; }
.topbar .pill:hover { background: rgba(255,255,255,.28); }

/* Home: category sidebar beside slider */
.hero-layout { display: grid; grid-template-columns: 250px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.hero-layout .slider { margin-top: 0; }
.hero-layout .hero-fallback { margin-top: 0; }
.side-cats { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 0; max-height: 360px; overflow-y: auto; }
.side-cats h3 { margin: 0; padding: 10px 16px; font-size: 15px; border-bottom: 1px solid var(--line); }
.side-cats a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-weight: 500; font-size: 14.5px; border-bottom: 1px solid #f1f3f6; }
.side-cats a:hover { background: #eaf2fd; color: var(--brand); }
.side-cats img, .side-cats .ico { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.side-cats .ico { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; }
@media (min-width: 901px) { body.is-home .catbar { display: none; } }
@media (max-width: 900px) { .hero-layout { grid-template-columns: 1fr; } .side-cats { display: none; } }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 50; transition: transform .15s; }
.wa-float:hover { transform: scale(1.08); }

/* Bilingual titles */
.card-title b { display:block; font-weight:600; }
.card-title small { display:block; font-weight:400; font-size:12px; color:var(--muted); margin-top:1px; }
.card-title { min-height: 44px; }
.en-sub { display:block; font-size:.6em; font-weight:400; color:var(--muted); }
h2 .en-sub { display:inline; font-size:.65em; margin-left:6px; }
.cat-tile img { width:64px; height:64px; object-fit:cover; border-radius:12px; margin:0 auto 8px; }
.cat-tile b { display:block; }

/* Feature strip */
.features { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:16px; }
.features div { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:12px 14px; display:grid; grid-template-columns:34px 1fr; column-gap:10px; align-items:center; }
.features span { grid-row:span 2; font-size:26px; }
.features small { color:var(--muted); font-size:12px; }

/* Promo banners (fill the empty spaces) */
.promo-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:16px; }
.promo, .promo-wide { display:flex; flex-direction:column; gap:4px; color:#fff; border-radius:var(--radius); padding:20px 22px; position:relative; overflow:hidden; transition:transform .2s, box-shadow .2s; }
.promo:hover, .promo-wide:hover { transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.15); }
.promo .big, .promo-wide .big { font-size:20px; font-weight:700; }
.promo em, .promo-wide em { font-style:normal; font-weight:600; margin-top:6px; opacity:.95; }
.p-blue { background:linear-gradient(135deg,#0b4ea2,#2f7be0); }
.p-gold { background:linear-gradient(135deg,#b97c00,#e8b832); color:#1b1400; }
.p-green { background:linear-gradient(135deg,#128c4a,#25d366); }
.promo-wide { margin-top:28px; background:linear-gradient(110deg,#0b4ea2 0%,#0b4ea2 55%,#d9a21b 100%); padding:26px 28px; }
.promo-wide .big { font-size:24px; }
.promo-wide.wide-alt { background:linear-gradient(110deg,#111827,#0b4ea2); }
@media (max-width: 900px) { .features { grid-template-columns:repeat(2,1fr); } .promo-row { grid-template-columns:1fr; } }

html { min-height: 100%; }
body { min-height: 100vh; background-repeat: no-repeat; }

@media (min-width: 1500px) { .grid { grid-template-columns: repeat(6, 1fr); } .side-cats { max-height: 420px; } }
@media (min-width: 1900px) { .grid { grid-template-columns: repeat(7, 1fr); } .hero-layout { grid-template-columns: 290px 1fr; } }

/* Hero: sidebar always as tall as the slider, no empty gaps */
.hero-layout { align-items: stretch; }
.side-cats { position: relative; max-height: none !important; padding: 0; overflow: hidden; }
.side-cats .inner { position: absolute; inset: 0; overflow-y: auto; padding: 8px 0; }
@media (max-width: 900px) { .side-cats { display: none; } }

/* ---- product gallery ---- */
.gallery { min-width: 0; }
.g-stage { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.g-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-stage:not(.is-video):hover img { transform: scale(1.06); }
.g-stage video, .g-stage iframe { width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.25); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink, #1f2937); z-index: 2; }
.g-nav:hover { background: #fff; }
.g-nav.prev { left: 10px; } .g-nav.next { right: 10px; }
.g-nav[hidden] { display: none; }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.g-thumbs[hidden] { display: none; }
.g-thumbs button { flex: 0 0 68px; width: 68px; height: 68px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.g-thumbs button.on { border-color: var(--brand); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-thumbs .vthumb { background: #111827; color: #fff; font-size: 22px; }
.options label.has-thumb { display: flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; }
.options label.has-thumb img { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; }

/* ---- coupon ---- */
.coupon-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.coupon-form input[type=text] { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; text-transform: uppercase; }
.coupon-ok { flex: 1; color: #15803d; font-weight: 600; }

/* footer social icons */
.footer .social { display: flex; gap: 10px; margin-top: 10px; }
.footer .social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .15s, transform .15s; }
.footer .social a:hover { background: var(--gold, #d4a017); transform: translateY(-2px); }
.footer .social svg { width: 20px; height: 20px; }

/* ---- reviews ---- */
.stars { color: #f59e0b; letter-spacing: 1px; } .stars .off { color: #d1d5db; } .stars.big { font-size: 22px; }
.rating-line { display: inline-block; margin: 2px 0 6px; font-size: 14px; color: var(--muted); } .rating-line:hover { color: var(--brand); }
.reviews-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.rev-summary { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; }
.rev-big { font-size: 40px; font-weight: 700; color: var(--brand); line-height: 1; } .rev-big small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 3px; }
.rev-bars { flex: 1; min-width: 180px; font-size: 12px; color: var(--muted); }
.rev-bars div { display: flex; align-items: center; gap: 8px; } .rev-bars span { width: 22px; }
.rev-bars i { flex: 1; height: 7px; background: #e5e7eb; border-radius: 999px; overflow: hidden; } .rev-bars i b { display: block; height: 100%; background: #f59e0b; }
.rev { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.rev p { margin: 6px 0 0; white-space: pre-line; }
.rev .verified { color: #15803d; font-size: 12px; font-weight: 600; margin-left: 6px; } .rev .rev-date { color: var(--muted); font-size: 12px; margin-left: 6px; }
.rev-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.rev-form label { display: block; font-weight: 600; margin: 10px 0 4px; }
.rev-form input[type=text], .rev-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { margin: 0 !important; font-size: 32px; color: #d1d5db; cursor: pointer; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.err-text { color: var(--danger); font-size: 13px; }
.flash-ok { background: #dcfce7; color: #166534; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; } .flash-bad { background: #fee2e2; color: #991b1b; padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
@media (max-width: 860px) { .reviews-layout { grid-template-columns: 1fr; } }
