/* ============================================================================
 * AVORNNO Storefront v2 — স্টোরফ্রন্টের নতুন ডিজাইন
 *
 * লোড অর্ডার: bootstrap → storefront.css → storefront-v2.css (এটা, সবার শেষে)
 * master.blade.php এর ইনলাইন <style> ব্লকটা পুরোপুরি সরিয়ে এই ফাইলে আনা হয়েছে।
 *
 * লেআউট: notice ticker → header → category bar → hero (slider + side banners)
 * → top categories → promo grid → flash sale → promo → hot deals
 * → category-wise products → brands → features bar → footer → mobile bottom nav
 *
 * রঙ: --primary / --secondary অ্যাডমিন থিম সেটিংস (general_settings.primary_color,
 * secodery_color) থেকে master.blade.php এর ছোট ইনলাইন <style> দিয়ে ওভাররাইড হয়।
 *
 * নোট: `.container` আর `.logo` ইচ্ছে করে ব্যবহার করা হয়নি — ওগুলো bootstrap ও
 * storefront.css এর সাথে কনফ্লিক্ট করে। বদলে `.sfx-container` / `.sfx-logo`.
 * ==========================================================================*/

/* ---------------------------------------------------------------- tokens */
:root {
    --primary: #1d1b1b;
    --primary-dark: #000000;
    --primary-light: #3c3a3a;
    --primary-soft: #f1f1f1;
    --primary-softer: #e8e8e8;
    --secondary: #ff0000;
    --secondary-dark: #d10000;

    --footer-bg: #2c2b2b;
    --feature-bg: #242323;
    --copyright-bg: #000000;

    --ink: #111311;
    --muted: #666666;
    --line: #e4e4e4;
    --line-soft: #f0f0f0;
    --white: #ffffff;
    --page: #f5f5f5;

    --container: 1240px;
    --notice-height: 30px;
    --radius: 8px;
    --radius-sm: 5px;

    /* ---- পুরোনো টোকেনগুলো নতুন প্যালেটে ম্যাপ করা ----
       cart / checkout / account / details ইত্যাদি ভেতরের পেজ এগুলো ব্যবহার করে,
       তাই আগের master ইনলাইন স্টাইল সরানোর পরেও এগুলো বেঁচে থাকতে হবে। */
    --paper: var(--white);
    --soft: var(--primary-soft);
    --accent: var(--primary);
    --danger: var(--secondary);
    --success: #059669;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
    --transition: .25s cubic-bezier(.4, 0, .2, 1);
    --header-h: 64px;
    --announce-h: var(--notice-height);
    --nav-h: 42px;

    /* storefront.css (sf-*) টোকেন — একই কালো/লাল প্যালেটে টানা */
    --c-primary: var(--primary);
    --c-primary-600: var(--primary-dark);
    --c-primary-50: var(--primary-soft);
    --c-accent: var(--secondary);
    --c-accent-600: var(--secondary-dark);
    --c-accent-50: #fff0f0;
    --c-text: var(--ink);
    --c-muted: var(--muted);
    --c-faint: #9a9a9a;
    --c-line: var(--line);
    --r-sm: var(--radius-sm);
    --r: var(--radius);
    --r-lg: var(--radius-lg);
    --sh-sm: var(--shadow-sm);
    --sh-md: var(--shadow-md);
    --sh-lg: var(--shadow-lg);
    --r-md: 10px;
    --c-bg: var(--page);
    --c-surface: var(--white);
    --c-green: #0f9d58;
    --c-green-50: #e6f6ee;
    --c-amber: #f5a623;
    --c-amber-50: #fef5e3;
    --f-sans: 'Hind Siliguri', 'Roboto', system-ui, sans-serif;
    --hd-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: 'Hind Siliguri', 'Roboto', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.5;
    overflow-x: hidden;
}

