/* Flex/grid children may shrink below their content (needed by text-truncate inside flex rows). */
.min-w-0 { min-width: 0 !important; }
/* Long names / search terms / pasted words wrap instead of making the page scroll sideways. */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6, .title, .name, .breadcrumb-item, .product-title, .pd-title { overflow-wrap: anywhere; }
.breadcrumb { flex-wrap: wrap; min-width: 0; }

/* ==========================================================================
   Storefront theme — built on Bootstrap 5.3
   ========================================================================== */
:root {
    --brand: #4f46e5;
    --brand-600: #4338ca;
    --brand-50: #eef2ff;
    --accent: #f97316;
    --accent-600: #ea580c;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #f6f7fb;
    --success: #16a34a;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .06);
    --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 79, 70, 229;
    --bs-body-font-family: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: var(--ink);
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-600);
}

body { background: var(--surface); font-size: .95rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img { max-width: 100%; }
.text-muted { color: var(--muted) !important; }
.fw-semibold { font-weight: 600 !important; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; padding: .6rem 1.1rem; }
.btn-sm { border-radius: 8px; padding: .35rem .75rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600); --bs-btn-active-bg: var(--brand-600); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); }
.btn-whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-soft { background: var(--brand-50); color: var(--brand); border: 0; }
.btn-soft:hover { background: var(--brand); color: #fff; }

/* Top bar */
.topbar { background: var(--ink); color: #cbd5e1; font-size: .8rem; }
.topbar a { color: #cbd5e1; }
.topbar a:hover { color: #fff; }
.topbar .social a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; }
.topbar .social a:hover { background: rgba(255, 255, 255, .1); }

/* Header */
.site-header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1030; }
.site-header .logo img { max-height: 44px; width: auto; }
.site-header .logo .logo-text { font-size: 1.45rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.site-header .logo .logo-text span { color: var(--brand); }
.search-form { position: relative; }
.search-form .form-control { border-radius: 999px; padding: .7rem 3.2rem .7rem 1.2rem; background: var(--surface); border-color: transparent; }
.search-form .form-control:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12); }
.search-form > button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); border-radius: 999px; width: 40px; height: 40px; padding: 0; }
.header-action { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 500; position: relative; background: none; border: 0; padding: 0; }
.header-action .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: .2s; }
.header-action:hover .icon { background: var(--brand-50); color: var(--brand); }
.header-action small { display: block; color: var(--muted); font-size: .72rem; line-height: 1; }
.header-action .count { position: absolute; top: -6px; left: 28px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid #fff; }

/* Category nav */
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav .nav-link { color: var(--ink); font-weight: 500; padding: .8rem 1rem; font-size: .9rem; white-space: nowrap; }
.cat-nav .nav-link:hover, .cat-nav .nav-link.active { color: var(--brand); }
.cat-nav .dropdown-menu { border: 0; box-shadow: var(--shadow); border-radius: 12px; padding: .5rem; margin-top: 0; }
.cat-nav .dropdown-item { border-radius: 8px; padding: .5rem .8rem; font-size: .9rem; }
.cat-nav .dropdown-item:hover { background: var(--brand-50); color: var(--brand); }
@media (min-width: 992px) {
    /* overflow-x: auto would clip the hover dropdowns, so the desktop bar wraps instead of scrolling */
    .cat-nav .cat-scroll { overflow: visible; flex-wrap: wrap !important; }
    .cat-nav .dropdown:hover > .dropdown-menu { display: block; animation: menu-in .15s ease-out; }
    .cat-nav .dropdown-menu { top: 100%; min-width: 210px; z-index: 1035; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cat-scroll { overflow-x: auto; scrollbar-width: none; }
.cat-scroll::-webkit-scrollbar { display: none; }

/* Hero slider */
.hero .carousel-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 6; background: #ddd; }
.hero .carousel-item img { width: 100%; height: 100%; object-fit: cover; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 6%; }
.hero .carousel-caption { left: 8%; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); text-align: left; max-width: 55%; }
.hero .carousel-caption h2 { font-weight: 800; font-size: clamp(1.1rem, 3.6vw, 2.8rem); letter-spacing: -.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, .15); }
.hero .carousel-caption p { font-size: clamp(.8rem, 1.6vw, 1.15rem); opacity: .95; }
.hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; }
.hero .carousel-indicators .active { width: 26px; border-radius: 6px; }
@media (max-width: 575px) { .hero .carousel-item { aspect-ratio: 16 / 8; } .hero .carousel-caption .btn { padding: .3rem .7rem; font-size: .75rem; } .hero .carousel-caption p { display: none; } }

