/* ==========================================
   BeautyMaroc Theme CSS
   ========================================== */

:root {
  --bm-primary: #2E7D32;
  --bm-dark: #1B5E20;
  --bm-light: #66BB6A;
  --bm-pale: #E8F5E9;
  --bm-whatsapp: #25D366;
  --bm-gray-bg: #F5F5F5;
  --bm-radius: 12px;
  --bm-radius-lg: 16px;
  --bm-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --bm-shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Poppins', -apple-system, sans-serif; color: #333; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* Container */
.bm-container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media(min-width:640px) { .bm-container { padding: 0 24px; } }
.bm-text-center { text-align: center; }

/* ==========================================
   TOP BAR
   ========================================== */
.bm-topbar { background: var(--bm-primary); color: #fff; padding: 6px 0; font-size: 11px; }
@media(min-width:640px) { .bm-topbar { font-size: 13px; padding: 8px 0; } }
.bm-topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.bm-topbar-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================
   HEADER
   ========================================== */
.bm-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #eee; box-shadow: var(--bm-shadow); }
.bm-header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
@media(min-width:768px) { .bm-header-inner { height: 72px; } }

.bm-logo a { display: flex; align-items: center; gap: 8px; }
.bm-logo-text { display: flex; align-items: center; gap: 8px; }
.bm-logo-icon { font-size: 28px; }
.bm-logo-name { font-size: 20px; font-weight: 700; color: var(--bm-primary); }
@media(min-width:768px) { .bm-logo-name { font-size: 24px; } .bm-logo-icon { font-size: 32px; } }

.bm-mobile-toggle { display: flex; align-items: center; justify-content: center; padding: 8px; color: #555; background: none; border: none; cursor: pointer; }
@media(min-width:1024px) { .bm-mobile-toggle { display: none; } }

/* Desktop Nav */
.bm-nav-desktop { display: none; }
@media(min-width:1024px) { .bm-nav-desktop { display: flex; } }
.bm-nav-menu { display: flex; align-items: center; gap: 32px; }
.bm-nav-menu li a { font-size: 14px; font-weight: 500; color: #555; transition: color 0.2s; padding: 4px 0; }
.bm-nav-menu li a:hover, .bm-nav-menu li.current-menu-item > a { color: var(--bm-primary); border-bottom: 2px solid var(--bm-primary); }

/* Header Actions */
.bm-header-actions { display: flex; align-items: center; gap: 4px; }
.bm-header-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: none; color: #555; cursor: pointer; border-radius: 8px; transition: all 0.2s; position: relative; }
.bm-header-btn:hover { color: var(--bm-primary); background: var(--bm-pale); }
.bm-cart-count { position: absolute; top: 2px; right: 2px; background: var(--bm-primary); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Mobile Drawer */
.bm-mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 200; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.bm-mobile-overlay.active { opacity: 1; pointer-events: all; }
.bm-mobile-drawer { position: fixed; left: 0; top: 0; height: 100%; width: 280px; background: #fff; z-index: 201; transform: translateX(-100%); transition: transform 0.3s ease; box-shadow: var(--bm-shadow-lg); }
.bm-mobile-drawer.active { transform: translateX(0); }
.bm-mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid #eee; }
.bm-mobile-close { display: flex; padding: 8px; border: none; background: none; cursor: pointer; border-radius: 8px; color: #555; }
.bm-mobile-close:hover { background: #f5f5f5; }
.bm-mobile-menu { padding: 12px; }
.bm-mobile-menu li a { display: block; padding: 12px 16px; font-size: 14px; font-weight: 500; color: #555; border-radius: var(--bm-radius); transition: all 0.2s; }
.bm-mobile-menu li a:hover, .bm-mobile-menu li.current-menu-item > a { background: var(--bm-pale); color: var(--bm-primary); }

/* Search Overlay */
.bm-search-overlay { display: none; background: #fff; border-top: 1px solid #eee; padding: 16px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.bm-search-overlay.active { display: block; }
.bm-search-form { display: flex; gap: 8px; align-items: center; }
.bm-search-input { flex: 1; padding: 12px 16px; border: 2px solid #eee; border-radius: var(--bm-radius); font-size: 14px; outline: none; font-family: inherit; }
.bm-search-input:focus { border-color: var(--bm-primary); }
.bm-search-submit { padding: 12px 24px; background: var(--bm-primary); color: #fff; border: none; border-radius: var(--bm-radius); font-weight: 600; cursor: pointer; font-family: inherit; }
.bm-search-close { padding: 12px; border: none; background: none; font-size: 24px; cursor: pointer; color: #999; }

/* ==========================================
   HERO
   ========================================== */
.bm-hero { position: relative; min-height: 400px; display: flex; align-items: center; background-size: cover; background-position: center; overflow: hidden; }
@media(min-width:640px) { .bm-hero { min-height: 500px; } }
@media(min-width:768px) { .bm-hero { min-height: 650px; } }
.bm-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(27,94,32,0.95), rgba(27,94,32,0.7), rgba(27,94,32,0.2)); }
.bm-hero-content { position: relative; z-index: 2; width: 100%; }
.bm-hero-text { max-width: 640px; animation: bmFadeInUp 0.5s ease; }
.bm-hero-badge { display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; }
@media(min-width:640px) { .bm-hero-badge { font-size: 14px; margin-bottom: 24px; } }
.bm-hero-title { font-size: 28px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
@media(min-width:640px) { .bm-hero-title { font-size: 40px; margin-bottom: 20px; } }
@media(min-width:1024px) { .bm-hero-title { font-size: 56px; } }
.bm-hero-subtitle { font-size: 14px; color: rgba(255,255,255,0.85); margin-bottom: 20px; max-width: 480px; }
@media(min-width:640px) { .bm-hero-subtitle { font-size: 18px; margin-bottom: 32px; } }
.bm-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================
   BUTTONS
   ========================================== */
.bm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--bm-radius); font-weight: 600; font-size: 14px; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; font-family: inherit; }
@media(min-width:640px) { .bm-btn { padding: 14px 32px; font-size: 15px; } }
.bm-btn-primary { background: var(--bm-primary); color: #fff; border-color: var(--bm-primary); }
.bm-btn-primary:hover { background: var(--bm-dark); }
.bm-btn-white { background: #fff; color: var(--bm-primary); }
.bm-btn-white:hover { background: var(--bm-pale); }
.bm-btn-outline { border-color: var(--bm-primary); color: var(--bm-primary); background: transparent; }
.bm-btn-outline:hover { background: var(--bm-primary); color: #fff; }
.bm-btn-outline-white { border-color: #fff; color: #fff; background: transparent; }
.bm-btn-outline-white:hover { background: #fff; color: var(--bm-primary); }
.bm-link-arrow { color: var(--bm-primary); font-weight: 600; font-size: 14px; transition: gap 0.2s; display: inline-flex; align-items: center; gap: 4px; }
.bm-link-arrow:hover { gap: 8px; }

/* ==========================================
   SECTIONS
   ========================================== */
.bm-section { padding: 48px 0; }
@media(min-width:768px) { .bm-section { padding: 80px 0; } }
.bm-section-gray { background: var(--bm-gray-bg); }
.bm-section-header { margin-bottom: 24px; }
@media(min-width:768px) { .bm-section-header { margin-bottom: 48px; display: flex; align-items: flex-end; justify-content: space-between; } }
.bm-section-title { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 4px; }
@media(min-width:768px) { .bm-section-title { font-size: 32px; } }
.bm-section-subtitle { font-size: 13px; color: #888; }
@media(min-width:768px) { .bm-section-subtitle { font-size: 16px; } }

/* Trust Bar */
.bm-trustbar { background: var(--bm-pale); padding: 12px 0; border-bottom: 1px solid #c8e6c9; }
.bm-trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media(min-width:768px) { .bm-trust-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.bm-trust-item { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--bm-primary); }
@media(min-width:640px) { .bm-trust-item { font-size: 14px; } }

/* Categories Grid */
.bm-categories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media(min-width:768px) { .bm-categories-grid { gap: 16px; } }
@media(min-width:1024px) { .bm-categories-grid { grid-template-columns: repeat(6, 1fr); } }
.bm-category-card { position: relative; aspect-ratio: 1; border-radius: var(--bm-radius); overflow: hidden; }
.bm-category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.bm-category-card:hover img { transform: scale(1.1); }
.bm-category-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; }
.bm-category-name { color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
@media(min-width:640px) { .bm-category-name { font-size: 14px; } }
.bm-category-count { color: rgba(255,255,255,0.7); font-size: 10px; text-align: center; }

/* Promo Banner */
.bm-promo-banner { padding: 48px 0; }
.bm-promo-inner { background: linear-gradient(135deg, var(--bm-dark), var(--bm-primary), var(--bm-light)); border-radius: var(--bm-radius-lg); padding: 40px 24px; text-align: center; }
@media(min-width:768px) { .bm-promo-inner { padding: 60px 40px; } }
.bm-promo-badge { display: inline-block; background: rgba(255,255,255,0.2); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 16px; border-radius: 50px; margin-bottom: 12px; }
.bm-promo-title { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
@media(min-width:768px) { .bm-promo-title { font-size: 40px; } }
.bm-promo-text { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 24px; }
@media(min-width:768px) { .bm-promo-text { font-size: 18px; } }

/* ==========================================
   WOOCOMMERCE PRODUCTS
   ========================================== */
.bm-woo-wrapper { padding: 32px 0; }
@media(min-width:768px) { .bm-woo-wrapper { padding: 48px 0; } }

/* Product Cards */
.woocommerce ul.products li.product { border-radius: var(--bm-radius-lg); overflow: hidden; border: 1px solid #eee; transition: box-shadow 0.3s, transform 0.3s; background: #fff; }
.woocommerce ul.products li.product:hover { box-shadow: var(--bm-shadow-lg); transform: translateY(-4px); }
.woocommerce ul.products li.product a img { border-radius: 0; aspect-ratio: 1; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px; font-weight: 600; color: #111; padding: 12px 12px 4px !important; }
@media(min-width:640px) { .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; } }
.woocommerce ul.products li.product .price { color: var(--bm-primary) !important; font-weight: 700; font-size: 16px !important; padding: 0 12px; }
.woocommerce ul.products li.product .price del { color: #aaa; font-size: 13px; }
.woocommerce ul.products li.product .button { margin: 8px 12px 12px !important; border-radius: var(--bm-radius) !important; background: var(--bm-primary) !important; color: #fff !important; font-size: 12px !important; padding: 10px 16px !important; font-weight: 600 !important; width: calc(100% - 24px) !important; text-align: center !important; }
.woocommerce ul.products li.product .button:hover { background: var(--bm-dark) !important; }

/* Sale Badge */
.bm-sale-badge { position: absolute; top: 8px; left: 8px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 50px; z-index: 5; }

/* WhatsApp Buttons on Products */
.bm-whatsapp-order-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--bm-whatsapp); color: #fff; padding: 14px 20px; border-radius: var(--bm-radius); font-size: 16px; font-weight: 600; border: none; cursor: pointer; transition: background 0.2s; margin-top: 12px; font-family: inherit; box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.bm-whatsapp-order-btn:hover { background: #20b858; color: #fff; }
.bm-whatsapp-card-btn { display: flex; align-items: center; justify-content: center; gap: 4px; background: var(--bm-whatsapp); color: #fff; padding: 8px 12px; border-radius: var(--bm-radius); font-size: 11px; font-weight: 600; margin: 4px 12px 12px; transition: background 0.2s; }
.bm-whatsapp-card-btn:hover { background: #20b858; color: #fff; }
.bm-whatsapp-cart-btn { margin-top: 16px; }
.bm-cart-whatsapp-note { text-align: center; font-size: 11px; color: #888; margin-top: 8px; }

/* ==========================================
   PAGE HEADER
   ========================================== */
.bm-page-header { background: linear-gradient(135deg, var(--bm-dark), var(--bm-primary)); padding: 32px 0; }
@media(min-width:768px) { .bm-page-header { padding: 48px 0; } }
.bm-page-title { font-size: 24px; font-weight: 700; color: #fff; }
@media(min-width:768px) { .bm-page-title { font-size: 36px; } }
.bm-post-meta { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.bm-post-meta a { color: rgba(255,255,255,0.85); }

/* ==========================================
   CONTENT AREA
   ========================================== */
.bm-content-area { padding: 32px 0; }
@media(min-width:768px) { .bm-content-area { padding: 48px 0; } }
.bm-page-content { max-width: 800px; font-size: 16px; line-height: 1.8; }
.bm-page-content h2, .bm-page-content h3, .bm-page-content h4 { margin: 24px 0 12px; font-weight: 700; color: #111; }
.bm-page-content p { margin-bottom: 16px; color: #555; }
.bm-page-content img { border-radius: var(--bm-radius); margin: 24px 0; }
.bm-page-content ul, .bm-page-content ol { padding-left: 24px; margin-bottom: 16px; }
.bm-page-content li { margin-bottom: 8px; color: #555; list-style: disc; }

/* ==========================================
   BLOG
   ========================================== */
.bm-blog-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media(min-width:640px) { .bm-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .bm-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.bm-blog-card { background: #fff; border-radius: var(--bm-radius-lg); overflow: hidden; border: 1px solid #eee; transition: box-shadow 0.3s, transform 0.3s; }
.bm-blog-card:hover { box-shadow: var(--bm-shadow-lg); transform: translateY(-4px); }
.bm-blog-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bm-blog-card-content { padding: 16px; }
@media(min-width:640px) { .bm-blog-card-content { padding: 20px; } }
.bm-blog-date { font-size: 12px; color: var(--bm-primary); font-weight: 500; }
.bm-blog-card-title { font-size: 16px; font-weight: 600; color: #111; margin: 8px 0; line-height: 1.4; }
.bm-blog-card-title a:hover { color: var(--bm-primary); }
.bm-blog-excerpt { font-size: 13px; color: #777; line-height: 1.5; }

/* Single Post */
.bm-single-post { max-width: 800px; }
.bm-featured-image { border-radius: var(--bm-radius-lg); overflow: hidden; margin-bottom: 32px; }
.bm-featured-image img { width: 100%; }
.bm-post-content { font-size: 16px; line-height: 1.8; color: #444; }
.bm-post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }
.bm-tag { background: var(--bm-pale); color: var(--bm-primary); padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 500; }
.bm-post-share { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin: 24px 0; }
.bm-share-btn { padding: 8px 16px; border-radius: var(--bm-radius); font-size: 12px; font-weight: 600; color: #fff; }
.bm-share-whatsapp { background: var(--bm-whatsapp); }
.bm-share-facebook { background: #1877F2; }
.bm-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.bm-post-nav-link { padding: 16px; border: 1px solid #eee; border-radius: var(--bm-radius); transition: border-color 0.2s; }
.bm-post-nav-link:hover { border-color: var(--bm-primary); }
.bm-post-nav-link span { font-size: 12px; color: #999; display: block; margin-bottom: 4px; }
.bm-post-nav-link strong { font-size: 14px; color: #111; display: block; }

/* Pagination */
.bm-pagination { margin-top: 32px; text-align: center; }
.bm-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.bm-pagination .page-numbers { padding: 8px 14px; border: 1px solid #eee; border-radius: 8px; font-size: 14px; transition: all 0.2s; }
.bm-pagination .page-numbers.current, .bm-pagination .page-numbers:hover { background: var(--bm-primary); color: #fff; border-color: var(--bm-primary); }

/* ==========================================
   FOOTER
   ========================================== */
.bm-footer { background: #111; color: #ccc; }
.bm-footer-main { padding: 48px 0; }
@media(min-width:768px) { .bm-footer-main { padding: 64px 0; } }
.bm-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media(min-width:640px) { .bm-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .bm-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.bm-footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.bm-footer-brand { font-size: 20px; font-weight: 700; color: #fff; }
.bm-footer-desc { font-size: 13px; color: #999; line-height: 1.6; margin-bottom: 16px; }
.bm-footer-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 16px; position: relative; padding-bottom: 12px; }
.bm-footer-title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--bm-primary); }
.bm-footer-menu li { margin-bottom: 8px; }
.bm-footer-menu li a { font-size: 13px; color: #999; transition: color 0.2s; }
.bm-footer-menu li a:hover { color: var(--bm-primary); }
.bm-footer-contact li { font-size: 13px; margin-bottom: 10px; color: #999; }
.bm-social-links { display: flex; gap: 8px; }
.bm-social-link { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; transition: background 0.2s; }
.bm-social-link:hover { background: var(--bm-primary); }

/* Newsletter */
.bm-newsletter-section { background: var(--bm-pale); padding: 48px 0; }
@media(min-width:768px) { .bm-newsletter-section { padding: 64px 0; } }
.bm-newsletter-title { font-size: 24px; font-weight: 700; color: #111; margin-bottom: 8px; }
@media(min-width:768px) { .bm-newsletter-title { font-size: 32px; } }
.bm-newsletter-text { font-size: 14px; color: #666; margin-bottom: 24px; }
.bm-newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.bm-newsletter-form-hero { justify-content: center; }
.bm-newsletter-input { flex: 1; min-width: 200px; padding: 12px 16px; border: 2px solid #ddd; border-radius: var(--bm-radius); font-size: 14px; outline: none; font-family: inherit; }
.bm-newsletter-input:focus { border-color: var(--bm-primary); }
.bm-newsletter-btn { padding: 12px 24px; background: var(--bm-primary); color: #fff; border: none; border-radius: var(--bm-radius); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14px; }
.bm-newsletter-btn:hover { background: var(--bm-dark); }

.bm-footer-trust { background: rgba(255,255,255,0.05); padding: 16px 0; }
.bm-footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.bm-copyright { font-size: 13px; color: #666; text-align: center; }

/* ==========================================
   WHATSAPP FLOATING BUTTON
   ========================================== */
.bm-whatsapp-float { position: fixed; bottom: 20px; right: 20px; z-index: 90; background: var(--bm-whatsapp); color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform 0.2s; animation: bmPulse 2s infinite; }
.bm-whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@media(min-width:640px) { .bm-whatsapp-float { width: 64px; height: 64px; bottom: 24px; right: 24px; } }

/* ==========================================
   404 PAGE
   ========================================== */
.bm-error-page { padding: 80px 0; min-height: 60vh; display: flex; align-items: center; }
.bm-error-code { font-size: 100px; font-weight: 800; color: var(--bm-pale); line-height: 1; }
.bm-error-title { font-size: 28px; font-weight: 700; color: #111; margin: 16px 0 8px; }
.bm-error-text { font-size: 16px; color: #777; margin-bottom: 32px; }
.bm-error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Empty State */
.bm-empty-state { text-align: center; padding: 64px 0; }
.bm-empty-icon { font-size: 64px; display: block; margin-bottom: 16px; }
.bm-empty-state h2 { font-size: 20px; font-weight: 600; color: #555; margin-bottom: 8px; }
.bm-empty-state p { font-size: 14px; color: #999; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes bmFadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bmPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--bm-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bm-primary); }

/* Modern left sidebar filter design */
.bm-shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
}
@media (max-width: 991px) {
    .bm-shop-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
.bm-shop-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    height: fit-content;
}
.bm-sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.bm-sidebar-title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bm-filter-icon {
    color: var(--bm-primary);
}
.bm-sidebar-reset {
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
}
.bm-sidebar-reset:hover {
    background: #fee2e2;
}
.bm-filter-section {
    margin-bottom: 24px;
}
.bm-filter-section:last-child {
    margin-bottom: 0;
}
.bm-filter-heading {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    margin-top: 8px;
}
.bm-filter-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bm-filter-item-link {
    display: block;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    color: #334155;
    font-weight: 500;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.bm-filter-item-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.bm-filter-item-link.active {
    background: var(--bm-primary);
    color: #ffffff;
    font-weight: 600;
}

/* ==========================================
   Base Elements Overrides
   ========================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--bm-primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
a:hover {
  color: var(--bm-light);
}

/* ==========================================
   Modern Product Loop Cards Redesign
   ========================================== */
.woocommerce ul.products li.product {
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01) !important;
    overflow: hidden !important;
    transition: all 0.3s ease-in-out !important;
    background: #ffffff !important;
    padding-bottom: 8px !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-5px) !important;
    border-color: #cbd5e1 !important;
}
.woocommerce ul.products li.product a img {
    border-radius: 0 !important;
    transition: transform 0.3s ease !important;
}
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    padding: 14px 14px 4px !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    font-family: 'Poppins', sans-serif !important;
}
.woocommerce ul.products li.product .price {
    color: var(--bm-primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 0 14px 10px !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
}
.woocommerce ul.products li.product .price del {
    color: #94a3b8 !important;
    font-size: 12px !important;
}
.woocommerce ul.products li.product .price ins {
    background: transparent !important;
    text-decoration: none !important;
}

/* Side-by-side Product Loop Buttons */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .bm-whatsapp-card-btn {
    display: inline-flex !important;
    width: calc(50% - 14px) !important;
    height: 38px !important;
    margin: 4px 6px 12px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    gap: 4px !important;
    line-height: normal !important;
    border: none !important;
}
.woocommerce ul.products li.product .button {
    margin-left: 12px !important;
    margin-right: 4px !important;
    background-color: var(--bm-primary) !important;
    color: #ffffff !important;
}
.woocommerce ul.products li.product .button:hover {
    background-color: var(--bm-dark) !important;
}
.woocommerce ul.products li.product .bm-whatsapp-card-btn {
    margin-left: 4px !important;
    margin-right: 12px !important;
    background-color: var(--bm-whatsapp) !important;
    color: #ffffff !important;
}
.woocommerce ul.products li.product .bm-whatsapp-card-btn:hover {
    background-color: #20b858 !important;
}

/* ==========================================
   Elementor Home Page Modern UI Overrides
   ========================================== */

/* Universal default overrides to prevent Elementor kit blue/cyan colors */
.elementor-widget-heading .elementor-heading-title {
    color: var(--bm-primary);
    font-family: 'Poppins', sans-serif;
}

/* Custom CSS Classes for Modern UI */
.bm-section-title .elementor-heading-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--bm-primary) !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.5px;
    font-family: 'Poppins', sans-serif !important;
}
.bm-section-subtitle .elementor-heading-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    margin-bottom: 32px !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Hero Section Buttons styling */
.bm-hero-btn-primary .elementor-button {
    background-color: var(--bm-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--bm-primary) !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
}
.bm-hero-btn-primary .elementor-button:hover {
    background-color: var(--bm-dark) !important;
    border-color: var(--bm-dark) !important;
}
.bm-hero-btn-secondary .elementor-button {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
}
.bm-hero-btn-secondary .elementor-button:hover {
    background-color: #ffffff !important;
    color: var(--bm-primary) !important;
}

/* Trustbar card design */
.bm-trust-box .elementor-icon-box-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    background: #ffffff !important;
    padding: 16px 20px !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.01), 0 2px 4px -1px rgba(0,0,0,0.01) !important;
    height: 100% !important;
}
.bm-trust-box .elementor-icon-box-icon {
    color: var(--bm-primary) !important;
    font-size: 26px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
}
.bm-trust-box .elementor-icon-box-content {
    text-align: left !important;
}
.bm-trust-box .elementor-icon-box-title {
    color: var(--bm-primary) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin: 0 !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Category grid modern card look */
.bm-category-image img {
    border-radius: 20px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important;
}
.bm-category-image:hover img {
    transform: scale(1.04) !important;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}
.bm-category-title .elementor-heading-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    margin-top: 14px !important;
    font-family: 'Poppins', sans-serif !important;
}
.bm-category-title .elementor-heading-title a {
    color: #1e293b !important;
    transition: color 0.2s !important;
}
.bm-category-title .elementor-heading-title a:hover {
    color: var(--bm-primary) !important;
}

/* Special Offer Promo Button styling */
.bm-promo-btn .elementor-button {
    background-color: #ffffff !important;
    color: var(--bm-primary) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
.bm-promo-btn .elementor-button:hover {
    background-color: var(--bm-pale) !important;
    color: var(--bm-dark) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
}

/* Blog Section premium cards styling */
.bm-blog-card > .elementor-widget-wrap {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    height: 100% !important;
}
.bm-blog-card:hover > .elementor-widget-wrap {
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 32px rgba(0,0,0,0.05) !important;
    border-color: #cbd5e1 !important;
}
.bm-blog-card .elementor-image img {
    border-radius: 12px !important;
    transition: transform 0.4s ease !important;
}
.bm-blog-card:hover .elementor-image img {
    transform: scale(1.02) !important;
}
.bm-blog-date .elementor-heading-title {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: var(--bm-light) !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    margin-top: 16px !important;
    margin-bottom: 8px !important;
    font-family: 'Poppins', sans-serif !important;
}
.bm-blog-title .elementor-heading-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
    font-family: 'Poppins', sans-serif !important;
}
.bm-blog-title .elementor-heading-title a {
    color: #0f172a !important;
    transition: color 0.2s !important;
}
.bm-blog-title .elementor-heading-title a:hover {
    color: var(--bm-primary) !important;
}
.bm-blog-btn .elementor-button {
    background-color: transparent !important;
    color: var(--bm-primary) !important;
    padding: 0 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border: none !important;
    margin-top: 8px !important;
}
.bm-blog-btn .elementor-button:hover {
    color: var(--bm-dark) !important;
}

/* ==========================================
   Modern Responsive WooCommerce Grid Layout
   ========================================== */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Default 2 columns on mobile/tablet */
    gap: 16px !important;
    margin: 24px 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/* On desktops (screens larger than 1024px with sidebar) */
@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columns next to sidebar */
        gap: 24px !important;
    }
}

/* On full-width pages without sidebar (like single product recommendations, cart, etc.) */
.bm-woo-wrapper:not(:has(.bm-shop-sidebar)) .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 768px) {
    .bm-woo-wrapper:not(:has(.bm-shop-sidebar)) .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (min-width: 1024px) {
    .bm-woo-wrapper:not(:has(.bm-shop-sidebar)) .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Sorting & results headers */
.woocommerce-before-shop-loop {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 16px !important;
}
.woocommerce-result-count {
    color: #64748b !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.woocommerce-ordering {
    margin: 0 !important;
}
.woocommerce-ordering select {
    padding: 10px 16px !important;
    border-radius: 12px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    outline: none !important;
    cursor: pointer !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: all 0.2s !important;
}
.woocommerce-ordering select:focus {
    border-color: var(--bm-primary) !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

/* ==========================================
   Responsive Filters Mobile Layout (Pills)
   ========================================== */
@media (max-width: 991px) {
    .bm-shop-sidebar {
        padding: 20px !important;
        border-radius: 16px !important;
        margin-bottom: 10px !important;
    }
    .bm-sidebar-title {
        margin-bottom: 16px !important;
    }
    .bm-filter-section {
        margin-bottom: 16px !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        padding-bottom: 16px !important;
    }
    .bm-filter-section:last-child {
        margin-bottom: 0 !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    .bm-filter-heading {
        font-size: 14px !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }
    .bm-filter-list {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .bm-filter-item-link {
        padding: 8px 14px !important;
        font-size: 12.5px !important;
        border-radius: 8px !important;
    }
}

/* ==========================================
   Modern Pagination Styling
   ========================================== */
.woocommerce nav.woocommerce-pagination {
    margin-top: 48px !important;
    text-align: center !important;
}
.woocommerce nav.woocommerce-pagination ul {
    border: none !important;
    display: inline-flex !important;
    gap: 8px !important;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
    margin: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--bm-primary) !important;
    border-color: var(--bm-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2) !important;
}



