﻿/* =========================================================
   Quick2Tally TDL Store - storefront styles
   Bootstrap 5 (assets/vendor/bootstrap) ke upar chalta hai
   ========================================================= */
:root {
    --st-brand: #6174bf;
    --st-brand-dark: #222e57;
    --st-grad: linear-gradient(135deg, #6174bf 0%, #222e57 100%);
    --st-accent: #f2a541;
    --st-ink: #1c2238;
    --st-muted: #636b85;
    --st-line: #e4e7f0;
    --st-soft: #f4f6fb;
    --st-card: #ffffff;
    --st-green: #2f9e6f;
    --st-radius: 14px;
    --st-shadow: 0 6px 24px rgba(34, 46, 87, .08);
}

html { scroll-behavior: smooth; }
body.store {
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--st-ink);
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
}
.store a { color: var(--st-brand); text-decoration: none; }
.store a:hover { color: var(--st-brand-dark); }
.store h1, .store h2, .store h3, .store h4, .store h5 { color: var(--st-ink); font-weight: 700; letter-spacing: -.01em; }

/* ---------- Top bar + header ---------- */
.st-topbar { background: var(--st-brand-dark); color: #cdd3ea; font-size: 13px; }
.st-topbar a { color: #fff; }
.st-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }

.st-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--st-line); }
.st-header .navbar { padding: 10px 0; }
.st-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--st-ink) !important; }
.st-brand img { height: 34px; width: auto; }
.st-brand small { display: block; font-size: 11px; font-weight: 500; color: var(--st-muted); line-height: 1.1; }
.st-header .nav-link { color: var(--st-ink); font-weight: 500; padding: 8px 14px !important; border-radius: 8px; }
.st-header .nav-link:hover, .st-header .nav-link.active { color: var(--st-brand); background: var(--st-soft); }
.st-cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--st-line); color: var(--st-ink) !important; font-size: 20px; }
.st-cart-btn .badge { position: absolute; top: -6px; right: -6px; background: var(--st-accent); color: #1c2238; font-size: 11px; }

/* ---------- Buttons ---------- */
.btn-st { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 22px; font-weight: 600; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-st:hover { transform: translateY(-1px); }
.btn-st-primary { background: var(--st-grad); color: #fff !important; box-shadow: 0 4px 15px rgba(26, 86, 219, .2); }
.btn-st-primary:hover { box-shadow: 0 8px 22px rgba(34, 46, 87, .3); }
.btn-st-accent { background: var(--st-accent); color: #1c2238 !important; }
.btn-st-outline { background: #fff; color: var(--st-brand-dark) !important; border: 1.5px solid var(--st-brand); }
.btn-st-ghost { background: rgba(255,255,255,.12); color: #fff !important; border: 1.5px solid rgba(255,255,255,.45); }
.btn-st-wa { background: #25d366; color: #fff !important; }
.btn-st-sm { padding: 7px 14px; font-size: 13.5px; border-radius: 8px; }
.btn-st-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.st-hero { background: var(--st-grad); color: #fff; position: relative; overflow: hidden; padding: 72px 0 84px; }
.st-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.06); }
.st-hero h1 { color: #fff; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.15; margin-bottom: 16px; }
.st-hero h1 span { color: var(--st-accent); }
.st-hero p.lead { color: #dfe4f7; font-size: 17px; max-width: 560px; }
.st-hero-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 30px; padding: 5px 14px; font-size: 13px; margin-bottom: 18px; color: #fff; }
.st-hero-search { display: flex; background: #fff; border-radius: 12px; padding: 6px; max-width: 520px; margin-top: 26px; }
.st-hero-search input { flex: 1; border: 0; outline: 0; padding: 8px 12px; font-size: 15px; min-width: 0; color: var(--st-ink); }
.st-hero-panel { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; padding: 26px; }
.st-hero-panel .step { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.2); }
.st-hero-panel .step:last-child { border-bottom: 0; }
.st-hero-panel .num { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--st-accent); color: #1c2238; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.st-hero-panel h6 { color: #fff; margin: 0 0 2px; font-weight: 600; }
.st-hero-panel p { margin: 0; font-size: 13.5px; color: #d6dcf2; }

/* ---------- Trust strip ---------- */
.st-trust { background: #fff; margin-top: -40px; position: relative; z-index: 2; }
.st-trust .box { background: #fff; border-radius: var(--st-radius); box-shadow: var(--st-shadow); padding: 18px 10px; }
.st-trust .item { display: flex; align-items: center; gap: 12px; padding: 8px 14px; }
.st-trust .item i { font-size: 26px; color: var(--st-brand); }
.st-trust .item strong { display: block; font-size: 14.5px; line-height: 1.25; }
.st-trust .item span { font-size: 12.5px; color: var(--st-muted); }

/* ---------- Sections ---------- */
.st-section { padding: 70px 0; }
.st-section.soft { background: var(--st-soft); }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.st-head h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.st-head p { margin: 4px 0 0; color: var(--st-muted); }
.st-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; color: var(--st-brand); }

/* ---------- Category tiles ---------- */
.st-cat { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: 16px; height: 100%; transition: border-color .15s, box-shadow .15s, transform .15s; color: var(--st-ink) !important; }
.st-cat:hover { border-color: var(--st-brand); box-shadow: var(--st-shadow); transform: translateY(-2px); }
.st-cat .ic { flex: 0 0 52px; height: 52px; border-radius: 12px; background: var(--st-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--st-brand); font-size: 24px; }
.st-cat .ic img { width: 100%; height: 100%; object-fit: cover; }
.st-cat h5 { font-size: 15.5px; margin: 0; }
.st-cat span { font-size: 12.5px; color: var(--st-muted); }

/* ---------- Product card ---------- */
.st-card { background: var(--st-card); border: 1px solid var(--st-line); border-radius: var(--st-radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.st-card:hover { box-shadow: var(--st-shadow); transform: translateY(-3px); }
.st-card .thumb { position: relative; aspect-ratio: 16 / 10; background: var(--st-grad); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.st-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-card .thumb .ph { color: rgba(255,255,255,.9); text-align: center; padding: 16px; }
.st-card .thumb .ph i { font-size: 34px; display: block; margin-bottom: 4px; }
.st-card .thumb .ph b { font-size: 14px; letter-spacing: .02em; }
.st-badge { position: absolute; top: 12px; left: 12px; background: var(--st-accent); color: #1c2238; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.st-badge.off { left: auto; right: 12px; background: var(--st-green); color: #fff; }
.st-card .body { padding: 16px 16px 10px; flex: 1; display: flex; flex-direction: column; }
.st-card .cat { font-size: 12px; color: var(--st-brand); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.st-card h5 { font-size: 16px; margin: 4px 0 6px; line-height: 1.35; }
.st-card h5 a { color: var(--st-ink); }
.st-card .desc { font-size: 13.5px; color: var(--st-muted); margin-bottom: 10px; }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.st-meta span { font-size: 12px; background: var(--st-soft); color: var(--st-brand-dark); border-radius: 6px; padding: 2px 8px; }
.st-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.st-price .now { font-size: 20px; font-weight: 700; color: var(--st-ink); }
.st-price .was { font-size: 14px; color: var(--st-muted); text-decoration: line-through; }
.st-price .gst { font-size: 12px; color: var(--st-muted); }
.st-card .foot { padding: 0 16px 16px; display: flex; gap: 8px; }
.st-card .foot .btn-st { flex: 1; justify-content: center; }

/* ---------- How it works / custom TDL ---------- */
.st-step { background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: 24px; height: 100%; }
.st-step .n { width: 40px; height: 40px; border-radius: 10px; background: var(--st-grad); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.st-step h5 { font-size: 17px; }
.st-step p { color: var(--st-muted); margin: 0; font-size: 14px; }
.st-custom { background: var(--st-grad); border-radius: 20px; color: #fff; padding: 40px; }
.st-custom h2 { color: #fff; }
.st-custom p { color: #dfe4f7; }

/* ---------- FAQ ---------- */
.st-faq .accordion-item { border: 1px solid var(--st-line); border-radius: 12px !important; margin-bottom: 10px; overflow: hidden; }
.st-faq .accordion-button { font-weight: 600; color: var(--st-ink); }
.st-faq .accordion-button:not(.collapsed) { background: var(--st-soft); color: var(--st-brand-dark); box-shadow: none; }
.st-faq .accordion-button:focus { box-shadow: none; }

/* ---------- Listing ---------- */
.st-pagehead { background: var(--st-grad); color: #fff; padding: 38px 0; }
.st-pagehead h1 { color: #fff; font-size: 30px; margin: 0; }
.st-pagehead .crumb { font-size: 13px; color: #cdd3ea; }
.st-pagehead .crumb a { color: #fff; }
.st-side { background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: 18px; margin-bottom: 20px; }
.st-side h6 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--st-muted); margin-bottom: 12px; }
.st-side .list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--st-ink); font-size: 14.5px; }
.st-side .list a:hover { background: var(--st-soft); }
.st-side .list a.active { background: var(--st-grad); color: #fff; }
.st-side .list a .count { font-size: 12px; opacity: .75; }
.st-mini { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--st-line); color: var(--st-ink) !important; }
.st-mini:last-child { border-bottom: 0; }
.st-mini .t { flex: 0 0 52px; height: 40px; border-radius: 8px; background: var(--st-grad); overflow: hidden; }
.st-mini .t img { width: 100%; height: 100%; object-fit: cover; }
.st-mini p { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.st-mini small { color: var(--st-muted); }
.st-searchbox { position: relative; }
.st-searchbox i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--st-muted); }
.st-searchbox input { padding-left: 36px; border-radius: 10px; border: 1px solid var(--st-line); height: 44px; }
.st-empty { text-align: center; padding: 50px 20px; color: var(--st-muted); border: 1px dashed var(--st-line); border-radius: var(--st-radius); }
.st-empty i { font-size: 40px; color: var(--st-brand); display: block; margin-bottom: 8px; }

/* ---------- Detail ---------- */
.st-gallery .main { aspect-ratio: 16 / 10; border-radius: var(--st-radius); background: var(--st-grad); overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid var(--st-line); }
.st-gallery .main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.st-gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.st-gallery .thumbs button { width: 74px; height: 54px; border-radius: 8px; overflow: hidden; border: 2px solid var(--st-line); padding: 0; background: #fff; }
.st-gallery .thumbs button.on { border-color: var(--st-brand); }
.st-gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.st-buybox { background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: 24px; box-shadow: var(--st-shadow); }
.st-buybox h1 { font-size: 26px; line-height: 1.3; }
.st-buybox .st-price .now { font-size: 30px; }
.st-facts { list-style: none; padding: 0; margin: 16px 0; }
.st-facts li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--st-line); font-size: 14.5px; }
.st-facts li:last-child { border-bottom: 0; }
.st-facts i { color: var(--st-green); }
.st-content { font-size: 15px; }
.st-content img { max-width: 100%; height: auto; border-radius: 8px; }
.st-video { border-radius: var(--st-radius); overflow: hidden; background: #000; }
.st-video video { width: 100%; display: block; }

/* ---------- Basket ---------- */
.st-basket-row { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--st-line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.st-basket-row .t { flex: 0 0 80px; height: 56px; border-radius: 8px; background: var(--st-grad); overflow: hidden; }
.st-basket-row .t img { width: 100%; height: 100%; object-fit: cover; }
.st-basket-row .n { flex: 1; min-width: 0; }
.st-basket-row .n a { font-weight: 600; color: var(--st-ink); }
.st-basket-row .p { font-weight: 700; white-space: nowrap; }
.st-basket-row .x { border: 0; background: none; color: #c0392b; font-size: 18px; }

/* ---------- Footer ---------- */
.st-footer { background: #151b33; color: #aab2cf; padding: 56px 0 0; font-size: 14px; }
.st-footer h6 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.st-footer a { color: #d5daef; }
.st-footer a:hover { color: #fff; }
.st-footer ul { list-style: none; padding: 0; margin: 0; }
.st-footer li { padding: 4px 0; }
.st-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 16px 0; font-size: 13px; }
.st-partner { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 8px; color: #fff; font-size: 13px; margin-top: 10px; }

/* ---------- WhatsApp float ---------- */
.st-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* ---------- Small screens ---------- */
@media (max-width: 991.98px) {
    .st-hero { padding: 48px 0 70px; }
    .st-section { padding: 50px 0; }
    .st-custom { padding: 28px; }
    .st-header .navbar-collapse { padding: 10px 0; }
}
@media (max-width: 575.98px) {
    .st-topbar .hide-xs { display: none; }
    .st-card .foot { flex-direction: column; }
}
