@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Amazon-style electronics-retailer palette (reference: "Electro" by
   MadrasThemes) — yellow accent on a near-black header, white content,
   red sale prices, blue-ish product-name links. --primary is kept as the
   name throughout the rest of this file (so every existing rule that
   references var(--primary) picks up the new color automatically) but
   now holds the yellow accent instead of the old blue. */
:root {
  --primary: #f8b602; --primary-dark: #e0a400; --primary-soft: #fef6e0;
  --dark: #222; --bg: #f6f7fb; --border: #e7eaf0; --text: #43435c; --text-muted: #8a93a3;
  --danger: #e02020; --success: #2dba6c; --warning: #f1963a;
  --link: #1a56c4; --on-primary: #222222;
  --radius: 12px; --radius-sm: 8px; --shadow: 0 2px 14px rgba(31,36,48,0.06);
}
* { box-sizing: border-box; }
svg { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
body { margin: 0; font-family: 'Hind Siliguri', 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }

/* Baseline for any <label> that doesn't set its own inline style (most do
   already) — labels are inline by default in HTML, so without this they'd
   sit jammed against whatever follows them. */
label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text); }
/* ---- Form controls, storefront-wide ----
   The storefront had no input styling at all, so every form (checkout
   especially) rendered as the browser's tiny default boxes. Placed this
   early on purpose: component rules further down (search bar, newsletter,
   quantity boxes...) have equal specificity and win by coming later. */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; line-height: 1.4; color: var(--text); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #a9b0bd; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; min-height: 84px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { color: var(--dark); font-weight: 800; margin: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ---- Top utility bar + header (Amazon-style: dark utility strip, white
   header with the search bar as the visual anchor, yellow accents only
   on the search button and the "All Categories" trigger) ---- */
