/* ============================================================
   SmartLife – Global Stylesheet
   Font: Poppins | Brand: #FF6300 orange + #2B2C2E charcoal (the logo colours)
   ============================================================ */

/* Poppins is self-hosted (public/fonts/poppins, latin + latin-ext): no extra connection to Google
   before the first text can show. Cairo (Arabic pages only) still comes from Google Fonts. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins/poppins-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins/poppins-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins/poppins-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins/poppins-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins/poppins-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins/poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins/poppins-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins/poppins-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins/poppins-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/poppins/poppins-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/poppins/poppins-900-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/poppins/poppins-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- CSS Variables ---------- */
:root {
  --brand:       #FF6300;   /* logo orange */
  --brand-dark:  #2B2C2E;   /* charcoal: hover of orange buttons, footer, dark headings */
  --brand-light: #FF8A3D;
  --accent:      #FF8A3D;   /* highlights on dark backgrounds */
  --ink:         #2B2C2E;   /* logo gray, darkened for backgrounds */
  --ink-soft:    #45464A;
  --hero-glow:   radial-gradient(circle at 88% 15%, rgba(255,99,0,.38), transparent 45%);
  --accent2:     #ff3b5c;
  --white:       #ffffff;
  --light:       #FFF4EC;
  --gray:        #6b7280;
  --text:        #222325;
  --text-light:  #666666;
  --border:      #ECEAE8;
  --card-bg:     #ffffff;
  --card-shadow: 0 4px 32px rgba(43,44,46,0.10);
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  all 0.25s cubic-bezier(.4,0,.2,1);
  --bg-light:    #F6F6F7;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: #f8f8f8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }
input, textarea, select { font-family: 'Poppins', sans-serif; }

/* ---------- Utility ---------- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 90px 24px; }
.section-sm{ padding: 60px 24px; }
.text-center{ text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }

/* ---------- Section Header ---------- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--light); color: var(--brand);
  padding: 5px 16px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; color: var(--text); line-height: 1.2;
}
.section-header p {
  color: var(--gray); margin-top: 12px;
  max-width: 540px; margin-left: auto; margin-right: auto;
  line-height: 1.8; font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.92rem;
  border: none; transition: var(--transition);
  cursor: pointer; letter-spacing: 0.2px;
}
.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 4px 20px rgba(255,99,0,0.30);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(43,44,46,0.35); }
.btn-outline {
  background: transparent; color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
.btn-white {
  background: #fff; color: var(--brand);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Promo Banner ---------- */
.promo-banner {
  background: var(--ink);
  color: #fff; text-align: center; padding: 10px 24px;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.3px;
  transition: var(--transition);
}
.promo-banner strong { color: var(--accent); font-weight: 700; }
/* phones: no announcement bar (owner's choice) — the topbar height is re-measured in main.js */
@media (max-width: 600px) { .promo-banner { display: none; } }

/* ============================================================
   TOPBAR (promo-banner + navbar wrapped together)
   Fixed as ONE unit so the navbar never has to guess the promo
   banner's height — fixes navbar overlap/disappearing when the
   banner text wraps to 2 lines on narrow screens.
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
}
/* The announcement bar stays on top together with the navbar while scrolling */
.topbar.scrolled .navbar {
  box-shadow: 0 4px 30px rgba(43,44,46,0.12);
}

.navbar {
  position: relative; z-index: 1000;
  /* solid white: a backdrop blur on the fixed header was redrawn on every scroll frame (janky scrolling) */
  background: #fff;
  border-bottom: 1.5px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 68px; padding: 0 24px;
  max-width: 1400px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; display: block; object-fit: contain; }
.nav-logo .logo-fallback {
  font-size: 1.5rem; font-weight: 900; color: var(--brand);
  letter-spacing: -0.5px;
}

/* Primary nav links */
.nav-links {
  display: flex; align-items: center; gap: 2px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  transition: var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--brand); background: var(--light); }
