/* ===========================
   WEBSYFER – STYLE.CSS
   =========================== */

:root {
  --acc:      #FF6B35;
  --acc2:     #FF3F6C;
  --bg:       #ffffff;
  --bg2:      #f8f8f8;
  --bg3:      #f0f0f0;
  --txt:      #1a1a1a;
  --txt2:     #555555;
  --border:   #e8e8e8;
  --shadow:   0 2px 16px rgba(0,0,0,.08);
  --shadow-h: 0 8px 32px rgba(0,0,0,.15);
  --radius:   12px;
  --radius-s: 8px;
  --hdr-h:    120px;
  --hdr-z:    1000;
  --font:     'Inter', sans-serif;
  --font-ar:  'Tajawal', sans-serif;
  --transition: .25s ease;
  --tr:         .25s ease;
}

body.dark {
  --bg:     #111317;
  --bg2:    #1a1d23;
  --bg3:    #23272f;
  --txt:    #f0f0f0;
  --txt2:   #aaaaaa;
  --border: #2c2c2c;
  --shadow: 0 2px 16px rgba(0,0,0,.4);
}

html[dir="rtl"] { direction: rtl; text-align: right; }
html[dir="rtl"] body { font-family: var(--font-ar); }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--txt); transition: background var(--transition), color var(--transition); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

/* ---- Utilities ---- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.w-full { width: 100%; }

/* ---- Scroll Progress ---- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  transition: width .1s;
}

/* ---- Loader ---- */
.loader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--bg); display: flex;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 24px;
  transition: opacity .5s, visibility .5s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.loader-bar { width: 200px; height: 4px; background: var(--bg3); border-radius: 99px; overflow: hidden; }
.loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  animation: loadFill 1.8s ease forwards;
}
@keyframes loadFill { to { width: 100%; } }

/* ---- Announcement Bar ---- */
.ann-bar {
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  color: white; height: 36px; overflow: hidden;
  display: flex; align-items: center;
}
.ann-track {
  display: flex; gap: 80px; white-space: nowrap;
  animation: annScroll 22s linear infinite;
  font-size: 13px; font-weight: 500;
}
@keyframes annScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ann-track { animation: annScrollRTL 22s linear infinite; }
@keyframes annScrollRTL { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---- HEADER ---- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* Top row */
.header-top {
  display: flex; align-items: center; gap: 20px;
  height: 70px;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; text-decoration: none;
}
.logo-icon { display: flex; flex-shrink: 0; }
.logo-icon svg { display: block; }
.logo-text {
  font-size: 22px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Search */
.search-wrap {
  flex: 1; max-width: 520px; position: relative;
  display: flex; align-items: center;
}
.search-input {
  width: 100%; height: 42px; padding: 0 48px 0 18px;
  border: 2px solid var(--border); border-radius: 99px;
  background: var(--bg2); color: var(--txt); font-size: 14px;
  outline: none; transition: border-color var(--transition);
}
html[dir="rtl"] .search-input { padding: 0 18px 0 48px; }
.search-input:focus { border-color: var(--acc); }
.search-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: white; display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: opacity var(--transition);
}
html[dir="rtl"] .search-btn { right: auto; left: 6px; }
.search-btn:hover { opacity: .85; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 500;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-h);
  overflow: hidden; max-height: 320px; overflow-y: auto; display: none;
}
.search-dropdown.open { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer; font-size: 14px;
  transition: background var(--transition);
}
.search-item:hover { background: var(--bg2); }
.search-item .si-emoji { font-size: 22px; }
.search-item .si-info strong { display: block; font-size: 14px; }
.search-item .si-info span { font-size: 12px; color: var(--acc); }

/* Header Actions */
.header-actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-inline-start: auto;
}

/* Language Switcher */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 600;
}
.lang-btn {
  padding: 4px 8px; border-radius: 6px; font-size: 12px;
  font-weight: 600; color: var(--txt2); transition: all var(--transition);
  background: none; border: none; cursor: pointer;
}
.lang-btn:hover, .lang-btn.active {
  color: var(--acc); background: rgba(255,107,53,.1);
}
.lang-sep { color: var(--border); font-size: 12px; }