/* সাদা ব্যাকগ্রাউন্ড শুধু হোম পেজে — ভেতরের পেজগুলো storefront.css এর
   হালকা ধূসর ব্যাকগ্রাউন্ডেই থাকে, ওদের কার্ড লেআউট ওটার উপর নির্ভরশীল। */
body.app-home { background: var(--white); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.sfx-container { width: min(var(--container), 94%); margin: 0 auto; }

/* ================================================= 1. notice ticker ===== */
.notice-ticker {
    display: flex;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    height: var(--notice-height);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 260;
}
body.notice-closed { --notice-height: 0px; }
.notice-ticker.is-hidden { display: none; }

.notice-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    height: 100%;
    padding: 0 18px 0 12px;
    background: var(--secondary);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
    /* ডান পাশে তীরের মতো কাটা — ব্যাজটা স্ক্রলিং টেক্সটের দিকে "পয়েন্ট" করে */
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
}
.notice-badge i { font-size: 11px; }

.notice-track-wrap {
    flex: 1;
    overflow: hidden;
    min-width: 0;
    /* দুই প্রান্তে নরম fade — টেক্সট হঠাৎ কেটে যায় না */
    mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 8px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 8px), transparent 100%);
}
.notice-track { display: flex; width: max-content; animation: notice-scroll 38s linear infinite; }
.notice-track:hover { animation-play-state: paused; }
.notice-text { flex-shrink: 0; padding-right: 60px; font-size: 12px; font-weight: 500; white-space: nowrap; }

.notice-close {
    flex-shrink: 0; width: 34px; height: 100%;
    border: 0; background: transparent; color: var(--white);
    font-size: 13px; display: grid; place-items: center; opacity: .85;
    transition: background .2s, opacity .2s;
}
.notice-close:hover { opacity: 1; background: rgba(255,255,255,.15); }

@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .notice-track { animation: none; } }

/* ======================================================= 2. header ===== */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line-soft);
    position: sticky;
    top: var(--notice-height);
    z-index: 200;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 11px 0;
}

.menu-toggle {
    display: none;
    width: 38px; height: 38px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); font-size: 16px; color: var(--ink);
}

.sfx-logo img { height: 44px; width: auto; }

/* ---- search ---- */
.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}
.header-search input {
    width: 100%;
    height: 42px;
    padding: 0 54px 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.header-search input::placeholder { color: #9a9a9a; }
.header-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,27,27,.08);
}
.header-search .search-submit {
    position: absolute;
    right: 4px;
    width: 40px; height: 34px;
    border: 0; border-radius: 6px;
    background: var(--primary); color: var(--white);
    font-size: 14px;
    display: grid; place-items: center;
    transition: background .18s;
}
.header-search .search-submit:hover { background: var(--primary-dark); }

/* ---- actions ---- */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.cart-btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 7px;
    height: 38px; padding: 0 14px;
    background: var(--primary); color: var(--white);
    border: 0; border-radius: var(--radius);
    font-size: 13.5px; font-weight: 600;
}
.cart-btn .cart-count {
    position: absolute; top: -6px; right: -6px;
    min-width: 18px; height: 18px; padding: 0 5px;
    display: grid; place-items: center;
    background: var(--secondary); color: var(--white);
    border: 2px solid var(--white); border-radius: 999px;
    font-size: 10px; font-weight: 700; line-height: 1;
}

.icon-btn {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--white); color: var(--ink); font-size: 15px;
    transition: border-color .18s, color .18s;
}
.icon-btn:hover { border-color: var(--primary); }

.btn-track {
    display: inline-flex; align-items: center;
    height: 38px; padding: 0 18px;
    background: var(--primary); color: var(--white);
    border-radius: var(--radius);
    font-size: 13.5px; font-weight: 600;
    transition: background .18s;
}
.btn-track:hover { background: var(--primary-dark); }