.topbar { background: var(--dark); color: #cdd3e0; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar svg { width: 13px; height: 13px; }
.btn-buy svg { width: 19px; height: 19px; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 74px; }
.site-logo img { height: 38px; display: block; }
.search-bar { flex: 1; display: flex; max-width: 620px; }
.search-bar input { flex: 1; padding: 11px 16px; border: 1.5px solid var(--dark); border-right: none; border-radius: 4px 0 0 4px; font-size: 14px; font-family: inherit; }
.search-bar input:focus { outline: none; border-color: var(--dark); box-shadow: none; }
.search-bar button { padding: 0 22px; background: var(--primary); color: var(--on-primary); border: 1.5px solid var(--dark); border-left: none; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 15px; font-weight: 700; }
.search-bar button:hover { background: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.header-action { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11.5px; color: var(--text-muted); font-weight: 600; position: relative; }
.header-action svg { width: 22px; height: 22px; color: var(--dark); }
.header-action .badge-count {
  position: absolute; top: -6px; right: -10px; background: var(--primary); color: var(--on-primary);
  font-size: 10.5px; font-weight: 800; width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff;
}

/* ---- Category nav bar: a yellow "All Categories" pill anchors a white
   bar of plain text links, not a solid block of color ---- */
.category-nav { background: #fff; border-bottom: 1px solid var(--border); position: relative; }
.category-nav .container { display: flex; gap: 4px; height: 48px; align-items: center; overflow-x: auto; }
.category-nav-trigger {
  background: var(--primary); color: var(--on-primary); font-size: 13.5px; font-weight: 700; padding: 0 16px;
  height: 36px; border-radius: 6px; display: flex; align-items: center; gap: 8px; white-space: nowrap; border: none; cursor: pointer; font-family: inherit;
}
.category-nav-trigger:hover { background: var(--primary-dark); }
.category-nav-trigger svg { width: 17px; height: 17px; }
.category-nav a:not(.category-nav-trigger) { color: var(--dark); font-size: 13.5px; font-weight: 600; padding: 0 14px; height: 100%; display: flex; align-items: center; white-space: nowrap; }
.category-nav a:not(.category-nav-trigger):hover { color: var(--link); }
.category-nav .free-ship-note { margin-left: auto; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; padding-right: 4px; }

/* ---- Banner ---- */
.hero-banner { width: 100%; max-height: 360px; overflow: hidden; border-radius: var(--radius); margin: 20px 0; background: var(--primary-soft); }
.hero-banner { position: relative; }
.hero-banner img { width: 100%; display: block; }
/* Headline / subtitle / button drawn by the site over the banner image
   (set per banner in the ERP) — crisp text in the site's own font and
   color instead of text baked into the picture. */
.hero-banner-text { position: absolute; left: 48px; top: 50%; transform: translateY(-50%); max-width: 42%; }
.hero-banner-text h2 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; color: inherit; font-weight: 800; }
.hero-banner-text p { font-size: 15px; margin: 0 0 18px; opacity: .92; line-height: 1.5; }
.hero-banner-text.is-light { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.hero-banner-text.is-dark { color: #222; }
.hero-banner-btn { display: inline-block; background: var(--primary); color: var(--on-primary); padding: 11px 26px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; text-shadow: none; }
.hero-banner-btn:hover { background: var(--primary-dark); }

/* ---- Section headers ---- */
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 16px; }
.section-head h2 { font-size: 20px; }
.section-head a { font-size: 13px; color: var(--link); font-weight: 700; }

/* ---- Homepage hero row: category sidebar + banner side by side ---- */
.home-hero-row { display: grid; grid-template-columns: 240px 1fr; gap: 0; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.hero-cat-sidebar { border-right: 1px solid var(--border); padding: 10px 0; }
.hero-cat-sidebar a { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; font-size: 13.5px; color: var(--text); }
.hero-cat-sidebar a:hover { background: var(--bg); color: var(--link); }
.hero-cat-sidebar svg { width: 15px; height: 15px; color: var(--text-muted); }
.hero-banner-placeholder {
  background: linear-gradient(135deg, var(--dark), #3a3a3a); color: #fff; display: flex; flex-direction: column;
  justify-content: center; gap: 14px; padding: 40px; min-height: 280px;
}
.hero-banner-placeholder h1 { color: #fff; font-size: 30px; line-height: 1.25; }
.hero-banner-placeholder p { color: #cfcfcf; font-size: 14px; margin: 0; max-width: 420px; }

/* ---- 4 deal tiles ---- */
.deal-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0; }
.deal-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; display: flex; align-items: center; min-height: 70px; }
.deal-tile strong { display: block; font-size: 15px; color: var(--dark); margin-bottom: 4px; }
.deal-tile span { font-size: 12.5px; color: var(--link); font-weight: 600; display: flex; align-items: center; gap: 2px; }
.deal-tile span svg { width: 14px; height: 14px; }
.deal-tile:hover { border-color: var(--primary); }

/* ---- Brand tiles ---- */
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 20px 0; }
.brand-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; text-align: center; }
.brand-tile:hover { border-color: var(--primary); }
.brand-tile img { max-height: 44px; max-width: 140px; object-fit: contain; }
.brand-tile strong { font-size: 15px; color: var(--dark); }
.brand-tile span { font-size: 12px; color: var(--link); font-weight: 600; display: flex; align-items: center; gap: 2px; }
.brand-tile span svg { width: 13px; height: 13px; }

/* ---- Featured/On Sale/Top Rated tabs ---- */
.tabbed-products { margin: 32px 0; }
.tabbed-products-nav { display: flex; gap: 24px; border-bottom: 2px solid var(--border); margin-bottom: 18px; }
.tp-tab { background: none; border: none; font-size: 15px; font-weight: 700; color: var(--text-muted); padding: 10px 2px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: inherit; }
.tp-tab.is-active { color: var(--dark); border-bottom-color: var(--primary); }
.tp-panel { display: none; }
.tp-panel.is-active { display: block; }

/* ---- Bestsellers horizontal row ---- */
.bestseller-row { display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.bestseller-row .product-card { flex: 0 0 200px; width: 200px; max-width: 200px; }
.bestseller-row .product-card-img { width: 100%; max-width: 100%; height: auto; }

/* ---- Checkout: simple guest form + order summary ---- */
.checkout-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; margin: 10px 0 40px; }
.checkout-form, .checkout-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.checkout-step { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; }
.checkout-step:first-child { margin-top: 0; }
.checkout-step h3 { font-size: 16px; margin: 0; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkout-note { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; line-height: 1.5; }
.checkout-field { margin-bottom: 14px; }
.checkout-field .optional { font-weight: 500; color: var(--text-muted); }
.checkout-form .place-order-btn { max-width: none; width: 100%; margin-top: 8px; padding: 16px 30px; font-size: 16px; }   /* .btn-buy (defined later) caps width at 340px otherwise */
.checkout-summary { position: sticky; top: 96px; }
.checkout-summary h3 { margin: 0 0 14px; font-size: 16px; }
.summary-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.summary-item-name strong { display: block; font-size: 13.5px; color: var(--dark); line-height: 1.35; }
.summary-item-name span { display: inline-block; font-size: 12px; color: var(--text-muted); margin-right: 8px; }
.summary-item-price { font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--dark); }
.checkout-summary-row small { color: var(--text-muted); }
.summary-total { font-size: 17px; font-weight: 800; color: var(--dark); border-top: 1.5px solid var(--border); border-bottom: none; margin-top: 4px; padding-top: 14px; }
.checkout-summary-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.payment-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.payment-option { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.payment-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.payment-option input { width: auto; margin: 0; }
.payment-option small { width: 100%; color: var(--text-muted); font-size: 11.5px; margin-left: 24px; }
@media (max-width: 880px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ---- Category/Shop page: sidebar filters + product grid ---- */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin: 20px 0 40px; align-items: start; }
.shop-sidebar-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.shop-sidebar-block h3 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 10px; }
.shop-sidebar-block > a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; color: var(--text); }
.shop-sidebar-block > a:hover, .shop-sidebar-block > a.is-active { color: var(--link); font-weight: 700; }
.shop-filter-toggle { display: none; }
.shop-filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; cursor: pointer; }
.shop-filter-check input { width: auto; }
.shop-filter-check span { color: var(--text-muted); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 13.5px; color: var(--text-muted); }
.shop-toolbar select { width: auto; padding: 7px 10px; font-size: 13px; }
.shop-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; }
.shop-pagination a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.shop-pagination a.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
@media (max-width: 880px) { .shop-layout { grid-template-columns: 1fr; } }

