/* =========================================================
   Jawaher Beauty Theme - Main CSS v2
   Inspired by: daralamirat.com.sa/ar
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Cairo:wght@400;600;700;900&display=swap');

:root {
  --primary:       #b47cc7;
  --primary-light: #e8d5f0;
  --primary-dark:  #7e4f9a;
  --secondary:     #f9a8c9;
  --red-badge:     #e84646;
  --text-dark:     #222222;
  --text-mid:      #555555;
  --text-light:    #888888;
  --bg-white:      #ffffff;
  --bg-light:      #f5f5f7;
  --bg-lavender:   #f3eaf9;
  --border:        #e8e0ee;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 6px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     24px;
  --radius-pill:   100px;
  --transition:    .25s ease;
  --font-base:     'Tajawal','Cairo',Arial,sans-serif;
  --header-h:      70px;
}

/* Reset */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:var(--font-base);font-size:15px;color:var(--text-dark);background:var(--bg-white);direction:rtl;line-height:1.6;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit;transition:color var(--transition)}
img{max-width:100%;display:block}
ul,ol{list-style:none}
button{cursor:pointer;font-family:var(--font-base)}

/* Utility */
.container{width:92%;max-width:1280px;margin:0 auto}
.section-gap{padding:60px 0}
.section-title{font-family:'Cairo',sans-serif;font-size:1.6rem;font-weight:700;color:var(--text-dark);margin-bottom:24px}
.view-all-link{display:inline-flex;align-items:center;gap:4px;font-size:.9rem;color:var(--primary);transition:opacity var(--transition)}
.view-all-link:hover{opacity:.7}