/* ============================================ 3. category nav bar ====== */
.header-category-bar { background: var(--primary); }
.header-category-inner {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; flex-wrap: wrap;
}
.header-cat-item { position: relative; }
.header-cat-link {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 11px 14px;
    color: #f2f2f2; font-size: 13.5px; font-weight: 600;
    transition: color .18s, background .18s;
}
.header-cat-link:hover,
.header-cat-item:hover > .header-cat-link { color: var(--white); background: rgba(255,255,255,.08); }
.header-cat-chevron { font-size: 11px; opacity: .85; }

.header-cat-dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: 210px;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 14px 34px rgba(0,0,0,.16);
    padding: 6px 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 240;
}
.header-cat-item:hover .header-cat-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header-sub-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 16px; font-size: 13.5px; color: #333;
    transition: background .15s, color .15s;
}
.header-sub-link:hover { background: var(--primary-soft); color: var(--primary); }

/* ========================================================= 4. hero ===== */
.hero-banner { padding: 16px 0 0; }
.hero-layout { display: grid; gap: 12px; }
.hero-layout.has-side-banners { grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr); }

.hero-slider {
    position: relative;
    height: var(--hero-row-h, 380px);
    border-radius: 10px;
    overflow: hidden;
    background: var(--primary-soft);
}
.hero-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.hero-slide { flex: 0 0 100%; height: 100%; }
.hero-slide a, .hero-img { display: block; width: 100%; height: 100%; }
.hero-img { object-fit: cover; }

.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border: 0; border-radius: 999px;
    background: rgba(255,255,255,.88); color: var(--ink);
    font-size: 14px; opacity: 0;
    transition: opacity .2s, background .2s;
}
.hero-slider:hover .hero-nav { opacity: 1; }
.hero-nav:hover { background: var(--white); }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

.hero-dots {
    position: absolute; left: 0; right: 0; bottom: 12px;
    display: flex; justify-content: center; gap: 7px;
}
.hero-dot {
    width: 8px; height: 8px; padding: 0;
    border: 0; border-radius: 999px;
    background: rgba(255,255,255,.55);
    transition: width .22s, background .22s;
}
.hero-dot.active { width: 22px; background: var(--white); }

.hero-layout-side { display: grid; gap: 12px; }
.hero-layout-side--2 { grid-template-rows: 1fr 1fr; }
.hero-side-banner { display: block; border-radius: 10px; overflow: hidden; min-height: 0; }
.hero-side-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hero-side-banner:hover img { transform: scale(1.04); }

/* ====================================== 5. centered section heading ==== */
.sec-heading {
    display: flex; align-items: center; gap: 16px;
    margin: 30px 0 16px;
}
.sec-heading-line { flex: 1; height: 1px; background: var(--line); }
.sec-heading--dashed .sec-heading-line {
    height: 0; border-top: 2px dashed #d6d6d6; background: none;
}
.sec-heading-title {
    font-size: 17px; font-weight: 800; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--ink); white-space: nowrap;
}

/* ============================================== 6. top categories ====== */
.top-categories-panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    padding: 16px 10px;
}
.category-menu-viewport { overflow-x: auto; scrollbar-width: none; }
.category-menu-viewport::-webkit-scrollbar { display: none; }
.category-menu-track { display: flex; gap: 6px; }

.top-cat-item {
    flex: 0 0 auto;
    width: 104px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    text-align: center;
}
.top-cat-circle {
    width: 74px; height: 74px;
    border-radius: 999px; overflow: hidden;
    border: 1px solid var(--line);
    background: var(--primary-soft);
    transition: border-color .2s, transform .2s;
}
.top-cat-item:hover .top-cat-circle { border-color: var(--primary); transform: translateY(-3px); }
.top-cat-circle img { width: 100%; height: 100%; object-fit: cover; }
.top-cat-name {
    font-size: 12.5px; font-weight: 600; color: #333;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================== 7. promo banner grids ===== */
.category-promo-section { padding: 22px 0 0; }
.category-promo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.category-promo-card { border-radius: 10px; overflow: hidden; }
.category-promo-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .4s; }
.category-promo-card:hover img { transform: scale(1.05); }