/* Icon Buttons */
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--txt); background: var(--bg2);
  border: 1px solid var(--border); position: relative;
  transition: all var(--transition);
}
.icon-btn:hover { color: var(--acc); border-color: var(--acc); background: rgba(255,107,53,.08); }
.badge {
  position: absolute; top: -4px; right: -4px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: white; border-radius: 99px; font-size: 10px;
  font-weight: 700; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg);
}
html[dir="rtl"] .badge { right: auto; left: -4px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  border-radius: var(--radius-s); background: var(--bg2);
  border: 1px solid var(--border); transition: all var(--transition);
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--txt); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Bottom Nav */
.header-nav {
  border-top: 1px solid var(--border); background: var(--bg);
}
.header-nav .container { display: flex; }
.nav-links {
  display: flex; align-items: center;
  justify-content: center;   /* Center links */
  gap: 0; width: 100%; padding: 0;
}
.nav-links li a {
  display: block; padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--txt2);
  transition: color var(--transition); white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-links li a:hover { color: var(--acc); border-bottom-color: var(--acc); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: absolute; top: 100%;
  left: 0; right: 0; background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-h); z-index: 999;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { padding: 8px 0; }
.mobile-menu ul li a {
  display: block; padding: 13px 24px;
  font-size: 15px; font-weight: 500; color: var(--txt);
  border-bottom: 1px solid var(--border); transition: color var(--transition);
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover { color: var(--acc); background: var(--bg2); }

/* Overlay */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 900; backdrop-filter: blur(3px);
}
.overlay.open { display: block; }

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0; min-height: 520px;
  background: linear-gradient(135deg, #fff5f0 0%, #fff0f5 50%, #f5f0ff 100%);
}
body.dark .hero { background: linear-gradient(135deg, #1a1211 0%, #1a1118 50%, #110e1a 100%); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(255,107,53,.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,63,108,.10) 0%, transparent 70%);
}
.hero-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.hero-content { flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  background: rgba(255,107,53,.12); color: var(--acc);
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.15;
  color: var(--txt); margin-bottom: 18px;
}
.hero-title span {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 16px; color: var(--txt2); margin-bottom: 28px; line-height: 1.6; }
.hero-btns { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 22px; font-weight: 800; color: var(--txt); }
.stat span { font-size: 12px; color: var(--txt2); }

.hero-visual {
  position: relative; flex-shrink: 0;
  width: 320px; height: 320px;
}
.hero-card {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg); border-radius: 20px;
  box-shadow: var(--shadow-h); padding: 28px 32px;
  text-align: center; min-width: 200px;
  animation: floatCard 4s ease-in-out infinite;
}
.hcard-img { font-size: 60px; margin-bottom: 10px; }
.hcard-info p { font-size: 13px; color: var(--txt2); }
.hcard-info strong { font-size: 22px; color: var(--acc2); }
@keyframes floatCard { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-12px); } }

.hero-floating {
  position: absolute; font-size: 28px;
  background: var(--bg); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow);
  animation: floatCard 3s ease-in-out infinite;
}
.f1 { top: 10%; left: 0; animation-delay: 0s; }
.f2 { top: 10%; right: 0; animation-delay: .7s; }
.f3 { bottom: 10%; right: 10%; animation-delay: 1.4s; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 99px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: white; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,107,53,.4); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 99px;
  border: 2px solid var(--acc); color: var(--acc);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--acc); color: white; }

/* ---- Section Headings ---- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.section-head p { color: var(--txt2); font-size: 15px; }
section { padding: 64px 0; }

/* ---- CATEGORIES ---- */
.cat-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center;   /* Center categories */
  gap: 16px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 20px 28px; border-radius: var(--radius);
  background: var(--bg2); border: 2px solid var(--border);
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--txt);
  transition: all var(--transition); white-space: nowrap;
  min-width: 110px;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--acc); background: rgba(255,107,53,.08);
  color: var(--acc); transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,107,53,.15);
}
.cat-icon { font-size: 28px; }

