
/* css/frontend.css */
/* =========================================================
   YourStore Frontend Design System — কাস্টম CSS, কোনো ফ্রেমওয়ার্ক ছাড়া
   রেসপন্সিভ + স্মুথ অ্যানিমেশন সহ
   ========================================================= */
:root {
    --brand-primary: #111827;
    --brand-secondary: #6574cd;
    --brand-hover: #2779bd;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f9fafb;
    --border: #e5e7eb;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    /* ✅ ভাষা রোলআউট Part ৪ বাগফিক্স: আগে এখানে সরাসরি 'Noto Sans Bengali'/
       'Noto Sans Arabic' ফন্ট-নাম হার্ডকোড ছিল, যেন এগুলো সিস্টেমে
       প্রি-ইনস্টল করা আছে ধরে নেওয়া হয়েছিল — কিন্তু কোথাও কোনো
       Google Fonts <link> দিয়ে এগুলো আসলে লোড করা হতো না। বেশিরভাগ
       Windows/Mac মেশিনে এই ফন্ট নেই, তাই ব্রাউজার নীরবে জেনেরিক
       sans-serif এ ফলব্যাক করত। এখন --site-font-family ভ্যারিয়েবল
       ব্যবহার হচ্ছে, যেটা frontend layout-এ বর্তমান ভাষার
       Language::fontFamilyStack() থেকে সেট হয় (আসল <link> লোড সহ)। */
    font-family: var(--site-font-family, 'Segoe UI', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif);
    color: var(--text);
    background: var(--bg-soft);
    font-size: 15px;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---- Flash Messages ---- */
.flash {
    padding: 14px 20px;
    text-align: center;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}
.flash--success { background: #dcfce7; color: #166534; }
.flash--error { background: #fee2e2; color: #991b1b; }
@keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---- Announcement Bar ---- */
.announcement-bar { text-align: center; padding: 8px; font-size: 13px; }

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--border); z-index: 50; }
.site-header.is-sticky { position: sticky; top: 0; box-shadow: var(--shadow); }
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    flex-wrap: wrap;
}
.site-logo { font-size: 22px; font-weight: 800; color: var(--brand-primary); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }
.site-search { flex: 1; display: flex; min-width: 200px; max-width: 480px; }
.site-search input {
    flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    outline: none; transition: border-color var(--transition);
}
.site-search input:focus { border-color: var(--brand-primary); }
.site-search button {
    padding: 0 18px; border: none; background: var(--brand-primary); color: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    cursor: pointer; transition: background var(--transition);
}
.site-search button:hover { background: var(--brand-hover); }
.site-nav { display: flex; gap: 20px; font-weight: 500; }
.site-nav a { padding: 8px 0; position: relative; transition: color var(--transition); }
.site-nav a:hover { color: var(--brand-secondary); }
.site-nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--brand-secondary);
    transition: width var(--transition);
}
.site-nav a:hover::after { width: 100%; }

/* ✅ পর্ব ২১ (নতুন): মেগা-ড্রপডাউন মেনু */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
    background: none; border: none; font: inherit; font-weight: 500; color: inherit;
    padding: 8px 0; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.nav-dropdown__trigger:hover { color: var(--brand-secondary); }