.promo-section { padding: 26px 0 0; }
.promo-banner { border-radius: 10px; overflow: hidden; }
.promo-banner-img { width: 100%; height: auto; }

/* ======================================== 8. deal offer (flash/hot) ==== */
.deal-offer-section { padding: 4px 0 0; }
.deal-offer-panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    padding: 12px;
}
.deal-promo-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    background: var(--primary);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 14px;
}
.deal-promo-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.deal-promo-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--primary-light); color: var(--white);
    border-radius: 8px; font-size: 17px;
}
.deal-offer-section--hot .deal-promo-icon { background: var(--secondary); }
.deal-promo-title { color: var(--white); font-size: 18px; font-weight: 800; letter-spacing: .4px; line-height: 1.2; }
.deal-promo-desc { color: rgba(255,255,255,.7); font-size: 12px; margin-top: 1px; }

.deal-promo-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.deal-timer-wrap { display: flex; align-items: center; gap: 10px; }
.deal-timer-heading { color: rgba(255,255,255,.7); font-size: 11.5px; font-weight: 600; }
.deal-countdown { display: flex; align-items: center; gap: 4px; }
.timer-box {
    min-width: 44px; padding: 5px 6px;
    background: var(--primary-light); border-radius: 6px;
    text-align: center; line-height: 1.1;
}
.timer-box b { display: block; color: var(--white); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer-box small { display: block; color: rgba(255,255,255,.6); font-size: 9.5px; }
.timer-colon { color: rgba(255,255,255,.5); font-weight: 700; }

.deal-promo-viewall,
.deal-offer-viewall {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--white); color: var(--primary);
    border-radius: 6px; font-size: 12.5px; font-weight: 700;
    transition: opacity .18s;
}
.deal-promo-viewall:hover { opacity: .85; }

.deal-offer-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.deal-offer-subtitle {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 700; color: var(--ink);
}

/* ================================================= 9. product grid ===== */
.product-section { padding: 26px 0 0; }

.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.section-head h2 {
    display: flex; align-items: center; gap: 9px;
    font-size: 18px; font-weight: 800; color: var(--ink);
}
/* বাঁ পাশে ছোট বার — রেফারেন্স ডিজাইনের সেকশন টাইটেল মার্কার */
.section-head h2::before {
    content: ""; width: 4px; height: 19px;
    background: var(--primary); border-radius: 2px;
}
.btn-view-all {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 15px;
    background: var(--primary); color: var(--white);
    border-radius: 6px; font-size: 12.5px; font-weight: 700;
    transition: background .18s;
}
.btn-view-all:hover { background: var(--primary-dark); }

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.product-card {
    display: flex; flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,.09);
    border-color: #d8d8d8;
    transform: translateY(-3px);
}

.product-thumb { position: relative; display: block; background: var(--primary-soft); }
.product-thumb img { width: 100%; aspect-ratio: 1/1.07; object-fit: cover; }
.deal-badge {
    position: absolute; top: 8px; left: 8px; z-index: 2;
    padding: 4px 9px;
    background: var(--primary); color: var(--white);
    border-radius: 4px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
}

.product-body {
    display: flex; flex-direction: column; gap: 7px;
    padding: 10px 10px 11px;
    flex: 1;
}
.product-title {
    font-size: 13px; font-weight: 500; line-height: 1.38; color: #333;
    text-align: center;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 36px;
}
.product-title a:hover { color: var(--primary); }
.product-price {
    display: flex; align-items: baseline; justify-content: center; gap: 7px;
    font-size: 15px; font-weight: 700; color: var(--ink);
}
.product-price del { font-size: 12px; font-weight: 500; color: #a0a0a0; }

.flash-progress {
    height: 5px; border-radius: 999px;
    background: var(--primary-softer); overflow: hidden;
}
.flash-progress-bar { height: 100%; background: var(--primary); border-radius: 999px; }
.flash-sold-text {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--muted);
}
.flash-sold-text i { color: var(--secondary); }