/* ---- PRODUCTS ---- */
.products-section { background: var(--bg2); }
.products-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 32px;
  flex-wrap: wrap; gap: 12px;
}
.products-head h2 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; }
.sort-select {
  padding: 8px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--border); background: var(--bg);
  color: var(--txt); font-size: 14px; outline: none; cursor: pointer;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Product Card */
.p-card {
  background: var(--bg); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: all var(--transition); position: relative;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: var(--acc); }

.p-card-img {
  position: relative; height: 200px;
  background: linear-gradient(135deg, #fff5f0, #fff0f5);
  display: flex; align-items: center; justify-content: center;
  font-size: 70px; overflow: hidden;
}
body.dark .p-card-img { background: linear-gradient(135deg, #1e1612, #1e1218); }

.p-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; color: white;
}
html[dir="rtl"] .p-badge { left: auto; right: 10px; }
.p-badge.new { background: #22c55e; }
.p-badge.sale { background: linear-gradient(135deg, var(--acc), var(--acc2)); }
.p-badge.hot { background: #ef4444; }
.p-badge.top { background: #8b5cf6; }

.p-wish {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: all var(--transition); cursor: pointer;
}
html[dir="rtl"] .p-wish { right: auto; left: 10px; }
.p-wish:hover { background: #fff0f5; border-color: var(--acc2); }
.p-wish.active { color: var(--acc2); background: #fff0f5; border-color: var(--acc2); }

.p-quick {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 16px; font-size: 13px; font-weight: 600;
  color: white; background: rgba(0,0,0,.72); backdrop-filter: blur(4px);
  transform: translateY(100%); transition: transform var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.p-card:hover .p-quick { transform: translateY(0); }

/* Card body */
.p-card-body { padding: 14px; }
.p-brand { font-size: 11px; font-weight: 600; color: var(--acc); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.p-name { font-size: 14px; font-weight: 600; color: var(--txt); margin-bottom: 8px; line-height: 1.4; }
.p-stars { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.p-stars .stars { color: #f59e0b; font-size: 12px; }
.p-stars .rev { font-size: 11px; color: var(--txt2); }
.p-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.p-price .current { font-size: 18px; font-weight: 800; color: var(--txt); }
.p-price .old { font-size: 13px; text-decoration: line-through; color: var(--txt2); }
.p-price .disc { font-size: 11px; font-weight: 700; color: var(--acc2); background: rgba(255,63,108,.1); padding: 2px 8px; border-radius: 99px; }
.p-add {
  width: 100%; padding: 10px; border-radius: var(--radius-s);
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: white; font-size: 13px; font-weight: 600;
  transition: all var(--transition); border: none; cursor: pointer;
}
.p-add:hover { opacity: .88; transform: translateY(-1px); }

/* ---- DEALS ---- */
.deals-section {
  background: linear-gradient(135deg, #1a0a05, #1a0510);
}
.deals-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px;
}
.deals-text { max-width: 500px; }
.deals-badge {
  display: inline-block; padding: 5px 14px; border-radius: 99px;
  background: rgba(255,107,53,.2); color: var(--acc);
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.deals-text h2 { font-size: 2.4rem; font-weight: 800; color: white; margin-bottom: 10px; }
.deals-text p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.countdown { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; }
.cdown-box {
  background: rgba(255,255,255,.1); border-radius: var(--radius-s);
  padding: 12px 18px; text-align: center; min-width: 72px;
}
.cdown-box span { display: block; font-size: 28px; font-weight: 800; color: white; }
.cdown-box small { font-size: 11px; color: rgba(255,255,255,.6); }
.cdown-sep { font-size: 28px; font-weight: 800; color: var(--acc); }
.deals-visual { font-size: 120px; }

/* ---- TRUST ---- */
.trust-section { padding: 32px 0; background: var(--bg); }
.trust-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--txt2);
}
.trust-item i { font-size: 20px; color: var(--acc); }

/* ---- NEWSLETTER ---- */
.newsletter {
  background: linear-gradient(135deg, #fff5f0, #fff0f5);
}
body.dark .newsletter { background: linear-gradient(135deg, #1a1211, #1a1118); }
.newsletter-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.newsletter-inner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.newsletter-inner p { color: var(--txt2); margin-bottom: 24px; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; }
.nl-input {
  flex: 1; min-width: 0; padding: 12px 20px;
  border: 2px solid var(--border); border-radius: 99px;
  background: var(--bg); color: var(--txt); font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.nl-input:focus { border-color: var(--acc); }

/* ---- FOOTER ---- */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--txt2); line-height: 1.6; margin-bottom: 18px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--txt2);
  transition: all var(--transition);
}
.social-links a:hover { color: var(--acc); border-color: var(--acc); background: rgba(255,107,53,.08); }
.footer-links h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { font-size: 14px; color: var(--txt2); transition: color var(--transition); }
.footer-links ul li a:hover { color: var(--acc); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px; text-align: center;
  font-size: 13px; color: var(--txt2);
}

/* ---- SIDEBARS ---- */
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 100%; z-index: 1100;
  background: var(--bg); border-left: 1px solid var(--border);
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
  display: flex; flex-direction: column;
  transform: translateX(110%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
html[dir="rtl"] .sidebar { right: auto; left: 0; border-left: none; border-right: 1px solid var(--border); transform: translateX(-110%); }
.sidebar.open { transform: translateX(0); }
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.sidebar-head h3 { font-size: 18px; font-weight: 700; }
.sidebar-body { flex: 1; overflow-y: auto; padding: 16px; }
.sidebar-foot { padding: 16px; border-top: 1px solid var(--border); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; font-weight: 600; }

.close-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--txt2); transition: all var(--transition);
}
.close-btn:hover { color: var(--acc2); border-color: var(--acc2); }

/* Cart Item */
.cart-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.ci-img { font-size: 40px; flex-shrink: 0; }
.ci-info { flex: 1; }
.ci-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ci-price { font-size: 14px; color: var(--acc); font-weight: 700; margin-bottom: 8px; }
.ci-qty { display: flex; align-items: center; gap: 10px; }
.ci-qty button { width: 26px; height: 26px; border-radius: 6px; background: var(--bg2); border: 1px solid var(--border); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.ci-qty button:hover { background: var(--acc); color: white; border-color: var(--acc); }
.ci-qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.ci-del { width: 28px; height: 28px; border-radius: 6px; background: #fff0f5; color: var(--acc2); border: 1px solid rgba(255,63,108,.2); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all var(--transition); flex-shrink: 0; align-self: flex-start; }
.ci-del:hover { background: var(--acc2); color: white; }

/* ---- QUICK VIEW MODAL ---- */
.modal-wrap {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 1200;
  align-items: center; justify-content: center;
  backdrop-filter: blur(5px);
}
.modal-wrap.open { display: flex; }
.modal {
  background: var(--bg); border-radius: 20px;
  max-width: 560px; width: 90%; padding: 28px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close { position: absolute; top: 16px; right: 16px; }
html[dir="rtl"] .modal-close { right: auto; left: 16px; }
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-emoji { font-size: 80px; text-align: center; }
.modal-name { font-size: 22px; font-weight: 800; }
.modal-price { font-size: 26px; font-weight: 800; color: var(--acc); }
.modal-desc { font-size: 14px; color: var(--txt2); line-height: 1.6; }
.modal-actions { display: flex; gap: 12px; }

/* ---- TOAST ---- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9000; display: flex;
  flex-direction: column; gap: 10px;
}
html[dir="rtl"] .toast-container { right: auto; left: 24px; }
.toast {
  background: var(--bg); border-left: 4px solid var(--acc);
  padding: 12px 20px; border-radius: var(--radius-s);
  box-shadow: var(--shadow-h); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s ease;
  max-width: 300px;
}
html[dir="rtl"] .toast { border-left: none; border-right: 4px solid var(--acc); }
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }
@keyframes toastIn { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }
html[dir="rtl"] @keyframes toastIn { from { opacity:0; transform: translateX(-40px); } to { opacity:1; transform: translateX(0); } }

/* ---- SCROLL TOP ---- */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 800; width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: white; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,53,.45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--transition); border: none; cursor: pointer;
}
html[dir="rtl"] .scroll-top { right: auto; left: 28px; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---- Reveal Animations ---- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--txt2); grid-column: 1/-1;
}
.empty-state .es-icon { font-size: 56px; margin-bottom: 14px; }
.empty-state p { font-size: 15px; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }   /* hide bottom nav on mobile */
  .search-wrap { max-width: 340px; }
}

@media (max-width: 900px) {
  .hero-visual { display: none; }
  .hero-inner { justify-content: center; text-align: center; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .deals-visual { display: none; }
}

@media (max-width: 768px) {
  .search-wrap { order: 3; flex: 0 0 100%; max-width: 100%; }
  .header-top { flex-wrap: wrap; height: auto; padding: 12px 24px; gap: 12px; }
  .logo { order: 1; }
  .header-actions { order: 2; margin-inline-start: auto; }
  .lang-switcher { display: none; }
  section { padding: 44px 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { gap: 10px; }
  .cat-card { padding: 14px 18px; min-width: 90px; }
  .hero-title { font-size: 1.7rem; }
  .deals-text h2 { font-size: 1.7rem; }
  .sidebar { width: 100%; }
}

/* ================================================================
   TOP BAR
   ================================================================ */
.top-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--txt2);
}
.top-bar-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 36px; gap: 12px;
}
.tb-left  { display: flex; align-items: center; gap: 16px; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-center{ flex: 1; text-align: center; }
.tb-link  {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--txt2); font-weight: 500;
  transition: color var(--tr); cursor: pointer; background: none; border: none;
  font-family: inherit;
}
.tb-link:hover { color: var(--acc); }
.tb-link i { font-size: 11px; }
.tb-promo {
  font-size: 12px; font-weight: 700; color: var(--acc);
  letter-spacing: .3px;
}

/* ── Free Shipping Progress Bar ── */
.shipping-bar {
  background: linear-gradient(90deg, rgba(255,107,53,.06), rgba(255,63,108,.06));
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
}
.shipping-bar-inner {
  display: flex; align-items: center;
  gap: 10px; font-size: 13px;
}
.sb-icon { font-size: 18px; flex-shrink: 0; }
.sb-text { font-size: 13px; font-weight: 600; color: var(--txt); white-space: nowrap; }
.sb-track {
  flex: 1; height: 7px; background: var(--bg3);
  border-radius: 99px; overflow: hidden; max-width: 200px;
}
.sb-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  border-radius: 99px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}
.sb-amount {
  font-size: 13px; font-weight: 800; color: var(--acc);
  white-space: nowrap; flex-shrink: 0;
}

/* ── Announcement Bar ── */
.ann-bar {
  background: linear-gradient(90deg, var(--acc), var(--acc2));
  color: #fff; height: 34px; overflow: hidden;
  display: flex; align-items: center;
}
.ann-track {
  display: flex; gap: 80px; white-space: nowrap;
  animation: annScroll 25s linear infinite;
  font-size: 12.5px; font-weight: 600;
}
@keyframes annScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
html[dir="rtl"] .ann-track { animation: annScrollRTL 25s linear infinite; }
@keyframes annScrollRTL { from{transform:translateX(0)} to{transform:translateX(50%)} }

/* ================================================================
   HEADER MAIN ROW
   ================================================================ */
.header { position: sticky; top: 0; z-index: var(--hdr-z); background: var(--bg); }
.header-main {
  display: flex; align-items: center;
  gap: 16px; height: 72px;
  border-bottom: 1px solid var(--border);
}

/* ── Search with category select ── */
.search-wrap {
  flex: 1; max-width: 580px; position: relative;
  display: flex; align-items: center;
  border: 2px solid var(--border); border-radius: 99px;
  background: var(--bg2); overflow: visible;
  transition: border-color var(--tr), box-shadow var(--tr);
}
.search-wrap:focus-within {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}
.search-cat-select {
  flex-shrink: 0; padding: 0 4px 0 14px;
  border-right: 1px solid var(--border);
}
html[dir="rtl"] .search-cat-select {
  border-right: none; border-left: 1px solid var(--border);
  padding: 0 14px 0 4px;
}
.search-cat-select select {
  background: none; border: none; outline: none;
  font-size: 12px; font-weight: 600; color: var(--txt2);
  cursor: pointer; padding: 0 6px; max-width: 90px;
  white-space: nowrap;
}
.search-input {
  flex: 1; height: 44px; padding: 0 14px;
  border: none; background: none;
  color: var(--txt); font-size: 14px; outline: none;
}
.search-btn {
  width: 44px; height: 44px; border-radius: 99px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; margin: -2px; transition: opacity var(--tr);
  border: none; cursor: pointer;
}
.search-btn:hover { opacity: .85; }
.search-dropdown {
  position: absolute; top: calc(100% + 10px);
  left: 0; right: 0; z-index: 600;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-h);
  overflow: hidden; max-height: 360px; overflow-y: auto; display: none;
}
.search-dropdown.open { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; cursor: pointer; font-size: 14px;
  transition: background var(--tr); border-bottom: 1px solid var(--border);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--bg2); }
.si-emoji { font-size: 26px; flex-shrink: 0; }
.si-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--txt); }
.si-info span   { font-size: 12px; color: var(--acc); font-weight: 700; }

/* ── Header Actions ── */
.header-actions {
  display: flex; align-items: center;
  gap: 4px; flex-shrink: 0; margin-inline-start: auto;
}
.ha-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: var(--radius-s);
  color: var(--txt); background: none; border: none;
  cursor: pointer; transition: all var(--tr);
  position: relative; white-space: nowrap;
}
.ha-btn:hover { background: var(--bg2); color: var(--acc); }
.ha-icon-wrap { position: relative; font-size: 22px; flex-shrink: 0; }
.ha-label { display: flex; flex-direction: column; text-align: start; line-height: 1.3; }
.ha-label small  { font-size: 10px; color: var(--txt2); font-weight: 400; }
.ha-label strong { font-size: 13px; font-weight: 700; }

/* Cart total pill */
.cart-ha-btn { gap: 6px; }
.cart-total-pill {
  display: none; /* shown on desktop via media */
  font-size: 13px; font-weight: 800;
  color: var(--acc); background: rgba(255,107,53,.1);
  padding: 3px 10px; border-radius: 99px;
}
@media (min-width: 1100px) { .cart-total-pill { display: inline-block; } }

/* ── Account Dropdown ── */
.account-wrap { position: relative; }
.account-dropdown {
  position: absolute; top: calc(100% + 10px);
  right: 0; width: 260px; z-index: 700;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-h);
  padding: 16px; display: none;
}
html[dir="rtl"] .account-dropdown { right: auto; left: 0; }
.account-dropdown.open { display: block; animation: dropIn .2s ease; }
@keyframes dropIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
.acc-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.acc-avatar { font-size: 36px; }
.acc-welcome { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.acc-header small { font-size: 12px; color: var(--txt2); }
.acc-actions { display: flex; gap: 8px; margin-bottom: 14px; }
.acc-signin   { flex: 1; padding: 9px 0; font-size: 13px; }
.acc-register { flex: 1; padding: 9px 0; font-size: 13px; }
.acc-divider  { height: 1px; background: var(--border); margin-bottom: 10px; }
.acc-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-s);
  font-size: 13px; color: var(--txt); font-weight: 500;
  transition: all var(--tr);
}
.acc-link i { font-size: 14px; color: var(--acc); width: 16px; text-align: center; }
.acc-link:hover { background: var(--bg2); color: var(--acc); }

