/* ============================================
   AL ALAWI SHOP v6 - ULTIMATE PRO DESIGN
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-glow: rgba(37,99,235,0.18);
  --secondary: #2563eb;
  --accent: #ff6b35;
  --danger: #e02424;
  --warning: #f59e0b;
  --dark: #111827;
  --dark-2: #1f2937;
  --dark-3: #374151;
  --gray: #6b7280;
  --gray-light: #d1d5db;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* Dark Mode */
html[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}

/* === DARK MODE BODY & PAGE === */
html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #0f172a !important;
  color: #f1f5f9 !important;
}

/* === TRUST / FEATURE CARDS === */
html[data-theme="dark"] .trust-item {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .trust-title {
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .trust-sub {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .trust-bar {
  background: transparent !important;
}

/* === HEADER SEARCH AREA FIX === */
html[data-theme="dark"] .header-inner,
html[data-theme="dark"] .header-wrapper,
html[data-theme="dark"] .header-top,
html[data-theme="dark"] .header-bottom,
html[data-theme="dark"] .header-row {
  background: #1e293b !important;
}
html[data-theme="dark"] .search-wrapper,
html[data-theme="dark"] .search-box,
html[data-theme="dark"] .header-search {
  background: #1e293b !important;
}

/* === PROMO / COUPON BANNER === */
html[data-theme="dark"] .promo-banner,
html[data-theme="dark"] .coupon-banner,
html[data-theme="dark"] .offer-banner {
  border-color: #f59e0b !important;
}

/* === SECTION BACKGROUNDS === */
html[data-theme="dark"] .section,
html[data-theme="dark"] .section-inner,
html[data-theme="dark"] .section-wrapper,
html[data-theme="dark"] .home-section {
  background: #0f172a !important;
}

/* All page wrappers */
html[data-theme="dark"] main,
html[data-theme="dark"] .page-wrapper,
html[data-theme="dark"] .container,
html[data-theme="dark"] .container-fluid,
html[data-theme="dark"] section,
html[data-theme="dark"] .row,
html[data-theme="dark"] #mainContent,
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .products-page,
html[data-theme="dark"] .page-content {
  background: #0f172a !important;
}

html[data-theme="dark"] header,
html[data-theme="dark"] .site-header {
  background: #1e293b !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom-color: #334155 !important;
}

/* Mobile store name bar stays branded in dark mode */
html[data-theme="dark"] .mobile-store-name {
  background: linear-gradient(135deg, #1e1e4e 0%, #2d1b69 100%) !important;
}

/* Mobile header icons area */
html[data-theme="dark"] .header-inner {
  background: #1e293b !important;
}

html[data-theme="dark"] .main-nav,
html[data-theme="dark"] nav {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .nav-link {
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active {
  color: #60a5fa !important;
  background: rgba(96,165,250,0.1) !important;
}

html[data-theme="dark"] .search-bar input {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .search-bar input::placeholder {
  color: #64748b !important;
}

html[data-theme="dark"] .icon-btn {
  color: #cbd5e1 !important;
  background: #334155 !important;
}

html[data-theme="dark"] .icon-btn:hover {
  background: #475569 !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .product-card,
html[data-theme="dark"] .card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .product-card .product-name,
html[data-theme="dark"] .product-card h3,
html[data-theme="dark"] .product-card h4 {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .product-card .product-price,
html[data-theme="dark"] .price-current {
  color: #60a5fa !important;
}

html[data-theme="dark"] .product-card .price-old {
  color: #64748b !important;
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .cat-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .cat-card .cat-name {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] footer,
html[data-theme="dark"] .site-footer {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-top-color: #334155 !important;
}

html[data-theme="dark"] footer a {
  color: #94a3b8 !important;
}

html[data-theme="dark"] footer a:hover {
  color: #60a5fa !important;
}

html[data-theme="dark"] .mobile-store-name-bar {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

html[data-theme="dark"] .flash-deal-card,
html[data-theme="dark"] .deal-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .section-header {
  background: transparent !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .toast {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .search-dropdown {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-theme="dark"] .search-dropdown-item {
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .search-dropdown-item:hover {
  background: #334155 !important;
}

html[data-theme="dark"] .hamburger-btn span {
  background: #f1f5f9 !important;
}

/* ============ DARK MODE — COMPREHENSIVE FIX ============ */

/* Page & layout backgrounds */
html[data-theme="dark"] main,
html[data-theme="dark"] .main-content-wrap,
html[data-theme="dark"] .container,
html[data-theme="dark"] .page-wrapper,
html[data-theme="dark"] .py-4,
html[data-theme="dark"] section {
  background: transparent !important;
}

/* Product image placeholder */
html[data-theme="dark"] .product-img-wrap {
  background: #1e293b !important;
}

/* Bootstrap form controls */
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-control-sm,
html[data-theme="dark"] .form-select-sm {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .form-select option {
  background: #1e293b !important;
  color: #f1f5f9 !important;
}

/* Bootstrap labels & text */
html[data-theme="dark"] label,
html[data-theme="dark"] .fw-semibold,
html[data-theme="dark"] .fw-bold,
html[data-theme="dark"] .small,
html[data-theme="dark"] small {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .text-muted {
  color: #64748b !important;
}

/* Bootstrap buttons outline */
html[data-theme="dark"] .btn-outline-secondary {
  color: #94a3b8 !important;
  border-color: #334155 !important;
  background: transparent !important;
}
html[data-theme="dark"] .btn-outline-secondary:hover {
  background: #334155 !important;
  color: #f1f5f9 !important;
}

/* Bootstrap card body text */
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

/* Bootstrap list groups */
html[data-theme="dark"] .list-group-item {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

/* Bootstrap alerts & badges */
html[data-theme="dark"] .alert {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

/* Bootstrap modal */
html[data-theme="dark"] .modal-content {
  background: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
  border-color: #334155 !important;
}

/* Bootstrap table */
html[data-theme="dark"] .table {
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td {
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(255,255,255,0.03) !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .table-hover > tbody > tr:hover > * {
  background-color: rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] thead {
  background: #0f172a !important;
}

/* Dropdowns */
html[data-theme="dark"] .dropdown-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html[data-theme="dark"] .dropdown-item {
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .dropdown-item:hover {
  background: #334155 !important;
  color: #f1f5f9 !important;
}
html[data-theme="dark"] .dropdown-divider {
  border-color: #334155 !important;
}

/* Tabs & pills */
html[data-theme="dark"] .nav-tabs {
  border-color: #334155 !important;
}
html[data-theme="dark"] .nav-tabs .nav-link {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .nav-tabs .nav-link.active {
  background: #1e293b !important;
  border-color: #334155 #334155 #1e293b !important;
  color: #f1f5f9 !important;
}

/* Breadcrumb */
html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .breadcrumb-item a {
  color: #94a3b8 !important;
}
html[data-theme="dark"] .breadcrumb-item.active {
  color: #f1f5f9 !important;
}

/* HR dividers */
html[data-theme="dark"] hr {
  border-color: #334155 !important;
}

/* Account / profile pages */
html[data-theme="dark"] .account-sidebar,
html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .address-card,
html[data-theme="dark"] .loyalty-card,
html[data-theme="dark"] .wishlist-card {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Cart & checkout */
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .order-summary,
html[data-theme="dark"] .checkout-section {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Cart sidebar */
html[data-theme="dark"] .cart-sidebar {
  background: #1e293b !important;
}
html[data-theme="dark"] .cart-sidebar .cart-item {
  border-color: #334155 !important;
}

/* Pagination */
html[data-theme="dark"] .pagination .page-link {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}
html[data-theme="dark"] .pagination .page-item.active .page-link {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Reviews & stars */
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .review-item {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Ticker / announcement bar */
html[data-theme="dark"] .ticker-bar,
html[data-theme="dark"] .announcement-bar {
  background: #0f172a !important;
}

/* Product detail page */
html[data-theme="dark"] .product-detail-wrap,
html[data-theme="dark"] .product-info {
  background: transparent !important;
  color: #f1f5f9 !important;
}

/* Offers / deals pages */
html[data-theme="dark"] .offer-card,
html[data-theme="dark"] .brand-card,
html[data-theme="dark"] .gift-card-item {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* Dark mode toggle icon improvement */
.dark-toggle-icon-sun  { display: inline; }
.dark-toggle-icon-moon { display: none; }
html[data-theme="dark"] .dark-toggle-icon-sun  { display: none; }
html[data-theme="dark"] .dark-toggle-icon-moon { display: inline; }

/* ============ MAIN CONTENT WRAPPER ============ */
.main-content-wrap {
  min-height: 60vh;
  padding-bottom: 20px;
}


* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a { text-decoration:none; color:inherit; }
img { max-width:100%; }

/* ============ PROMO BAR ============ */
.promo-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), #6366f1);
  color:#fff;
  font-size:13px;
  font-weight:500;
  padding:9px 0;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.promo-bar::before {
  content:'';
  position:absolute;
  top:0;left:-100%;
  width:60%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.12),transparent);
  animation: shine 3s infinite;
}
@keyframes shine { to { left:150%; } }
.promo-bar .marquee-wrap { display:flex; gap:60px; white-space:nowrap; animation:marquee 25s linear infinite; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.promo-bar span { display:inline-flex; align-items:center; gap:6px; }

/* ============ HEADER ============ */
.site-header {
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--border);
  box-shadow:0 2px 20px rgba(26,86,219,0.08);
  transition: var(--transition);
}

.header-inner {
  max-width:1280px;
  margin:0 auto;
  padding:0 20px;
  height:70px;
  display:flex;
  align-items:center;
  gap:20px;
}
.logo {
  font-size:24px;
  font-weight:900;
  color:var(--primary);
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.logo-icon {
  width:40px;height:40px;
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;
  font-size:18px;
  box-shadow:0 4px 12px var(--primary-glow);
}

/* Search Bar */
.search-wrap {
  flex:1;
  max-width:500px;
  position:relative;
}
.search-wrap input {
  width:100%;
  padding:11px 50px 11px 20px;
  border:2px solid var(--border);
  border-radius:50px;
  font-family:'Tajawal',sans-serif;
  font-size:14px;
  background:var(--bg);
  color:var(--text);
  outline:none;
  transition:var(--transition);
  direction:rtl;
}
.search-wrap input:focus {
  border-color:var(--primary);
  box-shadow:0 0 0 4px var(--primary-glow);
}
.search-btn {
  position:absolute;
  left:6px;top:50%;
  transform:translateY(-50%);
  background:var(--primary);
  border:none;
  width:34px;height:34px;
  border-radius:50px;
  color:#fff;
  cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  font-size:14px;
  transition:var(--transition);
}
.search-btn:hover { background:var(--primary-dark); }

/* Search Dropdown */
.search-results {
  position:absolute;
  top:calc(100% + 8px);
  right:0;left:0;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
  z-index:1000;
  max-height:380px;
  overflow-y:auto;
  display:none;
}
.search-results.show { display:block; }
.search-result-item {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  cursor:pointer;
  transition:var(--transition);
  border-bottom:1px solid var(--border);
}
.search-result-item:last-child { border-bottom:none; }
.search-result-item:hover { background:var(--bg); }
.search-result-img {
  width:48px;height:48px;
  border-radius:8px;
  object-fit:cover;
  background:var(--bg);
  flex-shrink:0;
}
.search-result-name { font-weight:600; font-size:14px; }
.search-result-price { color:var(--primary); font-size:13px; font-weight:700; }

/* Header Icons */
.header-icons {
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.icon-btn {
  width:42px;height:42px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:var(--transition);
  position:relative;
  border:none;
  background:transparent;
  color:var(--text);
  font-size:18px;
  text-decoration:none;
}
.icon-btn:hover {
  background:var(--primary-glow);
  color:var(--primary);
}
.icon-badge {
  position:absolute;
  top:4px;right:4px;
  background:var(--danger);
  color:#fff;
  font-size:10px;
  font-weight:700;
  width:18px;height:18px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  line-height:1;
}
.dark-toggle {
  font-size:16px;
  position: relative;
  transition: var(--transition);
}
/* Glow when dark mode is active */
html[data-theme="dark"] .dark-toggle {
  background: rgba(96,165,250,0.15) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 10px rgba(251,191,36,0.3) !important;
}

/* Nav */
.main-nav {
  background:var(--bg-card);
  border-bottom:1px solid var(--border);
}
.nav-inner {
  max-width:1280px;
  margin:0 auto;
  padding:0 20px;
  display:flex;
  align-items:center;
  gap:4px;
  height:48px;
  overflow-x:auto;
  scrollbar-width:none;
}
.nav-inner::-webkit-scrollbar { display:none; }
.nav-link {
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:8px;
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
  color:var(--text);
  transition:var(--transition);
}
.nav-link:hover, .nav-link.active {
  background:var(--primary-glow);
  color:var(--primary);
}
.nav-link i { font-size:15px; }

/* ============ COUPON BANNER ============ */
.coupon-banner {
  background:linear-gradient(135deg,#fef3c7,#fde68a);
  border:2px dashed #f59e0b;
  border-radius:var(--radius);
  padding:14px 20px;
  margin:20px auto;
  max-width:1280px;
  display:flex;
  align-items:center;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  animation:pulse-banner 2s ease-in-out infinite;
}
@keyframes pulse-banner {
  0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,0.3)}
  50%{box-shadow:0 0 0 8px rgba(245,158,11,0)}
}
.coupon-banner i { font-size:22px; color:#d97706; }
.coupon-banner-text { font-weight:700; color:#92400e; font-size:15px; }
.coupon-code {
  background:#fff;
  border:2px solid #f59e0b;
  color:#d97706;
  font-weight:900;
  font-size:16px;
  padding:4px 14px;
  border-radius:8px;
  cursor:pointer;
  letter-spacing:2px;
  transition:var(--transition);
}
.coupon-code:hover { background:#f59e0b; color:#fff; }
.coupon-close {
  margin-right:auto;
  cursor:pointer;
  color:#92400e;
  font-size:16px;
  padding:4px;
  opacity:0.6;
}
.coupon-close:hover { opacity:1; }

/* ============ HERO SLIDER ============ */
.hero-slider {
  position:relative;
  overflow:hidden;
  border-radius:var(--radius-lg);
  margin:0 20px 24px;
  max-width:calc(1280px - 40px);
  margin-left:auto;
  margin-right:auto;
  box-shadow:var(--shadow-xl);
}
.slide {
  display:none;
  position:relative;
}
.slide.active {
  display:block;
  animation: slideFadeIn 0.55s ease forwards;
}
@keyframes slideFadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* Ken Burns — background zoom */
.slide-bg {
  overflow:hidden;
}
.slide.active .slide-bg {
  animation: kenBurns 8s ease-out forwards;
}
@keyframes kenBurns {
  from { transform:scale(1); }
  to   { transform:scale(1.08); }
}

/* Staggered content slide-up */
.slide.active .slide-badge {
  animation: slideUpFade 0.5s cubic-bezier(0.4,0,0.2,1) 0.15s both;
}
.slide.active .slide-title {
  animation: slideUpFade 0.55s cubic-bezier(0.4,0,0.2,1) 0.30s both;
}
.slide.active .slide-sub {
  animation: slideUpFade 0.5s cubic-bezier(0.4,0,0.2,1) 0.45s both;
}
.slide.active .slide-btn {
  animation: slideUpFade 0.5s cubic-bezier(0.4,0,0.2,1) 0.60s both;
}
@keyframes slideUpFade {
  from { opacity:0; transform:translateY(26px); }
  to   { opacity:1; transform:translateY(0); }
}
.slide-img {
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}
.slide-placeholder {
  width:100%;
  height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}
.slide-placeholder::before {
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(135deg, #2563eb 0%, #3b82f6 40%, #1d4ed8 100%);
}
/* Floating circles */
.slide-placeholder::after {
  content:'';
  position:absolute;
  width:400px;height:400px;
  border-radius:50%;
  background:rgba(255,255,255,0.06);
  top:-100px;left:-100px;
  animation:float1 6s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
.slide-content {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  padding:40px 60px;
  background:linear-gradient(to right, transparent 30%, rgba(0,0,0,0.25) 100%);
}
.slide-content.light-bg {
  background:none;
}
.slide-badge {
  background:rgba(255,255,255,0.2);
  border:1px solid rgba(255,255,255,0.4);
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:4px 14px;
  border-radius:50px;
  backdrop-filter:blur(8px);
  margin-bottom:12px;
}
.slide-title {
  font-size:48px;
  font-weight:900;
  color:#fff;
  text-shadow:0 2px 20px rgba(0,0,0,0.3);
  margin-bottom:10px;
  line-height:1.1;
}
.slide-sub {
  font-size:16px;
  color:rgba(255,255,255,0.88);
  margin-bottom:24px;
}
.slide-btn {
  background:#fff;
  color:var(--primary);
  font-family:'Tajawal',sans-serif;
  font-size:16px;
  font-weight:700;
  padding:14px 32px;
  border-radius:50px;
  border:none;
  cursor:pointer;
  box-shadow:0 4px 20px rgba(0,0,0,0.2);
  transition:var(--transition);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.slide-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(0,0,0,0.3);
}
.slide-controls {
  position:absolute;
  bottom:20px;left:50%;
  transform:translateX(-50%);
  display:flex;gap:8px;
}
.slide-dot {
  width:8px;height:8px;
  border-radius:50%;
  background:rgba(255,255,255,0.5);
  cursor:pointer;
  transition:var(--transition);
}
.slide-dot.active {
  width:24px;
  border-radius:4px;
  background:#fff;
}
.slide-arrow {
  position:absolute;
  top:50%;transform:translateY(-50%);
  width:44px;height:44px;
  background:rgba(255,255,255,0.2);
  border:1px solid rgba(255,255,255,0.4);
  backdrop-filter:blur(8px);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  color:#fff;
  font-size:18px;
  transition:var(--transition);
  z-index:10;
}
.slide-arrow:hover { background:rgba(255,255,255,0.4); }
.slide-arrow.prev { right:16px; }
.slide-arrow.next { left:16px; }

/* ============ TRUST BADGES ============ */
.trust-bar {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  max-width:1280px;
  margin:0 auto 32px;
  padding:0 20px;
}
.trust-item {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px 16px;
  text-align:center;
  transition:var(--transition);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.trust-item:hover {
  border-color:var(--primary);
  box-shadow:0 4px 20px var(--primary-glow);
  transform:translateY(-2px);
}
.trust-icon {
  width:48px;height:48px;
  background:linear-gradient(135deg,var(--primary-glow),rgba(59,122,247,0.1));
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  color:var(--primary);
}
.trust-title { font-weight:700; font-size:14px; }
.trust-sub { font-size:12px; color:var(--text-muted); }

/* ============ SECTION ============ */
.section {
  max-width:1280px;
  margin:0 auto 40px;
  padding:0 20px;
}
.section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
}
.section-title {
  font-size:22px;
  font-weight:800;
  display:flex;align-items:center;gap:8px;
}
.section-title::after {
  content:'';
  display:block;
  width:4px;height:28px;
  background:linear-gradient(var(--primary),var(--primary-light));
  border-radius:4px;
  order:-1;
}
.view-all {
  color:var(--primary);
  font-size:14px;
  font-weight:600;
  display:flex;align-items:center;gap:4px;
  transition:var(--transition);
  padding:6px 14px;
  border-radius:8px;
  border:1px solid var(--primary);
}
.view-all:hover {
  background:var(--primary);
  color:#fff;
}

/* ============ PRODUCT GRID ============ */
.products-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.product-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  transition:var(--transition);
  position:relative;
  display:flex;
  flex-direction:column;
}
.product-card:hover {
  border-color:var(--primary);
  box-shadow:var(--shadow-lg);
  transform:translateY(-4px);
}
.product-img-wrap {
  position:relative;
  aspect-ratio:1;
  overflow:hidden;
  background:#f3f4f6;
}
.product-img-wrap img {
  width:100%;height:100%;
  object-fit:cover;
  transition:transform 0.4s ease;
}
.product-card:hover .product-img-wrap img {
  transform:scale(1.07);
}
/* Quick-add hover overlay */
.quick-add-overlay {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.28);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transition:opacity 0.3s ease;
  z-index:2;
  pointer-events:none;
}
.product-img-wrap:hover .quick-add-overlay {
  opacity:1;
  pointer-events:all;
}
.quick-add-btn {
  background:#fff;
  color:var(--primary);
  font-family:'Tajawal',sans-serif;
  font-size:14px;
  font-weight:700;
  padding:10px 22px;
  border-radius:50px;
  border:none;
  cursor:pointer;
  box-shadow:0 4px 20px rgba(0,0,0,0.25);
  display:inline-flex;
  align-items:center;
  gap:6px;
  transform:translateY(12px);
  transition:transform 0.3s ease, background 0.2s, color 0.2s;
}
.product-img-wrap:hover .quick-add-btn {
  transform:translateY(0);
}
.quick-add-btn:hover {
  background:var(--primary);
  color:#fff;
}
/* Keep wishlist button above overlay */
.wishlist-btn { z-index:5; }
.product-badges {
  position:absolute;
  top:10px;right:10px;
  display:flex;flex-direction:column;gap:4px;
}
.badge {
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:6px;
  line-height:1.4;
}
.badge-discount { background:var(--danger); color:#fff; }
.badge-new { background:var(--secondary); color:#fff; }
.badge-hot { background:var(--accent); color:#fff; }

/* Stock counter */
.stock-counter {
  position:absolute;
  bottom:0;left:0;right:0;
  background:linear-gradient(transparent,rgba(0,0,0,0.7));
  padding:20px 10px 8px;
  font-size:11px;
  color:#fff;
  font-weight:600;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.stock-bar-wrap {
  height:4px;
  background:rgba(255,255,255,0.3);
  border-radius:2px;
  overflow:hidden;
}
.stock-bar {
  height:100%;
  background:linear-gradient(90deg,#2563eb,#1d4ed8);
  border-radius:2px;
  transition:width 0.8s ease;
}
.stock-bar.low { background:linear-gradient(90deg,#ef4444,#dc2626); }

/* Wishlist */
.wishlist-btn {
  position:absolute;
  top:10px;left:10px;
  width:34px;height:34px;
  background:rgba(255,255,255,0.9);
  border:none;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  font-size:15px;
  color:var(--gray);
  transition:var(--transition);
  backdrop-filter:blur(4px);
}
.wishlist-btn:hover, .wishlist-btn.active {
  color:var(--danger);
  transform:scale(1.15);
}

.product-body {
  padding:14px;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.product-category {
  font-size:11px;
  color:var(--text-muted);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.product-name {
  font-weight:700;
  font-size:14px;
  line-height:1.4;
  color:var(--text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Countdown timer */
.countdown-wrap {
  display:flex;
  gap:6px;
  align-items:center;
  font-size:11px;
  color:var(--danger);
  font-weight:600;
}
.countdown-wrap i { font-size:12px; }
.countdown { font-weight:800; font-family:monospace; }

/* Stars */
.stars {
  display:flex;
  align-items:center;
  gap:3px;
  font-size:12px;
}
.stars i { color:#f59e0b; }
.stars span { color:var(--text-muted); font-size:11px; margin-right:2px; }

.product-price {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.price-current {
  font-size:18px;
  font-weight:900;
  color:var(--primary);
}
.price-old {
  font-size:13px;
  color:var(--text-muted);
  text-decoration:line-through;
}

.product-footer {
  padding:0 14px 14px;
  display:flex;
  gap:8px;
}
/* ===== BUTTON ANIMATIONS ===== */
@keyframes btn-pulse-orange {
  0%   { box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 249,115,22), 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(var(--primary-rgb, 249,115,22), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 249,115,22), 0); }
}
@keyframes btn-pulse-blue {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(37,99,235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235, 0); }
}
@keyframes btn-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

.btn-cart {
  flex:1;
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  color:#fff;
  border:none;
  border-radius:10px;
  padding:10px;
  font-family:'Tajawal',sans-serif;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  display:flex;align-items:center;justify-content:center;gap:6px;
  position:relative;
  overflow:hidden;
  animation: btn-pulse-orange 2s infinite;
}
.btn-cart::after {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -200% center;
  border-radius:10px;
  pointer-events:none;
}
.btn-cart:hover {
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  box-shadow:0 4px 16px var(--primary-glow);
  transform:translateY(-2px);
  animation: none;
}
.btn-cart:hover::after {
  animation: btn-shimmer 0.7s linear;
}

.btn-wa {
  width:auto;height:40px;padding:0 10px;gap:5px;
  background:#2563eb;
  color:#fff;
  border:none;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  font-size:17px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  flex-shrink:0;
  position:relative;
  overflow:hidden;
  animation: btn-pulse-blue 2s infinite;
}
.btn-wa::after {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: -200% center;
  border-radius:10px;
  pointer-events:none;
}
.btn-wa:hover {
  background:#1d4ed8;
  transform:translateY(-2px);
  box-shadow:0 4px 16px rgba(37,99,235,0.5);
  animation: none;
}
.btn-wa:hover::after {
  animation: btn-shimmer 0.7s linear;
}

/* Product image link */
.product-img-link {
  display:block;
  width:100%;
  height:100%;
}
.product-img-link img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Quick view button in overlay */
.quick-view-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(255,255,255,0.15);
  color:#fff;
  border:2px solid rgba(255,255,255,0.7);
  border-radius:10px;
  padding:8px 14px;
  font-family:'Tajawal',sans-serif;
  font-size:13px;
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition:background 0.2s, border-color 0.2s, transform 0.2s;
  transform:translateY(8px);
  opacity:0;
  transition: all 0.25s ease 0.08s;
}
.quick-add-overlay:hover .quick-view-btn,
.product-img-wrap:hover .quick-view-btn {
  opacity:1;
  transform:translateY(0);
}
.quick-view-btn:hover {
  background:rgba(255,255,255,0.3);
  border-color:#fff;
  color:#fff;
  transform:translateY(-2px) !important;
}

/* Ripple span */
.btn-ripple {
  position:absolute;
  border-radius:50%;
  width:10px; height:10px;
  background:rgba(255,255,255,0.5);
  transform:scale(0);
  animation: ripple-anim 0.55s linear;
  pointer-events:none;
  margin-top:-5px; margin-left:-5px;
}

/* ============ CATEGORIES ============ */
/* ---- Category keyframes ---- */
@keyframes catFadeUp {
  from { opacity:0; transform:translateY(30px) scale(0.9); }
  to   { opacity:1; transform:translateY(0)    scale(1);   }
}
@keyframes iconFloat {
  0%,100% { transform: translateY(0);    }
  50%      { transform: translateY(-5px); }
}
@keyframes iconBounce {
  0%,100% { transform: scale(1);    }
  30%     { transform: scale(1.3);  }
  60%     { transform: scale(0.92); }
  80%     { transform: scale(1.08); }
}
@keyframes shimmerBorder {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes catGlow {
  0%,100% { box-shadow: 0 4px 15px rgba(99,102,241,0.0); }
  50%     { box-shadow: 0 4px 25px rgba(99,102,241,0.25); }
}

.cats-grid {
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:14px;
}
.cat-card {
  background:var(--bg-card);
  border:2px solid transparent;
  border-radius:var(--radius);
  padding:20px 12px;
  text-align:center;
  cursor:pointer;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  position:relative;
  overflow:hidden;
  /* entrance animation */
  opacity:0;
  animation: catFadeUp 0.55s cubic-bezier(.34,1.56,.64,1) forwards;
}
/* shimmer overlay on hover */
.cat-card::before {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(255,255,255,0.18) 40%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0.18) 60%,
    transparent 100%);
  background-size: 200% 100%;
  background-position: 200% center;
  opacity:0;
  transition: opacity 0.3s;
  pointer-events:none;
}
.cat-card:hover::before {
  opacity:1;
  animation: shimmerBorder 0.7s linear;
}
/* gradient border on hover */
.cat-card::after {
  content:'';
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:2px;
  background: linear-gradient(135deg, var(--primary), #a855f7, var(--primary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity:0;
  transition: opacity 0.35s ease;
  pointer-events:none;
}
.cat-card:hover::after { opacity:1; }

.cat-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 12px 32px rgba(99,102,241,0.18), 0 4px 12px rgba(0,0,0,0.08);
}
.cat-icon {
  width:64px; height:64px;
  border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  font-size:30px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: catGlow 3s ease-in-out infinite;
}
.cat-emoji {
  display:inline-block;
  animation: iconFloat 3s ease-in-out infinite;
  transition: transform 0.2s;
}
.cat-card:hover .cat-icon {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(99,102,241,0.2);
}
.cat-card:hover .cat-emoji {
  animation: iconBounce 0.5s ease forwards;
}
.cat-name { font-size:13px; font-weight:700; transition: color 0.3s; }
.cat-card:hover .cat-name { color: var(--primary); }
.cat-count { font-size:11px; color:var(--text-muted); }

/* ============ PROMO BANNERS ============ */
.promo-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  max-width:1280px;
  margin:0 auto 40px;
  padding:0 20px;
}
.promo-banner {
  border-radius:var(--radius-lg);
  padding:36px 40px;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:var(--transition);
}
.promo-banner:hover { transform:translateY(-3px); box-shadow:var(--shadow-xl); }
.promo-banner-1 {
  background:linear-gradient(135deg,#2563eb,#3b82f6);
  color:#fff;
}
.promo-banner-2 {
  background:linear-gradient(135deg,#1d4ed8,#2563eb);
  color:#fff;
}
.promo-banner::before {
  content:'';
  position:absolute;
  width:200px;height:200px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  bottom:-60px;left:-40px;
}
.promo-banner::after {
  content:'';
  position:absolute;
  width:130px;height:130px;
  border-radius:50%;
  background:rgba(255,255,255,0.05);
  top:-30px;right:60px;
}
.promo-tag {
  display:inline-block;
  background:rgba(255,255,255,0.2);
  font-size:12px;font-weight:700;
  padding:3px 12px;
  border-radius:50px;
  margin-bottom:10px;
}
.promo-title { font-size:26px; font-weight:900; margin-bottom:6px; }
.promo-sub { font-size:14px; opacity:0.85; margin-bottom:18px; }
.promo-btn {
  background:#fff;
  border:none;
  border-radius:50px;
  padding:9px 22px;
  font-family:'Tajawal',sans-serif;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
}
.promo-banner-1 .promo-btn { color:var(--primary); }
.promo-banner-2 .promo-btn { color:#2563eb; }
.promo-btn:hover { transform:scale(1.05); }

/* ============ RECENTLY VIEWED ============ */
.recently-section {
  max-width:1280px;
  margin:0 auto 40px;
  padding:0 20px;
}
.recently-scroll {
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:8px;
  scrollbar-width:thin;
  scrollbar-color:var(--primary-glow) transparent;
}
.recently-scroll::-webkit-scrollbar { height:4px; }
.recently-scroll::-webkit-scrollbar-thumb { background:var(--primary-glow); border-radius:2px; }
.recent-card {
  flex-shrink:0;
  width:140px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  cursor:pointer;
  transition:var(--transition);
}
.recent-card:hover { border-color:var(--primary); transform:translateY(-2px); }
.recent-img { width:100%; aspect-ratio:1; object-fit:cover; background:#f3f4f6; }
.recent-info { padding:8px; }
.recent-name { font-size:12px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.recent-price { font-size:12px; color:var(--primary); font-weight:700; }

/* ============ CART SIDEBAR ============ */
.cart-overlay {
  position:fixed;inset:0;
  background:rgba(0,0,0,0.5);
  z-index:9998;
  opacity:0;pointer-events:none;
  transition:opacity 0.3s;
  backdrop-filter:blur(4px);
}
.cart-overlay.open { opacity:1; pointer-events:all; }

.cart-sidebar {
  position:fixed;
  left:0;top:0;bottom:0;
  width:380px;
  max-width:100vw;
  background:var(--bg-card);
  z-index:9999;
  transform:translateX(-100%);
  transition:transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display:flex;
  flex-direction:column;
  box-shadow:var(--shadow-xl);
}
.cart-sidebar.open { transform:translateX(0); }

.cart-header {
  padding:20px 20px 16px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.cart-header h3 { font-size:18px; font-weight:800; display:flex; align-items:center; gap:8px; }
.cart-close {
  width:36px;height:36px;
  border-radius:50%;
  border:none;
  background:var(--bg);
  cursor:pointer;
  font-size:16px;
  display:flex;align-items:center;justify-content:center;
  transition:var(--transition);
  color:var(--text);
}
.cart-close:hover { background:var(--danger); color:#fff; }

.cart-items {
  flex:1;
  overflow-y:auto;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cart-empty {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  height:100%;
  gap:12px;
  color:var(--text-muted);
}
.cart-empty i { font-size:48px; opacity:0.3; }

.cart-item {
  display:flex;
  gap:12px;
  background:var(--bg);
  border-radius:var(--radius);
  padding:12px;
}
.cart-item-img {
  width:70px;height:70px;
  border-radius:8px;
  object-fit:cover;
  background:#f3f4f6;
  flex-shrink:0;
}
.cart-item-info { flex:1; }
.cart-item-name { font-size:13px; font-weight:600; margin-bottom:4px; }
.cart-item-price { color:var(--primary); font-weight:700; font-size:14px; }
.cart-item-qty {
  display:flex;align-items:center;gap:8px;
  margin-top:6px;
}
.qty-btn {
  width:26px;height:26px;
  border-radius:6px;
  border:1px solid var(--border);
  background:var(--bg-card);
  cursor:pointer;
  font-size:14px;
  display:flex;align-items:center;justify-content:center;
  transition:var(--transition);
  color:var(--text);
}
.qty-btn:hover { background:var(--primary); color:#fff; border-color:var(--primary); }
.qty-val { font-size:14px; font-weight:700; min-width:20px; text-align:center; }
.cart-item-remove {
  background:none;border:none;cursor:pointer;
  color:var(--text-muted);font-size:14px;
  padding:4px;align-self:flex-start;
  transition:var(--transition);
}
.cart-item-remove:hover { color:var(--danger); }

.cart-footer {
  padding:20px;
  border-top:1px solid var(--border);
}
.cart-subtotal {
  display:flex;justify-content:space-between;
  font-size:15px;font-weight:600;
  margin-bottom:6px;
}
.cart-total {
  display:flex;justify-content:space-between;
  font-size:18px;font-weight:800;
  color:var(--primary);
  margin-bottom:16px;
}
.btn-checkout {
  width:100%;
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  color:#fff;
  border:none;
  border-radius:12px;
  padding:14px;
  font-family:'Tajawal',sans-serif;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin-bottom:10px;
}
.btn-checkout:hover {
  box-shadow:0 6px 20px var(--primary-glow);
  transform:translateY(-1px);
}
.btn-wa-checkout {
  width:100%;
  background:#2563eb;
  color:#fff;
  border:none;
  border-radius:12px;
  padding:13px;
  font-family:'Tajawal',sans-serif;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.btn-wa-checkout:hover { background:#1d4ed8; }

/* ============ FLOATING BUTTONS ============ */
.float-btns {
  position:fixed;
  bottom:90px;
  left:20px;
  z-index:997;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.float-btn {
  width:52px;height:52px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  cursor:pointer;
  border:none;
  transition:var(--transition);
  box-shadow:var(--shadow-lg);
  text-decoration:none;
}
.float-wa {
  background:#25d366;
  color:#fff;
  animation:float-pulse 2s ease-in-out infinite;
}
@keyframes float-pulse {
  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)}
}
.float-top {
  background:var(--primary);
  color:#fff;
  opacity:0;
  transform:scale(0.8);
  transition:var(--transition);
}
.float-top.visible { opacity:1; transform:scale(1); }
.float-btn:hover { transform:scale(1.1) translateY(-2px); }
.float-wa:hover { background:#128c7e; }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  display:none;
  position:fixed;
  bottom:0;left:0;right:0;
  z-index:990;
  background:rgba(255,255,255,0.97);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-top:1px solid var(--border);
  padding:8px 0 env(safe-area-inset-bottom);
  box-shadow:0 -4px 20px rgba(0,0,0,0.1);
}

.bottom-nav-inner {
  display:flex;
  justify-content:space-around;
  align-items:center;
}
.bottom-nav-item {
  display:flex;flex-direction:column;align-items:center;gap:3px;
  cursor:pointer;
  color:var(--text-muted);
  transition:var(--transition);
  font-size:11px;
  font-weight:500;
  padding:4px 12px;
  border-radius:12px;
  text-decoration:none;
  flex:1;
  justify-content:center;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
  color:var(--primary);
}
.bottom-nav-item i { font-size:20px; }
.bottom-nav-item.active i {
  transform:scale(1.15);
}
.cart-nav-badge {
  position:relative;
}
.cart-nav-badge::after {
  content:attr(data-count);
  position:absolute;
  top:-6px;right:-8px;
  background:var(--danger);
  color:#fff;
  font-size:9px;
  font-weight:700;
  width:16px;height:16px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}

/* ============ FOOTER ============ */
.site-footer {
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
  color:#e2e8f0;
  padding:60px 0 0;
  margin-top:60px;
}
.footer-inner {
  max-width:1280px;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
}
.footer-brand .logo { color:#fff; font-size:26px; margin-bottom:16px; }
.footer-brand .logo-icon { background:linear-gradient(135deg,var(--primary),var(--primary-light)); }
.footer-desc { font-size:14px; color:#94a3b8; line-height:1.7; margin-bottom:20px; }
.footer-socials { display:flex; gap:10px; }
.social-btn {
  width:40px;height:40px;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:17px;
  transition:var(--transition);
  text-decoration:none;
}
.social-ig { background:linear-gradient(135deg,#833ab4,#e1306c,#fd1d1d); color:#fff; }
.social-wa { background:linear-gradient(135deg,#2563eb,#1d4ed8); color:#fff; }
.social-tw { background:#1da1f2; color:#fff; }
.social-btn:hover { transform:translateY(-3px) scale(1.08); box-shadow:var(--shadow); }

.footer-col h4 {
  font-size:14px;
  font-weight:700;
  color:#fff;
  margin-bottom:16px;
  padding-bottom:8px;
  border-bottom:2px solid var(--primary);
  display:inline-block;
}
.footer-links { list-style:none; display:flex; flex-direction:column; gap:10px; }
.footer-links li a {
  font-size:13px;
  color:#94a3b8;
  transition:var(--transition);
  display:flex;align-items:center;gap:6px;
}
.footer-links li a:hover { color:var(--primary-light); padding-right:4px; }

.footer-contact { list-style:none; display:flex; flex-direction:column; gap:12px; }
.footer-contact li {
  display:flex;align-items:center;gap:10px;
  font-size:13px;color:#94a3b8;
}
.footer-contact li i { color:var(--primary-light); font-size:15px; flex-shrink:0; }

.footer-bottom {
  max-width:1280px;
  margin:40px auto 0;
  padding:20px;
  border-top:1px solid rgba(255,255,255,0.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.footer-bottom p { font-size:13px; color:#94a3b8; }
.footer-payments { display:flex; gap:8px; align-items:center; }
.payment-badge {
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.15);
  padding:5px 12px;
  border-radius:6px;
  font-size:12px;
  font-weight:700;
  color:#cbd5e1;
  display:flex;align-items:center;gap:5px;
}

/* ============ TOAST ============ */
.toast-container {
  position:fixed;
  top:80px;right:20px;
  z-index:99999;
  display:flex;flex-direction:column;gap:10px;
  pointer-events:none;
}
.toast {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 18px;
  display:flex;align-items:center;gap:12px;
  box-shadow:var(--shadow-lg);
  min-width:280px;
  pointer-events:all;
  animation:toast-in 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
  font-size:14px;font-weight:500;
}
@keyframes toast-in {
  from{transform:translateX(120%);opacity:0}
  to{transform:translateX(0);opacity:1}
}
.toast.out { animation:toast-out 0.3s ease forwards; }
@keyframes toast-out {
  to{transform:translateX(120%);opacity:0}
}
.toast i { font-size:20px; }
.toast.success i { color:var(--secondary); }
.toast.info i { color:var(--primary); }
.toast.warning i { color:var(--warning); }

/* ============ PWA INSTALL ============ */
.pwa-banner {
  position:fixed;
  bottom:70px;
  left:50%;transform:translateX(-50%);
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:16px 20px;
  box-shadow:var(--shadow-xl);
  z-index:9995;
  display:flex;align-items:center;gap:14px;
  max-width:360px;
  width:calc(100% - 40px);
  animation:slide-up 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
  display:none;
}
.pwa-banner.show { display:flex; }
@keyframes slide-up {
  from{transform:translate(-50%,100px);opacity:0}
  to{transform:translate(-50%,0);opacity:1}
}
.pwa-icon {
  width:48px;height:48px;
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:22px;flex-shrink:0;
}
.pwa-text { flex:1; }
.pwa-text strong { display:block; font-size:14px; margin-bottom:2px; }
.pwa-text span { font-size:12px; color:var(--text-muted); }
.pwa-btns { display:flex; gap:8px; }
.btn-pwa-install {
  background:var(--primary);
  color:#fff;
  border:none;
  border-radius:8px;
  padding:7px 14px;
  font-family:'Tajawal',sans-serif;
  font-size:13px;font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:var(--transition);
}
.btn-pwa-install:hover { background:var(--primary-dark); }
.btn-pwa-dismiss {
  background:var(--bg);
  color:var(--text-muted);
  border:1px solid var(--border);
  border-radius:8px;
  padding:7px 10px;
  font-family:'Tajawal',sans-serif;
  font-size:13px;
  cursor:pointer;
  transition:var(--transition);
}

/* ============ UTILITIES ============ */
.container { max-width:1280px; margin:0 auto; padding:0 20px; }
.text-primary { color:var(--primary); }
.text-muted { color:var(--text-muted); }
.fw-bold { font-weight:700; }
.d-flex { display:flex; }
.gap-2 { gap:8px; }
.mt-1 { margin-top:4px; }

/* ============ RESPONSIVE ============ */
@media (max-width:1024px) {
  .products-grid { grid-template-columns:repeat(3,1fr); }
  .cats-grid { grid-template-columns:repeat(4,1fr); }
  .footer-inner { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .trust-bar { grid-template-columns:repeat(2,1fr); }
  .products-grid { grid-template-columns:repeat(2,1fr); }
  .cats-grid { grid-template-columns:repeat(3,1fr); }
  .promo-grid { grid-template-columns:1fr; }
  .slide-title { font-size:30px; }
  .slide-content { padding:24px; }
  .bottom-nav { display:block; }
  .float-btns { bottom:75px; }
  body { padding-bottom:65px; }
  .footer-inner { grid-template-columns:1fr 1fr; gap:24px; }
  .header-inner { height:60px; gap:10px; }
  .logo span { display:none; }
  .main-nav { display:none; }
  .cart-sidebar { width:100%; }
}
@media (max-width:480px) {
  .products-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
  .cats-grid { grid-template-columns:repeat(3,1fr); }
  .trust-bar { grid-template-columns:repeat(2,1fr); gap:8px; }
  .hero-slider { margin:0 12px 16px; border-radius:var(--radius); }
  .slide-placeholder { height:260px; }
  .slide-img { height:260px; }
  .slide-title { font-size:24px; }
  .footer-inner { grid-template-columns:1fr; }
}


