/* =====================================================================
   Rastogi Book World — Storefront styles
   Modern clean e-commerce UI · Mobile-first · Responsive
   ===================================================================== */

:root {
    /* ---- Flipkart-inspired palette ---- */
    --brand:        #16243d;   /* Flipkart blue */
    --brand-dark:   #0f1a2e;
    --brand-light:  #fff3e6;
    --accent:       #f47a1f;   /* ADD TO CART yellow */
    --accent-dark:  #d9630c;
    --buy:          #f47a1f;   /* BUY NOW orange */
    --buy-dark:     #d9630c;
    --success:      #2e9c54;   /* rating / discount green */
    --rating:       #2e9c54;
    --danger:       #ff6161;
    --warning:      #ff9f00;
    --ink:          #212121;
    --muted:        #878787;
    --line:         #e4e7ec;
    --bg:           #f4f5f7;   /* Flipkart page grey */
    --card:         #ffffff;
    --footer:       #eef0f4;   /* Flipkart footer navy */
    --radius:       6px;
    --radius-sm:    5px;
    --shadow:       0 1px 2px rgba(0,0,0,.08);
    --shadow-md:    0 4px 14px rgba(0,0,0,.14);
    --maxw:         1290px;    /* wide, modern full-width feel */
    --font:         "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Gutters only — never the shorthand. `.container` and `.page` sit on the
   same <main>, so a `padding: 0 16px` here would silently reset the page's
   top and bottom padding depending on source order. */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto;
             padding-left: 16px; padding-right: 16px; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
    padding: 8px 14px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =====================================================================
   Z-INDEX SCALE (kept consistent to avoid stacking conflicts)
     200  sticky site header (desktop)      260  header dropdown submenus
     600  sticky header (mobile)            610  mobile nav drawer
     450  mobile nav backdrop
     710  filter backdrop (mobile)          720  filter drawer  (above header)
    1000  skip-link (keyboard focus only)
   ===================================================================== */

/* ---- Top announcement bar ---------------------------------------- */
.topbar { background: var(--ink); color: #cfd6e4; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; height: 34px; background: #833028; }
.topbar-contact { color: #fff; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar-contact:hover { color: #fff; opacity: .85; text-decoration: none; }
.topbar-links { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; }
.topbar-link { color: #fff; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.topbar-link:hover { color: #fff; opacity: .85; text-decoration: none; }
.topbar-mobonly { display: none; }        /* mobile-only quick icons */
.topbar-deskonly { display: inline-flex; } /* desktop utility links */
.header-whatsapp i { color: #25D366; font-size: 18px; }
.topbar-cart-badge {
    background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px;
    min-width: 17px; height: 17px; padding: 0 5px; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 700;
}

/* ---- Header (Flipkart-style blue bar) ----------------------------- */
.site-header { background: var(--brand); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 200; }
.header-inner { display: flex; align-items: center; gap: 14px; height: 56px; }

.logo { display: flex; flex-direction: column; justify-content: center; flex-shrink: 0; text-decoration: none; line-height: 1; }
.logo:hover { text-decoration: none; }
.logo-img { height: 42px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.logo-has-img { justify-content: center; }
.logo-text { font-weight: 700; font-style: italic; font-size: 20px; color: #fff; white-space: nowrap; letter-spacing: .2px; }
.logo-sub { font-size: 11px; font-style: italic; color: #f0f2f5; display: flex; align-items: center; gap: 3px; margin-top: 1px; }
.logo-plus { color: #ffe500; font-weight: 500; }
.logo-sub .fa-star { color: #ffe500; font-size: 9px; }

.search-form { flex: 1; display: flex; align-items: center; max-width: 560px; background: #fff; border-radius: 3px; overflow: hidden; height: 38px; }
.search-form button {
    background: #fff; border: none; color: var(--brand); padding: 0 12px 0 14px;
    cursor: pointer; font-size: 16px; height: 100%; display: flex; align-items: center; order: 0;
}
.search-form input {
    flex: 1; border: none; padding: 0 12px 0 4px; font-size: 14px; outline: none; height: 100%; background: transparent; color: var(--ink);
}
.search-form input::placeholder { color: #a5a5a5; }

.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-link { color: #fff; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 7px; position: relative; }
.header-link:hover { color: #fff; text-decoration: none; opacity: .9; }
.header-login {
    background: #fff; color: var(--brand); font-size: 15px; font-weight: 600;
    padding: 7px 34px; border-radius: 2px; display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.header-login:hover { text-decoration: none; color: var(--brand); }
.cart-badge {
    background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px;
    min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex;
    align-items: center; justify-content: center; font-weight: 700;
    position: absolute; top: -8px; right: -12px;
}
.cart-link { position: relative; }

.hamburger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }

/* ---- Main nav (white Flipkart-style category bar) ----------------- */
.main-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.main-nav a { color: var(--ink); text-decoration: none; }
/* Desktop: keep the whole menu on ONE line (no wrap). */
.main-nav .menu { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: 0; padding: 0; }
.main-nav .menu li { position: relative; }
.main-nav .menu > li > a {
    display: flex; align-items: center; gap: 4px; padding: 10px 12px;
    font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--ink);
}
.main-nav .menu > li > a:hover { color: var(--brand); }
/* Smaller laptops: tighten so all items still fit on one line. */
@media (min-width: 769px) and (max-width: 1250px) {
    .main-nav .menu > li > a { padding: 9px 9px; font-size: 12px; gap: 3px; }
}
.menu-caret { background: none; border: none; color: inherit; cursor: pointer; padding: 0; margin: 0; font-size: 11px; line-height: 1; display: inline-flex; }

/* Submenus */
.main-nav .submenu {
    list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0;
    min-width: 214px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: var(--shadow-md);
    border-top: 3px solid var(--brand-dark); opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s; z-index: 260;
}
.main-nav .submenu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.main-nav .submenu a:hover { background: var(--brand-light); color: var(--brand-dark); }
.main-nav .submenu .menu-caret { color: var(--muted); transform: rotate(-90deg); }
.main-nav .submenu .submenu { top: -9px; left: 100%; border-radius: 10px; border-top: none; }

/* Desktop: reveal on hover */
@media (min-width: 769px) {
    .main-nav .menu li:hover > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
}

/* ---- Page wrapper ------------------------------------------------- */
.page { padding: 12px 16px 40px; min-height: 60vh; }

/* ---- Flash messages ---------------------------------------------- */
.flash { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.flash-success { background: #e6f7ee; color: #0f7a41; border-color: #b7e6cd; }
.flash-error   { background: #fdeaea; color: #b32020; border-color: #f5c3c3; }
.flash-info    { background: var(--brand-light); color: var(--brand-dark); border-color: #cadcfb; }

/* ---- Buttons (Flipkart-style) ------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--brand); color: #fff; border: none; border-radius: var(--radius-sm);
    padding: 12px 22px; font-size: 14px; font-weight: 600; cursor: pointer; letter-spacing: .3px;
    text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; line-height: 1;
    text-transform: uppercase; box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: #fff; }        /* ADD TO CART (yellow) */
.btn-accent:hover { background: var(--accent-dark); }
.btn-buy { background: var(--buy); color: #fff; }              /* BUY NOW (orange) */
.btn-buy:hover { background: var(--buy-dark); }
.btn-outline { background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-outline:hover { background: #fff; border-color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: none; text-transform: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---- Hero / banners ---------------------------------------------- */
.hero { margin-bottom: 12px; }
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-slide { display: none; position: relative; aspect-ratio: 1600 / 400; background: #e7ecf3; }
.hero-slide.active { display: block; }
/* Banner is locked to a 4:1 box. Upload 1600x400 (4:1) → full image, no crop. */
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-caption {
    position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column;
    justify-content: center; padding: 0 8%; max-width: 560px;
    background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0)); color: #fff;
}
.hero-caption h2 { font-size: 32px; margin: 0 0 8px; }
.hero-caption p { font-size: 17px; margin: 0 0 18px; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; }
.hero-dots button.active { background: #fff; }

/* ---- Section headings (Flipkart white blocks) -------------------- */
.section { margin: 0 0 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
.section-head h2 { font-size: 20px; margin: 0; font-weight: 600; }
.section-head a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }

/* ---- Category strip (Flipkart circle + title) -------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 8px; }
.cat-card {
    background: #fff; padding: 8px 6px; text-align: center; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    min-width: 0;   /* allow the grid column to shrink so the circle never overflows */
}
.cat-card:hover { text-decoration: none; }
.cat-circle {
    /* fluid: fills the column but never grows past 82px → responsive, no overflow */
    width: 100%; max-width: 82px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
    background: #f1f3f6; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s, box-shadow .15s;
}
.cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.cat-initial { font-size: 30px; font-weight: 700; color: var(--brand); }
.cat-card:hover .cat-circle { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
.cat-card:hover .cat-title { color: var(--brand); }

/* ---- Shop by School ---------------------------------------------- */
.school-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.school-card {
    background: var(--card); border-radius: var(--radius); padding: 18px 10px; text-align: center;
    box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.school-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.school-logo {
    width: 70px; height: 70px; border-radius: 50%; background: var(--brand-light);
    display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 6px;
}
.school-logo img { width: 100%; height: 100%; object-fit: contain; }
.school-logo i { font-size: 30px; color: var(--brand); }
.school-name { font-size: 13px; font-weight: 700; display: block; line-height: 1.3; }

.school-header { display: flex; align-items: center; gap: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.school-header-logo { width: 96px; height: 96px; border-radius: 16px; background: var(--brand-light); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.school-header-logo img { width: 100%; height: 100%; object-fit: contain; }
.school-header-logo i { font-size: 46px; color: var(--brand); }

.class-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.class-card {
    background: var(--card); border-radius: var(--radius); padding: 22px 12px; text-align: center;
    box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; color: var(--ink);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.class-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.class-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 6px; }
.class-name { font-size: 15px; font-weight: 700; }

.set-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
    border-radius: var(--radius); padding: 24px; margin-top: 6px;
}
.set-banner-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.set-total { font-size: 15px; }
.set-total strong { font-size: 20px; }

.set-contents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.set-item { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.set-item img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; flex-shrink: 0; }
.set-item-name { font-weight: 600; font-size: 14px; }
@media (max-width: 560px) { .set-contents { grid-template-columns: 1fr; } }

/* Itemized book-set list (school class page) — wraps instead of scrolling */
.setlist { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.setlist-row {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.setlist-row:last-child { border-bottom: none; }
.setlist-sec {
    display: inline-block; min-width: 22px; margin-right: 8px; padding: 1px 6px;
    border-radius: 4px; background: var(--brand-light); color: var(--brand-dark);
    font-size: 11px; font-weight: 700; text-align: center; letter-spacing: .3px;
    vertical-align: 1px;
}
.setlist-name { flex: 1 1 180px; min-width: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.setlist-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.setlist-amt { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.setlist-row.is-discount { background: #f0f9f3; }
.setlist-row.is-discount .setlist-name { color: var(--success); font-weight: 600; }
.setlist-row.is-discount .setlist-amt { color: var(--success); }
.setlist-foot { background: var(--bg); border-top: 2px solid var(--line); }
.setlist-foot .setlist-name,
.setlist-foot .setlist-amt { font-size: 16px; font-weight: 800; }
@media (max-width: 480px) {
    .setlist-row { padding: 11px 13px; }
    .setlist-name { flex-basis: 100%; }
}

/* ---- Product grid & cards (Flipkart tiles) ------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.product-card {
    background: var(--card); overflow: hidden;
    display: flex; flex-direction: column; position: relative;
    border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
    transition: box-shadow .18s; padding: 6px;
}
.product-card:hover { box-shadow: 0 0 14px rgba(0,0,0,.14); z-index: 2; }
.product-thumb { position: relative; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.badge-discount {
    position: absolute; top: 8px; left: 8px; background: var(--success); color: #fff;
    font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 3px;
}
.wish-btn {
    position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.95);
    border: 1px solid var(--line); width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
    font-size: 14px; color: var(--muted); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.wish-btn.active { color: #ff4d6d; border-color: #ffccd5; }

.product-body { padding: 10px 10px 14px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.product-name {
    font-size: 14px; font-weight: 400; color: var(--ink); margin: 4px 0 6px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.product-name:hover { color: var(--brand); }

/* Flipkart green rating pill */
.rating-pill { display: inline-flex; align-items: center; gap: 3px; background: var(--rating); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.rating-pill .fa-star { font-size: 8px; }
.product-rating { font-size: 12px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.product-rating .count { color: var(--muted); font-weight: 600; font-size: 12px; }

.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; margin-bottom: 10px; }
.price-now { font-size: 16px; font-weight: 600; color: var(--ink); }
.price-mrp { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: 13px; color: var(--success); font-weight: 600; }
.stars { letter-spacing: 1px; color: var(--rating); }
.stock-out { color: var(--danger); font-size: 12px; font-weight: 600; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card-actions .btn { padding: 9px 4px; white-space: nowrap; font-size: 12px; }

/* responsive columns */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Product detail ---------------------------------------------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius-sm); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 66px; height: 66px; object-fit: contain; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; padding: 4px; }
.gallery-thumbs img.active { border-color: var(--brand); }
.detail-title { font-size: 26px; margin: 0 0 8px; }
.detail-meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0; }
.detail-price .price-now { font-size: 30px; }
.detail-price .badge-discount { position: static; }
.qty-selector { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm); width: max-content; overflow: hidden; }
.qty-selector button { background: #f3f4f6; border: none; width: 40px; height: 42px; font-size: 20px; cursor: pointer; }
.qty-selector input { width: 54px; height: 42px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 16px; }
.detail-actions { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.detail-info-list { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.detail-info-list li { display: flex; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-info-list li strong { width: 140px; color: var(--muted); font-weight: 600; }
.tabs { margin-top: 30px; }
.tab-nav { display: flex; gap: 6px; border-bottom: 2px solid var(--line); }
.tab-nav button { background: none; border: none; padding: 12px 18px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-nav button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; padding: 18px 2px; }
.tab-panel.active { display: block; }

/* ---- Reviews ------------------------------------------------------ */
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; }
.review-author { font-weight: 700; font-size: 14px; }
.review-date { color: var(--muted); font-size: 12px; }
.review-stars { color: var(--warning); }

/* ---- Layout with sidebar (listing pages) ------------------------- */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 24px; }
.sidebar { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; }
/* Mobile filter drawer close bar + backdrop (hidden on desktop) */
.filter-close { display: none; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; margin: -18px -18px 14px; border-bottom: 1px solid var(--line); background: var(--brand); color: #fff; font-weight: 700; position: sticky; top: 0; z-index: 1; }
.filter-close button { background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 8px; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.filter-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 710; }
.filter-backdrop.show { display: block; }
.filter-group { margin-bottom: 20px; }
.filter-group h4 { font-size: 14px; margin: 0 0 10px; }
.filter-group ul { list-style: none; padding: 0; margin: 0; }
.filter-group li { margin-bottom: 7px; }
.filter-group label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.price-inputs { display: flex; gap: 8px; align-items: center; }
.price-inputs input { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.listing-toolbar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }

/* ---- Cart --------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.cart-items { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row:last-child { border-bottom: none; }
.cart-row img { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; }
.cart-row .name { font-weight: 600; font-size: 15px; }
.cart-row .meta { color: var(--muted); font-size: 13px; }
.summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: sticky; top: 90px; }
.summary h3 { margin: 0 0 14px; font-size: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 19px; font-weight: 800; }
.coupon-box { display: flex; gap: 8px; margin: 14px 0; }
.coupon-box input { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---- Forms -------------------------------------------------------- */
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; max-width: 460px; margin: 20px auto; }
.form-card.wide { max-width: 760px; }
.form-card h1 { font-size: 24px; margin: 0 0 6px; }
.form-sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit; outline: none; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-foot { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---- Checkout ----------------------------------------------------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.pay-options { display: flex; flex-direction: column; gap: 10px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px; cursor: pointer; }
.pay-option.selected { border-color: var(--brand); background: var(--brand-light); }
.pay-option input { margin-top: 3px; }
.pay-option .pay-title { font-weight: 600; }
.pay-option .pay-desc { font-size: 13px; color: var(--muted); }

/* ---- Account dashboard ------------------------------------------- */
.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.account-nav { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.account-nav a { display: block; padding: 13px 18px; color: var(--ink); font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--line); }
.account-nav a:hover, .account-nav a.active { background: var(--brand-light); color: var(--brand); text-decoration: none; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }

/* ---- Tables ------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: #f8fafc; font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
table.data tbody tr:hover { background: #fafbfc; }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending    { background: #fff3d6; color: #9a6a00; }
.status-confirmed  { background: var(--brand-light); color: var(--brand-dark); }
.status-processing { background: #e7e0ff; color: #5b34c9; }
.status-shipped    { background: #d7f0ff; color: #0b6ea8; }
.status-delivered  { background: #e6f7ee; color: #0f7a41; }
.status-cancelled  { background: #fdeaea; color: #b32020; }
.status-paid       { background: #e6f7ee; color: #0f7a41; }
.status-failed     { background: #fdeaea; color: #b32020; }

/* ---- Empty state -------------------------------------------------- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .icon { font-size: 54px; margin-bottom: 12px; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; }

/* ---- Pagination --------------------------------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
    font-weight: 600; padding: 0 10px;
}
.pagination a:hover { background: var(--brand-light); text-decoration: none; }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---- Breadcrumb --------------------------------------------------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ---- Footer ------------------------------------------------------- */
.site-footer { background: var(--footer); color: #aeb7c6; margin-top: 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 40px 16px 26px; }
.footer-col h3 { color: #fff; font-size: 18px; margin: 0 0 10px; }
.footer-col h4 { color: #878787; font-size: 12px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #aeb7c6; }
.footer-col a:hover { color: #fff; }
.footer-contact { line-height: 1.9; }
.footer-bottom { border-top: 1px solid #1f2937; }
.footer-bottom .container { display: flex; justify-content: space-between; padding: 16px; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { margin: 0; font-size: 13px; }

/* =====================================================================
   RESPONSIVE  — Tablet & Mobile
   ===================================================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(6, 1fr); }
    .school-grid { grid-template-columns: repeat(4, 1fr); }
    .class-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .listing { grid-template-columns: 1fr; }
    /* Filter drawer must sit ABOVE the sticky header (z 600) */
    .sidebar { position: fixed; left: -300px; top: 0; bottom: 0; width: 280px; z-index: 720; border-radius: 0; transition: left .25s; overflow-y: auto; padding-top: 0; }
    .sidebar.open { left: 0; box-shadow: var(--shadow-md); }
    .filter-close { display: flex; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 20px; }
    .summary { position: static; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 8px 0; gap: 10px; }
    .hamburger { display: flex; order: 1; }
    .logo { order: 2; }
    .logo-sub { display: none; }
    .logo-img { height: 34px; max-width: 150px; }
    .header-actions { order: 3; margin-left: auto; gap: 16px; }
    .header-link span { display: none; }        /* icons only on mobile */
    .header-hide-sm { display: none; }          /* desktop search-row icons hidden on mobile */
    /* Mobile top bar: contact number + wishlist / help / track-order icons */
    .topbar-mobonly { display: inline-flex; }
    .topbar-deskonly { display: none; }
    .topbar-link span { display: none; }        /* icons only */
    .topbar-inner { justify-content: space-between; gap: 10px; }
    .topbar-links { gap: 16px; }
    .topbar-link i { font-size: 15px; }
    .header-login { padding: 6px 14px; }
    .header-login span { display: inline; }
    .search-form { order: 4; flex-basis: 100%; max-width: 100%; }
    .cart-badge { top: -6px; right: -10px; }
    /* Raise the header above the backdrop so the drawer (its child) stays
       clickable — otherwise the body-level backdrop paints over it. */
    .site-header { z-index: 600; }
    /* ---- Mobile nav drawer ---------------------------------------
       Slides in with transform (not `left`), so the closed drawer can
       never add horizontal scroll to the page. overflow-x is pinned to
       hidden: rows wrap instead of pushing the drawer sideways.        */
    .main-nav {
        position: fixed; left: 0; top: 0; bottom: 0; width: 280px; max-width: 86vw;
        background: #fff; z-index: 610; box-shadow: var(--shadow-md);
        transform: translateX(-100%); transition: transform .25s ease;
        overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .main-nav.open { transform: translateX(0); }
    /* The drawer is its own layout context — drop the page container's
       centring + 16px gutter, which was insetting every row and divider. */
    .main-nav > .container { width: 100%; max-width: none; margin: 0; padding: 0; }
    .main-nav .menu { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; width: 100%; }
    .main-nav .menu li { position: static; }

    /* Every row: full drawer width, label wraps, caret pinned right. */
    .main-nav .menu > li > a,
    .main-nav .submenu a {
        display: flex; align-items: center; justify-content: flex-start; gap: 10px;
        width: 100%; min-height: 48px; padding: 12px 18px; color: var(--ink);
        border-bottom: 1px solid var(--line); font-size: 14px;
        white-space: normal; overflow-wrap: anywhere; text-align: left;
    }
    .main-nav .menu > li > a:hover,
    .main-nav .submenu a:hover { background: var(--brand-light); }
    .main-nav .menu > li:last-child > a { border-bottom: none; }

    /* Accordion submenus: hidden until the parent row is toggled open */
    .main-nav .submenu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; border-radius: 0; min-width: 0;
        width: 100%; margin: 0; padding: 0; background: #f7f9fc;
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .main-nav li.open > .submenu { max-height: 400vh; }
    .main-nav .submenu .submenu { background: #eef2f7; }

    /* Depth indent (menu renders unlimited levels — cover 5, then hold). */
    .main-nav .submenu a                                { padding-left: 32px; font-weight: 500; }
    .main-nav .submenu .submenu a                       { padding-left: 46px; }
    .main-nav .submenu .submenu .submenu a              { padding-left: 60px; }
    .main-nav .submenu .submenu .submenu .submenu a     { padding-left: 74px; }
    .main-nav .submenu .submenu .submenu .submenu .submenu a { padding-left: 88px; }

    /* Caret = full-height tap target flush with the drawer's right edge. */
    .menu-caret {
        margin: -12px -18px -12px auto; padding: 0 18px; color: inherit;
        align-self: stretch; align-items: center; justify-content: center;
        min-width: 52px; font-size: 13px; flex-shrink: 0;
    }
    .main-nav .submenu .menu-caret { color: var(--muted); transform: none; }
    .main-nav li.open > a > .menu-caret { transform: rotate(180deg); }
    .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 450; }
    .nav-backdrop.show { display: block; }
    .hero-caption h2 { font-size: 22px; }
    .hero-caption p { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; padding: 30px 16px 20px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { font-size: 14px; }
    .topbar-contact { display: inline-flex; max-width: 52%; font-size: 12px; }
    .topbar-contact i { font-size: 13px; }
    .topbar-inner { justify-content: space-between; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .cat-grid { grid-template-columns: repeat(4, 1fr); padding: 14px 6px; column-gap: 4px; }
    .cat-card { padding: 6px 3px; gap: 7px; }
    .cat-title { font-size: 12px; }
    .cat-initial { font-size: 24px; }
    .school-grid { grid-template-columns: repeat(3, 1fr); }
    .class-grid { grid-template-columns: repeat(3, 1fr); }
    .school-header { flex-direction: column; text-align: center; }
    .section-head h2 { font-size: 19px; }
    .price-now { font-size: 16px; }
    .cart-row { grid-template-columns: 70px 1fr; }
    .cart-row img { width: 70px; height: 70px; }
    .cart-row .cart-line-total { grid-column: 2; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .detail-title { font-size: 21px; }
    .card-actions { grid-template-columns: 1fr; }   /* stack Add/Buy on small phones */
}

/* ---- Utilities ---------------------------------------------------- */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.hidden { display: none !important; }
.badge-soft { background: var(--brand-light); color: var(--brand-dark); font-size: 12px; padding: 3px 9px; border-radius: 6px; font-weight: 600; }

/* ---- Roboto (bundled locally — Flipkart-style typography) --------- */
@font-face{font-family:"Roboto";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/roboto-400.woff2") format("woff2");}
@font-face{font-family:"Roboto";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/roboto-500.woff2") format("woff2");}
@font-face{font-family:"Roboto";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/roboto-700.woff2") format("woff2");}

/* ===== Search autocomplete (live suggestions) ===================== */
.search-form { position: relative; overflow: visible; }
.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: 6px; list-style: none; margin: 0; padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 1200;
    max-height: 70vh; overflow-y: auto; color: #212121;
}
.search-suggest[hidden] { display: none; }
.sg-item {
    display: flex; align-items: center; gap: 12px; padding: 8px 14px; cursor: pointer;
    font-size: 14px; line-height: 1.3;
}
.sg-item:hover, .sg-item.active { background: #f5f7fa; }
.sg-thumb {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 5px; overflow: hidden;
    background: #f4f6f9; display: flex; align-items: center; justify-content: center;
}
.sg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.sg-thumb-ic .sg-ic { color: #878787; font-size: 15px; }
.sg-text { display: flex; flex-direction: column; min-width: 0; }
.sg-label { color: #212121; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-label strong { color: #f47a1f; font-weight: 700; }
.sg-sub { color: #878787; font-size: 12px; }

/* ===== Shop By Brands (home) — logo-only, responsive grid ========= */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);   /* desktop / laptop: 10 per row */
    gap: 12px;
}
.brand-card {
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #edf0f4; border-radius: 10px;
    padding: 10px; aspect-ratio: 1 / 1; overflow: hidden;
    transition: box-shadow .18s, transform .18s;
}
.brand-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.brand-card img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.brand-initial {
    width: 100%; height: 100%; border-radius: 8px; background: #16243d; color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
@media (max-width: 1100px) { .brand-grid { grid-template-columns: repeat(8, 1fr); } }
@media (max-width: 860px)  { .brand-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 640px)  { .brand-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }  /* mobile: 3 per row */

/* ===== Product variants (one option line per product) ============== */

/* Card: price range + the option count, instead of Add/Buy buttons. */
.price-upto { font-size: 14px; font-weight: 600; color: var(--ink); }
.variant-hint {
    font-size: 12px; color: var(--muted); margin: -4px 0 10px;
    display: flex; align-items: center; gap: 5px;
}
.variant-hint i { font-size: 11px; color: var(--brand); }
.card-actions.card-actions-single { grid-template-columns: 1fr; }

/* Product page: the picker itself. The radio stays in the DOM for
   keyboard and screen-reader users; the tile is what you see. */
.variant-picker { margin: 18px 0 6px; }
.variant-picker-head {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 9px;
}
.variant-picker-label {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .4px; color: var(--muted);
}
.variant-picker-chosen { font-size: 15px; font-weight: 600; color: var(--ink); }

.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-opt {
    position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
    min-width: 104px; padding: 10px 14px; background: #fff;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}
.variant-opt:hover { border-color: var(--brand); }
.variant-opt input {
    position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.variant-opt-name  { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.variant-opt-price { font-size: 13px; color: var(--muted); }
.variant-opt-out   { font-size: 11px; font-weight: 700; color: var(--danger); text-transform: uppercase; letter-spacing: .3px; }

.variant-opt.is-selected {
    border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-light);
}
.variant-opt.is-selected .variant-opt-price { color: var(--brand-dark); }
/* A tick in the corner so the choice is obvious at a glance. */
.variant-opt.is-selected::after {
    content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: -8px; right: -8px; width: 20px; height: 20px;
    background: var(--brand); color: #fff; border-radius: 50%;
    font-size: 10px; display: flex; align-items: center; justify-content: center;
}
/* Out of stock: still readable, clearly not pickable. */
.variant-opt.is-out {
    cursor: not-allowed; background: #fafafa; border-color: var(--line);
    border-style: dashed; opacity: .7;
}
.variant-opt.is-out:hover { border-color: var(--line); }
.variant-opt.is-out .variant-opt-name { color: var(--muted); text-decoration: line-through; }

.variant-opt input:focus-visible + .variant-opt-name { outline: 2px solid var(--brand); outline-offset: 3px; }

@media (max-width: 480px) {
    .variant-options { gap: 8px; }
    .variant-opt { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); padding: 9px 12px; }
}

/* ===== Pincode delivery check (product, cart, checkout) ============ */
.delivery-check{
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; margin: 14px 0; background: #fff;
}
.dc-head{
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    color: var(--muted); display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
}
.dc-head i{ color: var(--brand); }
.dc-row{ display: flex; gap: 8px; align-items: center; }
.dc-row .dc-pin{
    flex: 1 1 auto; min-width: 0; padding: 10px 12px; font-size: 15px;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    letter-spacing: .06em; background: #fff; color: var(--ink); outline: none;
}
.dc-row .dc-pin:focus{ border-color: var(--brand); }
.dc-row .dc-btn{ flex: 0 0 auto; white-space: nowrap; }
.dc-result{ font-size: 13px; line-height: 1.5; margin-top: 9px; color: var(--ink); }
.dc-result:empty{ display: none; }
.dc-result.is-ok  { color: var(--success); }
.dc-result.is-bad { color: var(--danger); }
.dc-result .dc-muted{ color: var(--muted); font-weight: 400; }
.dc-result i{ margin-right: 2px; }

/* On the product page it sits in the buy column, so it stays compact. */
.dc-inline{ max-width: 420px; }

/* Checkout: the pincode field is a normal form field that happens to
   carry the check button, so the label spacing must still line up. */
.form-group.delivery-check{ padding: 0; border: none; margin-bottom: 16px; background: none; }
.form-group.delivery-check label{ display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group.delivery-check .dc-pin{ font-size: 15px; }

/* A payment option the pincode rules out. */
.pay-option.is-disabled{ opacity: .5; cursor: not-allowed; background: #fafafa; }
.pay-option.is-disabled .pay-desc{ color: var(--danger); }

/* Checkout / cart buttons while the pincode is undeliverable. */
.btn.is-blocked{ opacity: .5; pointer-events: none; }
.btn[disabled].is-blocked{ pointer-events: none; }

@media (max-width: 420px){
    .dc-row{ flex-wrap: wrap; }
    .dc-row .dc-pin{ flex: 1 1 100%; }
    .dc-row .dc-btn{ flex: 1 1 100%; justify-content: center; }
}

/* Grid items are min-width:auto by default, so one long product name or a
   fixed-width column can push the whole page sideways on a small phone.
   Letting the tracks shrink keeps every page inside the viewport. */
.cart-layout > *,
.checkout-layout > *,
.listing > *,
.account-layout > *,
.cart-row > * { min-width: 0; }
/* The coupon field keeps its own intrinsic width, which is wider than a
   small phone's summary column — let it shrink, then stack. */
.coupon-box input { min-width: 0; }
@media (max-width: 360px) {
    .coupon-box { flex-wrap: wrap; }
    .coupon-box input, .coupon-box .btn { flex: 1 1 100%; }
}

/* =====================================================================
   RAAJKART-STYLE STOREFRONT THEME
   Navy + orange marketplace skin. Loaded last, so it wins over the
   base rules above without touching them.
   ===================================================================== */

:root {
    --navy:        #16243d;
    --navy-2:      #0f1a2e;
    --navy-3:      #1e3050;
    --orange:      #f47a1f;
    --orange-dk:   #d9630c;
    --orange-soft: #fff3e6;
    --price:       #e4572e;
    --green:       #2e9c54;
    --ink-2:       #41485a;
}

body { background: var(--bg); }

h1, h2, h3, h4 { letter-spacing: -.2px; }

/* ---------------------------------------------------------------
   TOP BAR — slim dark strip above the main header
   --------------------------------------------------------------- */
.topbar { background: var(--navy-2); color: #c3cde0; font-size: 12.5px; }
.topbar-inner { background: transparent; height: 32px; }
.topbar-contact, .topbar-link { color: #d7deeb; font-weight: 500; }
.topbar-contact:hover, .topbar-link:hover { color: #fff; opacity: 1; }

/* ---------------------------------------------------------------
   HEADER — logo · search · wishlist / account / cart
   --------------------------------------------------------------- */
.site-header { background: var(--navy); box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.header-main { background: var(--navy); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 70px; }

.logo { flex-direction: row; align-items: center; gap: 10px; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: var(--orange); color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
}
.logo-copy { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text { font-size: 23px; font-weight: 800; font-style: normal; color: #fff; letter-spacing: -.4px; }
.logo-sub { font-size: 10.5px; font-style: normal; color: var(--orange); letter-spacing: .6px; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.logo-img { height: 46px; max-width: 220px; }

/* Search — category picker + field + orange button */
.search-form {
    flex: 1; max-width: 680px; height: 42px; background: #fff;
    border-radius: 6px; overflow: visible; border: 2px solid var(--orange);
    display: flex; align-items: stretch; position: relative;
}
.search-cat {
    flex: 0 0 auto; width: 136px; border: none; border-right: 1px solid var(--line);
    background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 500;
    padding: 0 8px 0 12px; outline: none; cursor: pointer; border-radius: 4px 0 0 4px;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 9px;
    padding-right: 26px; text-overflow: ellipsis;
}
.search-form input {
    flex: 1; border: none; outline: none; height: 100%;
    padding: 0 14px; font-size: 14px; background: transparent; color: var(--ink); min-width: 0;
}
.search-form input::placeholder { color: #9aa1ad; }
.search-form button {
    order: 3; flex: 0 0 auto; width: 54px; height: 100%; padding: 0;
    background: var(--orange); color: #fff; border: none; cursor: pointer;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
    border-radius: 0 3px 3px 0; transition: background .15s;
}
.search-form button:hover { background: var(--orange-dk); }

/* Account / wishlist / cart */
.header-actions { gap: 10px; }
.header-link {
    color: #fff; font-size: 12.5px; font-weight: 500; opacity: .95;
    flex-direction: column; align-items: center; gap: 3px; line-height: 1.1;
    padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.header-link i { font-size: 18px; }
.header-link:hover { opacity: 1; background: rgba(255,255,255,.08); }
.cart-btn {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 600;
    padding: 7px 16px; border-radius: 6px; position: relative; line-height: 1.1;
    white-space: nowrap; text-decoration: none; transition: background .15s;
}
.cart-btn:hover { background: var(--orange-dk); color: #fff; text-decoration: none; }
.cart-btn i { font-size: 18px; }
.cart-badge {
    position: absolute; top: -7px; right: -7px; background: #fff; color: var(--orange);
    border: 2px solid var(--orange); min-width: 21px; height: 21px; font-size: 11px;
}

/* ---------------------------------------------------------------
   MAIN NAV — dark bar, uppercase labels
   --------------------------------------------------------------- */
.main-nav { background: var(--navy-3); border-bottom: none; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.main-nav > .container { display: flex; justify-content: center; }
.main-nav .menu { justify-content: center; }
.main-nav a { color: #e6ebf4; }
.main-nav .menu > li > a {
    color: #e6ebf4; font-size: 12.5px; font-weight: 600; letter-spacing: .5px;
    text-transform: uppercase; padding: 13px 15px; position: relative;
}
.main-nav .menu > li > a:hover { color: #fff; background: rgba(255,255,255,.07); }
.main-nav .menu > li > a::after {
    content: ''; position: absolute; left: 15px; right: 15px; bottom: 6px; height: 2px;
    background: var(--orange); transform: scaleX(0); transition: transform .18s;
}
.main-nav .menu > li > a:hover::after { transform: scaleX(1); }
.main-nav .submenu { border-top: 3px solid var(--orange); border-radius: 0 0 8px 8px; }
.main-nav .submenu a { color: var(--ink); }
@media (min-width: 769px) and (max-width: 1250px) {
    .main-nav .menu > li > a { padding: 12px 10px; font-size: 11.5px; letter-spacing: .3px; }
}

/* ---------------------------------------------------------------
   PAGE SHELL
   --------------------------------------------------------------- */
.page { padding: 16px 16px 40px; }
.section { margin: 0 0 26px; }
.plain-head {
    font-size: 19px; font-weight: 700; margin: 0 0 14px; color: var(--ink);
}

/* ---------------------------------------------------------------
   HERO — 2 tiles · big banner · 2 tiles
   --------------------------------------------------------------- */
.hero-grid {
    display: grid; grid-template-columns: 1fr 2.3fr 1fr; gap: 12px;
    margin: 0 0 22px;
}
.hero-grid-solo { grid-template-columns: 1fr; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.hero-tile {
    position: relative; display: block; border-radius: 8px; overflow: hidden;
    background: #eef1f6; aspect-ratio: 4 / 1; box-shadow: var(--shadow);
    transition: box-shadow .18s, transform .18s;
}
.hero-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* contain, never cover: the whole artwork has to be visible. Each slot is
   also given the uploaded file's own ratio inline, so in practice the
   image fills it exactly and no bars show at all. */
.hero-tile img { width: 100%; height: 100%; object-fit: contain; }
.hero-tile-tag {
    position: absolute; left: 10px; bottom: 10px; background: rgba(22,36,61,.86);
    color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; padding: 5px 11px; border-radius: 4px;
}
.hero-main {
    position: relative; border-radius: 8px; overflow: hidden; min-width: 0;
    background: #eef1f6; box-shadow: var(--shadow);
    aspect-ratio: 4 / 1;            /* default; the real file ratio is set inline */
    max-height: 320px;              /* a very tall upload can never run away */
}
.hero-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hero-main-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 14px; color: #fff;
    background: linear-gradient(to top, rgba(10,18,32,.86), rgba(10,18,32,0));
}
.hero-main-caption h2 { margin: 0 0 2px; font-size: 21px; font-weight: 800; }
.hero-main-caption p { margin: 0; font-size: 14px; opacity: .92; }
.hero-placeholder {
    height: 100%; min-height: 150px; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; gap: 10px; padding: 24px; color: #fff;
    background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
}
.hero-placeholder h2 { margin: 0; font-size: 30px; font-weight: 800; }
.hero-placeholder p { margin: 0 0 6px; opacity: .85; }

/* ---------------------------------------------------------------
   CATEGORY ICON STRIP
   --------------------------------------------------------------- */
.catstrip-wrap { margin: 0 0 26px; }
.catstrip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.catstrip-item {
    background: var(--orange-soft); border: 1px solid #f6ddc0; border-radius: 10px;
    padding: 16px 8px 13px; display: flex; flex-direction: column; align-items: center;
    gap: 9px; text-align: center; color: var(--ink); min-width: 0;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.catstrip-item:hover {
    text-decoration: none; transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(244,122,31,.22); border-color: var(--orange);
}
/* Round icon badge. A category picture fills the circle (cover), which is
   what reads as an avatar; a category with no picture falls back to a
   FontAwesome glyph centred on the same circle. */
.catstrip-ic {
    width: 56px; height: 56px; flex: 0 0 auto;
    border-radius: 50%; overflow: hidden;
    background: #fff; border: 1px solid #f3dcc2;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--orange);
    transition: border-color .18s, box-shadow .18s;
}
.catstrip-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.catstrip-item:hover .catstrip-ic {
    border-color: var(--orange); box-shadow: 0 2px 10px rgba(244,122,31,.28);
}
.catstrip-name {
    font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink);
    overflow-wrap: break-word; max-width: 100%;
}

/* ---------------------------------------------------------------
   SHOP BY SCHOOL
   --------------------------------------------------------------- */
.schoolstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.schoolbox { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.schoolbox-top {
    border-radius: 8px; padding: 20px 12px; min-height: 108px; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 7px; text-align: center; overflow: hidden; position: relative;
    transition: transform .18s, box-shadow .18s;
}
.schoolbox-top:hover { text-decoration: none; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.schoolbox-top img { width: 38px; height: 38px; object-fit: contain; border-radius: 5px; background: rgba(255,255,255,.92); padding: 3px; }
.schoolbox-top i { font-size: 26px; opacity: .9; }
.schoolbox-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow-wrap: break-word; }
.schoolbox-city { font-size: 10.5px; opacity: .8; }
/* Six distinct card skins, cycled by position — matches the reference row. */
.sb-t1 { background: linear-gradient(140deg, #eef4ff, #d8e6ff); color: #1d3a73; }
.sb-t1 .schoolbox-city { color: #3a5a92; }
.sb-t2 { background: linear-gradient(140deg, #2b2113, #6a4a16); }
.sb-t3 { background: linear-gradient(140deg, #7a3a12, #c4661f); }
.sb-t4 { background: linear-gradient(140deg, #16243d, #27456f); }
.sb-t5 { background: linear-gradient(140deg, #123a4f, #1f6b84); }
.sb-t6 { background: linear-gradient(140deg, #6d1b1b, #a33232); }

.schoolbox-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sb-btn {
    background: var(--orange); color: #fff; font-size: 11px; font-weight: 600;
    text-align: center; padding: 6px 4px; border-radius: 4px; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: background .15s;
}
.sb-btn:hover { background: var(--orange-dk); color: #fff; text-decoration: none; }
.sb-btn-wide { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.sb-btn-wide:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------------------------------------------------------
   PRODUCT SHELVES — orange tag + tabs + 6-up grid
   --------------------------------------------------------------- */
.shelf-head {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-bottom: none;
    border-radius: 8px 8px 0 0; padding: 0 16px 0 0; min-height: 44px; flex-wrap: wrap;
}
.shelf-label {
    background: var(--orange); color: #fff; font-size: 12.5px; font-weight: 700;
    letter-spacing: .6px; text-transform: uppercase; padding: 12px 20px 12px 16px;
    border-radius: 8px 0 0 0; display: inline-flex; align-items: center; gap: 8px;
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); padding-right: 30px;
}
.shelf-label i { font-size: 11px; }
.shelf-tabs { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; padding: 6px 0; }
.shelf-tab {
    background: none; border: none; cursor: pointer; font-family: inherit;
    font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 6px 11px;
    border-radius: 5px; white-space: nowrap; transition: color .15s, background .15s;
}
.shelf-tab:hover { color: var(--orange); background: var(--orange-soft); }
.shelf-tab.active { color: var(--orange); background: var(--orange-soft); }
.shelf-more { font-size: 12.5px; font-weight: 600; color: var(--orange); margin-left: auto; padding: 10px 0; }
.shelf-more:hover { color: var(--orange-dk); }

.product-grid {
    border: 1px solid var(--line); border-radius: 8px; box-shadow: none; background: #fff;
}
.shelf .product-grid { border-radius: 0 0 8px 8px; }
.product-grid-6 { grid-template-columns: repeat(6, 1fr); }
.product-card { border-right: 1px solid #f1f2f5; border-bottom: none; padding: 10px; }
.product-grid-6 .product-card:nth-child(6n) { border-right: none; }
.product-card:last-child { border-right: none; }
.product-card.is-hidden { display: none; }
.product-card:hover { box-shadow: 0 4px 18px rgba(22,36,61,.14); }

.product-thumb { aspect-ratio: 1 / 1; }
.product-thumb img { padding: 8px; }
.badge-discount {
    background: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .3px;
    padding: 3px 7px; border-radius: 4px; top: 6px; left: 6px;
}
.product-body { padding: 10px 2px 4px; }
.product-name {
    font-size: 12.5px; line-height: 1.4; min-height: 36px; color: var(--ink-2);
    -webkit-line-clamp: 2; font-weight: 500;
}
.product-name:hover { color: var(--orange); }

.price-row { gap: 6px; margin-bottom: 9px; align-items: baseline; }
.price-now { font-size: 14.5px; font-weight: 700; color: var(--price); }
.price-mrp { font-size: 12px; color: var(--muted); }
.price-off { font-size: 11px; color: var(--green); font-weight: 700; }
.price-upto { font-size: 13px; font-weight: 700; color: var(--price); }
.variant-hint { font-size: 11px; color: var(--muted); margin-bottom: 8px; }

.card-actions { display: flex; align-items: stretch; gap: 5px; margin-top: auto; }
.ca-main {
    flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; background: #fff; color: var(--ink-2); border: 1px solid var(--line);
    border-radius: 5px; padding: 7px 6px; font-family: inherit; font-size: 10.5px;
    font-weight: 700; letter-spacing: .3px; text-transform: uppercase; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .15s;
}
.ca-main i { font-size: 11px; color: var(--orange); }
.ca-main:hover { background: var(--orange); border-color: var(--orange); color: #fff; text-decoration: none; }
.ca-main:hover i { color: #fff; }
.ca-ic {
    flex: 0 0 auto; width: 30px; background: #fff; border: 1px solid var(--line);
    border-radius: 5px; color: var(--muted); cursor: pointer; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center; transition: .15s;
    position: static;
}
.ca-ic:hover { border-color: var(--orange); color: var(--orange); }
.card-actions .wish-btn { position: static; box-shadow: none; height: auto; }
.card-actions .wish-btn.active { color: #e8334a; border-color: #f6c0c7; background: #fff5f6; }
.ca-buy:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.card-actions .stock-out {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #f3d2d2; background: #fdf4f4; border-radius: 5px; padding: 7px 6px;
    font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px;
}

/* ---------------------------------------------------------------
   PROMO STRIPS
   --------------------------------------------------------------- */
.promo-strip { margin: 0 0 26px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.promo-strip > a { display: block; }
/* The strip takes the banner's own shape (set inline), and the image is
   contained rather than cropped, so nothing is cut off. The ratio here is
   only the fallback for a file that could not be measured. */
/* Only a strip that actually holds a banner gets a fixed shape; the
   designed fallback blocks size themselves. */
.promo-strip.has-img { aspect-ratio: 1290 / 200; background: #eef1f6; }
.promo-strip.has-img > a { display: block; height: 100%; }
.promo-strip img { width: 100%; height: 100%; display: block; object-fit: contain; }
.promo-art {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    flex-wrap: wrap; padding: 30px 34px; color: #fff;
    background: linear-gradient(110deg, #1b1038 0%, #5a2a7a 38%, #c94f2c 72%, #f0a21c 100%);
}
.promo-kicker { font-size: 20px; font-weight: 700; font-style: italic; color: #ffd9a3; display: block; }
.promo-art h3 { margin: 4px 0 6px; font-size: 27px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.promo-art p { margin: 0; font-size: 13px; opacity: .9; text-transform: uppercase; letter-spacing: .4px; }
.promo-dark {
    text-align: center; padding: 38px 24px; color: #fff;
    background: linear-gradient(135deg, #10151f, #27314a);
}
.promo-dark h3 { margin: 0 0 8px; font-size: 27px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; line-height: 1.25; }
.promo-dark h3 span { color: var(--orange); }
.promo-dark p { margin: 0 0 16px; opacity: .82; }

/* ---------------------------------------------------------------
   BRANDS
   --------------------------------------------------------------- */
.brand-grid { grid-template-columns: repeat(8, 1fr); gap: 10px; }
.brand-card { border: 1px solid var(--line); border-radius: 6px; aspect-ratio: 16 / 9; padding: 12px; }
.brand-card:hover { border-color: var(--orange); }
.brand-initial { background: var(--navy); border-radius: 4px; }

/* ---------------------------------------------------------------
   TRUST STRIP
   --------------------------------------------------------------- */
.trust-strip { background: #fff; border-top: 1px solid var(--line); margin-top: 10px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 16px; }
.trust-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    padding: 0 16px; border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: none; }
.trust-ic {
    width: 46px; height: 46px; border-radius: 50%; background: #f1f3f7; color: var(--navy);
    display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 6px;
}
.trust-item strong { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.trust-item small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.trust-item small a { color: var(--muted); }
.trust-item small a:hover { color: var(--orange); }

/* ---------------------------------------------------------------
   NEWSLETTER + SOCIAL
   --------------------------------------------------------------- */
.news-strip { background: #fff; border-top: 1px solid var(--line); }
.news-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 20px 16px; flex-wrap: wrap;
}
.news-left { display: flex; align-items: center; gap: 16px; flex: 1 1 420px; min-width: 0; }
.news-left > strong { font-size: 14.5px; white-space: nowrap; }
.news-form { display: flex; flex: 1; min-width: 0; max-width: 430px; }
.news-form input {
    flex: 1; min-width: 0; height: 40px; border: 1px solid var(--line); border-right: none;
    border-radius: 4px 0 0 4px; padding: 0 14px; font-size: 13.5px; font-family: inherit; outline: none;
}
.news-form input:focus { border-color: var(--orange); }
.news-form .btn { border-radius: 0 4px 4px 0; padding: 0 26px; height: 40px; }
.news-right { display: flex; align-items: center; gap: 14px; }
.news-right strong { font-size: 14.5px; white-space: nowrap; }
.social-row { display: flex; align-items: center; gap: 8px; }
.social-row a {
    width: 32px; height: 32px; border-radius: 50%; background: #f1f3f7; color: var(--navy);
    display: flex; align-items: center; justify-content: center; font-size: 14px; transition: .15s;
}
.social-row a:hover { background: var(--orange); color: #fff; text-decoration: none; }
.social-row .soc-wa:hover { background: #25d366; }

/* ---------------------------------------------------------------
   FOOTER — light columns + dark payment bar
   --------------------------------------------------------------- */
.site-footer { background: #eef0f4; color: var(--ink-2); margin-top: 0; }
.footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px; padding: 38px 16px 30px;
}
.footer-col h4 {
    color: var(--ink); font-size: 14px; font-weight: 700; text-transform: none;
    letter-spacing: 0; margin: 0 0 14px;
}
.footer-col a { color: var(--ink-2); font-size: 13px; }
.footer-col a:hover { color: var(--orange); text-decoration: none; }
.footer-col li { margin-bottom: 9px; }
.footer-contactcol {
    background: #e4e7ed; border-radius: 8px; padding: 20px; margin: -6px 0;
    font-size: 12.5px; line-height: 1.6;
}
.footer-contactcol p { margin: 0 0 12px; }
.fc-lead strong, .fc-block strong { color: var(--ink); display: inline-block; margin-bottom: 2px; }
.fc-note { color: var(--muted); font-size: 11.5px; }

.footer-bottom { background: var(--navy-2); border-top: none; color: #aab4c6; }
.footer-bottom .container { align-items: center; padding: 14px 16px; }
.footer-bottom p { font-size: 12.5px; }
.pay-methods { display: flex; align-items: center; gap: 12px; font-size: 22px; color: #ced5e2; }

/* Floating WhatsApp */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 500;
    width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 27px;
    box-shadow: 0 6px 18px rgba(0,0,0,.26); transition: transform .18s;
}
.wa-float:hover { transform: scale(1.07); color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------- */
.btn { border-radius: 5px; }
.btn-accent { background: var(--orange); }
.btn-accent:hover { background: var(--orange-dk); }
.btn-buy { background: var(--orange); }
.btn-buy:hover { background: var(--orange-dk); }
.rating-pill { background: var(--green); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1280px) {
    .product-grid-6 { grid-template-columns: repeat(5, 1fr); }
    .product-grid-6 .product-card:nth-child(6n) { border-right: 1px solid #f1f2f5; }
    .product-grid-6 .product-card:nth-child(5n) { border-right: none; }
    .catstrip { grid-template-columns: repeat(8, 1fr); gap: 9px; }
    .brand-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 1080px) {
    .header-inner { gap: 12px; }
    .search-form { max-width: none; }
    .search-cat { width: 110px; }
    .product-grid-6 { grid-template-columns: repeat(4, 1fr); }
    .product-grid-6 .product-card:nth-child(5n),
    .product-grid-6 .product-card:nth-child(6n) { border-right: 1px solid #f1f2f5; }
    .product-grid-6 .product-card:nth-child(4n) { border-right: none; }
    .schoolstrip { grid-template-columns: repeat(3, 1fr); }
    .catstrip { grid-template-columns: repeat(4, 1fr); }
    .hero-grid { grid-template-columns: 1fr 1.6fr; }
    .hero-grid .hero-side:last-child { grid-column: 1 / -1; grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-contactcol { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .product-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .product-grid-6 .product-card:nth-child(4n),
    .product-grid-6 .product-card:nth-child(5n),
    .product-grid-6 .product-card:nth-child(6n) { border-right: 1px solid #f1f2f5; }
    .product-grid-6 .product-card:nth-child(3n) { border-right: none; }
    .brand-grid { grid-template-columns: repeat(5, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
    .trust-item:nth-child(2) { border-right: none; }
    .news-inner { justify-content: center; }
    .news-left { flex: 1 1 100%; }
    .news-right { flex: 1 1 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; row-gap: 10px; }
    .hamburger { order: 1; }
    .logo { order: 2; }
    .logo-text { font-size: 19px; }
    .logo-sub { display: none; }
    .logo-mark { width: 30px; height: 30px; font-size: 14px; }
    .logo-img { height: 36px; max-width: 160px; }
    .header-actions { order: 3; margin-left: auto; gap: 6px; }
    .header-link span { display: none; }
    .cart-btn span:not(.cart-badge) { display: none; }
    .cart-btn { padding: 8px 12px; }
    .search-form { order: 4; flex-basis: 100%; height: 40px; }
    .search-cat { display: none; }
    /* ---- Mobile nav drawer ------------------------------------
       The base stylesheet builds this drawer white with dark text. The
       theme paints the nav bar navy, and that rule is not scoped to
       desktop, so the drawer turned navy while its text stayed near
       black — unreadable. Re-colour the drawer as a whole instead. */
    .main-nav { background: var(--navy); }
    .main-nav .menu > li > a,
    .main-nav .submenu a {
        color: #e8edf6; border-bottom: 1px solid rgba(255,255,255,.09);
        text-transform: none; letter-spacing: 0; font-size: 14px; padding: 12px 18px;
    }
    .main-nav .menu > li > a { font-weight: 600; }
    .main-nav .menu > li > a::after { display: none; }
    .main-nav .menu > li > a:hover,
    .main-nav .menu > li > a:active { background: rgba(255,255,255,.10); color: #fff; }
    .main-nav .menu > li.open > a { color: var(--orange); background: rgba(255,255,255,.06); }

    /* Each level steps one shade lighter, so depth reads at a glance. */
    .main-nav .submenu { background: var(--navy-3); border: none; border-radius: 0; }
    .main-nav .submenu .submenu { background: #273c60; }
    .main-nav .submenu a { font-weight: 500; color: #c7d2e5; }
    .main-nav .submenu a:hover,
    .main-nav .submenu a:active { background: rgba(255,255,255,.10); color: #fff; }

    .menu-caret { color: #aab6cc; }
    .main-nav .submenu .menu-caret { color: #93a1ba; }
    .main-nav li.open > a > .menu-caret { color: var(--orange); }

    .main-nav > .container { display: block; }

    .hero-grid { grid-template-columns: 1fr; gap: 10px; }
    .hero-grid .hero-side,
    .hero-grid .hero-side:last-child { grid-column: auto; grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
    .hero-main { order: -1; }
    .hero-main-caption h2 { font-size: 18px; }
    .hero-main-caption p { font-size: 12px; }
    .hero-main-caption { padding: 18px 14px 12px; }

    .schoolstrip { grid-template-columns: repeat(2, 1fr); }
    .promo-art, .promo-dark { padding: 24px 18px; text-align: center; justify-content: center; }
    .promo-art h3, .promo-dark h3 { font-size: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; padding: 28px 16px 22px; gap: 22px; }
}

@media (max-width: 560px) {
    .page { padding: 14px 10px 32px; }
    .container { padding-left: 10px; padding-right: 10px; }
    .product-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .product-grid-6 .product-card { border-right: 1px solid #f1f2f5; }
    .product-grid-6 .product-card:nth-child(2n) { border-right: none; }
    .product-card { border-bottom: 1px solid #f1f2f5; }
    .catstrip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .catstrip-item { padding: 12px 5px 10px; gap: 7px; }
    .catstrip-ic { width: 46px; height: 46px; font-size: 20px; }
    .catstrip-name { font-size: 11px; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .shelf-head { padding-right: 10px; }
    .shelf-label { font-size: 11px; padding: 10px 24px 10px 12px; }
    .shelf-tab { font-size: 11.5px; padding: 5px 8px; }
    .plain-head { font-size: 17px; }
    .news-form { max-width: none; }
    .news-left { flex-direction: column; align-items: stretch; gap: 10px; }
    .news-left > strong { text-align: center; }
    .sb-btn { font-size: 10px; padding: 6px 2px; }
    .sb-btn-wide { font-size: 10.5px; }
    .trust-grid { grid-template-columns: 1fr 1fr; padding: 20px 10px; }
    .trust-item { border-right: none; padding: 0 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
    .pay-methods { justify-content: center; font-size: 20px; }
    .wa-float { width: 46px; height: 46px; font-size: 23px; right: 12px; bottom: 12px; }
    .card-actions { flex-wrap: wrap; }
    .ca-main { flex: 1 1 100%; }
}

/* =====================================================================
   SCHOOL LISTING PAGE — banner, class strip, filter rail, toolbar
   ===================================================================== */

.page-title {
    font-size: 20px; font-weight: 700; margin: 0 0 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--line); color: var(--ink);
}

/* ---- School banner ---- */
.school-hero {
    display: flex; align-items: center; gap: 20px; padding: 20px 28px; margin-bottom: 18px;
    border-radius: 8px; color: #fff; overflow: hidden; position: relative;
    background: linear-gradient(100deg, #b4530d 0%, #e07a16 45%, #f5a623 100%);
}
.school-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 78% 20%, rgba(255,255,255,.22), transparent 55%);
}
.school-hero-logo {
    width: 68px; height: 68px; border-radius: 50%; background: #fff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.18); position: relative; z-index: 1;
}
.school-hero-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.school-hero-logo i { font-size: 30px; color: var(--orange); }
.school-hero-text { position: relative; z-index: 1; min-width: 0; }
.school-hero-text h2 { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.school-hero-text span { font-size: 14px; opacity: .92; }
.school-hero-desc { color: var(--muted); font-size: 14px; margin: -8px 0 18px; }

/* ---- Class strip ---- */
.classbar { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 18px; }
.classbar-track {
    display: flex; gap: 10px; overflow-x: auto; scroll-behavior: smooth; flex: 1;
    padding: 2px; scrollbar-width: none; -ms-overflow-style: none;
}
.classbar-track::-webkit-scrollbar { display: none; }
.classbar-nav {
    flex: 0 0 auto; width: 30px; align-self: stretch; margin-bottom: 22px;
    background: var(--orange); color: #fff; border: none; border-radius: 5px;
    cursor: pointer; font-size: 13px; display: none;
    align-items: center; justify-content: center; transition: background .15s;
}
.classbar.has-overflow .classbar-nav { display: flex; }
.classbar-nav:hover { background: var(--orange-dk); }
.classbar-nav:disabled { opacity: .35; cursor: default; background: var(--orange); }

.classtile {
    flex: 0 0 auto; width: 104px; display: flex; flex-direction: column;
    align-items: center; gap: 6px; color: var(--ink); text-align: center;
}
.classtile:hover { text-decoration: none; }
.classtile-box {
    width: 100%; height: 74px; border-radius: 6px; background: var(--navy);
    color: #fff; display: flex; align-items: center; justify-content: center;
    padding: 8px 6px; font-size: 14px; font-weight: 700; letter-spacing: .4px;
    line-height: 1.15; overflow: hidden; overflow-wrap: anywhere; hyphens: auto;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.classtile:hover .classtile-box { background: var(--navy-3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.classtile.is-on .classtile-box { background: var(--orange); }
.classtile-cap { font-size: 11.5px; color: var(--muted); line-height: 1.25; overflow-wrap: anywhere; }
.classtile.is-on .classtile-cap { color: var(--orange); font-weight: 700; }
/* Long class names ("Upper Prep", "Nursery A") shrink instead of clipping. */
.classtile-box { font-size: clamp(11px, 1.05vw, 14px); }

/* ---- Complete-set call to action ---- */
.setcta {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; background: var(--orange-soft); border: 1px solid #f6ddc0;
    border-radius: 6px; padding: 12px 16px; margin-bottom: 16px;
}
.setcta strong { display: block; font-size: 14px; color: var(--ink); }
.setcta span { font-size: 12.5px; color: var(--muted); }

/* ---- Sidebar panels ---- */
.listing { grid-template-columns: 234px 1fr; gap: 20px; align-items: start; }
.sidebar { background: transparent; box-shadow: none; padding: 0; }
.sb-panel {
    background: #fff; border: 1px solid var(--line); border-radius: 6px;
    margin-bottom: 14px; overflow: hidden;
}
.sb-panel-head {
    background: var(--orange); color: #fff; font-size: 12px; font-weight: 700;
    letter-spacing: .7px; text-transform: uppercase; padding: 9px 14px;
}
.sb-panel-body { padding: 12px 14px; }
.sb-sub {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
    color: var(--ink); padding-bottom: 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.sb-muted { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }

.sb-acc { border-bottom: 1px solid var(--line); }
.sb-acc:last-of-type { border-bottom: none; }
.sb-acc > summary {
    list-style: none; cursor: pointer; padding: 11px 20px 11px 0; position: relative;
    font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .3px;
}
.sb-acc > summary::-webkit-details-marker { display: none; }
.sb-acc > summary::after {
    content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
    font-size: 10px; color: var(--muted); transition: transform .18s;
}
.sb-acc[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
.sb-acc > summary:hover { color: var(--orange); }

.sb-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 260px; overflow-y: auto; }
.sb-list li { margin: 0; }
.sb-list a {
    display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
    padding: 6px 2px; font-size: 13px; color: var(--ink-2); line-height: 1.35;
}
.sb-list a:hover { color: var(--orange); text-decoration: none; }
.sb-list a.is-on { color: var(--orange); font-weight: 700; }
.sb-n { color: var(--muted); font-size: 11.5px; flex-shrink: 0; font-weight: 400; }

.sb-price { padding: 2px 0 12px; }
.sb-clear {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    font-size: 12.5px; font-weight: 600; color: var(--price);
}

.sb-brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sb-brands a {
    border: 1px solid var(--line); border-radius: 5px; aspect-ratio: 3 / 2; padding: 6px;
    display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fff;
}
.sb-brands a:hover { border-color: var(--orange); }
.sb-brands img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sb-brands span { font-size: 11px; font-weight: 700; color: var(--navy); }

/* ---- Toolbar ---- */
.listing-main { min-width: 0; }
.listing-toolbar {
    background: #fff; border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 14px; margin-bottom: 14px; gap: 14px; justify-content: flex-start;
}
.view-toggle { display: flex; gap: 5px; }
.view-toggle a {
    width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 5px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px;
}
.view-toggle a:hover { border-color: var(--orange); color: var(--orange); text-decoration: none; }
.view-toggle a.is-on { background: var(--orange); border-color: var(--orange); color: #fff; }
.items-count { font-size: 13px; color: var(--ink-2); }
.toolbar-form { margin-left: auto; }
.listing-toolbar label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.listing-toolbar select { padding: 6px 10px; font-size: 13px; color: var(--ink); background: #fff; }

/* ---- Grid / list view ---- */
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid-4 .product-card:nth-child(4n) { border-right: none; }

.product-grid.is-list { grid-template-columns: 1fr; }
.product-grid.is-list .product-card {
    flex-direction: row; gap: 16px; align-items: flex-start; padding: 14px;
    border-right: none; border-bottom: 1px solid #f1f2f5;
}
.product-grid.is-list .product-thumb { flex: 0 0 140px; width: 140px; }
.product-grid.is-list .product-body { padding: 2px 0; flex: 1; min-width: 0; }
.product-grid.is-list .product-name { font-size: 14px; min-height: 0; -webkit-line-clamp: 3; margin-bottom: 8px; }
.product-grid.is-list .price-row { margin-top: 6px; }
.product-grid.is-list .card-actions { max-width: 300px; }

/* ---- Footer row: pagination + per page ---- */
.listing-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; margin-top: 20px;
}
.listing-foot .pagination { margin-top: 0; justify-content: flex-start; }
.pagination a, .pagination span {
    min-width: 34px; height: 34px; font-size: 13.5px; border-radius: 5px;
}
.pagination a:hover { background: var(--orange-soft); border-color: var(--orange); color: var(--orange); }
.pagination .current { background: var(--orange); border-color: var(--orange); color: #fff; }
.perpage-form label { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.perpage-form select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; font-family: inherit; }

/* ---- Responsive ---- */
@media (max-width: 1280px) {
    .product-grid-4 { grid-template-columns: repeat(4, 1fr); }
    .product-grid-4 .product-card:nth-child(6n) { border-right: 1px solid #f1f2f5; }
    .product-grid-4 .product-card:nth-child(4n) { border-right: none; }
}
@media (max-width: 1080px) {
    .listing { grid-template-columns: 210px 1fr; gap: 16px; }
    .product-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .product-grid-4 .product-card:nth-child(4n) { border-right: 1px solid #f1f2f5; }
    .product-grid-4 .product-card:nth-child(3n) { border-right: none; }
}
@media (max-width: 860px) {
    .listing { grid-template-columns: 1fr; }
    .sidebar { background: var(--card); padding: 18px; }
    .sb-panel { border: none; border-radius: 0; margin-bottom: 10px; }
    .classtile { width: 92px; }
}
@media (max-width: 560px) {
    .page-title { font-size: 17px; }
    .school-hero { padding: 14px 16px; gap: 14px; }
    .school-hero-logo { width: 52px; height: 52px; }
    .school-hero-text h2 { font-size: 18px; }
    .classtile { width: 80px; }
    .classtile-box { height: 60px; font-size: 11px; }
    .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .product-grid-4 .product-card { border-right: 1px solid #f1f2f5; }
    .product-grid-4 .product-card:nth-child(3n) { border-right: 1px solid #f1f2f5; }
    .product-grid-4 .product-card:nth-child(2n) { border-right: none; }
    .listing-toolbar { padding: 8px 10px; gap: 10px; }
    .toolbar-form { margin-left: 0; flex-basis: 100%; }
    .items-count { font-size: 12px; }
    .listing-foot { justify-content: center; }
    .product-grid.is-list .product-thumb { flex-basis: 96px; width: 96px; }
}

/* =====================================================================
   SET CONTENTS SHEET (product page) — "What's inside this set"
   Own class prefix so it never collides with the .setlist-* rules the
   school-class page uses for its own itemised list.
   ===================================================================== */
.setsheet-wrap { margin: 0 0 22px; }
.setsheet-title {
    font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--ink);
    display: flex; align-items: center; gap: 8px;
}
.setsheet-title i { color: var(--orange); font-size: 15px; }

.setsheet {
    width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed;
    border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.setsheet col.c-qty  { width: 68px; }
.setsheet col.c-rate { width: 110px; }
.setsheet col.c-amt  { width: 120px; }

.setsheet th,
.setsheet td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.setsheet .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.setsheet thead th {
    background: #f6f7f9; font-size: 11px; font-weight: 700; color: var(--muted);
    text-transform: uppercase; letter-spacing: .5px; padding-top: 9px; padding-bottom: 9px;
}
.setsheet tbody tr:nth-child(even) td { background: #fcfcfd; }
.setsheet tbody tr:hover td { background: var(--orange-soft); }

/* Item cell: serial badge + wrapping name.
   The cell stays a plain table-cell — making it a flex container pulls it
   out of the table layout and the row borders stop lining up. */
.setsheet-item { overflow-wrap: anywhere; }
.setsheet-no {
    display: inline-block; min-width: 22px; margin-right: 8px; padding: 1px 6px;
    border-radius: 4px; background: var(--orange-soft); color: var(--orange-dk);
    border: 1px solid #f6ddc0; font-size: 11px; font-weight: 700;
    text-align: center; line-height: 1.5; vertical-align: 1px;
}

/* A named section (e.g. "Books") rides along with the item instead of
   splitting the table into banners, so every set looks the same. */
.setsheet-tag {
    display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px;
    background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 700;
    letter-spacing: .3px; text-transform: uppercase; vertical-align: 1px;
}

/* Discount / adjustment lines are entered as a negative rate */
.setsheet tbody tr.is-neg td { background: #fdf5f3; color: var(--price); font-weight: 600; }
.setsheet tbody tr.is-neg:hover td { background: #fbeeea; }

/* No hairline between the last row and the orange total bar. */
.setsheet tbody tr:last-child td { border-bottom: none; }
.setsheet-grand td {
    background: var(--orange); color: #fff; font-weight: 800; font-size: 15px;
    border: none; padding-top: 12px; padding-bottom: 12px;
}
/* MRP and the discount line that sit above the payable total. */
.setsheet-mrp td { background: #f6f7f9; font-weight: 600; color: var(--ink-2); }
.setsheet-mrp td.num { text-decoration: line-through; color: var(--muted); }
.setsheet-off td { background: #f6f7f9; font-weight: 700; color: var(--green); }
.setsheet-note { color: var(--muted); font-size: 12.5px; margin: 10px 0 0; }

/* Phones: four columns don't fit, so each row becomes a small card —
   the item name on its own line with Qty / Rate / Amount beneath it. */
@media (max-width: 620px) {
    .setsheet { display: block; table-layout: auto; font-size: 13px; }
    .setsheet colgroup, .setsheet thead { display: none; }
    .setsheet tbody, .setsheet tfoot { display: block; }
    .setsheet tbody tr { display: block; padding: 11px 13px; border-bottom: 1px solid var(--line); }
    .setsheet tbody tr:nth-child(even) td { background: transparent; }
    .setsheet tbody tr:hover td { background: transparent; }
    .setsheet tbody tr:nth-child(even) { background: #fcfcfd; }

    .setsheet tbody tr td { display: inline-block; border: none; padding: 0; background: transparent; }
    .setsheet-item { display: block; width: 100%; font-weight: 600; margin-bottom: 6px; overflow-wrap: break-word; }
    .setsheet tbody tr td.num {
        text-align: left; font-size: 12px; color: var(--muted); margin-right: 16px; white-space: normal;
    }
    .setsheet tbody tr td.num::before { content: attr(data-l) ': '; }
    /* Amount always on its own line, so the rows read evenly. */
    .setsheet tbody tr td.num:last-child {
        display: block; margin: 3px 0 0; color: var(--ink); font-weight: 700; font-size: 13px;
    }
    .setsheet tbody tr.is-neg td.num:last-child { color: var(--price); }

    .setsheet tfoot tr {
        display: flex; align-items: center; justify-content: space-between; gap: 0; padding: 0;
    }
    .setsheet tfoot tr td { display: block; padding: 10px 13px; }
    .setsheet tfoot tr td:first-child { flex: 1; }
    .setsheet tfoot tr td.num { display: block; margin: 0; color: #fff; font-weight: 800; }
    .setsheet tfoot tr td.num::before { content: none; }
    .setsheet-tag { font-size: 10px; padding: 1px 5px; margin-right: 6px; }
    .setsheet-grand td { font-size: 14px; }
    .setsheet-no { min-width: 20px; padding: 0 5px; font-size: 10.5px; margin-right: 7px; }
}

/* =====================================================================
   CLASS SETS — a class can offer several sets side by side
   ===================================================================== */
.setcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.setcard {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 16px 18px; display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow .18s, border-color .18s;
}
.setcard:hover { border-color: var(--orange); box-shadow: 0 4px 16px rgba(22,36,61,.10); }
.setcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.setcard-head h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.setcard-count {
    flex: 0 0 auto; background: var(--orange-soft); color: var(--orange-dk);
    border: 1px solid #f6ddc0; border-radius: 999px; padding: 2px 9px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.setcard-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.setcard-list li {
    padding: 3px 0 3px 15px; position: relative; line-height: 1.4; overflow-wrap: anywhere;
}
.setcard-list li::before {
    content: ''; position: absolute; left: 2px; top: 10px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--orange);
}
.setcard-more { color: var(--muted); font-weight: 600; }
.setcard-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
}
.setcard-prices { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.setcard-mrp { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.setcard-price { font-size: 18px; font-weight: 800; color: var(--price); }
.setcard-off { font-size: 12px; font-weight: 700; color: var(--green); }
.setcard-actions { display: flex; gap: 7px; align-items: center; }
@media (max-width: 560px) {
    .setcards { grid-template-columns: 1fr; }
    .setcard-foot { justify-content: space-between; }
}