/* ================================================================
   HEADER NAV ROW
   ================================================================ */
.header-nav { background: var(--bg); border-bottom: 1px solid var(--border); }
.header-nav .container {
  display: flex; align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex; align-items: stretch; gap: 0;
}
.nav-links li { position: relative; }
.nav-links li a {
  display: flex; align-items: center; gap: 5px;
  padding: 13px 18px; font-size: 14px; font-weight: 500;
  color: var(--txt2); white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color var(--tr), border-color var(--tr);
}
.nav-links li a:hover { color: var(--acc); border-bottom-color: var(--acc); }

/* Deals link special style */
.nav-deals-link {
  color: var(--acc) !important; font-weight: 700 !important;
  position: relative;
}
.nav-hot-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .5px;
  background: var(--acc2); color: #fff;
  padding: 2px 5px; border-radius: 4px;
  position: absolute; top: 6px; right: 6px;
  animation: hotPulse 1.5s ease-in-out infinite;
}
@keyframes hotPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }

/* Nav arrow */
.nav-arrow { font-size: 10px; transition: transform var(--tr); }
.has-mega:hover .nav-arrow { transform: rotate(180deg); }

/* Coupon pill */
.nav-coupon {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 99px;
  background: rgba(255,107,53,.1); border: 1.5px dashed var(--acc);
  font-size: 12px; font-weight: 600; color: var(--acc);
  cursor: pointer; transition: all var(--tr); white-space: nowrap;
  flex-shrink: 0;
}
.nav-coupon:hover { background: rgba(255,107,53,.18); }
.nav-coupon strong { font-weight: 800; }