.nav-dropdown__caret { font-size: 10px; transition: transform var(--transition); }
.nav-dropdown.is-open .nav-dropdown__caret { transform: rotate(180deg); }
.nav-dropdown__menu {
    position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff;
    border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 50;
}
/* ডেস্কটপে hover এ খোলে */
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown__menu a { display: block; padding: 9px 16px; white-space: nowrap; }
.nav-dropdown__menu a:hover { background: #f9fafb; color: var(--brand-secondary); }
.nav-dropdown__menu a::after { display: none; } /* সাব-মেনু আইটেমে underline hover effect দরকার নেই */

@media (max-width: 767px) {
    .nav-dropdown__menu { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 16px; }
    .nav-dropdown.is-open .nav-dropdown__menu { display: block; }
}

.site-header__actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn {
    background: none; border: none; font-size: 18px; cursor: pointer; padding: 8px 10px; border-radius: var(--radius-sm);
    position: relative; transition: background var(--transition), transform var(--transition);
}
.icon-btn:hover { background: var(--bg-soft); transform: translateY(-1px); }
.cart-count {
    position: absolute; top: 0; right: 0; background: var(--danger); color: #fff; border-radius: 50%;
    font-size: 10px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Hero Slider ---- */
/* ✅ নতুন ডিজাইন, পর্ব ৫: রেফারেন্স ডিজাইনের মতো rounded card + shadow */
.hero-slider { position: relative; overflow: hidden; background: var(--bg-soft); border-radius: 16px; box-shadow: 0 14px 36px rgba(15,23,42,.10); margin: 24px 0; }
.hero-slider__track { display: flex; transition: transform 0.5s ease; }
.hero-slider__slide { flex: 0 0 100%; display: none; }
.hero-slider__slide.is-active { display: block; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slider__slide img { width: 100%; height: auto; max-height: 480px; object-fit: cover; }
.hero-slider__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-slider__dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,0.6); cursor: pointer; }
.hero-slider__dot.is-active { background: #fff; transform: scale(1.3); }

/* ---- Category Strip ---- */
.category-strip { display: flex; gap: 16px; overflow-x: auto; padding: 20px 0; }
.category-chip {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 12px 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition); min-width: 90px; text-align: center;
}
.category-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-chip img { width: 36px; height: 36px; object-fit: contain; }

/* ---- Section Blocks ---- */
.section-block { margin: 32px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h2 { font-size: 22px; font-weight: 700; margin: 0; }

/* ---- Banners ---- */
.banners-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.banner-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition); }
.banner-card:hover { transform: scale(1.01); }

/* ---- Product Grid & Card ---- */
/* ✅ নতুন ডিজাইন, পর্ব ৫: Leaf Life BD রেফারেন্স ডিজাইনের সাথে মিলিয়ে
   restyle করা হয়েছে — কোনো Blade/JS স্ট্রাকচার বদলানো হয়নি (একই ক্লাস
   নাম, একই data-attribute — বাকি JS/টেস্ট অক্ষত থাকে), শুধু ভিজ্যুয়াল। */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card {
    background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); position: relative;
    transition: box-shadow var(--transition), transform var(--transition); animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
/* ✅ Part ১৪ (ডিফল্ট থিম পলিশ): শুধু ছায়া বদলানোর বদলে হালকা lift+scale —
   এটাই এখন frontend.css এর নিজস্ব ("ডিফল্ট থিম") আইডেন্টিটির অংশ; অন্য
   থিমগুলো এই নিয়ম নিজেদের theme-*.css এ override করে ভিন্ন hover আচরণ
   দেয় (যেমন Fashion-এ ছবি-জুম, Grocery-তে bounce), তাই এখানে বদলালেও
   ওগুলো ভাঙবে না। */
.product-card:hover { box-shadow: 0 14px 32px rgba(0,0,0,.14); transform: translateY(-4px); }
.product-card__image {
    display: flex; align-items: center; justify-content: center; position: relative;
    aspect-ratio: 1/1; overflow: hidden; background: #fff; padding: 12px;
}
/* ✅ object-contain — প্রোডাক্ট (বোতল/বক্স) সম্পূর্ণ দেখাবে, ক্রপ হবে না
   (রেফারেন্স ডিজাইনে এই প্যাটার্নই ব্যবহৃত, আগে object-fit:cover ছিল যা
   হেলথ/সাপ্লিমেন্ট প্রোডাক্টের ছবি ক্রপ করে ফেলত) */