.nav-links > li > a i.chevron { font-size: 0.65rem; transition: transform 0.2s; }
.nav-links > li:hover > a i.chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 50px rgba(43,44,46,0.15);
  border: 1.5px solid var(--border);
  min-width: 260px; padding: 10px;
  opacity: 0; pointer-events: none;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  z-index: 200;
}
.nav-links > li:hover .dropdown,
.nav-links > li.dd-open .dropdown,
.nav-links > li:has(:focus-visible) .dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
/* invisible bridge over the 8px gap, so moving the mouse down doesn't lose the hover */
.dropdown::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-links > li.dd-open > a i.chevron { transform: rotate(180deg); }
.dropdown-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 0.87rem; font-weight: 500; color: var(--text);
  transition: var(--transition);
}
.dropdown-item:hover { background: var(--light); color: var(--brand); }
.dropdown-item .dd-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
  transition: var(--transition);
}
.dropdown-item:hover .dd-icon { background: var(--brand); color: #fff; }
.dropdown-item .dd-text small { display: block; color: var(--gray); font-size: 0.75rem; font-weight: 400; margin-top: 1px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Nav Right */
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-icon-btn {
  position: relative; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--light); border-radius: 10px;
  cursor: pointer; color: var(--brand); font-size: 1.05rem;
  transition: var(--transition); text-decoration: none;
}
.nav-icon-btn:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.nav-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent2); color: #fff;
  font-size: 0.58rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff; pointer-events: none;
}
.btn-nav-signin {
  padding: 9px 20px; background: var(--brand); color: #fff;
  border: none; border-radius: 10px; font-weight: 700;
  cursor: pointer; font-size: 0.85rem; letter-spacing: 0.3px;
  transition: var(--transition);
}
.btn-nav-signin:hover { background: var(--brand-dark); transform: translateY(-2px); }
a.btn-nav-signin { display: inline-flex; align-items: center; gap: 8px; }