/* ================================================================
   MEGA MENU
   ================================================================ */
.mega-menu {
  position: absolute; top: 100%; left: 0; z-index: 800;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-h); padding: 24px;
  display: none;
  grid-template-columns: repeat(4, 1fr) 200px;
  gap: 24px; min-width: 780px;
}
html[dir="rtl"] .mega-menu { left: auto; right: 0; }
.has-mega:hover .mega-menu { display: grid; animation: dropIn .2s ease; }

.mega-col h4 {
  font-size: 13px; font-weight: 800; color: var(--txt);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--acc);
}
.mega-col a {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; font-size: 13px; font-weight: 500;
  color: var(--txt2); border-radius: var(--radius-s);
  transition: all var(--tr);
}
.mega-col a:hover { color: var(--acc); background: var(--bg2); padding-inline-start: 12px; }

.mega-promo { display: flex; align-items: center; justify-content: center; }
.mega-promo-card {
  background: linear-gradient(135deg, #fff5f0, #fff0f5);
  border-radius: var(--radius); padding: 20px;
  text-align: center; width: 100%;
}
body.dark .mega-promo-card { background: linear-gradient(135deg, #1e1410, #1e1018); }
.mega-promo-card span    { font-size: 36px; display: block; margin-bottom: 8px; }
.mega-promo-card strong  { display: block; font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.mega-promo-card p       { font-size: 12px; color: var(--txt2); margin-bottom: 14px; }

/* ================================================================
   MOBILE MENU (updated)
   ================================================================ */
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  z-index: calc(var(--hdr-z) - 1); max-height: 80vh; overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul   { padding: 6px 0; }
.mobile-menu ul li a {
  display: block; padding: 13px 24px;
  font-size: 15px; font-weight: 500; color: var(--txt);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr), color var(--tr);
}
.mobile-menu ul li:last-child a { border-bottom: none; }
.mobile-menu ul li a:hover { color: var(--acc); background: var(--bg2); }
.mob-lang {
  display: flex; gap: 8px; padding: 14px 24px;
  border-top: 2px solid var(--border);
}
.mob-lang .lang-btn {
  flex: 1; padding: 8px; border-radius: var(--radius-s);
  border: 1.5px solid var(--border); font-size: 13px;
  font-weight: 600; color: var(--txt2); background: var(--bg2);
  cursor: pointer; transition: all var(--tr);
}
.mob-lang .lang-btn.active,
.mob-lang .lang-btn:hover {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  color: #fff; border-color: transparent;
}

/* ================================================================
   RESPONSIVE UPDATES
   ================================================================ */
@media (max-width: 1100px) {
  .hamburger    { display: flex; }
  .header-nav   { display: none; }
  .ha-label     { display: none; }
  .cart-total-pill { display: none !important; }
  .top-bar .tb-left,
  .top-bar .tb-center { display: none; }
  .top-bar-inner { justify-content: flex-end; }
}
@media (max-width: 768px) {
  .header-main  { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .logo         { order: 1; }
  .header-actions { order: 2; margin-inline-start: auto; }
  .search-wrap  { order: 3; flex: 0 0 100%; max-width: 100%; }
  .search-cat-select { display: none; }
  .shipping-bar { display: none; }
  .top-bar      { display: none; }
}
@media (max-width: 480px) {
  .ha-icon-wrap { font-size: 19px; }
}