.product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.product-card__badge {
    position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-size: 11px;
    padding: 4px 10px; border-radius: 4px; font-weight: 600;
}
.product-card__wishlist {
    position: absolute; top: 10px; right: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); border: none;
    border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 16px; transition: all var(--transition);
    opacity: 0; visibility: hidden;
}
.product-card:hover .product-card__wishlist { opacity: 1; visibility: visible; }
.product-card__wishlist:hover { background: var(--brand-secondary, #16a34a); color: #fff; }
.product-card__body { padding: 12px 14px 14px; }
.product-card__name {
    display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--text, #374151);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color var(--transition);
}
.product-card__name:hover { color: var(--brand-secondary, #16a34a); }
.product-card__price { margin-bottom: 10px; }
.price-now { font-size: 16px; font-weight: 700; color: var(--danger); }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-card__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.product-card__actions > * { flex: 1; text-align: center; }
.badge-outofstock { display: inline-block; background: #fee2e2; color: var(--danger); font-size: 12px; padding: 4px 10px; border-radius: 6px; }

/* ---- Buttons (shared) ---- */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block; padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
    cursor: pointer; border: none; transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-align: center;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #eef2f7; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-primary); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { display: block; width: 100%; margin-bottom: 10px; }
.btn-icon-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 16px; }

/* ---- Cart Drawer ---- */
.cart-drawer {
    position: fixed; top: 0; right: -420px; width: 400px; max-width: 90vw; height: 100vh; background: #fff;
    box-shadow: var(--shadow-lg); z-index: 100; display: flex; flex-direction: column; transition: right var(--transition);
}
.cart-drawer.is-open { right: 0; }
.cart-drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--border); }
.cart-drawer__header button { background: none; border: none; font-size: 18px; cursor: pointer; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 18px; }
.cart-drawer-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--bg-soft); }
.cart-drawer-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.cart-drawer-item__info { flex: 1; }
.cart-drawer-item__name { font-size: 13px; font-weight: 600; margin: 0; }
.cart-drawer-item__price { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.cart-drawer-item__remove { background: none; border: none; color: var(--danger); cursor: pointer; }
.cart-drawer__footer { padding: 16px 18px; border-top: 1px solid var(--border); }
.cart-drawer__total { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 700; }
.cart-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
}
.cart-drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---- Footer ---- */
/* ✅ নতুন ডিজাইন, পর্ব ৬: রেফারেন্স ডিজাইনের মতো ফিক্সড ডার্ক-নিউট্রাল
   ব্যাকগ্রাউন্ড (ব্র্যান্ড কালারের ওপর নির্ভর না করে) — বেশিরভাগ
   ই-কমার্স সাইটের প্রফেশনাল কনভেনশন, brand color বদলালেও ফুটার একই
   থাকবে, শুধু হোভার-কালার ব্র্যান্ড সেকেন্ডারি (সবুজ) ব্যবহার করে */