.product-actions {
    display: grid; grid-template-columns: 1fr 38px; gap: 6px;
    margin-top: auto; padding-top: 3px;
}
.btn-order {
    height: 34px; border: 0; border-radius: 5px;
    background: var(--primary); color: var(--white);
    font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    transition: background .18s;
}
.btn-order:hover { background: var(--primary-dark); }
.btn-cart {
    height: 34px;
    border: 1px solid var(--line); border-radius: 5px;
    background: var(--white); color: var(--ink);
    font-size: 13px;
    display: grid; place-items: center;
    transition: background .18s, border-color .18s, color .18s;
}
.btn-cart:hover { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ====================================================== 10. brands ===== */
.home-brands-panel {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    padding: 16px 0;
    overflow: hidden;
}
.brand-slider-viewport { overflow: hidden; }
.brand-slider-track { display: flex; gap: 10px; width: max-content; }
.brand-slider-track.is-marquee { animation: brand-marquee var(--brand-marquee-duration, 28s) linear infinite; }
.brand-slider-track.is-marquee:hover { animation-play-state: paused; }
@keyframes brand-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.home-brand-item {
    flex: 0 0 auto; width: 132px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.home-brand-logo {
    width: 100%; height: 66px;
    display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--white); padding: 8px;
    transition: border-color .2s;
}
.home-brand-item:hover .home-brand-logo { border-color: var(--primary); }
.home-brand-logo img { max-height: 100%; width: auto; object-fit: contain; }
.home-brand-name { font-size: 12px; font-weight: 600; color: #444; }

/* ==================================================== 11. merchant ===== */
.vendor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vendor-card {
    border: 1px solid var(--line); border-radius: 10px;
    overflow: hidden; background: var(--white);
    transition: box-shadow .2s, transform .2s;
}
.vendor-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.09); transform: translateY(-3px); }
.vendor-banner {
    height: 78px;
    background: var(--primary) center/cover no-repeat;
}
.vendor-banner--no-img { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.vendor-body {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 0 14px 14px;
    text-align: center;
}
.vendor-avatar {
    width: 58px; height: 58px; margin-top: -29px;
    border-radius: 999px; overflow: hidden;
    border: 3px solid var(--white);
    background: var(--primary-soft);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.vendor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vendor-avatar-initial {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: var(--primary); color: var(--white);
    font-size: 22px; font-weight: 700;
}
.vendor-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.vendor-stars { display: flex; align-items: center; gap: 2px; font-size: 11px; color: #f5a623; }
.vendor-review-count { margin-left: 4px; color: var(--muted); }
.vendor-visit-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 3px; padding: 7px 15px;
    background: var(--primary); color: var(--white);
    border-radius: 6px; font-size: 12px; font-weight: 700;
}

/* ================================================ 12. features bar ===== */
.features-bar { margin-top: 36px; background: var(--feature-bg); padding: 22px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 13px; }
.feature-item > i { font-size: 22px; color: var(--white); flex-shrink: 0; }
.feature-item h4 { color: var(--white); font-size: 14px; font-weight: 700; }
.feature-item p { color: rgba(255,255,255,.62); font-size: 12px; }

/* ====================================================== 13. footer ===== */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.78); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 30px;
    padding: 34px 0 30px;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 13px; }
.footer-about p { font-size: 13px; line-height: 1.75; }
.social-links { display: flex; gap: 9px; margin-top: 15px; }
.social-links a {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
    color: var(--white); font-size: 13px;
    transition: background .18s, border-color .18s;
}
.social-links a:hover { background: var(--secondary); border-color: var(--secondary); }

.site-footer h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer ul a { font-size: 13.5px; transition: color .18s, padding-left .18s; }
.site-footer ul a:hover { color: var(--white); padding-left: 3px; }