/* Signed-in user menu */
.nav-user { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 5px;
  background: var(--light); border: none; border-radius: 50px; cursor: pointer;
  color: var(--text); font-weight: 600; font-size: .85rem; transition: var(--transition);
}
[dir="rtl"] .nav-user-btn { padding: 0 5px 0 12px; }
.nav-user-btn:hover, .nav-user.open .nav-user-btn { background: #e2e5f8; }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; font-weight: 800; font-size: .85rem;
}
.nav-user-btn .chevron { font-size: .6rem; color: var(--gray); transition: transform .2s; }
.nav-user.open .nav-user-btn .chevron { transform: rotate(180deg); }
.nav-user-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 250px;
  background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(30,31,33,.18);
  border: 1.5px solid var(--border); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: var(--transition); z-index: 200;
}
.nav-user.open .nav-user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.num-head { padding: 10px 12px 12px; margin-bottom: 6px; border-bottom: 1.5px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.num-head strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.num-head small { font-size: .76rem; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-menu a, .num-logout {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px;
  font-size: .87rem; font-weight: 500; color: var(--text); background: none; border: none; cursor: pointer; text-align: start;
}
.nav-user-menu a i, .num-logout i { width: 18px; text-align: center; color: var(--brand); }
.nav-user-menu a:hover { background: var(--light); color: var(--brand); }
.num-logout { color: #dc2626; margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; }
.num-logout i { color: #dc2626; }
.num-logout:hover { background: #fef2f2; }
/* staff-only shortcut into the admin panel */
.btn-nav-admin {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; background: #111827; color: #fff;
  border-radius: 10px; font-weight: 700; font-size: 0.8rem;
  text-decoration: none; transition: var(--transition);
}
.btn-nav-admin:hover { background: #000; transform: translateY(-2px); }
.btn-nav-admin i { color: #818cf8; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { width: 24px; height: 2.5px; background: var(--brand); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 999;
  padding: 90px 24px 40px;
  overflow-y: auto; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  font-size: 1rem; font-weight: 600; color: var(--text);
  transition: var(--transition); margin-bottom: 2px;
}
.mobile-menu a:hover { background: var(--light); color: var(--brand); }
/* Sign out (a <button> inside a logout form) looks like the other menu rows */
.mobile-menu button:not(.hamburger) {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 14px 16px; border-radius: 12px; border: 0; background: none; text-align: start;
  font-size: 1rem; font-weight: 600; color: #dc2626; cursor: pointer; transition: var(--transition);
}
.mobile-menu button:not(.hamburger):hover { background: #fef2f2; }
.mobile-menu .mobile-divider { height: 1px; background: var(--border); margin: 10px 0; }
.mobile-menu .mobile-sub { padding-left: 16px; }
.mobile-menu .mobile-sub a { font-size: 0.9rem; color: var(--gray); padding: 10px 16px; }

/* ============================================================
   OVERLAY & SIDEBARS
   ============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(15,15,40,0.55);
  z-index: 1500; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed; top: 0; right: -460px;
  width: 420px; max-width: 100vw; height: 100vh;
  background: #fff; z-index: 1600;
  transition: right 0.38s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(43,44,46,0.12);
}
.sidebar.open { right: 0; }
.sidebar-header {
  padding: 22px 24px; border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.sidebar-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.close-btn {
  width: 36px; height: 36px; background: var(--light);
  border: none; border-radius: 8px; cursor: pointer;
  font-size: 0.95rem; color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-btn:hover { background: var(--brand); color: #fff; }
.sidebar-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.sidebar-empty {
  text-align: center; padding: 60px 20px; color: var(--gray);
}
.sidebar-empty .empty-icon {
  font-size: 4rem; margin-bottom: 14px; opacity: 0.25; display: block;
}
.sidebar-empty h4 { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.sidebar-empty p { font-size: 0.88rem; }
.sidebar-footer { padding: 20px 24px; border-top: 1.5px solid var(--border); flex-shrink: 0; }

/* Cart Items */
.cart-item {
  display: flex; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 68px; height: 68px; background: var(--light);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 2rem; flex-shrink: 0;
  overflow: hidden;
}
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-details h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-details .item-price { font-size: 0.95rem; font-weight: 700; color: var(--brand); }
.qty-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.qty-btn {
  width: 28px; height: 28px; background: var(--light);
  border: none; border-radius: 7px; cursor: pointer;
  font-weight: 700; color: var(--brand); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--brand); color: #fff; }
.qty-num { font-weight: 700; font-size: 0.9rem; min-width: 22px; text-align: center; }
.remove-item-btn {
  background: none; border: none; color: var(--gray);
  cursor: pointer; font-size: 0.82rem; margin-left: auto;
  align-self: flex-start; padding: 4px;
  transition: var(--transition);
}
.remove-item-btn:hover { color: var(--accent2); }

/* Cart Footer */
.cart-subtotal { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--gray); margin-bottom: 8px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 1rem; padding-top: 10px; border-top: 1.5px solid var(--border); margin-bottom: 16px; }
.cart-total .total-price { font-size: 1.3rem; color: var(--brand); font-weight: 800; }
.checkout-btn {
  width: 100%; padding: 14px; background: var(--brand); color: #fff;
  border: none; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.checkout-btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(43,44,46,0.3); }

/* Wishlist Items */
.wishlist-item {
  display: flex; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.wishlist-item:last-child { border-bottom: none; }
.wishlist-item-img { width: 68px; height: 68px; background: var(--light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; flex-shrink: 0; }
.wishlist-item-details { flex: 1; }
.wishlist-item-details h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; }
.wishlist-item-details .item-price { font-size: 0.95rem; font-weight: 700; color: var(--brand); }
.wishlist-actions { display: flex; gap: 8px; margin-top: 10px; }
.wishlist-actions .btn-atc { padding: 7px 14px; font-size: 0.78rem; }
.wishlist-actions .btn-rm { width: 32px; height: 32px; background: #fff5f7; color: var(--accent2); border: none; border-radius: 8px; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.wishlist-actions .btn-rm:hover { background: var(--accent2); color: #fff; }

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: all; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,15,40,0.6); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; background: #fff;
  border-radius: 24px; width: 100%; max-width: 440px;
  padding: 40px; z-index: 1;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s;
  max-height: 90vh; overflow-y: auto;
}
.modal.open .modal-box { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; background: var(--light);
  border: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--gray); transition: var(--transition);
}
.modal-close:hover { background: var(--brand); color: #fff; }
.modal-logo { text-align: center; margin-bottom: 6px; }
.modal-logo img { height: 40px; margin: 0 auto; }
.modal-box h2 { text-align: center; font-size: 1.6rem; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.modal-box > p { text-align: center; color: var(--gray); font-size: 0.88rem; margin-bottom: 24px; }
.auth-tabs { display: flex; background: var(--light); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 9px; text-align: center;
  border: none; background: transparent; border-radius: 10px;
  font-weight: 700; cursor: pointer; transition: var(--transition);
  font-size: 0.9rem; color: var(--gray);
}
.auth-tab.active { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(255,99,0,0.28); }
.social-auth { display: flex; gap: 10px; margin-bottom: 20px; }
.social-auth-btn {
  flex: 1; padding: 11px; border: 1.5px solid var(--border);
  border-radius: 10px; background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.85rem; transition: var(--transition); color: var(--text);
}
.social-auth-btn:hover { border-color: var(--brand); background: var(--light); }
.or-divider {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; color: var(--gray); font-size: 0.82rem; font-weight: 500;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 0.82rem; margin-bottom: 7px; color: var(--text); }
.form-group input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 0.9rem; transition: var(--transition); outline: none;
  color: var(--text); background: #FAFAFA;
}
.form-group input:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(255,99,0,0.14); }
.forgot-link { text-align: right; margin-top: -6px; margin-bottom: 16px; }
.forgot-link a { color: var(--brand); font-size: 0.82rem; font-weight: 600; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--gray); }
.auth-switch a { color: var(--brand); font-weight: 700; cursor: pointer; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--brand-dark); color: #fff;
  padding: 14px 20px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  max-width: 320px; border-left: 4px solid var(--accent);
  animation: toastIn 0.3s ease;
}
.toast.success { border-left-color: #00b894; }
.toast.error   { border-left-color: var(--accent2); }
.toast.info    { border-left-color: var(--accent); }
@keyframes toastIn { from { transform: translateX(120px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 28px; left: 28px;
  width: 46px; height: 46px; background: var(--brand); color: #fff;
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: var(--transition); z-index: 999;
  box-shadow: 0 4px 20px rgba(255,99,0,0.35);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.scroll-top:hover { background: var(--brand-dark); transform: translateY(-4px); }

/* ============================================================
   PRODUCT CARD (shared across pages)
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card {
  background: var(--card-bg); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--card-shadow);
  transition: var(--transition); position: relative;
  border: 1.5px solid transparent;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 16px 50px rgba(43,44,46,0.16); border-color: var(--border); }
.product-badge {
  position: absolute; top: 12px; left: 12px;
  color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; z-index: 2;
  letter-spacing: 0.4px; text-transform: uppercase;
}
.badge-hot  { background: #ff6b35; }
.badge-new  { background: #00b894; }
.badge-sale { background: var(--accent2); }
.badge-best { background: var(--brand); }
.product-img-wrap {
  background: var(--light); height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; position: relative; overflow: hidden;
}
.product-img-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* Product photos are packshots on white: contain + multiply so the white melts into the card */
.product-img-link img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; transition: transform .35s ease; }
.product-card:hover .product-img-link img { transform: scale(1.06); }
.wishlist-form { position: absolute; top: 10px; right: 10px; margin: 0; }
.product-wishlist-btn {
  position: static; /* positioning now comes from .wishlist-form wrapper */
  width: 36px; height: 36px; background: #fff;
  border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  color: var(--gray); font-size: 0.9rem; transition: var(--transition);
}
.product-wishlist-btn:hover,
.product-wishlist-btn.active { color: var(--accent2); transform: scale(1.12); }
.product-info { padding: 18px; }
.product-cat { font-size: 0.72rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: inline-block; }
.product-cat:hover { color: var(--brand); text-decoration: underline; }
.product-info h3 { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; line-height: 1.45; }
.product-stars { display: flex; align-items: center; gap: 3px; margin-bottom: 10px; }
.product-stars .stars { color: #f59e0b; font-size: 0.78rem; }
.product-stars span { color: var(--gray); font-size: 0.78rem; font-weight: 500; margin-left: 2px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.product-price .old { font-size: 0.78rem; color: var(--gray); text-decoration: line-through; }
.product-price .new { font-size: 1.15rem; font-weight: 800; color: var(--brand); }
.add-to-cart-btn {
  width: 38px; height: 38px; background: var(--brand); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-size: 0.95rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.add-to-cart-btn:hover { background: var(--brand-dark); transform: scale(1.1); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--brand-dark); color: rgba(255,255,255,0.75); padding: 0 24px 30px; }

/* Newsletter band at the top of the footer */
.footer-newsletter { background: linear-gradient(90deg, #232426, #3A3B3E); border-bottom: 1px solid rgba(255,255,255,0.1); padding: 40px 24px; }
.footer-newsletter-inner { max-width: 1300px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-newsletter-inner h3 { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.footer-newsletter-inner p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-newsletter-form input {
  padding: 12px 18px; border-radius: 50px; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; min-width: 260px; font-size: 0.9rem;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter-form input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,0.14); }
.footer-newsletter-form .btn { border-radius: 50px; padding: 12px 28px; white-space: nowrap; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin: 50px auto; padding-top: 20px; max-width: 1300px; margin-left: auto; margin-right: auto; }
/* logo-white.png is a pre-made white version — no CSS filter needed */
.footer-brand-logo img { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.footer-brand-logo .logo-fallback { font-size: 1.5rem; font-weight: 900; color: #fff; }
.footer-about p { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; background: rgba(255,255,255,0.08);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: var(--transition); font-size: 0.88rem;
}
.social-btn:hover { background: var(--accent); color: var(--brand-dark); transform: translateY(-3px); }
.footer-col h4 { font-size: 0.92rem; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: 0.3px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 0.87rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px; max-width: 1300px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px; font-size: 0.83rem; color: rgba(255,255,255,0.35);
}
.payment-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-icon { background: rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 10px; font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.6); }

/* ============================================================
   PAGE TOP PADDING (for fixed nav)
   ============================================================ */
.page-top { padding-top: var(--topbar-height, 104px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .btn-nav-signin, a.btn-nav-signin, .btn-nav-admin { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .footer-newsletter-form { justify-content: center; }
  .footer-newsletter-form input { min-width: 0; flex: 1; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
  .section { padding: 60px 20px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .sidebar { width: 100vw; }
  .toast-container { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: 100%; }
}

/* Phones: less side padding so product cards get the width (section 24px + container 24px
   left the cards thin), and a compact footer (owner's request). */
@media (max-width: 600px) {
  .section { padding: 44px 0; }
  .section-sm { padding: 36px 0; }
  .container { padding: 0 14px; }

  .footer { padding: 0 16px 18px; }
  .footer-newsletter { padding: 22px 16px; margin: 0 -16px; }
  .footer-newsletter-inner { gap: 12px; }
  .footer-newsletter-inner h3 { font-size: 1.02rem; margin-bottom: 2px; }
  .footer-newsletter-inner p { font-size: .78rem; }
  .footer-newsletter-form { flex-wrap: nowrap; gap: 8px; }
  .footer-newsletter-form input { padding: 10px 14px; font-size: .82rem; }
  .footer-newsletter-form .btn { padding: 10px 16px; font-size: .82rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; margin: 26px auto 22px; padding-top: 0; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-brand-logo img { height: 30px; margin-bottom: 10px; }
  .footer-about p { font-size: .78rem; line-height: 1.6; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .social-btn { width: 32px; height: 32px; font-size: .8rem; border-radius: 8px; }
  .footer .footer-contact { margin-top: 12px; }
  .footer .footer-contact p { font-size: .76rem; margin-bottom: 5px; line-height: 1.45; }
  .footer-col h4 { font-size: .82rem; margin-bottom: 10px; }
  .footer-col ul { gap: 7px; }
  .footer-col ul a { font-size: .78rem; }
  .footer-bottom-bar { padding-top: 14px; justify-content: center; text-align: center; font-size: .72rem; gap: 8px; }
  .payment-icons { justify-content: center; gap: 6px; }
  .pay-icon { font-size: .66rem; padding: 3px 8px; }
}

/* Order Now button under each product card */
.order-now-form { margin-top: 10px; }
.order-now-btn { padding: 10px 0; font-size: 0.9rem; }

/* Dynamic shop contact info in footer (config/shop.php) */
.footer-contact { margin-top: 18px; }
.footer-contact p { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 8px; }
.footer-contact p i { color: var(--accent); margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--accent); }

/* Language dropdown (English default, click to reveal Arabic option) */
.lang-dropdown { position: relative; }
.lang-dropdown-toggle {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1.5px solid var(--border); border-radius: 50px;
  padding: 8px 14px; font-size: 0.82rem; font-weight: 600; color: var(--text-light, #555);
  cursor: pointer; font-family: inherit; transition: var(--transition, 0.2s);
}
.lang-dropdown-toggle:hover { border-color: var(--brand); color: var(--brand); }
.lang-dropdown-toggle i.fa-globe { color: var(--brand); font-size: 0.85rem; }
.lang-dropdown-toggle .chevron { font-size: 0.65rem; transition: transform 0.2s; }
.lang-dropdown.open .chevron { transform: rotate(180deg); }

.lang-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border: 1.5px solid var(--border); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: var(--transition, 0.2s); z-index: 200;
}
.lang-dropdown.open .lang-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; font-weight: 500;
  color: var(--text); transition: var(--transition, 0.2s);
}
.lang-option:hover { background: var(--bg-light, #f4f5f9); }
.lang-option.active { color: var(--brand); font-weight: 700; }
.lang-option i { color: var(--brand); font-size: 0.8rem; }

@media (max-width: 768px) {
  .lang-dropdown { display: none; } /* shown instead inside the mobile menu */
}

.mobile-lang-switcher { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.mobile-lang-switcher i { color: var(--text-light, #999); }
.mobile-lang-switcher a { font-weight: 600; }
.mobile-lang-switcher a.active { color: var(--brand, #FF6300); }

/* ============================================================
   PROMO POPUP — content, image, timing and "once per visit" are all
   set in Admin -> CMS -> Popup (main.js reads the data-* attributes).
   Fixed + flex-centered so it's dead-center on every screen size.
   ============================================================ */
.promo-popup-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(15, 18, 50, 0.55);
  backdrop-filter: blur(3px);
  opacity: 1; visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.promo-popup-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.promo-popup-box {
  position: relative;
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 22px; overflow: hidden;
  text-align: center;
  box-shadow: 0 30px 80px rgba(10, 12, 40, 0.35);
}
.promo-popup-overlay:not(.hidden) .promo-popup-box { animation: promoPopIn 0.45s cubic-bezier(.2,.9,.3,1.2); }
@keyframes promoPopIn {
  from { transform: scale(0.88) translateY(12px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.promo-popup-media { background: linear-gradient(180deg, #f3f5fc 0%, #ffffff 100%); }
/* contain (not cover) so product shots are never cropped; multiply melts a white photo background */
.promo-popup-media img { display: block; width: 100%; height: 220px; object-fit: contain; padding: 18px 18px 0; mix-blend-mode: multiply; }
.promo-popup-body { padding: 30px 30px 28px; }
.promo-popup-box.has-image .promo-popup-body { padding-top: 22px; }

.promo-popup-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center; font-size: 2rem;
  background: linear-gradient(135deg, #fff4ec, #ffe4d2);
}
.promo-popup-box h3 { font-size: 1.35rem; font-weight: 800; line-height: 1.3; margin-bottom: 10px; color: var(--brand-dark, #2B2C2E); }
.promo-popup-message { font-size: 0.95rem; line-height: 1.65; color: var(--gray, #6b7280); margin-bottom: 18px; }

/* Tap-to-copy coupon */
.promo-popup-code {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-bottom: 14px; padding: 12px 16px;
  border: 2px dashed var(--brand); border-radius: 12px;
  background: #fff8f3; color: var(--brand-dark, #2B2C2E);
  font: inherit; cursor: pointer; transition: background .2s;
}
.promo-popup-code:hover { background: #fff0e5; }
.promo-popup-code span { font-size: .8rem; color: var(--gray, #6b7280); }
.promo-popup-code strong { font-size: 1.15rem; letter-spacing: 2px; color: var(--brand); direction: ltr; }
.promo-popup-code i { color: var(--gray, #6b7280); }

.promo-popup-close {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  color: #444; cursor: pointer; transition: transform .2s, background .2s;
}
.promo-popup-close:hover { background: #fff; transform: rotate(90deg); }

@media (max-width: 420px) {
  .promo-popup-box { border-radius: 18px; }
  .promo-popup-body { padding: 24px 20px 22px; }
  .promo-popup-box h3 { font-size: 1.18rem; }
  .promo-popup-media img { height: 180px; }
}

/* ============================================================
   Search — nav dropdown search + products page search box
   ============================================================ */
.nav-search-bar {
  max-height: 0; overflow: hidden;
  background: #fff; border-bottom: 1.5px solid var(--border);
  transition: max-height 0.25s ease;
}
.nav-search-bar.open { max-height: 90px; }
.nav-search-form { max-width: 1300px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 12px; }
.nav-search-form i.fa-magnifying-glass { color: var(--text-light, #999); }
.nav-search-form input {
  flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit;
  background: transparent; color: var(--text);
}
.nav-search-form button[type="submit"] {
  background: var(--brand); color: #fff; border: none; border-radius: 8px;
  padding: 10px 20px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
}
.nav-search-close { background: none; border: none; color: var(--text-light, #999); cursor: pointer; font-size: 1.1rem; padding: 4px; }

/* Search box on the Products page hero */
.product-search-form {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px; padding: 6px 6px 6px 20px; max-width: 560px; margin-top: 24px;
  backdrop-filter: blur(6px);
}
.product-search-form i { color: rgba(255,255,255,0.8); }
.product-search-form input {
  flex: 1; border: none; outline: none; background: transparent;
  color: #fff; font-size: 0.95rem; font-family: inherit;
}
.product-search-form input::placeholder { color: rgba(255,255,255,0.65); }
.product-search-form button {
  background: #fff; color: var(--brand); border: none; border-radius: 50px;
  padding: 10px 24px; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  transition: var(--transition, 0.2s);
}
.product-search-form button:hover { background: var(--accent); color: #fff; }

.active-search-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-light, #f4f5f9); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 8px 18px; font-size: 0.85rem; margin-bottom: 20px;
}
.active-search-pill a { color: var(--text-light, #999); }
.active-search-pill a:hover { color: #e74c3c; }

@media (max-width: 600px) {
  /* input + button stay on one line (wrapping turned the pill into an oval) */
  .product-search-form { gap: 8px; padding: 5px 5px 5px 14px; }
  .product-search-form input { min-width: 0; font-size: .9rem; }
  .product-search-form button { flex: none; padding: 10px 16px; }
}

/* Breadcrumbs on every page hero: long product names wrap onto their own line
   instead of squeezing each crumb into a narrow column on phones */
.breadcrumb { flex-wrap: wrap; row-gap: 4px; }
.breadcrumb > * { flex-shrink: 0; }
.breadcrumb > :last-child { flex-shrink: 1; min-width: 0; }


/* ── Shared bits used by Blade views (alerts, field errors, pagination,
      product detail) that had no styles before ───────────────────────── */
.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; font-size: 0.9rem; }
.alert ul { margin: 0; padding-inline-start: 18px; }
.alert-success { background: #e8f8f3; color: #0f7a5c; border: 1.5px solid #b6ead9; }
.alert-error { background: #fff1f3; color: #c0243f; border: 1.5px solid #ffc9d2; }
.form-group .error { display: block; color: var(--accent2); font-size: 0.78rem; margin-top: 5px; }

.form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 0.9rem; background: #FAFAFA; outline: none;
}
.form-group select:focus, .form-group textarea:focus { border-color: var(--brand); background: #fff; }

.pagination-wrap { margin-top: 36px; display: flex; justify-content: center; }
/* ── Smoother scrolling ──
   Product photos use mix-blend-mode (white background melts into the card). "isolation" keeps that
   blend inside the photo box instead of the whole page, so scrolling repaints far less. Same look. */
.product-img-wrap, .product-detail-img, .pd-main-img, .pd-thumb { isolation: isolate; }
/* Home: category rows below the screen aren't laid out / painted until you scroll near them */
.category-row { content-visibility: auto; contain-intrinsic-size: auto 460px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Phones: every product grid (Products, wishlist, related, home rows) shows 2 equal cards per row ── */
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { height: 100%; }
  .product-card:hover { transform: none; } /* no jump on tap */
  .product-info { padding: 12px; }
  .product-meta .product-sku { display: none; } /* keeps every card the same height */
  .product-meta .product-cat { font-size: .64rem; letter-spacing: .5px; }
  .product-info .product-title { font-size: .84rem; line-height: 1.4; min-height: 2.8em; margin-bottom: 8px; }
  .product-price .old { font-size: .7rem; }
  .product-price .new { font-size: .98rem; }
  .product-footer { padding-top: 10px; gap: 6px; }
  .add-to-cart-btn { width: 34px; height: 34px; flex-shrink: 0; }
  .product-card .order-now-btn { margin-top: 10px; padding: 9px 6px; font-size: .8rem; }
  .product-badge { top: 8px; left: 8px; font-size: .6rem; padding: 3px 8px; }
  .wishlist-form { top: 6px; right: 6px; }
  .product-wishlist-btn { width: 32px; height: 32px; }
  .product-stars { display: none; }
}

/* "Nothing here" box (products search, wishlist, account); also in account.css, here for every page */
.account-empty-state { background: #fff; border: 1.5px dashed var(--border); border-radius: 16px; padding: 44px 24px; text-align: center; }
.account-empty-state i { font-size: 2.2rem; color: #c7cbe6; margin-bottom: 12px; }
.account-empty-state p { color: var(--gray); margin-bottom: 0; font-size: .9rem; }
.products-grid > .account-empty-state { grid-column: 1 / -1; }

/* partials/pagination.blade.php */
.sl-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.pg-btn {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--text);
  font-weight: 600; font-size: .9rem; transition: var(--transition);
}
a.pg-btn:hover { border-color: var(--brand); color: var(--brand); }
.pg-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(255,99,0,.28); }
.pg-btn.disabled { opacity: .4; }
.pg-btn.dots { border: 0; background: none; min-width: 20px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 20px; }
.product-detail-img {
  background: var(--light); border-radius: var(--radius); min-height: 380px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-detail-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; mix-blend-mode: multiply; }
.product-detail-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin: 8px 0 14px; }
.product-detail-info .product-price { margin-bottom: 18px; }
.product-detail-info p { color: var(--gray); line-height: 1.75; margin-bottom: 24px; }
@media (max-width: 800px) { .product-detail-grid { grid-template-columns: 1fr; gap: 28px; } }
/* .page-hero's `padding` shorthand (in each page CSS, loaded after this file)
   was wiping out .page-top's padding-top, hiding the breadcrumb/heading under
   the fixed navbar. Two classes = higher specificity, so this always wins. */
.page-hero.page-top { padding-top: calc(var(--topbar-height, 104px) + 40px); }

/* Small phones: smaller logo + icons, and drop the account shortcut (it's in the
   hamburger menu as "My Account") so the hamburger button always fits */
@media (max-width: 540px) {
  .nav-inner { padding: 0 14px; }
  .nav-logo img { height: 28px; }
  .nav-right { gap: 4px; }
  .nav-icon-btn { width: 38px; height: 38px; font-size: .95rem; }
  .nav-account-btn { display: none; }
  .nav-user-btn { height: 38px; padding: 0 3px !important; }
  .nav-avatar { width: 32px; height: 32px; }
  .nav-user-menu { width: min(260px, calc(100vw - 24px)); }
}
@media (max-width: 768px) {
  .nav-user-name, .nav-user-btn .chevron { display: none; }
  .nav-user-btn { padding: 0 5px !important; }
}
/* Tablets / small laptops (769–1100px): full nav still shows, so tighten it to fit */
@media (min-width: 769px) and (max-width: 1100px) {
  .nav-inner { padding: 0 16px; }
  .nav-logo img { height: 30px; }
  .nav-links > li > a { padding: 8px 8px; font-size: .82rem; }
  .nav-right { gap: 4px; }
  .nav-icon-btn { width: 38px; height: 38px; }
  .btn-nav-signin { padding: 9px 14px; }
  .lang-dropdown-toggle { padding: 8px 10px; }
  .lang-dropdown-toggle span, .nav-user-name, .nav-user-btn .chevron { display: none; }
  .nav-user-btn { padding: 0 5px !important; }
}
/* Very small phones (iPhone SE 1st gen, Galaxy Fold): everything still fits in one row */
@media (max-width: 380px) {
  .nav-inner { padding: 0 10px; }
  .nav-logo img { height: 24px; }
  .nav-right { gap: 3px; }
  .nav-icon-btn, .nav-user-btn { width: 34px; height: 34px; font-size: .88rem; }
  .nav-avatar { width: 28px; height: 28px; font-size: .78rem; }
  .hamburger { padding: 4px 2px; }
}
@media (max-width: 340px) {
  .nav-wish-btn { display: none; } /* still in the hamburger menu */
}
@media (max-width: 300px) {
  .nav-inner { padding: 0 8px; }
  .nav-logo img { height: 20px; }
  .nav-right { gap: 2px; }
}
/* search bar: the input shrinks instead of pushing the ✕ off small screens */
.nav-search-form input { min-width: 0; }
@media (max-width: 540px) {
  .nav-search-form { padding: 12px 14px; gap: 8px; }
  .nav-search-form button[type="submit"] { padding: 9px 14px; }
}

/* ── Uniform product cards: square photo, 2-line title, price + button pinned to the bottom,
      so every card in a row is exactly the same size whatever the product name ── */
/* tablets and up; phones get exactly 2 per row (see the max-width: 640px block above) */
@media (min-width: 641px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
}
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-img-wrap { height: auto; aspect-ratio: 1 / 1; background: #F5F4F3; flex-shrink: 0; }
.product-img-link img { padding: 8px; } /* originals already have white space around them */
.product-info { display: flex; flex-direction: column; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; min-width: 0; }
.product-meta .product-cat { margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-sku { font-size: .66rem; font-weight: 600; letter-spacing: .3px; color: var(--gray); white-space: nowrap; direction: ltr; }
.product-info .product-title {
  font-size: .95rem; line-height: 1.45; min-height: 2.9em; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-title a:hover { color: var(--brand); }
.product-footer { margin-top: auto; }
.product-card .order-now-btn { margin-top: 14px; display: flex; justify-content: center; }
.page-hero-slim { padding-bottom: 26px; }
.req { color: var(--accent2, #ff3b5c); }
/* Galaxy Fold (folded) and other ~280px screens */
@media (max-width: 340px) {
  .checkout-form-panel, .checkout-summary { padding: 20px 16px; }
}

/* Policy pages (Admin -> CMS -> Pages): readable article width */
.policy-content {
  max-width: 820px; margin: 0 auto; background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); line-height: 1.8; color: var(--text);
}
.policy-content h2 { font-size: 1.2rem; font-weight: 800; color: var(--brand); margin: 28px 0 10px; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content h3 { font-size: 1.02rem; font-weight: 700; margin: 20px 0 8px; }
.policy-content p { margin-bottom: 14px; color: #4b4f6b; }
.policy-content ul, .policy-content ol { margin: 0 0 16px; padding-inline-start: 22px; color: #4b4f6b; }
.policy-content li { margin-bottom: 6px; list-style: disc; }
.policy-content ol li { list-style: decimal; }
.policy-content a { color: var(--brand); text-decoration: underline; }
.policy-content strong { color: var(--text); }
.policy-updated { margin-top: 26px !important; font-size: .8rem; color: var(--gray) !important; display: flex; align-items: center; gap: 6px; }
.policy-help {
  max-width: 820px; margin: 22px auto 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--light); border-radius: var(--radius); padding: 18px 22px; font-weight: 600;
}
.policy-help i { color: var(--brand); font-size: 1.3rem; }
.policy-help span { flex: 1; min-width: 180px; }