.site-footer { background: #111827; color: #d1d5db; margin-top: 60px; padding: 40px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-weight: 700; }
.footer-col a { display: block; margin-bottom: 6px; color: #9ca3af; transition: color var(--transition); }
.footer-col a:hover { color: var(--brand-secondary, #16a34a); }
.site-footer__bottom { text-align: center; padding: 20px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }
.site-footer__bottom a { color: #9ca3af; }
.site-footer__bottom a:hover { color: var(--brand-secondary, #16a34a); }

/* ---- Product Detail ---- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 20px; }
/* ✅ পর্ব ৬: object-contain — পর্ব ৫-এর প্রোডাক্ট-কার্ড ফিক্সের মতোই,
   মূল গ্যালারি ছবিতেও বোতল/বক্স ক্রপ হওয়া বন্ধ */
.product-gallery__main img { border-radius: var(--radius); width: 100%; aspect-ratio: 1/1; object-fit: contain; background: #fff; }
.product-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: border-color var(--transition); }
.thumb.is-active { border-color: var(--brand-primary); }
.product-brand { color: var(--text-muted); }
.product-rating { color: #f59e0b; font-weight: 600; }
.product-price-box { margin: 16px 0; }
.product-price-box .price-now { font-size: 28px; }
.attribute-group { margin-bottom: 16px; }
.attribute-group label { display: block; font-weight: 600; margin-bottom: 8px; }
.attribute-options { display: flex; gap: 8px; flex-wrap: wrap; }
.attribute-option {
    padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff;
    cursor: pointer; font-size: 13px; transition: all var(--transition);
}
.attribute-option.is-selected { border-color: var(--brand-primary); background: var(--brand-primary); color: #fff; }
.quantity-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button { width: 36px; height: 36px; border: none; background: var(--bg-soft); cursor: pointer; font-size: 16px; }
.qty-stepper input { width: 50px; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 36px; }
.price-breakdown { color: var(--text-muted); font-size: 14px; min-height: 20px; }
.product-actions { display: flex; gap: 12px; margin: 20px 0; }
.product-meta-actions { display: flex; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.meta-action { font-size: 13px; padding: 8px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); border:none; cursor:pointer; }
.shipping-note { color: var(--success); font-weight: 600; }

/* ---- Tabs ---- */
.tabs-header { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 12px 20px; background: none; border: none; cursor: pointer; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color var(--transition), border-color var(--transition); }
.tab-btn.is-active { color: var(--brand-primary); border-color: var(--brand-primary); }
.tab-panel { display: none; animation: fadeIn 0.3s ease; }
.tab-panel.is-active { display: block; }
.review-item { padding: 14px 0; border-bottom: 1px solid var(--bg-soft); }

/* ---- Cart Page ---- */
.cart-page { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--border); text-align: left; }
.cart-table__product { display: flex; align-items: center; gap: 10px; }
.cart-table__product img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; }
.qty-form input { width: 60px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; }
.cart-summary { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); height: fit-content; }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 14px; }
.empty-state { text-align: center; padding: 60px 20px; }

/* ---- Checkout ---- */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.form-card { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.form-card label { display: block; font-weight: 600; margin: 10px 0 6px; font-size: 13px; }
.form-card input, .form-card select, .form-card textarea {
    width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
}
.checkout-summary { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); height: fit-content; }
.checkout-summary__item { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--text-muted); }
.checkout-summary__row { display: flex; justify-content: space-between; margin: 8px 0; }
.checkout-summary__row.total { font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; }

/* ---- Success Page ---- */
.success-page { text-align: center; padding: 60px 20px; }
.success-icon { font-size: 56px; animation: fadeInUp 0.5s ease; }

/* ---- Quick Checkout ---- */
.quick-checkout-product { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.quick-checkout-product img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }

/* =========================================================
   RTL সাপোর্ট (সেকশন ৩৪.২) — আরবির জন্য
   ========================================================= */
/* ✅ ভাষা রোলআউট Part ৪: আলাদা হার্ডকোড RTL ফন্ট-ওভাররাইড সরানো হয়েছে —
   body-এর --site-font-family ভ্যারিয়েবলই এখন ভাষা-নির্দিষ্ট, RTL ভাষার
   (আরবি) জন্য অ্যাডমিন সেই ভাষাতেই উপযুক্ত ফন্ট বেছে নেবেন। */
[dir="rtl"] .site-header__inner { flex-direction: row-reverse; }
[dir="rtl"] .site-nav { flex-direction: row-reverse; }
[dir="rtl"] .site-header__actions { margin-left: 0; margin-right: auto; }
[dir="rtl"] .cart-count { right: auto; left: 0; }
[dir="rtl"] .cart-drawer { right: auto; left: -420px; }
[dir="rtl"] .cart-drawer.is-open { left: 0; right: auto; }
[dir="rtl"] .product-card__badge { left: auto; right: 10px; }
[dir="rtl"] .product-card__wishlist { right: auto; left: 10px; }
[dir="rtl"] .price-old { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .site-search input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
[dir="rtl"] .site-search button { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
[dir="rtl"] .thumb.is-active { border-color: var(--brand-primary); }
[dir="rtl"] .qty-stepper input { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
[dir="rtl"] .account-sidebar { text-align: right; }
[dir="rtl"] .site-nav a::after { left: auto; right: 0; }

/* ---- GDPR Cookie Consent ---- */
.cookie-consent-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background: #111827; color: #fff; padding: 16px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; z-index: 200; flex-wrap: wrap;
    animation: slideDown 0.4s ease;
}
.cookie-consent-banner a { color: #93c5fd; text-decoration: underline; }
.cookie-consent-banner p { margin: 0; font-size: 13px; flex: 1; min-width: 200px; }

/* ---- Static Page ---- */
.static-page { padding: 32px 20px; max-width: 800px; }

/* =========================================================
   ✅ Part ১৫: About/Contact পেজ-টেমপ্লেট স্টাইল
   ========================================================= */
.about-page__hero {
    background: var(--bg-soft); padding: 56px 20px; text-align: center; margin-bottom: 40px;
}
.about-page__hero h1 { font-size: 34px; margin: 0; }
.about-page__body { max-width: 760px; padding-bottom: 48px; }
.about-page__prose { font-size: 16px; line-height: 1.8; }
.about-page__prose p { margin: 0 0 16px; }
.about-page__stats {
    display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.about-page__stat { text-align: center; flex: 1; min-width: 140px; }
.about-page__stat strong { display: block; font-size: 28px; color: var(--brand-primary); }
.about-page__stat span { font-size: 13px; color: var(--text-muted); }

.contact-page { padding: 32px 20px 56px; }
.contact-page h1 { margin-bottom: 24px; }
.contact-page__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-page__intro { margin-bottom: 20px; line-height: 1.7; }
.contact-page__card {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px;
}
.contact-page__icon { font-size: 22px; line-height: 1; }
.contact-page__card strong { display: block; margin-bottom: 4px; font-size: 14px; }
.contact-page__card p { margin: 0; color: var(--text-muted); font-size: 14px; }
.contact-page__card a { color: inherit; text-decoration: none; }
.contact-page__form-wrap { background: var(--bg-soft); padding: 24px; border-radius: var(--radius); }
.contact-page__form-wrap h3 { margin-top: 0; }
#contactPageForm input, #contactPageForm textarea {
    width: 100%; padding: 11px 12px; margin-bottom: 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px;
}
#contactPageForm button {
    background: var(--brand-primary); color: #fff; border: none; padding: 12px 24px;
    border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
}
#contactPageForm button:hover { background: var(--brand-hover); }
#contactPageForm button:disabled { opacity: .6; cursor: not-allowed; }
.contact-page__status { margin: 10px 0 0; font-size: 13px; }

@media (max-width: 768px) {
    .contact-page__grid { grid-template-columns: 1fr; }
}

/* ---- Search / Filters ---- */
.search-page { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding: 24px 20px; }
.search-filters { background: #fff; padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); height: fit-content; }
.search-filters h4 { font-size: 12px; text-transform: uppercase; color: var(--text-muted); margin: 14px 0 6px; }
.search-filters h4:first-child { margin-top: 0; }
.search-filters select, .search-filters input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; }
@media (max-width: 900px) { .search-page { grid-template-columns: 1fr; } }

/* ---- Account ---- */
.account-kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.account-kpi { background: #fff; border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.account-kpi span { display: block; font-size: 28px; font-weight: 700; color: var(--brand-primary); }
.account-kpi label { color: var(--text-muted); font-size: 13px; }
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.account-sidebar { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; height: fit-content; }
.account-sidebar a { padding: 12px 14px; border-radius: var(--radius-sm); transition: background var(--transition); }
.account-sidebar a:hover, .account-sidebar a.is-active { background: var(--bg-soft); font-weight: 600; }
.account-sidebar__logout { background: none; border: none; text-align: left; padding: 12px 14px; color: var(--danger); cursor: pointer; font-size: 14px; }
.account-content { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
@media (max-width: 768px) { .account-layout { grid-template-columns: 1fr; } .account-kpi-grid { grid-template-columns: 1fr; } }

/* ---- Order Timeline ---- */
.order-timeline { display: flex; justify-content: space-between; margin: 20px 0; position: relative; }
.order-timeline::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.timeline-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; position: relative; z-index: 1; flex: 1; }
.timeline-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--border); }
.timeline-step.is-done .timeline-dot { background: var(--success); }
.timeline-step.is-done { color: var(--success); font-weight: 600; }

/* ---- State messages ---- */
.state-message { color: var(--text-muted); font-size: 14px; }

/* =========================================================
   রেসপন্সিভ — মোবাইল ফার্স্ট ব্রেকপয়েন্ট
   ========================================================= */
@media (max-width: 900px) {
    .product-detail, .cart-page, .checkout-grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; order: -1; }
    .site-nav {
        display: none; flex-direction: column; width: 100%; order: 10; gap: 0;
    }
    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .site-search { order: 5; flex-basis: 100%; }
    .banners-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cart-drawer { width: 100%; max-width: 100vw; }

    /* ✅ Part ১৪: বটম-ন্যাভ দেখা যাচ্ছে বলে পেজের নিচের কন্টেন্ট (বিশেষত
       ফুটার) যাতে এর পেছনে ঢাকা না পড়ে, body-তে যথেষ্ট bottom-padding */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   ✅ Part ১৪: মোবাইল বটম-ন্যাভবার — সব থিমেই একইভাবে কাজ করে
   (থিম-নির্দিষ্ট CSS ফাইলে না, এখানে বেস স্টাইলে — কারণ এটা একটা
   লেআউট-ফিচার, ভিজ্যুয়াল-আইডেন্টিটি না)। শুধু মোবাইলে (≤768px)
   দেখা যায়, ডেস্কটপে সম্পূর্ণ লুকানো।
   ========================================================= */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(15,23,42,.08);
    /* ✅ iPhone-এর হোম-ইন্ডিকেটর বার/নচ যাতে আইকনের ওপর না বসে */
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 768px) {
    .bottom-nav { display: flex; align-items: stretch; justify-content: space-around; }
}
.bottom-nav__item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 8px 4px 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10.5px;
    background: none; border: none; cursor: pointer; font-family: inherit;
    transition: color var(--transition);
}
.bottom-nav__item.is-active { color: var(--brand-primary); }
.bottom-nav__item:active { opacity: .7; }

/* ✅ কার্ট আইকনটাই কেন্দ্রে সামান্য উঁচু করে "elevated" দেখানো —
   মোবাইল কমার্স অ্যাপের পরিচিত প্যাটার্ন, চোখ প্রথমে এখানেই পড়ে */
.bottom-nav__item--cart { color: var(--text-muted); }
.bottom-nav__cart-circle {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    margin-top: -18px;
    background: var(--brand-primary);
    color: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.bottom-nav__item--cart.is-active .bottom-nav__cart-circle,
.bottom-nav__cart-circle:hover { background: var(--brand-hover); }
.bottom-nav__cart-count {
    position: absolute; top: -4px; right: -4px;
    background: #dc2626; color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px; line-height: 1;
}

[dir="rtl"] .bottom-nav { direction: rtl; }


/* css/leaflife-header.css */
/* ✅ নতুন ডিজাইন, পর্ব ৪: হেডার — Leaf Life BD ভিজ্যুয়াল স্টাইল রেপ্লিকেট
   করা হয়েছে, কিন্তু হাতে-লেখা CSS দিয়ে (কোনো Tailwind ইউটিলিটি ক্লাস বা
   Bootstrap CSS নেই) — "১০০% পারফরম্যান্স" লক্ষ্যের জন্য।

   সব কালার/সাইজ CSS ভ্যারিয়েবল হিসেবে আসে (header.blade.php-এর ইনলাইন
   <style> ব্লক থেকে, অ্যাডমিন Header Management সেটিংস অনুযায়ী)। */

.announcement-bar {
    background: var(--header-announcement-bg, #006134);
    color: var(--header-announcement-text, #ffffff);
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
}

.mainbar {
    background: var(--header-bg, #ffffff);
    height: var(--header-height-desktop, 80px);
    display: flex;
    align-items: center;
}
.mainbar.is-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.mainbar.has-shadow {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.mainbar__inner {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* ---- লোগো ---- */
.mainbar__logo { display: flex; align-items: center; }
.mainbar__logo--left { justify-content: flex-start; }
.mainbar__logo--center { justify-content: center; margin: 0 auto; }
.mainbar__logo--right { justify-content: flex-end; }
.mainbar__logo img { display: block; height: auto; }

/* ---- সার্চ বার ---- */
.header-search { flex: 1; max-width: 480px; }
.header-search form { position: relative; }
.header-search input {
    width: 100%;
    padding: 10px 42px 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--header-search-bg, #f5f5f5);
    color: var(--header-search-text, #000000);
    font-size: 14px;
}
.header-search input::placeholder { color: var(--header-search-text, #000000); opacity: .65; }
.header-search button {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--header-menu-btn-bg, #111827);
}

/* ---- ডান-পাশের অ্যাকশন আইকন ---- */
.mainbar__actions { display: flex; align-items: center; gap: 18px; }
.mainbar__actions a, .mainbar__actions button {
    background: none; border: none; cursor: pointer;
    color: var(--header-menu-text, #333333);
    display: inline-flex; align-items: center; position: relative; text-decoration: none;
    font-size: 14px;
}
/* ✅ ফিক্স: mainbar__cat-btn সরানো হয়েছে — "All Categories" এখন
   মেনুবার ড্রপডাউনে (দেখুন .menu-item-dropdown--categories) */
.mainbar__cart-count {
    position: absolute; top: -8px; right: -8px;
    background: #fbbf24; color: #111827;
    font-size: 11px; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.mainbar__whatsapp-btn {
    background: #25d366 !important; color: #fff !important;
    padding: 8px 14px; border-radius: 6px; font-size: 13px;
}

/* ---- মেনু বার ---- */
.menubar {
    background: var(--header-bg, #ffffff);
    border-top: 1px solid #eee;
}
.menubar__inner {
    max-width: 1280px; margin: 0 auto; padding: 0 20px;
    display: flex; gap: 26px;
}
.menubar--align-left { justify-content: flex-start; }
.menubar--align-center { justify-content: center; }
.menubar--align-right { justify-content: flex-end; }

.menu-link {
    position: relative;
    padding: 12px 0;
    color: var(--header-menu-text, #333333);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.menu-link:hover, .menu-link.is-active { color: var(--header-active-color, #007bff); }
.menu-link.is-active.show-indicator::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--header-active-color, #007bff);
}

.menu-item-dropdown { position: relative; }
.menu-item-dropdown__panel {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: var(--header-dropdown-bg, #fff);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    z-index: 60;
}
.menu-item-dropdown:hover .menu-item-dropdown__panel,
.menu-item-dropdown:focus-within .menu-item-dropdown__panel {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.menu-item-dropdown__panel a {
    display: block; padding: 9px 16px;
    color: var(--header-dropdown-text, #333333);
    text-decoration: none; font-size: 14px; white-space: nowrap;
}
.menu-item-dropdown__panel a:hover { background: var(--header-dropdown-hover, #f5f5f5); }

/* ✅ ফিক্স: "All Categories" ড্রপডাউন — একটু চওড়া প্যানেল, সাব-ক্যাটাগরি
   থাকলে হোভারে পাশে ফ্লাইআউট সাবমেনু */
.menu-item-dropdown__panel--categories { min-width: 220px; max-height: 420px; overflow-y: auto; }
.category-dropdown-item { position: relative; }
.category-dropdown-item.has-sub > a::after { content: '›'; float: right; margin-right: 12px; }
.category-dropdown-item__sub {
    position: absolute; top: 0; left: 100%; min-width: 200px;
    background: var(--header-dropdown-bg, #fff);
    border: 1px solid #eee; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 8px 0;
    opacity: 0; visibility: hidden; transform: translateX(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.category-dropdown-item.has-sub:hover .category-dropdown-item__sub,
.category-dropdown-item.has-sub:focus-within .category-dropdown-item__sub {
    opacity: 1; visibility: visible; transform: translateX(0);
}
.category-dropdown-item__sub a { display: block; padding: 9px 16px; color: var(--header-dropdown-text, #333); text-decoration: none; font-size: 13px; white-space: nowrap; }
.category-dropdown-item__sub a:hover { background: var(--header-dropdown-hover, #f5f5f5); }

@media (max-width: 991px) {
    /* মোবাইলে ফ্লাইআউট সাবমেনু জটিল — সরাসরি নিচে stack করে দেখানো ভালো */
    .category-dropdown-item__sub { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 16px; }
    .category-dropdown-item.has-sub:hover .category-dropdown-item__sub { display: block; }
}

/* ---- মোবাইল স্ট্রিপ ---- */
.mainbar__mobile-strip { display: none; width: 100%; align-items: center; justify-content: space-between; padding: 10px 16px; }
.mainbar__mobile-menu-btn, .mainbar__mobile-cart-btn { background: none; border: none; color: var(--header-menu-text, #333); }

@media (max-width: 991px) {
    .mainbar__inner { display: none; }
    .mainbar__mobile-strip { display: flex; }
    .menubar { display: none; } /* মোবাইলে drawer এ চলে যায় */
}

/* ---- মোবাইল মেনু ড্রয়ার (বিদ্যমান সাইট-ওয়াইড অফক্যানভাস প্যাটার্ন পুনর্ব্যবহার) ---- */
.mobile-menu-drawer {
    position: fixed; top: 0; left: -300px; width: 280px; height: 100%;
    background: #fff; z-index: 1100; transition: left .25s ease;
    overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,.15);
}
.mobile-menu-drawer.is-open { left: 0; }
.mobile-menu-drawer__header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid #eee; }
.mobile-menu-drawer nav a { display: block; padding: 12px 16px; color: #333; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
.mobile-menu-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1090;
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.mobile-menu-drawer-overlay.is-open { opacity: 1; visibility: visible; }