.footer-newsletter p { font-size: 13px; margin-bottom: 12px; }
.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
    flex: 1; min-width: 0; height: 38px; padding: 0 13px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
    background: rgba(255,255,255,.07); color: var(--white);
    font-family: inherit; font-size: 13px; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.4); }
.newsletter-form button {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 15px;
    border: 0; border-radius: 6px;
    background: var(--primary); color: var(--white);
    font-size: 13px; font-weight: 600;
}
.newsletter-form button:hover { background: var(--primary-dark); }

.app-download-links { margin-top: 24px; }
.app-download-links .app-badges { display: flex; gap: 11px; flex-wrap: wrap; }
.app-download-links img { height: 40px; width: auto; border-radius: 4px; }

.footer-bottom {
    background: var(--copyright-bg);
    padding: 13px 0;
    text-align: center;
    font-size: 12.5px;
    color: rgba(255,255,255,.72);
}
.footer-bottom-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.footer-bottom a { display: inline-flex; align-items: center; gap: 5px; color: var(--white); }

/* ========================================== 14. mobile bottom nav ====== */
.mobile-bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 220;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 10.5px; font-weight: 600; color: #8a8a8a;
}
.mobile-bottom-nav a i { font-size: 17px; }
.mobile-bottom-nav a.active { color: var(--primary); }

/* ================================================== 15. responsive ===== */
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .vendor-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 900px) {
    .hero-layout.has-side-banners { grid-template-columns: 1fr; }
    .hero-slider { height: 300px; }
    .hero-layout-side--2 { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .hero-side-banner { aspect-ratio: 16/7; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    body { padding-bottom: 60px; }

    .menu-toggle { display: grid; place-items: center; }
    .sfx-logo img { height: 36px; }
    .header-inner { flex-wrap: wrap; gap: 10px; padding: 9px 0; }
    .header-search { order: 3; flex: 1 1 100%; max-width: none; }
    .header-search input { height: 38px; }
    .header-actions { margin-left: auto; gap: 7px; }
    .btn-track { display: none; }

    /* ক্যাটাগরি বার মোবাইলে অনুভূমিক স্ক্রল — লাইনগুলো ভেঙে যায় না */
    .header-category-inner {
        justify-content: flex-start; flex-wrap: nowrap;
        overflow-x: auto; scrollbar-width: none;
    }
    .header-category-inner::-webkit-scrollbar { display: none; }
    .header-cat-link { white-space: nowrap; padding: 10px 11px; font-size: 13px; }
    .header-cat-dropdown { display: none; }

    .hero-slider { height: 200px; }
    .sec-heading { margin: 24px 0 13px; }
    .sec-heading-title { font-size: 14.5px; letter-spacing: .8px; }

    .top-cat-item { width: 84px; }
    .top-cat-circle { width: 62px; height: 62px; }
    .top-cat-name { font-size: 11.5px; }

    .category-promo-grid { grid-template-columns: 1fr 1fr; }

    .deal-promo-bar { padding: 11px 12px; gap: 10px; }
    .deal-promo-title { font-size: 15px; }
    .deal-promo-controls { width: 100%; justify-content: space-between; }
    .timer-box { min-width: 38px; }
    .timer-box b { font-size: 13px; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-title { font-size: 12.5px; min-height: 34px; }
    .product-price { font-size: 14px; }
    .section-head h2 { font-size: 15.5px; }

    .vendor-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 26px 0 24px; }

    .mobile-bottom-nav { display: flex; }
}

@media (max-width: 420px) {
    .product-actions { grid-template-columns: 1fr 34px; }
    .btn-order { font-size: 10.5px; letter-spacing: .3px; }
}

/* ============================================================================
 * 16. শেয়ার্ড ক্রোম — আগে master.blade.php এর ইনলাইন <style> এ ছিল।
 * এগুলো শুধু হোম নয়, সব স্টোরফ্রন্ট পেজে দরকার হয়।
 * ==========================================================================*/

/* ------------------------------------------- মোবাইল ড্রয়ার (সাইড মেনু) --- */
.mobile-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0, 0, 0, .45);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 310;
    width: 300px; max-width: 86vw;
    background: var(--white);
    display: flex; flex-direction: column;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}