/* ---- Product grid + card ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .15s ease; position: relative; }
.product-card:hover { box-shadow: var(--shadow); }
.product-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 14px; }
.product-card-body { padding: 10px 14px 16px; position: relative; }
.product-card-brand { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
/* Product name reads as a link, Amazon-style — blue, not the dark heading
   color everything else on the page uses. */
.product-card-name { font-size: 13.5px; font-weight: 700; color: var(--link); margin: 3px 0 8px; line-height: 1.35; min-height: 36px; }
.product-card-name:hover { text-decoration: underline; }
.product-card-price { font-size: 16px; font-weight: 700; color: var(--text); }
.product-card-price .mrp { font-size: 12.5px; font-weight: 400; color: var(--text-muted); text-decoration: line-through; margin-left: 5px; }
.product-card-price.is-sale { color: var(--danger); }
/* Circular yellow add-to-cart icon button, bottom-right of the card —
   the single most recognizable element of this design language. */
.product-card-add-btn {
  position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); border: none; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--on-primary); box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-card-add-btn:hover { background: var(--primary-dark); }
.product-card-add-btn svg { width: 17px; height: 17px; }
.badge-upcoming { position: absolute; top: 10px; left: 10px; background: var(--warning); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.badge-instock { position: absolute; top: 10px; left: 10px; background: var(--success); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }

/* ---- Category tiles (homepage) ---- */
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.category-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; text-align: center; font-size: 13px; font-weight: 700; color: var(--dark); }
.category-tile:hover { border-color: var(--primary); color: var(--primary); }
.category-tile-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--primary); font-weight: 800; font-size: 18px; }

