/* =============================================================================
    hallroadlahore.com — main stylesheet
    Brand: slate #0f172a + WhatsApp green #25d366
    ========================================================================== */

/* ---------- 0. Self-hosted brand font (no third-party request) ---------- */
/* Plus Jakarta Sans, latin subset, woff2. 900 reuses the 800 file (closest cut). */
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:800; font-display:swap; src:url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:900; font-display:swap; src:url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --green: #25d366;
  --green-dark: #065f46;
  --green-bg: #ecfdf5;
  --red: #ef4444;
  --amber: #f59e0b;
  --amber-bg: #fef3c7;
  --amber-ink: #92400e;
  --blue: #00c6ff;
  --yellow: #ffc107;
  --radius: 14px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.04);
  --shadow-md: 0 10px 20px rgba(0,0,0,.05);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.25);
  --maxw: 1200px;
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
h1, h2, h3 { line-height: 1.25; }

/* Visible keyboard focus everywhere — fixes "invisible to keyboard users" */
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* Skip link — first focusable element on every page */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- 2. Top ticker ---------- */
.top-ticker-wrapper {
  background: var(--ink); color: #fff; height: 40px; overflow: hidden;
  border-bottom: 2px solid var(--green); display: flex; align-items: center; z-index: 101; position: relative;
}
.ticker-move-container { display: flex; width: max-content; animation: tickerScroll 30s linear infinite; will-change: transform; }
.ticker-move-container:hover, .ticker-move-container:focus-within { animation-play-state: paused; }
.ticker-single-line { display: flex; align-items: center; white-space: nowrap; padding-right: 40px; font-size: 13px; font-weight: 600; }
.ticker-item { display: inline-flex; align-items: center; gap: 6px; }
.ticker-dot { color: var(--blue); margin: 0 16px; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 3. Promo bar ---------- */
.promo-flash {
  background: linear-gradient(90deg, var(--red), #f97316); color: #fff;
  text-align: center; padding: 9px 12px; font-size: 13.5px; font-weight: 700; letter-spacing: .3px;
}

/* ---------- 4. Header ---------- */
header.site-header, header {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.header-content {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.header-top-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0;
}
.brand-link {
  display: inline-flex; align-items: center; justify-content: flex-start;
  margin-right: auto; min-width: 0; flex-shrink: 1; line-height: 0;
}
html[dir="rtl"] .brand-link { margin-right: 0; margin-left: auto; }
.brand-logo-img, .brand-logo-svg {
  height: 36px; width: auto; max-width: 195px; display: block; object-fit: contain;
}
.site-nav { display: none; }

.search-bar {
  width: 100%; max-width: none; height: 42px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px; border: 1.5px solid var(--line-2);
  border-radius: 999px; background: var(--bg);
  transition: border-color .15s, background .15s;
}
.search-bar:focus-within { border-color: var(--green); background: #fff; }
.search-icon {
  position: static; transform: none;
  width: 16px; height: 16px; color: #64748b;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; pointer-events: none; line-height: 0;
}
.search-icon svg { width: 16px; height: 16px; display: block; }
.search-bar input {
  flex: 1; width: 100%; height: 100%; padding: 0;
  border: none; border-radius: 0; background: transparent;
  font-size: 13.5px; outline: none; font-family: inherit; color: var(--ink);
}
.search-bar input::placeholder { color: #94a3b8; }

.header-actions {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.cart-btn-head {
  height: 38px; background: var(--ink); color: #fff; border: none;
  padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; line-height: 1; white-space: nowrap; flex-shrink: 0;
}
.cart-btn-head svg { width: 17px; height: 17px; display: block; flex-shrink: 0; }
.cart-btn-head:hover { background: var(--ink-2); }
.cart-count {
  background: var(--green); color: #000; font-size: 11px; font-weight: 900;
  height: 20px; min-width: 22px; padding: 0 6px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}

.lang-toggle {
  height: 38px; min-width: 44px; background: #fff; border: 1.5px solid var(--line-2);
  border-radius: 999px; padding: 0 13px; font-size: 13px; font-weight: 800;
  cursor: pointer; color: var(--ink); display: inline-flex; align-items: center;
  justify-content: center; line-height: 1; flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--green); }

html[lang="ur"] body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans Arabic', 'Noto Nastaliq Urdu', 'Segoe UI', Tahoma, system-ui, sans-serif;
}
html[dir="rtl"] .product-card { text-align: right; }
html[dir="rtl"] .discount-badge { left: auto; right: 10px; }

/* ---------- 6. Category tabs ---------- */
.category-tabs-container {
  max-width: var(--maxw); margin: 14px auto 0; padding: 0 14px;
  display: flex; gap: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.category-tabs-container::-webkit-scrollbar { display: none; }
.cat-btn {
  background: #fff; border: 1.5px solid var(--line); padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #475569; cursor: pointer; transition: .2s; flex-shrink: 0;
}
.cat-btn:hover { border-color: var(--line-2); }
.cat-btn.active, .cat-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 7. Product grid ---------- */
.catalog-container { max-width: var(--maxw); margin: 12px auto 40px; padding: 0 14px; }
.section-heading { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px;
  display: flex; flex-direction: column; gap: 9px; transition: .2s; cursor: pointer; position: relative;
  text-align: left; font: inherit; color: inherit; width: 100%;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.product-image {
  width: 100%; height: 180px; object-fit: contain; background: #fff;
  border-radius: 10px; aspect-ratio: 1 / 1;
}
.product-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; min-height: 36px; }
.price-box { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.current-price { font-size: 16.5px; font-weight: 800; color: var(--green-dark); }
.old-price { font-size: 12.5px; color: var(--muted-2); text-decoration: line-through; }
.discount-badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; z-index: 2;
}
.stock-chip { font-size: 11.5px; font-weight: 800; color: var(--green-dark); }
.stock-chip.low { color: var(--amber-ink); }
.stock-chip.out { color: var(--red); }
.btn-add-cart {
  width: 100%; background: var(--ink); color: #fff; border: none; padding: 10px;
  border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; margin-top: auto;
}
.btn-add-cart:hover { background: var(--ink-2); }
.empty-state { text-align: center; grid-column: 1 / -1; padding: 48px 20px; color: var(--muted); }

/* ---------- 8. Reviews / trust / footer ---------- */
.reviews-section, .trust-section-wrap { max-width: var(--maxw); margin: 40px auto; padding: 0 16px; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.review-card { background: #fff; padding: 18px; border-radius: 12px; border: 1px solid var(--line); }
.stars { color: var(--amber); font-size: 16px; margin-bottom: 8px; letter-spacing: 1px; }
.review-text { font-size: 13.5px; color: #475569; font-style: italic; margin-bottom: 10px; }
.review-author { font-size: 12px; font-weight: 800; }
.review-verify { font-size: 10.5px; font-weight: 800; color: var(--muted); display: block; margin-top: 4px; }

.trust-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 16px; margin-top: 40px; }
.trust-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-icon { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--green-dark); }
.trust-title { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.trust-desc { font-size: 12px; color: var(--muted); }

.site-footer { background: var(--ink); color: var(--muted-2); padding: 40px 16px 24px; font-size: 13px; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; text-align: left;
}
.footer-brand { color: #fff; font-weight: 900; font-size: 17px; margin-bottom: 8px; }
.site-footer h3 { color: #fff; font-size: 13px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .6px; }
.site-footer ul { list-style: none; display: grid; gap: 7px; }
.site-footer a:hover { color: var(--green); }
.footer-legal { max-width: var(--maxw); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid #1e293b; font-size: 11.5px; }

/* ---------- 9. Product modal (home page) ---------- */
.pdp-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.85); z-index: 1100;
  display: none; align-items: flex-start; justify-content: center; padding: 20px 16px; overflow-y: auto;
}
.pdp-overlay.open { display: flex; }
.pdp-card {
  background: #fff; width: 100%; max-width: 540px; border-radius: 16px; position: relative;
  box-shadow: var(--shadow-lg); margin: auto; overflow: hidden;
}
.pdp-close-btn {
  position: absolute; top: 12px; right: 12px; background: var(--ink); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; z-index: 10;
}
.pdp-main-img { width: 100%; height: 300px; object-fit: contain; background: var(--bg-2); padding: 10px; }
.pdp-thumbs { display: flex; gap: 8px; padding: 10px 16px; background: var(--bg); overflow-x: auto; border-bottom: 1px solid var(--line); }
.pdp-thumb {
  width: 60px; height: 60px; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  background: #fff; padding: 3px; flex-shrink: 0;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb.active { border-color: var(--green); }
.pdp-content { padding: 20px 20px 90px; }
.pdp-brand { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 6px; }
.pdp-title { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.pdp-summary { font-size: 13.5px; color: #475569; margin-bottom: 14px; }
.pdp-price-row {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.pdp-price-current { font-size: 24px; font-weight: 900; color: var(--green-dark); }
.pdp-price-old { font-size: 15px; color: var(--muted-2); text-decoration: line-through; }
.pdp-save { background: var(--amber-bg); color: var(--amber-ink); padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.pdp-section-label { font-size: 12px; font-weight: 800; color: #334155; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.feature-list { padding-left: 20px; font-size: 13.5px; color: #475569; display: grid; gap: 5px; margin-bottom: 16px; }

.variant-set { border: none; margin-bottom: 16px; }
.variant-set legend { font-size: 12px; font-weight: 800; color: #334155; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; padding: 0; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
  padding: 9px 14px; border: 2px solid var(--line-2); background: #fff; border-radius: 8px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; transition: .15s; color: var(--ink);
}
.variant-pill:hover { border-color: var(--muted-2); }
.variant-pill.selected { border-color: var(--green); background: var(--green-bg); color: var(--green-dark); }
.variant-up { font-weight: 800; color: var(--green-dark); }

.pdp-qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pdp-qty-row .pdp-section-label { margin-bottom: 0; }
.qty-stepper { display: flex; align-items: center; gap: 4px; }
.qty-btn {
  width: 36px; height: 36px; border: 1px solid var(--line-2); background: #fff;
  border-radius: 8px; font-size: 17px; font-weight: 800; cursor: pointer; line-height: 1;
}
.qty-btn:hover { background: var(--bg); }
.qty-display { font-size: 15px; font-weight: 800; min-width: 34px; text-align: center; }

.related-section { max-width: var(--maxw); margin: 40px auto; padding: 0 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; transition: .2s; display: block; }
.related-card:hover { border-color: var(--green); background: var(--green-bg); }
.related-card img { width: 100%; height: 110px; object-fit: contain; background: var(--bg); border-radius: 8px; margin-bottom: 8px; }
.related-title { font-size: 11.5px; font-weight: 700; line-height: 1.3; min-height: 30px; }
.related-price { font-size: 13px; font-weight: 800; color: var(--green-dark); margin-top: 4px; }

.sticky-cart-bar {
  position: sticky; bottom: 0; background: #fff; padding: 12px 16px;
  border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(0,0,0,.08); z-index: 5;
}

/* ---------- 10. Cart drawer ---------- */
.cart-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; display: none; }
.cart-drawer-overlay.open { display: block; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 400px; background: #fff;
  z-index: 1001; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-header { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--bg-2); }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.cart-item-price { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn-sm { width: 28px; height: 28px; border: 1px solid var(--line-2); background: #fff; border-radius: 6px; cursor: pointer; font-weight: 800; line-height: 1; }
.cart-item-qty { font-size: 13px; font-weight: 800; min-width: 24px; text-align: center; }
.icon-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--muted); display: inline-flex; }
.icon-btn:hover { background: var(--bg-2); color: var(--red); }
.cart-drawer-footer { padding: 16px; border-top: 1px solid var(--line); background: var(--bg); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.cart-shipping-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.checkout-btn {
  width: 100%; background: var(--green); color: #000; border: none; padding: 14px;
  border-radius: 8px; font-size: 15px; font-weight: 800; cursor: pointer;
}
.checkout-btn:hover { filter: brightness(1.06); }
.checkout-btn:disabled { background: var(--line-2); color: var(--muted); cursor: not-allowed; }
.empty-cart-msg { text-align: center; color: var(--muted-2); margin-top: 40px; }

/* ---------- 11. Checkout + confirmation ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 1002;
  display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-card { background: #fff; width: 100%; max-width: 460px; border-radius: 16px; padding: 22px; margin: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { font-size: 18px; font-weight: 800; }
.form-group { margin-bottom: 13px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; color: #334155; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px; border: 1.5px solid var(--line-2); border-radius: 8px;
  font-size: 14px; outline: none; font-family: inherit; background: #fff; color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); }
.field-error { color: var(--red); font-size: 11.5px; font-weight: 700; margin-top: 4px; display: none; }
.field-error.show { display: block; }
.form-group.invalid input, .form-group.invalid textarea { border-color: var(--red); }
.order-summary-box { background: var(--bg); border-radius: 10px; padding: 12px; margin-bottom: 14px; font-size: 12.5px; }
.order-summary-box ul { list-style: none; display: grid; gap: 5px; margin-bottom: 8px; }
.order-summary-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.payment-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

.confirm-hero { text-align: center; padding: 8px 0 16px; }
.confirm-tick {
  width: 62px; height: 62px; border-radius: 50%; background: var(--green-bg); color: var(--green-dark);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 30px;
}
.order-id-box { background: var(--bg); border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 12px; margin: 14px 0; }
.order-id-label { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.order-id-value { font-size: 20px; font-weight: 900; font-family: ui-monospace, monospace; margin-top: 2px; }
.confirm-steps { text-align: left; font-size: 13px; color: #475569; display: grid; gap: 8px; margin: 14px 0; }
.confirm-steps li { display: flex; gap: 9px; }
.confirm-steps .n { font-weight: 900; color: var(--green-dark); }
.advance-box { background: var(--amber-bg); border-radius: 10px; padding: 12px; font-size: 12.5px; color: var(--amber-ink); margin: 12px 0; }
.advance-box strong { font-family: ui-monospace, monospace; font-size: 15px; }
.btn-secondary {
  width: 100%; background: #fff; color: var(--ink); border: 1.5px solid var(--line-2);
  padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 800; cursor: pointer; margin-top: 8px;
}
.btn-secondary:hover { border-color: var(--ink); }
.fallback-box { background: var(--bg); border-radius: 10px; padding: 12px; margin: 12px 0; }
.fallback-box textarea { width: 100%; min-height: 110px; font-family: ui-monospace, monospace; font-size: 11.5px; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; }

/* ---------- 12. Toast ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 1500; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 13.5px;
  font-weight: 700; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s ease-out;
}
.toast.success { background: var(--green-dark); }
.toast.error { background: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 13. Floating buttons ---------- */
.back-to-top {
  position: fixed; bottom: 92px; right: 20px; background: var(--ink); color: #fff;
  width: 44px; height: 44px; border-radius: 50%; display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); z-index: 998; cursor: pointer; border: none; font-size: 18px;
}
.back-to-top.visible { display: flex; }
.whatsapp-float-btn {
  position: fixed; bottom: 20px; right: 20px; background: var(--green); width: 58px; height: 58px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.45); z-index: 999; line-height: 0;
  overflow: hidden; flex-shrink: 0;
}
.whatsapp-float-btn:hover { transform: scale(1.05); }
.whatsapp-float-btn svg { width: 28px; height: 28px; fill: #fff; display: block; object-fit: contain; aspect-ratio: 1 / 1; flex-shrink: 0; }

/* ---------- 14. Standalone product page ---------- */
.page-product main { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 40px; }
.breadcrumbs { padding: 16px 0; font-size: 12.5px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.pdp-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.pdp-page-media { position: sticky; top: 84px; }
.pdp-page-media .pdp-main-img { height: auto; aspect-ratio: 1/1; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.pdp-page-info .pdp-title { font-size: clamp(20px, 3vw, 28px); margin-bottom: 10px; }
.pdp-page-info .pdp-summary { font-size: 14.5px; margin-bottom: 18px; }
.stock-line { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green-dark); margin-bottom: 18px; }
.stock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; }
.stock-dot.out { background: var(--red); }
.pdp-buybox { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.add-to-cart-btn { margin-bottom: 10px; }
.whatsapp-order-link {
  display: block; text-align: center; background: #fff; color: var(--green-dark);
  border: 1.5px solid var(--green); padding: 12px; border-radius: 8px; font-weight: 800; font-size: 14px;
}
.whatsapp-order-link:hover { background: var(--green-bg); }
.buybox-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; }
.spec-table { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.spec-table > div { display: flex; justify-content: space-between; gap: 12px; background: #fff; padding: 10px 14px; font-size: 13px; }
.spec-table dt { color: var(--muted); font-weight: 600; }
.spec-table dd { font-weight: 700; text-align: right; }
.pdp-page-details { margin-top: 40px; }
.pdp-page-details h2 { font-size: 20px; margin-bottom: 14px; }
.detail-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 13px; color: #475569; }
.detail-card h3 { font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.detail-card a { color: var(--green-dark); font-weight: 700; }
.detail-card a:hover { text-decoration: underline; }

/* ---------- 15. Static pages (about / policies / calculator) ---------- */
.page-static main { max-width: 820px; margin: 0 auto; padding: 32px 16px 56px; }
.page-static h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.page-static .lede { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.page-static h2 { font-size: 20px; margin: 30px 0 10px; }
.page-static h3 { font-size: 16px; margin: 20px 0 8px; }
.page-static p, .page-static li { font-size: 14.5px; color: #334155; }
.page-static ul, .page-static ol { padding-left: 22px; display: grid; gap: 6px; margin: 8px 0 16px; }
.page-static a { color: var(--green-dark); font-weight: 700; }
.page-static a:hover { text-decoration: underline; }
.page-static table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 13.5px; }
.page-static th, .page-static td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.page-static th { background: var(--bg); font-weight: 800; }
.info-callout { background: var(--green-bg); border-left: 4px solid var(--green); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; font-size: 13.5px; }
.warn-callout { background: var(--amber-bg); border-left: 4px solid var(--amber); padding: 14px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; font-size: 13.5px; color: var(--amber-ink); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.contact-card .k { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.contact-card .v { font-size: 15px; font-weight: 800; margin-top: 4px; word-break: break-word; }

/* Solar calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.calc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.calc-panel h2 { margin-top: 0; }
.appliance-row { display: grid; grid-template-columns: 1fr 78px 62px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.appliance-row input, .appliance-row select { padding: 9px; border: 1.5px solid var(--line-2); border-radius: 8px; font-size: 13px; font-family: inherit; width: 100%; }
.appliance-row .rm { background: none; border: none; color: var(--red); cursor: pointer; font-size: 17px; }
.calc-result-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.calc-result-row:last-child { border-bottom: none; }
.calc-result-row .val { font-weight: 900; font-size: 16px; }
.calc-result-row.big .val { color: var(--green-dark); font-size: 22px; }

/* 404 */
.page-404 main { max-width: 640px; margin: 0 auto; padding: 70px 16px; text-align: center; }
.page-404 h1 { font-size: 64px; font-weight: 900; color: var(--line-2); }

/* ---------- 16. Responsive ---------- */
@media (max-width: 900px) {
  .pdp-page-grid { grid-template-columns: 1fr; gap: 20px; }
  .pdp-page-media { position: static; }
  .detail-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-content { padding: 10px 12px 12px; gap: 10px; }
  .header-top-row { gap: 8px; }
  .brand-logo-img, .brand-logo-svg { height: 31px; max-width: 165px; }
  .menu-btn-head { width: 38px; height: 38px; min-width: 38px; }
  .lang-toggle { height: 36px; padding: 0 11px; font-size: 12.5px; }
  .cart-btn-head { height: 36px; padding: 0 12px; font-size: 13px; gap: 6px; }
  .search-bar { max-width: none; width: 100%; height: 40px; padding: 0 14px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { padding: 11px; border-radius: 14px; }
  .product-image { height: 135px; }
  .product-title { font-size: 12.5px; min-height: 34px; }
  .current-price { font-size: 15px; }
  .pdp-main-img { height: 250px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .hero-banner { padding: 30px 16px; }
  .hero-banner.hero-animated { padding: 32px 16px; }
  .appliance-row { grid-template-columns: 1fr 70px 56px 34px; }
}

/* ---------- 17. Reduced motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-move-container { animation: none; }
  .product-card:hover { transform: none; }
}
@media print {
  .whatsapp-float-btn, .back-to-top, .top-ticker-wrapper, .promo-flash, .sticky-cart-bar, .toast-stack { display: none !important; }
  body { background: #fff; }
}

/* ---------- 18. Catalog toolbar (sort) ---------- */
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.catalog-toolbar .section-heading { margin-bottom: 0; }
.sort-select {
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 36px 10px 12px; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230f172a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.sort-select:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- 19. WhatsApp quick button on product cards ---------- */
.product-card .wa-quick {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; border-radius: 10px; font-size: 13px; font-weight: 800;
  color: var(--green-dark); background: var(--green-bg); border: 1px solid #a7f3d0;
  cursor: pointer; transition: background .15s ease;
}
.product-card .wa-quick:hover { background: var(--green); color: #fff; }

/* ---------- 20. Hero WhatsApp CTA ---------- */
.hero-cta.wa { background: var(--green); color: #fff; border-color: var(--green); }
.hero-cta.wa:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ---------- 21. FAQ ---------- */
.faq-section { max-width: 1080px; margin: 0 auto; padding: 44px 20px 10px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 15px; color: var(--ink);
  padding: 14px 44px 14px 16px; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 800; color: var(--green-dark); transition: transform .15s ease;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 16px 14px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq-list details p a { color: var(--green-dark); font-weight: 600; }

/* ---------- 22. Info & Navigation Sidebar Drawer ---------- */
.menu-btn-head {
  width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 11px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line-2);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 0; transition: .15s;
}
.menu-btn-head:hover { border-color: var(--green); background: var(--green-bg); color: var(--green-dark); }
.menu-btn-head svg { width: 18px; height: 18px; display: block; flex-shrink: 0; }

.info-sidebar-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.65); z-index: 1050;
  display: none; backdrop-filter: blur(2px);
}
.info-sidebar-overlay.open { display: block; }

.info-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 100%; max-width: 420px;
  background: #fff; z-index: 1051; transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
html[dir="rtl"] .info-sidebar { left: auto; right: 0; transform: translateX(100%); }
.info-sidebar.open, html[dir="rtl"] .info-sidebar.open { transform: translateX(0); }

.info-sidebar-header {
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 16px 18px; border-bottom: 2px solid var(--green);
}
.info-sidebar-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.info-sidebar-brand { font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.info-sidebar-sub { font-size: 11.5px; color: #cbd5e1; margin-top: 2px; }
.info-sidebar-close {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; width: 34px; height: 34px; border-radius: 50%;
  font-size: 16px; font-weight: 800; cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.info-sidebar-close:hover { background: rgba(255,255,255,.22); }

.info-sidebar-status {
  margin-top: 10px; display: flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 700; color: #86efac;
  background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.25);
  padding: 6px 10px; border-radius: 8px;
}
.info-sidebar-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.info-sidebar-quick {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px;
}
.info-quick-btn {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 8px; padding: 7px 8px; font-size: 11.5px;
  font-weight: 800; text-align: center; cursor: pointer; transition: .15s;
}
.info-quick-btn:hover { background: var(--green); color: #000; border-color: var(--green); }

.info-sidebar-body {
  flex: 1; overflow-y: auto; padding: 16px 18px 24px; display: grid; gap: 20px;
}
.sidebar-section-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin-bottom: 8px;
}

.sidebar-cat-list { display: grid; gap: 6px; }
.sidebar-cat-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 13.5px; font-weight: 700;
  cursor: pointer; text-align: left; width: 100%; transition: .15s;
}
.sidebar-cat-item:hover, .sidebar-cat-item.active {
  background: var(--green-bg); border-color: var(--green); color: var(--green-dark);
}
.sidebar-cat-count {
  background: #fff; border: 1px solid var(--line-2); color: var(--muted);
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px;
}
.sidebar-cat-item.active .sidebar-cat-count {
  background: var(--green); color: #000; border-color: var(--green);
}

.sidebar-info-cards { display: grid; gap: 8px; }
.sidebar-info-card {
  background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
}
.sidebar-info-card summary {
  cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--ink);
  padding: 11px 36px 11px 13px; list-style: none; position: relative;
  background: var(--bg);
}
.sidebar-info-card summary::-webkit-details-marker { display: none; }
.sidebar-info-card summary::after {
  content: '+'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font-size: 17px; font-weight: 800; color: var(--green-dark);
}
.sidebar-info-card[open] summary::after { content: '−'; }
.sidebar-info-card-body {
  padding: 11px 13px; font-size: 12.5px; color: #334155; line-height: 1.55;
  border-top: 1px solid var(--line); display: grid; gap: 6px;
}
.sidebar-info-card-body ul { padding-left: 16px; display: grid; gap: 4px; }
.sidebar-info-card-body a { color: var(--green-dark); font-weight: 800; }
.sidebar-rate-row {
  display: flex; justify-content: space-between; padding: 4px 0;
  border-bottom: 1px dashed var(--line); font-size: 12px;
}
.sidebar-rate-row:last-of-type { border-bottom: none; }
.sidebar-rate-row strong { color: var(--green-dark); }

.sidebar-nav-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.sidebar-nav-link {
  display: flex; align-items: center; gap: 7px; padding: 9px 11px;
  border-radius: 9px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 700; color: #334155; transition: .15s;
}
.sidebar-nav-link:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-bg); }

.sidebar-contact-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px; display: grid; gap: 7px; font-size: 12.5px;
}
.sidebar-contact-row { display: flex; justify-content: space-between; gap: 8px; }
.sidebar-contact-row .k { color: var(--muted); font-weight: 600; }
.sidebar-contact-row .v { font-weight: 800; color: var(--ink); text-align: right; }
.sidebar-wa-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #000; font-weight: 800; font-size: 13.5px;
  padding: 11px 14px; border-radius: 10px; margin-top: 4px; text-align: center;
}
.sidebar-wa-cta:hover { filter: brightness(1.06); }

/* ---------- 23. Comparison Table Section ---------- */
.compare-section {
  max-width: var(--maxw); margin: 8px auto 36px; padding: 0 14px;
}
.compare-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.compare-sub { font-size: 13.5px; color: var(--muted); }
.compare-calc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 800;
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
}
.compare-calc-btn:hover { background: var(--ink-2); }
.compare-table-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow-x: auto; box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px;
}
.compare-table th, .compare-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line);
}
.compare-table th {
  background: var(--bg-2); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: #334155;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f8fafc; }
.compare-table a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); }
.compare-table a:hover { color: var(--green-dark); }
.compare-order-btn {
  background: var(--green); color: #000; border: none; border-radius: 8px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.compare-order-btn:hover { filter: brightness(1.05); }