.mobile-drawer.active { transform: translateX(0); }

.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: var(--primary); color: var(--white);
    font-size: 15px; font-weight: 700;
    flex-shrink: 0;
}
.drawer-close {
    width: 30px; height: 30px;
    border: 0; border-radius: 6px;
    background: rgba(255, 255, 255, .14); color: var(--white);
    font-size: 20px; line-height: 1;
}

.drawer-user {
    display: flex; align-items: center; gap: 11px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--primary-soft);
    flex-shrink: 0;
}
.drawer-user-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 999px;
    background: var(--primary); color: var(--white);
}
.drawer-user a { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.drawer-user small { font-size: 11.5px; color: var(--muted); }

.drawer-body { flex: 1; overflow-y: auto; padding: 6px 0; }
.drawer-item { border-bottom: 1px solid var(--line-soft); }
.drawer-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    font-size: 14px; font-weight: 600; color: #333;
}
.drawer-link i { font-size: 11px; transition: transform .2s; }
.drawer-link.expanded i { transform: rotate(180deg); }
.drawer-sub { display: none; padding: 2px 0 8px; background: #fafafa; }
.drawer-sub.open { display: block; }
.drawer-sub a { display: block; padding: 7px 16px 7px 28px; font-size: 13px; color: #555; }
.drawer-sub a:hover { color: var(--primary); }

.drawer-links { border-top: 1px solid var(--line); padding: 8px 0 14px; flex-shrink: 0; }
.drawer-links a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    font-size: 13.5px; font-weight: 600; color: #444;
}
.drawer-links a i { width: 16px; text-align: center; color: var(--primary); }
.drawer-links a:hover { background: var(--primary-soft); }

/* --------------------------------------------------------- ব্রেডক্রাম্ব --- */
.sfx-breadcrumb {
    background: var(--primary-soft);
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
    font-size: 13px;
}
.sfx-breadcrumb ol, .sfx-breadcrumb ul {
    display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
    margin: 0; padding: 0; list-style: none;
}
.sfx-breadcrumb li + li::before { content: "/"; margin-right: 7px; color: #b5b5b5; }
.sfx-breadcrumb a { color: var(--muted); }
.sfx-breadcrumb a:hover { color: var(--primary); }
.sfx-breadcrumb .active { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------- ব্যাক টু টপ --- */
.back-to-top {
    position: fixed; right: 18px; bottom: 86px; z-index: 210;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 0; border-radius: 999px;
    background: var(--primary); color: var(--white);
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .22s, transform .22s, visibility .22s, background .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* ------------------------------------------- লাইভ সার্চ ড্রপডাউন --- */
.search-result {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 250;
    max-height: 62vh; overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .14);
    display: none;
}
.search-result.has-results { display: block; }
.search-result ul { margin: 0; padding: 0; list-style: none; }
.search-result li { border-bottom: 1px solid var(--line-soft); }
.search-result li:last-child { border-bottom: 0; }
.search-result a {
    display: flex; align-items: center; gap: 11px;
    padding: 9px 12px;
    font-size: 13.5px; color: #333;
}
.search-result a:hover { background: var(--primary-soft); }
.search-result img {
    width: 42px; height: 42px; flex-shrink: 0;
    object-fit: cover; border-radius: 6px; border: 1px solid var(--line-soft);
}

/* ----------------------------------- লোডার / মডাল ওভারলে (অপরিবর্তিত আচরণ) */
#loading {
    position: fixed; inset: 0; z-index: 9998;
    display: none; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .72);
}
.custom-loader {
    width: 42px; height: 42px;
    border: 3px solid var(--primary-softer);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: sfx-spin .8s linear infinite;
}
@keyframes sfx-spin { to { transform: rotate(360deg); } }

#custom-modal {
    position: fixed; inset: 0; z-index: 9990;
    display: none; align-items: center; justify-content: center;
    padding: 16px;
}
#page-overlay {
    position: fixed; inset: 0; z-index: 9985;
    display: none; background: rgba(0, 0, 0, .5);
}
#page-overlay.show { display: block; }