/* ---- Product detail page ---- */
/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 12.5px; color: var(--text-muted); margin: 16px 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb .sep { margin: 0 6px; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 10px 0 28px; align-items: start; }
.product-gallery { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.product-info .brand-cat { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.product-info h1 { font-size: 22px; margin-bottom: 10px; line-height: 1.3; }
.product-rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.star-rating { color: var(--primary); font-size: 15px; letter-spacing: 1px; }
.product-rating-row a { font-size: 12.5px; color: var(--link); }
/* Price is dark by default (not the yellow accent — a price should never
   fight with the brand color for attention); sale pricing is red, same
   rule as a product card. */
.product-info .price-block { font-size: 26px; font-weight: 700; color: var(--text); margin: 14px 0; padding-top: 14px; border-top: 1px solid var(--border); }
.product-info .price-block.is-sale { color: var(--danger); }
.product-info .price-block .mrp { font-size: 15px; color: var(--text-muted); text-decoration: line-through; font-weight: 400; margin-left: 10px; }
.product-links-row { display: flex; gap: 18px; margin-bottom: 14px; }
.product-links-row button, .product-links-row a { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); background: none; border: none; cursor: pointer; font-family: inherit; padding: 0; }
.product-links-row svg { width: 16px; height: 16px; }
.product-links-row .is-active { color: var(--danger); }
.stock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 20px; }
.stock-pill svg { width: 15px; height: 15px; }
.search-bar button svg { width: 18px; height: 18px; }
.stock-pill.in-stock { background: #e4f8ec; color: var(--success); }
.stock-pill.upcoming { background: #fef1e3; color: var(--warning); }
.variant-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.variant-chip { padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.variant-chip.is-selected { border-color: var(--dark); background: var(--primary-soft); color: var(--dark); }
/* Dark text on the yellow button — white would barely be readable against
   this particular yellow (same reasoning as the circular cart icon). */
.btn-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: var(--on-primary); border: none; padding: 15px 30px; border-radius: var(--radius-sm); font-size: 15.5px; font-weight: 700; cursor: pointer; margin-top: 10px; width: 100%; max-width: 340px; }
.btn-buy:hover { background: var(--primary-dark); }
.btn-buy:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.spec-table td:first-child { color: var(--text-muted); width: 160px; font-weight: 600; }
.spec-table tr:nth-child(odd) { background: var(--bg); }

/* ---- Product page tabs: Description / Specification / Reviews ---- */
.product-tabs { margin: 36px 0; }
.product-tabs-nav { display: flex; gap: 28px; border-bottom: 2px solid var(--border); }
.pt-tab { background: none; border: none; font-size: 14.5px; font-weight: 700; color: var(--text-muted); padding: 12px 2px; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: inherit; }
.pt-tab.is-active { color: var(--dark); border-bottom-color: var(--primary); }
.pt-panel { display: none; padding: 24px 0; max-width: 820px; }
.pt-panel.is-active { display: block; }

/* ---- Footer ---- */
.newsletter-bar { background: var(--primary); margin-top: 50px; }
.newsletter-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; flex-wrap: wrap; }
.newsletter-bar-label { font-weight: 700; color: var(--on-primary); display: flex; align-items: center; gap: 10px; font-size: 15px; }
.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 460px; }
.newsletter-form input { flex: 1; padding: 10px 14px; border: none; border-radius: 6px; font-family: inherit; font-size: 13.5px; }
.newsletter-form button { padding: 10px 20px; background: var(--dark); color: #fff; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; font-family: inherit; }

.site-footer { background: #f3f4f6; color: var(--text-muted); padding: 36px 0 20px; font-size: 13px; }
.footer-columns { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.footer-columns a, .footer-columns div { display: block; color: var(--text-muted); margin-bottom: 9px; }
.footer-columns a:hover { color: var(--link); }
.footer-heading { display: block; color: var(--dark); font-size: 13.5px; margin-bottom: 12px; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px; }

@media (max-width: 860px) {
  .site-header .container { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  /* flex-basis 100% forces its own row. `width: 100%` alone did not: with flex: 1 the basis is 0, so whether it wrapped
     depended on the input's intrinsic width — and the global input rule (width:100%) made that zero. */
  .search-bar { order: 3; flex: 1 1 100%; width: 100%; max-width: none; margin-top: 8px; }
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .home-hero-row { grid-template-columns: 1fr; }
  .hero-cat-sidebar { display: none; }
  .hero-banner-text { left: 16px; max-width: 58%; }
  .hero-banner-text h2 { font-size: 17px; margin-bottom: 8px; }
  .hero-banner-text p { display: none; }
  .hero-banner-btn { padding: 6px 14px; font-size: 12px; }
  .hero-banner-placeholder { min-height: 200px; padding: 24px; }
  .hero-banner-placeholder h1 { font-size: 22px; }
  .category-nav .container { justify-content: flex-start; }
  div[style*="grid-template-columns:1.3fr 1fr"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ---- Phones (<= 640px) ----
   One column of giant cards wastes a phone screen, so: no top utility bar,
   a tighter header, brands as a compact 3-up grid, and products two per row.
   (Desktop and tablet layouts are untouched.) */
@media (max-width: 640px) {
  .topbar { display: none; }
  .container { padding: 0 12px; }

  /* the header wraps onto two rows on a phone; the base `gap: 24px` also
     applied between those rows, leaving a big hole above the search bar */
  .site-header .container { column-gap: 12px; row-gap: 8px; padding: 8px 12px; }
  .site-logo img { height: 30px; }
  .header-actions { gap: 14px; }
  .header-action { font-size: 10.5px; }
  .header-action svg { width: 20px; height: 20px; }
  .search-bar { margin-top: 0; }
  .search-bar input { padding: 9px 12px; font-size: 14px; }

  .category-nav .container { height: 44px; scrollbar-width: none; }
  .category-nav .container::-webkit-scrollbar { display: none; }
  .category-nav-trigger { height: 32px; font-size: 13px; padding: 0 12px; }
  .category-nav a:not(.category-nav-trigger) { font-size: 13px; padding: 0 10px; }

  .home-hero-row { margin: 12px 0; }

  .brand-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
  .brand-tile { padding: 10px 6px; min-height: 62px; gap: 4px; }
  .brand-tile strong { font-size: 12.5px; word-break: break-word; }
  .brand-tile img { max-height: 26px; max-width: 90%; }
  .brand-tile span { font-size: 10.5px; }
  .brand-tile span svg { width: 10px; height: 10px; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card-img { padding: 8px; }
  .product-card-body { padding: 8px 10px 12px; }
  .product-card-brand { font-size: 10px; }
  .product-card-name { font-size: 12.5px; min-height: 34px; margin-bottom: 6px; }
  .product-card-price { font-size: 14px; padding-right: 36px; }
  .product-card-price .mrp { font-size: 11px; margin-left: 3px; }
  .product-card-add-btn { width: 30px; height: 30px; right: 10px; bottom: 10px; }
  .product-card-add-btn svg { width: 15px; height: 15px; }
  .bestseller-row .product-card { flex: 0 0 150px; width: 150px; max-width: 150px; }
  .badge-upcoming, .badge-instock { top: 6px; left: 6px; font-size: 10px; padding: 3px 8px; }
  input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea, .search-bar input { font-size: 16px; }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .checkout-form, .checkout-summary { padding: 18px 16px; }
  .checkout-summary { position: static; }

  .section-head { margin: 22px 0 12px; }
  .section-head h2 { font-size: 18px; }
  .tabbed-products { margin: 20px 0; }
  .tabbed-products-nav { gap: 18px; margin-bottom: 14px; }
  .tp-tab { font-size: 14px; }

  /* category / brand listing: filters fold into one button */
  .shop-layout { gap: 12px; margin: 10px 0 28px; }
  .shop-cats-block { display: none; }
  .shop-filter-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; font-weight: 700; color: var(--dark); font-family: inherit; cursor: pointer; margin-bottom: 0; }
  .shop-sidebar.is-open .shop-filter-chevron { transform: rotate(180deg); }
  .shop-sidebar:not(.is-open) .shop-filters-wrap { display: none; }
  .shop-sidebar.is-open .shop-filters-wrap { margin-top: 10px; }
  .shop-sidebar-block { padding: 12px 14px; margin-bottom: 10px; }
  .shop-toolbar { padding: 9px 12px; margin-bottom: 10px; }
  .newsletter-bar { margin-top: 32px; }
  .newsletter-bar .container { height: auto; padding: 14px 12px; }
  .newsletter-form { max-width: none; flex: 1 1 100%; width: 100%; }   /* own row — see the .search-bar note above */
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-columns > div:first-child { grid-column: 1 / -1; }
}

/* ---- Order confirmation ---- */
.confirm-wrap { max-width: 920px; margin: 28px auto 40px; }
.confirm-hero { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 28px 32px; text-align: center; }
.confirm-check { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(45,186,108,.14); animation: confirmPop .5s cubic-bezier(.2,1.4,.4,1); }
.confirm-hero.is-pending .confirm-check { background: var(--warning); box-shadow: 0 0 0 10px rgba(241,150,58,.16); }
.confirm-check svg { width: 38px; height: 38px; stroke-width: 2.4; }
@keyframes confirmPop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confirm-hero h1 { font-size: 24px; line-height: 1.25; margin: 0 0 10px; }
.confirm-hero p { color: var(--text-muted); margin: 0 auto; max-width: 520px; line-height: 1.6; }
.confirm-order-no { display: inline-block; margin-top: 22px; padding: 12px 28px; background: var(--bg); border: 1.5px dashed var(--border); border-radius: 10px; }
.confirm-order-no span { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.confirm-order-no strong { font-size: 22px; letter-spacing: .04em; color: var(--dark); }
.confirm-sent { margin-top: 14px !important; font-size: 13.5px; }
.confirm-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.confirm-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.confirm-card h3 { margin: 0 0 12px; font-size: 16px; }
.confirm-detail { font-size: 13.5px; line-height: 1.55; color: var(--text); padding: 10px 0; border-bottom: 1px solid var(--border); }
.confirm-detail span { display: block; font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.confirm-detail strong { display: block; color: var(--dark); }
.confirm-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.confirm-steps li { counter-increment: s; position: relative; padding: 0 0 14px 38px; font-size: 13.5px; }
.confirm-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.confirm-steps li strong { display: block; color: var(--dark); }
.confirm-steps li span { color: var(--text-muted); font-size: 12.5px; }
.confirm-actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 22px; }
.confirm-help { font-size: 13.5px; color: var(--text-muted); }
@media (max-width: 760px) { .confirm-grid { grid-template-columns: 1fr; } .confirm-hero { padding: 30px 18px 24px; } .confirm-hero h1 { font-size: 20px; } .confirm-card { padding: 18px; } }