/* Promo topbar */
.promo-topbar{background:linear-gradient(90deg,var(--primary-dark),var(--primary));color:#fff;text-align:center;font-size:.8rem;padding:6px 16px;font-weight:500}

/* HEADER */
.site-header{position:sticky;top:0;z-index:9999;background:var(--bg-white);box-shadow:0 1px 0 var(--border);transition:box-shadow var(--transition)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);gap:16px}
.header-actions{display:flex;align-items:center;gap:8px}
.header-icon-btn{position:relative;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:none;background:transparent;border-radius:50%;font-size:1.1rem;color:var(--text-dark);transition:background var(--transition)}
.header-icon-btn:hover{background:var(--bg-lavender)}
.cart-count{position:absolute;top:2px;right:2px;background:var(--red-badge);color:#fff;font-size:.65rem;font-weight:700;width:17px;height:17px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.site-logo{flex:1;text-align:center}
.site-logo img{height:45px;margin:0 auto}
.site-logo .logo-text{font-family:'Cairo',sans-serif;font-size:1.8rem;font-weight:900;color:var(--primary-dark);letter-spacing:2px}
.header-menu-area{display:flex;align-items:center;gap:16px}
.hamburger-btn{display:flex;align-items:center;gap:6px;border:none;background:transparent;font-size:.85rem;font-weight:600;color:var(--text-dark)}
.hamburger-btn svg{width:22px;height:22px}

/* HERO SLIDER */
.hero-slider-section{position:relative;overflow:hidden}
.hero-slider-section .swiper{width:100%}
.hero-slide{position:relative;width:100%;aspect-ratio:16/6.5;min-height:340px;background:linear-gradient(135deg,#e8d5f0 0%,#c8e6f5 100%);overflow:hidden}
.hero-slide img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-slider-section .swiper-pagination-bullet{background:rgba(255,255,255,.6);opacity:1}
.hero-slider-section .swiper-pagination-bullet-active{background:#fff;width:24px;border-radius:4px}

/* CATEGORIES */
.categories-section{padding:32px 0;background:var(--bg-white)}
.categories-marquee-wrapper { overflow: hidden; width: 100%; cursor: grab; }
.categories-marquee-wrapper:active { cursor: grabbing; }
.categories-marquee-track { display: flex; gap: 16px; width: max-content; }
.category-item{flex:0 0 auto;text-align:center;cursor:pointer;transition:transform var(--transition)}
.category-item:hover{transform:translateY(-4px)}
.category-circle{width:100px;height:100px;border-radius:50%;overflow:hidden;background:var(--bg-lavender);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm);margin:0 auto 10px;border:3px solid transparent;transition:border-color var(--transition),box-shadow var(--transition)}
.category-item:hover .category-circle,.category-item.active .category-circle{border-color:var(--primary);box-shadow:0 4px 16px rgba(180,124,199,.3)}
.category-circle img{width:100%;height:100%;object-fit:cover}
.category-name{font-size:.85rem;font-weight:600;color:var(--text-dark);white-space:nowrap}

/* PROMO BANNER */
.promo-banner-section{margin:0;overflow:hidden}
.promo-banner-section img{width:100%;display:block}

/* PRODUCT TABS */
.products-tab-section{padding:48px 0;background:var(--bg-light)}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:12px}
.tab-pills{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.tab-pill{padding:8px 20px;border-radius:var(--radius-pill);border:1.5px solid var(--border);background:var(--bg-white);font-size:.85rem;font-weight:600;color:var(--text-mid);transition:all var(--transition)}
.tab-pill:hover,.tab-pill.active{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 4px 12px rgba(180,124,199,.35)}

/* PRODUCT CARDS */
.woocommerce ul.products,
.products-grid {
    display:grid !important;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr)) !important;
    gap:20px !important;
    margin:0 !important;
    padding:0 !important;
    list-style:none !important;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float:none !important;
    width:auto !important;
    margin:0 !important;
    clear:none !important;
}
/* Products Marquee Override */
.products-marquee-wrapper .products-grid,
.products-marquee-wrapper .woocommerce ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content !important;
}
.products-marquee-wrapper .product-card,
.products-marquee-wrapper .woocommerce ul.products li.product {
    width: 240px !important;
    flex: 0 0 auto !important;
}
@media (max-width: 768px) {
    .products-marquee-wrapper .product-card,
    .products-marquee-wrapper .woocommerce ul.products li.product {
        width: 160px !important;
    }
    .products-marquee-wrapper .products-grid,
    .products-marquee-wrapper .woocommerce ul.products {
        gap: 12px !important;
    }
}
.product-card{background:var(--bg-white);border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--shadow-sm);transition:box-shadow var(--transition),transform var(--transition);position:relative;display:flex;flex-direction:column}
.product-card:hover{box-shadow:var(--shadow-md);transform:translateY(-4px)}
.product-image-wrap{position:relative;aspect-ratio:1/1;background:var(--bg-light);overflow:hidden}
.product-image-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.product-card:hover .product-image-wrap img{transform:scale(1.05)}
.product-badge{position:absolute;top:10px;right:10px;background:var(--red-badge);color:#fff;font-size:.72rem;font-weight:700;padding:3px 10px;border-radius:var(--radius-pill);z-index:2}
.product-badge.online{background:var(--primary-dark)}
.product-actions{position:absolute;bottom:10px;left:10px;display:flex;flex-direction:column;gap:6px;opacity:0;transform:translateX(-8px);transition:opacity var(--transition),transform var(--transition);z-index:3}
.product-card:hover .product-actions{opacity:1;transform:translateX(0)}
.product-action-btn{width:36px;height:36px;background:#fff;border:none;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm);font-size:.9rem;color:var(--text-mid);transition:background var(--transition),color var(--transition)}
.product-action-btn:hover{background:var(--primary);color:#fff}
.product-info{padding:14px;flex:1;display:flex;flex-direction:column}
.product-name{font-size:.9rem;font-weight:600;color:var(--text-dark);line-height:1.4;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-pricing{display:flex;align-items:center;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.price-current{font-size:1rem;font-weight:700;color:var(--red-badge)}
.price-original{font-size:.82rem;color:var(--text-light);text-decoration:line-through}
.price-currency{font-size:.78rem;color:var(--text-light)}
.woocommerce ul.products li.product .button,
.btn-add-to-cart{display:flex !important;align-items:center !important;justify-content:center !important;gap:6px;width:100% !important;padding:10px !important;border-radius:var(--radius-sm) !important;border:1.5px solid var(--primary) !important;background:transparent !important;color:var(--primary) !important;font-size:.85rem !important;font-weight:600 !important;transition:background var(--transition),color var(--transition);margin-top:auto !important;text-align:center !important}
.woocommerce ul.products li.product .button:hover,
.btn-add-to-cart:hover{background:var(--primary) !important;color:#fff !important}

/* DUAL BANNERS */
.dual-banners{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dual-banner{position:relative;overflow:hidden;cursor:pointer;border-radius:var(--radius-md)}
.dual-banner img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.dual-banner:hover img{transform:scale(1.03)}
.dual-banner-label{position:absolute;bottom:0;right:0;left:0;background:linear-gradient(transparent,rgba(0,0,0,.5));padding:20px 16px 16px;color:#fff;font-size:1.2rem;font-weight:700;text-align:center}
.dual-banner-badge{position:absolute;top:16px;left:16px;background:var(--red-badge);color:#fff;font-size:1.1rem;font-weight:800;padding:8px 16px;border-radius:var(--radius-sm)}

/* BRANDS */
.brands-section{padding:40px 0;background:var(--bg-white)}
.brands-section .section-title{text-align:center}
.brands-swiper .swiper-slide{display:flex;align-items:center;justify-content:center;height:80px;filter:grayscale(1);opacity:.6;transition:filter var(--transition),opacity var(--transition)}
.brands-swiper .swiper-slide:hover{filter:none;opacity:1}
.brands-swiper .swiper-slide img{max-height:60px;object-fit:contain}

/* RECTANGULAR SLIDER (MINI BANNERS) */
.rectangular-slider-section{padding:30px 0}
.rectangularSwiper .swiper-slide{display:flex;align-items:center;justify-content:center}
.rect-slider-img-wrap{overflow:hidden;border-radius:var(--radius-md);width:100%;margin:0 auto}
.rect-slider-img-wrap img{display:block;margin:0 auto;object-fit:contain;border-radius:var(--radius-md);transition:transform .4s ease;max-height:240px;width:100%}
.swiper-slide.group:hover .rect-slider-img-wrap img{transform:scale(1.05)}

/* ADVANCED BANNER GRID */
.banner-grid-section{padding:40px 0}
.banner-grid-container{display:grid;gap:20px}
.banner-grid-layout-1 .banner-grid-container{grid-template-columns:1fr}
.banner-grid-item{border-radius:var(--radius-md);overflow:hidden;position:relative;display:block;height:100%}
.banner-grid-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.banner-grid-item:hover img{transform:scale(1.03)}
.banner-grid-layout-2 .banner-grid-container{grid-template-columns:1fr 1fr}
@media (max-width:768px){.banner-grid-layout-2 .banner-grid-container{grid-template-columns:1fr}}
.banner-grid-layout-3 .banner-grid-container{grid-template-columns:2.5fr 1fr}
.banner-grid-static-col{display:grid;grid-template-rows:1fr 1fr;gap:20px;height:100%}
.banner-grid-slider{height:100%;border-radius:var(--radius-md);overflow:hidden;position:relative}
.banner-grid-slider .swiper{height:100%}
.banner-grid-slider img{width:100%;height:100%;object-fit:cover}
@media (max-width:992px){
    .banner-grid-layout-3 .banner-grid-container{grid-template-columns:1fr}
    .banner-grid-static-col{grid-template-columns:1fr 1fr;grid-template-rows:auto}
}
@media (max-width:576px){.banner-grid-static-col{grid-template-columns:1fr}}

/* FOOTER */
.site-footer{background:var(--bg-white);border-top:1px solid var(--border);padding:48px 0 0}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px;padding-bottom:40px}
.footer-brand p{font-size:.85rem;color:var(--text-mid);line-height:1.7}
.footer-registry{font-size:.75rem;color:var(--text-light);margin-top:8px}
.footer-heading{font-size:.95rem;font-weight:700;color:var(--text-dark);margin-bottom:14px}
.footer-links{display:flex;flex-direction:column;gap:9px}
.footer-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links a{font-size:.85rem;color:var(--text-mid);transition:color var(--transition)}
.footer-links a:hover{color:var(--primary)}
.footer-contact p{font-size:.85rem;color:var(--text-mid);margin-bottom:8px;display:flex;align-items:center;gap:6px}
.footer-contact a{color:var(--primary);font-weight:600}
.social-links{display:flex;gap:10px;margin-top:16px}
.social-btn{width:38px;height:38px;border-radius:50%;background:var(--bg-lavender);border:none;display:flex;align-items:center;justify-content:center;color:var(--primary-dark);font-size:1rem;transition:background var(--transition),color var(--transition)}
.social-btn:hover{background:var(--primary);color:#fff}
.app-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.app-badges img{height:36px;border-radius:6px}
.footer-bottom{border-top:1px solid var(--border);padding:16px 0;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.footer-bottom p{font-size:.8rem;color:var(--text-light)}
.footer-trust{display:flex;align-items:center;gap:12px}
.footer-trust img{height:30px}
.lang-btn{padding:6px 14px;border-radius:var(--radius-pill);border:1.5px solid var(--border);background:transparent;font-size:.8rem;color:var(--text-mid);display:flex;align-items:center;gap:4px}

/* BACK TO TOP */
#back-to-top{position:fixed;bottom:28px;left:28px;z-index:9000;width:44px;height:44px;border-radius:50%;background:var(--primary);border:none;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);opacity:0;pointer-events:none;transition:opacity var(--transition),transform var(--transition);font-size:1.1rem}
#back-to-top.visible{opacity:1;pointer-events:auto}
#back-to-top:hover{transform:translateY(-4px)}

/* MOBILE DRAWER */
.drawer-overlay{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity var(--transition)}
.drawer-overlay.open{opacity:1;pointer-events:auto}
.mobile-drawer{position:fixed;top:0;right:0;bottom:0;width:300px;max-width:90vw;background:var(--bg-white);z-index:10001;transform:translateX(110%);transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;overflow:hidden}
.mobile-drawer.open{transform:translateX(0)}
.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}
.drawer-close{width:36px;height:36px;border-radius:50%;border:none;background:var(--bg-light);font-size:1.1rem;display:flex;align-items:center;justify-content:center}
.drawer-nav{flex:1;overflow-y:auto;padding:8px 0}
.drawer-nav a{display:flex;align-items:center;gap:10px;padding:14px 24px;font-size:.95rem;font-weight:500;color:var(--text-dark);border-bottom:1px solid var(--bg-light);transition:background var(--transition)}
.drawer-nav a:hover{background:var(--bg-lavender);color:var(--primary)}

/* CART DRAWER */
.cart-drawer{position:fixed;top:0;left:0;bottom:0;width:340px;max-width:90vw;background:var(--bg-white);z-index:10001;transform:translateX(-110%);transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;overflow:hidden}
.cart-drawer.open{transform:translateX(0)}
.cart-drawer-content{flex:1;overflow-y:auto;padding:20px}
.widget_shopping_cart_content{height:100%;display:flex;flex-direction:column}
.cart-drawer .woocommerce-mini-cart{list-style:none;padding:0;margin:0;flex:1}
.cart-drawer .woocommerce-mini-cart-item{display:flex;align-items:center;border-bottom:1px solid var(--border);padding-bottom:15px;margin-bottom:15px;position:relative}
.cart-drawer .woocommerce-mini-cart-item img{width:60px;height:60px;object-fit:cover;border-radius:var(--radius-sm);margin-left:15px}
.cart-drawer .woocommerce-mini-cart-item a.remove{position:absolute;left:0;top:0;color:var(--error);font-weight:bold;font-size:1.2rem}
.cart-drawer .woocommerce-mini-cart__total{border-top:2px solid var(--border);padding-top:15px;margin-top:auto;font-weight:700;font-size:1.1rem;display:flex;justify-content:space-between}
.cart-drawer .woocommerce-mini-cart__buttons{display:flex;gap:10px;margin-top:20px}
.cart-drawer .woocommerce-mini-cart__buttons a{flex:1;text-align:center;padding:12px;border-radius:var(--radius-md);font-weight:600;font-size:.9rem}
.cart-drawer .woocommerce-mini-cart__buttons .button:not(.checkout){background:var(--bg-light);color:var(--text-dark)}
.cart-drawer .woocommerce-mini-cart__buttons .checkout{background:var(--primary);color:#fff}
/* WOOCOMMERCE */
.woocommerce ul.products, ul.products-grid.products {display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:20px;padding:0;margin:0}
.woocommerce ul.products::before, .woocommerce ul.products::after {display:none !important;}
.woocommerce ul.products li.product{background:var(--bg-white);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);overflow:hidden;margin:0 !important;transition:box-shadow var(--transition),transform var(--transition)}
.woocommerce ul.products li.product:hover{box-shadow:var(--shadow-md);transform:translateY(-4px)}
.woocommerce ul.products li.product .button{background:transparent !important;color:var(--primary) !important;border:1.5px solid var(--primary) !important;border-radius:var(--radius-sm) !important;font-family:var(--font-base) !important;font-size:.85rem !important;font-weight:600 !important;transition:background var(--transition),color var(--transition) !important}
.woocommerce ul.products li.product .button:hover{background:var(--primary) !important;color:#fff !important}
.woocommerce .price{color:var(--red-badge) !important;font-weight:700 !important}
.woocommerce span.onsale{background:var(--red-badge) !important;border-radius:var(--radius-pill) !important;font-size:.72rem !important}

/* CUSTOM CHECKOUT COUPON */
.woocommerce-form-coupon-toggle { display: none !important; }
.woocommerce-checkout .woocommerce-form-coupon { display: none !important; }
.custom-checkout-coupon { background: var(--bg-lavender); padding: 25px; border-radius: var(--radius-md); margin-bottom: 30px; border: 1.5px dashed var(--primary); }
.custom-checkout-coupon .coupon-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 15px; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.custom-checkout-coupon .coupon-input-wrap { display: flex; gap: 10px; }
.custom-checkout-coupon input { flex: 1; padding: 12px 16px !important; border: 1px solid var(--border) !important; border-radius: var(--radius-sm) !important; font-size: .95rem !important; background: #fff !important; }
.custom-checkout-coupon button { background: var(--primary) !important; color: #fff !important; border: none !important; border-radius: var(--radius-sm) !important; padding: 0 24px !important; font-weight: 700 !important; cursor: pointer; transition: background var(--transition) !important; flex-shrink: 0; white-space: nowrap; }
.custom-checkout-coupon button:hover { background: var(--primary-dark) !important; }

@media(max-width: 576px) {
    .custom-checkout-coupon { padding: 15px; margin-bottom: 20px; }
    .custom-checkout-coupon .coupon-input-wrap { flex-direction: column; gap: 8px; }
    .custom-checkout-coupon button { padding: 12px !important; width: 100%; }
}

/* RESPONSIVE */
@media(max-width:1024px){.footer-grid{grid-template-columns:1fr 1fr}.products-grid,.woocommerce ul.products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:768px){
    :root{--header-h:60px}.section-gap{padding:40px 0}.section-title{font-size:1.3rem}.footer-grid{grid-template-columns:1fr;gap:24px}.dual-banners{grid-template-columns:1fr;gap:12px}.banner-grid-container{gap:12px}.hero-slide{aspect-ratio:16/9;min-height:220px}.products-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:14px}.categories-scroll{gap:12px}.category-circle{width:76px;height:76px}.promo-banner-section img, .dual-banner img, .banner-grid-item img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
    .tab-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 8px; }
    .tab-pills::-webkit-scrollbar { display: none; }
    .tab-pill { flex: 0 0 auto; white-space: nowrap; }
    .woocommerce ul.products li.product .button, .btn-add-to-cart { padding: 6px 8px !important; font-size: .75rem !important; gap: 4px; }
}
@media(max-width:480px){.products-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:10px}.tab-pills{gap:6px}.tab-pill{padding:6px 14px;font-size:.78rem}}

/* =========================================================
   LIVE / SMART SEARCH
   ========================================================= */
.search-bar-wrap {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 12px 0;
  display: none;
}
.search-bar-wrap .search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-bar-wrap .search-field {
  width: 100%;
  padding: 12px 52px 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: .95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  outline: none;
  transition: border-color var(--transition);
  direction: rtl;
}
.search-bar-wrap .search-field:focus {
  border-color: var(--primary);
  background: var(--bg-white);
}
.search-bar-wrap .search-submit {
  position: absolute;
  left: 12px;
  width: 36px; height: 36px;
  border: none; background: var(--primary);
  border-radius: 50%;
  color: #fff; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}

/* Live search results dropdown */
#live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0; left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 9998;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
#live-search-results.active { display: block; }
.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-light);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text-dark);
}
.live-search-item:last-child { border-bottom: none; }
.live-search-item:hover { background: var(--bg-lavender); }
.live-search-thumb {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-light);
}
.live-search-info { flex: 1; }
.live-search-title { font-size: .9rem; font-weight: 600; color: var(--text-dark); }
.live-search-price { font-size: .82rem; font-weight: 700; color: var(--red-badge); margin-top: 2px; }
.live-search-cat   { font-size: .75rem; color: var(--text-light); }
.live-search-heading {
  padding: 12px 16px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--bg-light);
  background: var(--bg-lavender);
}
.live-search-empty,
.live-search-loading {
  padding: 20px; text-align: center;
  font-size: .9rem; color: var(--text-light);
}
.live-search-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   MOBILE IMPROVEMENTS
   ========================================================= */

/* Bottom navigation bar on mobile (like the reference site) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; right: 0; left: 0;
  width: 100%;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  z-index: 8000;
  padding: 6px 0 env(safe-area-inset-bottom, 6px);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.mobile-bottom-nav-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 100vw;
}
.mobile-nav-btn {
  display: flex; flex-direction: column;
  align-items: center; gap: 3px;
  border: none; background: transparent;
  color: var(--text-light);
  font-size: .65rem; font-weight: 600;
  padding: 6px 10px;
  transition: color var(--transition);
  text-decoration: none;
}
.mobile-nav-btn i { font-size: 1.15rem; }
.mobile-nav-btn.active,
.mobile-nav-btn:hover { color: var(--primary); }
.mobile-nav-btn .cart-dot {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--red-badge);
  color: #fff; font-size: .6rem; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Make product cards take full row on very small screens */
@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-info { padding: 10px; }
  .product-name { font-size: .82rem; }
  .btn-add-to-cart { font-size: .78rem; padding: 8px; }
}

/* Hero slide minimum height on mobile */
@media (max-width: 480px) {
  .hero-slide { min-height: 180px; aspect-ratio: 16/8; }
  .category-circle { width: 68px; height: 68px; }
  .category-name { font-size: .75rem; }
  .promo-topbar { font-size: .72rem; padding: 5px 10px; }
  .section-title { font-size: 1.15rem; }
}

/* Show bottom nav on mobile */
@media (max-width: 768px) {
  /* Show bottom nav as block so inner flex div stretches full width */
  .mobile-bottom-nav { display: block; }
  /* Padding so content not hidden behind bottom nav */
  body { padding-bottom: 68px; }
  #back-to-top { bottom: 80px; }
  .header-icon-btn { width: 36px; height: 36px; font-size: 1rem; }
  .site-logo img { height: 36px; }
  /* Ensure each nav button takes equal space */
  .mobile-nav-btn { flex: 1; min-width: 0; }
}

/* Touch-friendly tap areas */
@media (pointer: coarse) {
  .tab-pill { min-height: 42px; }
  .btn-add-to-cart { min-height: 44px; }
  .drawer-nav a { min-height: 52px; }
  .category-item { padding: 4px; }
}

/* Horizontal scroll snap for categories on touch */
.categories-scroll {
}
.category-item { scroll-snap-align: start; }

/* My Account Dashboard Redesign */
.woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; margin-bottom: 30px; }
.woocommerce-account .woocommerce-MyAccount-content { width: 100%; }

.my-account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.account-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 25px 15px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-decoration: none; color: var(--text-dark); transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.account-card:hover, .account-card.is-active { border-color: var(--primary); box-shadow: 0 8px 20px rgba(0,0,0,0.06); transform: translateY(-3px); }
.account-card-icon { font-size: 2rem; color: var(--primary); transition: color 0.3s; }
.account-card:hover .account-card-icon, .account-card.is-active .account-card-icon { color: var(--primary-dark); }
.account-card-label { font-size: 0.95rem; font-weight: 700; }

@media (min-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation { width: 30%; float: right; margin-bottom: 0; }
    .woocommerce-account .woocommerce-MyAccount-content { width: 66%; float: left; }
    .my-account-cards { grid-template-columns: 1fr; gap: 10px; }
    .account-card { flex-direction: row; justify-content: flex-start; padding: 15px 20px; gap: 20px; text-align: right; }
    .account-card-icon { font-size: 1.4rem; }
}

/* Single Product Page Additions */
.woocommerce div.product form.cart .button { width: 100%; padding: 18px !important; font-size: 1.2rem !important; border-radius: 8px !important; background: var(--primary) !important; font-weight: 700; }
.woocommerce div.product .woocommerce-product-gallery { border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

@media (max-width: 767px) {
    /* Make Add to Cart sticky on mobile */
    .woocommerce div.product form.cart { display: flex; flex-direction: column; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; padding: 15px; box-shadow: 0 -4px 10px rgba(0,0,0,0.1); z-index: 100; margin: 0; border-radius: 20px 20px 0 0; }
    .woocommerce div.product form.cart .quantity { margin: 0; display: flex; justify-content: center; }
    /* Padding to body so sticky bar doesnt cover content */
    body.single-product { padding-bottom: 120px; }
}



/* Force hide cookies consent checkbox in reviews globally */
.comment-form-cookies-consent,
p.comment-form-cookies-consent {
    display: none !important;
}


/* Fix Swiper for Related Products */
.related-products-swiper .swiper-wrapper {
    flex-wrap: nowrap !important;
    margin: 0 !important;
}
.related-products-swiper .swiper-slide {
    height: auto !important;
}


/* Thank You Page Redesign */
.custom-thankyou-page { max-width: 600px; margin: 40px auto; padding: 0 15px; }
.thankyou-header { text-align: center; margin-bottom: 30px; }
.thankyou-header i { font-size: 5rem; margin-bottom: 15px; }
.thankyou-header.success i { color: #2ecc71; }
.thankyou-header.failed i { color: #e74c3c; }
.thankyou-header h2 { font-size: 1.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.thankyou-header p { color: var(--text-mid); font-size: 1rem; }

.thankyou-order-summary { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.woocommerce-order-overview { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.woocommerce-order-overview li { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--border); padding-bottom: 15px; }
.woocommerce-order-overview li:last-child { border-bottom: none; padding-bottom: 0; }
.woocommerce-order-overview li span { color: var(--text-mid); font-size: 0.95rem; }
.woocommerce-order-overview li strong { color: var(--text-dark); font-size: 1rem; font-weight: 700; }

.thankyou-order-details-table { margin-top: 30px; }
.thankyou-order-details-table h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; text-align: center; }
.thankyou-order-details-table table { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.thankyou-order-details-table th, .thankyou-order-details-table td { border-bottom: 1px solid var(--border); }