/* মোবাইলে ভাসমান চ্যাট/ব্যাক-টু-টপ যেন বটম নেভের নিচে চাপা না পড়ে */
@media (max-width: 767px) {
    .sf-chat { bottom: 74px; }
    .back-to-top { bottom: 128px; }
}

/* ============================================================================
 * 17. ইন্টিগ্রেশন অ্যাডিশন — ব্লেডে যেসব এলিমেন্ট যোগ হয়েছে
 * ==========================================================================*/

/* হেডার স্ক্রল শ্যাডো */
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .07); }

/* কার্ট বাটনের টাকার অঙ্ক */
.cart-btn .js-cart-total { font-variant-numeric: tabular-nums; }

/* প্রোডাক্ট কার্ড: quick view + sold out */
.product-thumb > a { display: block; }
.pc-quick-view {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .94); color: var(--ink);
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
    opacity: 0; transform: translateY(-4px);
    transition: opacity .2s, transform .2s, background .2s, color .2s;
}
.product-card:hover .pc-quick-view { opacity: 1; transform: translateY(0); }
.pc-quick-view:hover { background: var(--primary); color: var(--white); }
@media (hover: none) { .pc-quick-view { opacity: 1; transform: none; } }

.pc-stockout {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    padding: 4px 9px;
    background: rgba(0, 0, 0, .72); color: var(--white);
    border-radius: 4px;
    font-size: 10.5px; font-weight: 700;
}

.btn-order--disabled {
    display: grid; place-items: center;
    grid-column: 1 / -1;
    background: #bdbdbd; cursor: not-allowed;
}
.btn-order--disabled:hover { background: #bdbdbd; }

/* ফুটার: কন্টাক্ট লাইন */
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.footer-contact a:hover { color: var(--white); }
.footer-contact i { width: 14px; text-align: center; opacity: .8; }

/* ফুটার: অ্যাপ ব্যাজ (ছবি নয়, CSS দিয়েই বানানো) */
.app-badge {
    display: inline-flex; align-items: center; gap: 9px;
    height: 42px; padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .25); border-radius: 6px;
    background: rgba(0, 0, 0, .35);
    transition: border-color .18s, background .18s;
}
.app-badge:hover { border-color: rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .5); }
.app-badge i { font-size: 20px; color: var(--white); }
.app-badge span {
    display: flex; flex-direction: column; line-height: 1.15;
    color: var(--white); font-size: 13.5px; font-weight: 700;
}
.app-badge small { font-size: 8.5px; font-weight: 500; opacity: .75; text-transform: uppercase; }

/* ফুটার বটম: কপিরাইট + পেমেন্ট আইকন */
.footer-bottom-inner { justify-content: space-between; gap: 10px; }
.footer-payments { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; opacity: .85; }
@media (max-width: 575px) { .footer-bottom-inner { justify-content: center; } }

/* হিরো: ছবি না থাকলে প্লেসহোল্ডার */
.hero-slide--empty {
    display: grid; place-items: center;
    background: var(--primary-soft); color: #bdbdbd; font-size: 40px;
}
/* ওয়াইড প্রোমো ব্যানার <a> হিসেবে রেন্ডার হয় */
a.promo-banner { display: block; }
a.promo-banner .promo-banner-img { transition: transform .4s; }
a.promo-banner:hover .promo-banner-img { transform: scale(1.015); }