/* Feature strip */
.features .feature { background: #fff; border-radius: var(--radius); padding: 1rem; display: flex; gap: .85rem; align-items: center; box-shadow: var(--shadow-sm); height: 100%; }
.features .feature i { font-size: 1.4rem; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.features .feature h6 { margin: 0; font-weight: 700; font-size: .9rem; }
.features .feature p { margin: 0; color: var(--muted); font-size: .78rem; }

/* Category tiles */
.cat-tile { background: #fff; border-radius: var(--radius); padding: 1rem .75rem; text-align: center; display: block; color: var(--ink); box-shadow: var(--shadow-sm); transition: .2s; height: 100%; }
.cat-tile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: .6rem; }
.cat-tile h6 { font-size: .88rem; font-weight: 600; margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile small { color: var(--muted); font-size: .75rem; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--brand); }

/* Section heading */
.section { padding: 2.25rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.section-head h2 { font-size: 1.45rem; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.section-head p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.section-head .view-all { font-weight: 600; font-size: .88rem; white-space: nowrap; }

/* Product card */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; position: relative; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card .thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.product-card .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.badge-sale { background: var(--accent); color: #fff; font-weight: 700; font-size: .72rem; padding: .3em .6em; border-radius: 6px; }
.badge-hot { background: var(--brand); color: #fff; font-weight: 700; font-size: .72rem; padding: .3em .6em; border-radius: 6px; }
.badge-out { background: #475569; color: #fff; font-weight: 600; font-size: .72rem; padding: .3em .6em; border-radius: 6px; }
.product-card .actions { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; opacity: 0; transform: translateX(8px); transition: .25s; }
.product-card:hover .actions { opacity: 1; transform: none; }
@media (hover: none) { .product-card .actions { opacity: 1; transform: none; } }
.product-card .actions button { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 0; box-shadow: var(--shadow-sm); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; transition: .2s; }
.product-card .actions button:hover { background: var(--brand); color: #fff; }
.product-card .body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-card .cat { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .2rem; }
.product-card .title { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; margin-bottom: .45rem; }
.product-card .title:hover { color: var(--brand); }
.price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.price .now { font-weight: 800; color: var(--accent-600); font-size: 1.08rem; }
.price .old { color: #94a3b8; text-decoration: line-through; font-size: .85rem; }
.product-card .btn-order { margin-top: auto; width: 100%; padding: .5rem; font-size: .85rem; }
.product-card .price { margin-bottom: .7rem; }
@media (max-width: 575px) { .product-card .body { padding: .65rem; } .product-card .title { font-size: .82rem; } .price .now { font-size: .95rem; } }

/* Breadcrumb / page header */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.page-head h1 { font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -.01em; }
.breadcrumb { margin: 0; font-size: .82rem; }
.breadcrumb a { color: var(--muted); }

/* Filters sidebar */
.filter-card { background: #fff; border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); }
.filter-card h6 { font-weight: 700; font-size: .9rem; margin-bottom: .8rem; }
.filter-card .cat-list a { display: flex; justify-content: space-between; padding: .4rem .6rem; border-radius: 8px; color: var(--ink); font-size: .88rem; }
.filter-card .cat-list a:hover, .filter-card .cat-list a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.filter-card .cat-list .sub a { padding-left: 1.4rem; font-size: .84rem; }
.toolbar { background: #fff; border-radius: var(--radius); padding: .7rem 1rem; box-shadow: var(--shadow-sm); }
.form-control, .form-select { border-radius: 10px; border-color: var(--line); padding: .6rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12); }
.form-label { font-weight: 600; font-size: .85rem; }

/* Pagination */
.pagination { gap: 6px; flex-wrap: wrap; }
.page-link { border-radius: 10px !important; border: 0; color: var(--ink); min-width: 40px; text-align: center; box-shadow: var(--shadow-sm); }
.page-item.active .page-link { background: var(--brand); }

/* Product details */
.pd-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.gallery-main { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; background: #fff; }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.pd-price .now { font-size: 2rem; }
.pd-meta { font-size: .88rem; }
.pd-meta td { padding: .25rem 0; }
.pd-meta td:first-child { color: var(--muted); width: 110px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: transparent; width: 40px; height: 44px; font-size: 1.1rem; }
.qty button:hover { background: var(--surface); }
.qty input { width: 48px; text-align: center; border: 0; font-weight: 700; height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.qty-sm button { width: 30px; height: 32px; font-size: .9rem; }
.qty.qty-sm input { width: 34px; height: 32px; font-size: .85rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; font-size: .84rem; }
.trust-list li { display: flex; gap: .5rem; align-items: center; color: var(--muted); }
.trust-list i { color: var(--success); }
/* Product description (rich text from the editor). Nothing inside may be wider than the page:
   large editor images, fixed pixel widths from pasted content, long links and wide tables all shrink/wrap. */
.description { line-height: 1.75; overflow-wrap: anywhere; min-width: 0; }
.description::after { content: ""; display: table; clear: both; } /* floated images stay inside */
.description :where(p, div, section, article, figure, blockquote, ul, ol, li, h2, h3, h4, pre) { width: auto !important; max-width: 100% !important; } /* pasted fixed widths: fit the page instead */
.description img, .description video { max-width: 100% !important; height: auto !important; border-radius: 10px; }
.description iframe { max-width: 100% !important; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.description pre { white-space: pre-wrap; max-width: 100%; }
.description table { width: 100% !important; max-width: 100%; margin-bottom: 1rem; }
.description td, .description th { border: 1px solid var(--line); padding: .5rem .7rem; }
.description blockquote { border-left: 4px solid var(--brand); background: var(--brand-50); padding: .8rem 1.1rem; border-radius: 0 10px 10px 0; }
.description .note-float-left { float: left; margin: 0 1rem .5rem 0; max-width: 50% !important; }
.description .note-float-right { float: right; margin: 0 0 .5rem 1rem; max-width: 50% !important; }
@media (max-width: 575.98px) { .description .note-float-left, .description .note-float-right { float: none; margin: 0 0 .75rem; max-width: 100% !important; } }
.nav-pills-line .nav-link { border-radius: 0; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; padding: .8rem 1rem; }
.nav-pills-line .nav-link.active { background: none; color: var(--brand); border-color: var(--brand); }

/* Checkout */
.checkout-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.checkout-card h5 { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin-bottom: 1.1rem; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.cart-line { display: flex; gap: .85rem; align-items: center; padding: .85rem 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
/* Long product names: up to 2 lines, then "…" — never wider than the cart / summary box. */
.cart-line .name { font-weight: 600; font-size: .9rem; line-height: 1.3; color: var(--ink); white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cart-line > .btn, .cart-line strong { flex-shrink: 0; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .92rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; }
.cod-box { border: 2px solid var(--brand); background: var(--brand-50); border-radius: 12px; padding: .9rem 1rem; display: flex; gap: .8rem; align-items: center; }
.select2-container--bootstrap-5 .select2-selection { border-radius: 10px; border-color: var(--line); min-height: calc(1.5em + 1.2rem + 2px); padding: .55rem .9rem; }
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted { background-color: var(--brand-50); color: var(--brand); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected { background-color: var(--brand); color: #fff; }
.is-invalid + .select2-container .select2-selection { border-color: #dc3545; }

/* OTP */
.otp-inputs { display: flex; gap: .5rem; justify-content: center; }
.otp-inputs input { width: 50px; height: 58px; text-align: center; font-size: 1.5rem; font-weight: 800; border-radius: 12px; border: 2px solid var(--line); }
.otp-inputs input:focus { border-color: var(--brand); outline: 0; box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12); }
@media (max-width: 400px) { .otp-inputs input { width: 42px; height: 50px; font-size: 1.25rem; } }
.icon-circle { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; }

/* Tracking */
.track-steps { display: flex; justify-content: space-between; position: relative; margin: 2rem 0 1rem; }
.track-steps::before { content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 4px; background: var(--line); border-radius: 4px; }
.track-steps .progress-line { position: absolute; top: 24px; left: 12%; height: 4px; background: var(--success); border-radius: 4px; transition: width .6s; }
.track-steps .step { text-align: center; position: relative; z-index: 1; flex: 1; }
.track-steps .dot { width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 4px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; color: #94a3b8; }
.track-steps .step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.track-steps .step.current .dot { box-shadow: 0 0 0 6px rgba(22, 163, 74, .18); }
.track-steps .label { font-weight: 700; margin-top: .5rem; font-size: .9rem; }
.track-steps .text { font-size: .75rem; color: var(--muted); max-width: 160px; margin: 0 auto; }

/* Mini cart (offcanvas) */
.offcanvas-cart { width: 400px !important; max-width: 100%; }
.offcanvas-cart .cart-line .remove { color: #94a3b8; }
.offcanvas-cart .cart-line .remove:hover { color: #dc3545; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state i { font-size: 3rem; color: #cbd5e1; display: block; margin-bottom: .75rem; }

/* Quick view */
.qv-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; }
.qv-modal .btn-close { position: absolute; right: 1rem; top: 1rem; z-index: 5; background-color: #fff; border-radius: 50%; padding: .6rem; opacity: 1; box-shadow: var(--shadow-sm); }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; font-size: .88rem; margin-top: 3rem; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.site-footer .links li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.site-footer .social a:hover { background: var(--brand); }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.footer-logo img { max-height: 42px; }

/* Floating buttons */
.float-whatsapp { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: 0 10px 25px -5px rgba(37, 211, 102, .5); z-index: 1040; transition: .2s; }
.float-whatsapp:hover { color: #fff; transform: scale(1.07); }
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -4px 20px rgba(15, 23, 42, .08); z-index: 1035; display: flex; padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); }
.mobile-nav a, .mobile-nav button { flex: 1; text-align: center; color: var(--muted); font-size: .7rem; font-weight: 500; background: none; border: 0; position: relative; }
.mobile-nav i { font-size: 1.25rem; display: block; }
.mobile-nav .active { color: var(--brand); }
.mobile-nav .count { position: absolute; top: -2px; left: 52%; background: var(--accent); color: #fff; font-size: .62rem; border-radius: 999px; min-width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 991px) { body { padding-bottom: 64px; } .float-whatsapp { bottom: 80px; } }

/* Toasts */
.toast-stack { position: fixed; top: 90px; right: 16px; z-index: 1090; display: flex; flex-direction: column; gap: .5rem; pointer-events: none; } /* clicks pass through to the page */
.toast-item { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .8rem 1rem; display: flex; gap: .65rem; align-items: center; min-width: 260px; max-width: 360px; border-left: 4px solid var(--success); animation: toastIn .3s ease; font-size: .9rem; }
.toast-item.error { border-left-color: #dc3545; }
.toast-item i { font-size: 1.2rem; color: var(--success); }
.toast-item.error i { color: #dc3545; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Utility */
.skeleton { background: linear-gradient(90deg, #eef0f4 25%, #f6f7fb 50%, #eef0f4 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.rounded-xl { border-radius: var(--radius) !important; }
.card-plain { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Live search suggestions */
.search-form .ss-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: min(560px, calc(100vw - 32px)); background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 60px -16px rgba(15, 23, 42, .28); z-index: 1060; overflow: hidden; display: none; text-align: left; }
.search-form.ss-open .ss-panel { display: block; animation: ssIn .15s ease; }
@keyframes ssIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.search-form.ss-open .form-control { background: #fff; border-color: var(--brand); }
.ss-tabs { display: flex; gap: .25rem; padding: .35rem .6rem 0; border-bottom: 1px solid var(--line); }
.ss-tabs button { border: 0; background: none; padding: .7rem .8rem; font-weight: 600; font-size: .85rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: .4rem; }
.ss-tabs button:hover { color: var(--ink); }
.ss-tabs button.active { color: var(--brand); border-color: var(--brand); }
.ss-tabs .n { background: var(--surface); color: var(--muted); border-radius: 999px; font-size: .7rem; padding: .05rem .45rem; min-width: 22px; text-align: center; }
.ss-tabs button.active .n { background: var(--brand-50); color: var(--brand); }
.ss-list { max-height: min(420px, 60vh); overflow-y: auto; padding: .4rem; }
.ss-item { display: flex; align-items: center; gap: .8rem; padding: .55rem .6rem; border-radius: 12px; position: relative; transition: background .12s; }
.ss-item:hover, .ss-item.active { background: var(--surface); }
.ss-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; background: #fff; }
.ss-item.round img { border-radius: 50%; }
.ss-body { flex: 1; min-width: 0; }
.ss-title { font-weight: 600; color: var(--ink); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ss-title::after { content: ""; position: absolute; inset: 0; } /* whole row opens details */
.ss-title mark { background: #fef08a; color: inherit; padding: 0 1px; border-radius: 3px; }
.ss-meta { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.ss-price { font-weight: 800; color: var(--accent-600); font-size: .9rem; }
.ss-old { text-decoration: line-through; color: #94a3b8; font-size: .75rem; }
.ss-off { background: #fff7ed; color: var(--accent-600); font-weight: 700; font-size: .68rem; padding: .05rem .35rem; border-radius: 5px; }
.ss-actions { display: flex; gap: .35rem; position: relative; z-index: 2; }
.ss-act { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--brand-50); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: .15s; }
.ss-act:hover { background: var(--brand); color: #fff; }
.ss-act.ghost { background: transparent; color: #94a3b8; }
.ss-act.ghost:hover { background: var(--brand-50); color: var(--brand); }
.ss-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .9rem; }
.ss-empty i { font-size: 1.8rem; display: block; color: #cbd5e1; margin-bottom: .35rem; }
.ss-footer { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid var(--line); background: #fafbff; font-size: .85rem; }
.ss-footer a { font-weight: 600; color: var(--brand); }
.ss-footer kbd { background: #fff; color: var(--muted); border: 1px solid var(--line); box-shadow: none; font-size: .7rem; padding: .1rem .35rem; }
.ss-skel { display: flex; gap: .8rem; align-items: center; padding: .55rem .6rem; }
.ss-skel .skeleton:first-child { width: 52px; height: 52px; flex-shrink: 0; }
@media (max-width: 767px) { .search-form .ss-panel { min-width: 0; } .ss-footer kbd { display: none; } }

/* Inline validation */
.form-control.is-invalid, .form-select.is-invalid { background-image: none; padding-right: .9rem; }
.was-validated .form-control:valid, .form-control.is-valid { border-color: var(--line); background-image: none; }
.invalid-feedback { font-size: .8rem; font-weight: 500; }
.char-count { font-size: .72rem; color: var(--muted); float: right; }

/* Tooltips (Bootstrap, enabled for every [title] in shop.js) */
.tooltip { --bs-tooltip-bg: #111827; --bs-tooltip-color: #fff; --bs-tooltip-padding-x: .75rem; --bs-tooltip-padding-y: .45rem; --bs-tooltip-font-size: .78rem; --bs-tooltip-border-radius: 8px; --bs-tooltip-opacity: 1; --bs-tooltip-max-width: 240px; --bs-tooltip-arrow-width: .8rem; --bs-tooltip-arrow-height: .4rem; font-family: inherit; pointer-events: none; }
.tooltip-inner { font-weight: 600; letter-spacing: .01em; line-height: 1.35; box-shadow: 0 10px 24px -6px rgba(17, 24, 39, .45); }
.tooltip.show .tooltip-inner { animation: tip-in .16s ease-out; }
@keyframes tip-in { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

/* Page heading: title and a compact one-line breadcrumb on the same row */
.page-head .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-head .container > nav { order: 2; min-width: 0; flex-shrink: 1; }
.page-head .container > :not(nav) { min-width: 0; }
.page-head h1 { font-size: 1.25rem; }
.page-head .breadcrumb { flex-wrap: nowrap; white-space: nowrap; font-size: .75rem; font-weight: 500; margin: 0 !important; background: var(--surface); padding: .3rem .7rem; border-radius: 999px; }
.page-head .breadcrumb-item { --bs-breadcrumb-item-padding-x: .35rem; }
.page-head .breadcrumb-item + .breadcrumb-item::before { content: "\203A"; color: #cbd5e1; }
.page-head .breadcrumb-item.active { overflow: hidden; text-overflow: ellipsis; min-width: 0; color: #94a3b8; }
@media (max-width: 575px) { .page-head { padding: .8rem 0; } .page-head h1 { font-size: 1.1rem; } .page-head .breadcrumb { font-size: .7rem; padding: .25rem .6rem; } }

/* Home "Load more" */
.load-more-bar { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin-top: 2rem; }
.load-more-count { font-size: .85rem; color: var(--muted); }
.btn-load-more { min-width: 220px; padding: .7rem 1.5rem; border-radius: 999px; font-weight: 600; }
.card-in { animation: card-in .35s ease-out both; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===================== Blog ===================== */
.blog-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: .2s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.blog-card-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--surface); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.blog-date { font-size: .75rem; color: var(--muted); }
.blog-card-title { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin: .35rem 0 .45rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--brand); }
.blog-card-excerpt { font-size: .86rem; color: var(--muted); margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-read { margin-top: auto; font-size: .85rem; font-weight: 600; }
.blog-read i { transition: transform .2s; }
.blog-read:hover i { transform: translateX(3px); }

.blog-article { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; }
@media (min-width: 992px) { .blog-article { padding: 2rem 2.25rem; } }
.blog-title { font-size: clamp(1.45rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; overflow-wrap: anywhere; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--muted); }
.blog-cover { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; margin: .5rem 0 1.5rem; background: var(--surface); }
.blog-content { font-size: 1.02rem; line-height: 1.8; color: #1e293b; overflow-wrap: anywhere; }
.blog-content h2, .blog-content h3, .blog-content h4 { font-weight: 700; margin: 1.6em 0 .6em; line-height: 1.3; color: var(--ink); }
.blog-content h2 { font-size: 1.45rem; } .blog-content h3 { font-size: 1.2rem; } .blog-content h4 { font-size: 1.05rem; }
.blog-content p { margin-bottom: 1.1em; }
.blog-content :where(p, div, section, article, figure, blockquote, ul, ol, li, h2, h3, h4, pre) { width: auto !important; max-width: 100% !important; } /* pasted fixed widths: fit the page instead */
.blog-content img, .blog-content video { max-width: 100% !important; height: auto !important; border-radius: 10px; }
.blog-content pre { white-space: pre-wrap; }
.blog-content iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.blog-content blockquote { border-left: 4px solid var(--brand); background: var(--brand-50); padding: .8rem 1.1rem; border-radius: 0 10px 10px 0; color: #334155; }
.blog-content a:not(.blog-ref) { text-decoration: underline; text-underline-offset: 2px; }
.blog-content table { width: 100%; margin-bottom: 1rem; }
.blog-content td, .blog-content th { border: 1px solid var(--line); padding: .5rem .7rem; }
.blog-content .note-float-left { float: left; margin: 0 1rem .5rem 0; }
.blog-content .note-float-right { float: right; margin: 0 0 .5rem 1rem; }
/* "Related post" card inserted with the editor's Blog button */
.blog-content a.blog-ref { display: flex; align-items: center; gap: .9rem; margin: 1.5rem 0; padding: .9rem 1.1rem; background: var(--brand-50); border: 1px solid #c7d2fe; border-left: 4px solid var(--brand); border-radius: 12px; color: var(--ink); font-weight: 700; line-height: 1.4; text-decoration: none; transition: .15s; }
.blog-content a.blog-ref::before { content: "\F4CA"; font-family: "bootstrap-icons"; font-weight: 400; font-size: 1.3rem; color: var(--brand); flex-shrink: 0; }
.blog-content a.blog-ref::after { content: "\F138"; font-family: "bootstrap-icons"; font-weight: 400; margin-left: auto; color: var(--brand); transition: transform .2s; }
.blog-content a.blog-ref:hover { background: #e0e7ff; border-color: var(--brand); }
.blog-content a.blog-ref:hover::after { transform: translateX(3px); }
.blog-share { display: flex; align-items: center; gap: .5rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.share-btn.fb { background: #1877f2; } .share-btn.wa { background: #25d366; } .share-btn.in { background: #0a66c2; }
.share-btn:hover { color: #fff; opacity: .9; }
.blog-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.25rem; position: sticky; top: 90px; }
.blog-side-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.blog-side-item { display: flex; gap: .8rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.blog-side-item:last-of-type { border-bottom: 0; }
.blog-side-item img { width: 96px; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--surface); }
.blog-side-item .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .88rem; line-height: 1.35; }
.blog-side-item time { display: block; font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.blog-side-item:hover .t { color: var(--brand); }

/* ui.js tooltip: one element, positioned by script */
.ui-tip { position: absolute; z-index: 1090; display: none; }

/* Checkout: district gate + coupon */
.district-notice { margin-top: 1rem; padding: .6rem .8rem; border-radius: 10px; background: #fff7ed; color: #c2410c; font-size: .86rem; font-weight: 600; border: 1px solid #fed7aa; }
#placeOrderBtn:disabled { opacity: .55; cursor: not-allowed; }
.coupon-box .form-control[readonly] { background: #f0fdf4; border-color: #86efac; font-weight: 700; letter-spacing: .04em; }
.coupon-msg:empty { display: none; }
.coupon-row .btn-link { font-size: .78rem; }
