/* Google Fonts loaded via <link> in header for performance */

/* LTR font override */
html[dir="ltr"] body,
html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea,
html[dir="ltr"] button {
  font-family: 'Inter', sans-serif;
}

:root {
  --primary: #0f5684;
  --primary-dark: #0a3d5f;
  --primary-light: #1a7ab5;
  --secondary: #b59b6e;
  --secondary-light: #d4c4a0;
  --accent: #568eaf;
  --danger: #f8303d;
  --success: #2ab858;
  --warning: #f5a623;
  --bg: #f7f8fa;
  --bg-dark: #e8edf2;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --white: #fff;
  --border: #e0e0e0;
  --shadow: 0 2px 15px rgba(0,0,0,.08);
  --shadow-lg: 0 5px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --transition: all .3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Almarai', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 20px); }

/* ========== TOP BAR ========== */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 12px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: var(--secondary-light); }
.top-bar a:hover { color: var(--white); }
.top-bar-links { display: flex; gap: 15px; align-items: center; }
.top-bar-links i { margin-left: 5px; }
.top-bar-social { display: flex; gap: 10px; }
.top-bar-social a { font-size: 14px; }

/* ========== HEADER ========== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}
.logo img { height: 50px; width: auto; max-width: 200px; object-fit: contain; display: block; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text { font-size: 24px; font-weight: 800; color: var(--primary); }
.logo-text span { color: var(--secondary); }

/* Search */
.header-search {
  flex: 1;
  max-width: 500px;
  position: relative;
}
.header-search form {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
}
.header-search input {
  flex: 1;
  border: none;
  padding: 10px 15px;
  font-family: 'Almarai', sans-serif;
  font-size: 14px;
  outline: none;
}
.header-search button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
}
.header-search button:hover { background: var(--primary-dark); }

.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 100;
}
.search-results.active { display: block; }
.search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.search-item:hover { background: var(--bg); }
.search-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-action {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  color: var(--text);
  font-size: 13px;
}
.header-action i { font-size: 22px; color: var(--primary); }
.header-action:hover { color: var(--primary); }
.cart-count, .wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: var(--white);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 4px 14px rgba(15,86,132,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.menu-toggle:hover {
  box-shadow: 0 6px 20px rgba(15,86,132,.42);
  transform: translateY(-1px);
}
.hbg-line {
  display: block;
  width: 20px;
  height: 2.5px;
  background: #fff;
  border-radius: 3px;
  transition: transform .3s ease, opacity .25s ease, width .3s ease;
  transform-origin: center;
}
.menu-toggle.active { box-shadow: 0 4px 14px rgba(15,86,132,.2); }
.menu-toggle.active .hbg-line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active .hbg-line:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.active .hbg-line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ========== NAVIGATION ========== */
.main-nav {
  background: linear-gradient(135deg, #09385c 0%, #0c4e7a 30%, #0f5684 55%, #0c4e7a 80%, #09385c 100%);
  box-shadow: 0 4px 28px rgba(8,35,56,.32);
  position: relative;
  overflow: visible;
}
.main-nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 25%, rgba(181,155,110,.5) 50%, rgba(255,255,255,.18) 75%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.main-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(181,155,110,.7) 35%, rgba(181,155,110,.7) 65%, transparent 100%);
  pointer-events: none;
}
.mobile-nav-overlay,
.mobile-nav-panel-header,
.mobile-nav-footer {
  display: none;
}
.mobile-nav-close {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav-menu {
  display: flex;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 20px;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  position: relative;
  white-space: nowrap;
  transition: color .22s ease, background .22s ease;
}
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  inset-inline-end: 50%;
  height: 3px;
  background: linear-gradient(90deg, #d4a845, var(--secondary), #d4a845);
  border-radius: 3px 3px 0 0;
  transition: inset-inline-start .26s cubic-bezier(.4,0,.2,1), inset-inline-end .26s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(181,155,110,.55);
}
.nav-menu > li > a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-menu > li > a:hover::after { inset-inline-start: 0; inset-inline-end: 0; }
.nav-menu > li.active > a { color: #fff; background: rgba(255,255,255,.13); font-weight: 700; }
.nav-menu > li.active > a::after { inset-inline-start: 0; inset-inline-end: 0; }
.nav-menu > li > a > i.fa-chevron-down { font-size: 9px; opacity: .6; }

/* All-categories pill */
.nav-all-categories > a {
  background: linear-gradient(135deg, #c8a950 0%, var(--secondary) 50%, #c8a950 100%) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 12px rgba(181,155,110,.4);
  transition: filter .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
.nav-all-categories > a::after { display: none !important; }
.nav-all-categories > a:hover {
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 5px 18px rgba(181,155,110,.55) !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, #c8a950 0%, var(--secondary) 50%, #c8a950 100%) !important;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 2px);
  inset-inline-start: 0;
  min-width: 230px;
  background: var(--white);
  border-top: 3px solid var(--secondary);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 16px 48px rgba(8,35,56,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 100;
  overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  transition: background .18s ease, color .18s ease, padding .18s ease;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a::before {
  content: '›';
  font-size: 16px;
  color: var(--secondary);
  opacity: 0;
  transition: opacity .18s ease;
  line-height: 1;
}
.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--primary);
  padding-inline-start: 24px;
}
.dropdown-menu a:hover::before { opacity: 1; }

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  overflow: hidden;
  height: 450px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 600px;
  padding: 0 60px;
}
.hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.3;
}
.hero-content p {
  font-size: 16px;
  margin-bottom: 25px;
  opacity: .9;
}
.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: var(--transition);
}
.hero-slider-dots span.active { background: var(--white); transform: scale(1.2); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 25px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Almarai', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #a08858; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #d42630; }
.btn-success { background: var(--success); color: var(--white); }
.btn-sm { padding: 6px 15px; font-size: 12px; }
.btn-lg { padding: 14px 35px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ========== SECTIONS ========== */
.section {
  padding: 50px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
  margin-top: 15px;
}

.section-alt { background: var(--white); }

/* ========== CATEGORY CARDS ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 25px 15px;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.category-card i {
  font-size: 45px;
  color: var(--primary);
  margin-bottom: 12px;
}
.category-card h3 {
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}
.category-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ========== PRODUCT CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ── Card shell ── */
.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(0,0,0,.13);
  border-color: rgba(15,86,132,.2);
}

/* ── Image area ── */
.product-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(145deg, #f7f9fc 0%, #eef1f6 100%);
  flex-shrink: 0;
}
.product-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .4s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }

/* ── Badges ── */
.product-badges {
  position: absolute;
  top: 9px;
  inset-inline-end: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .2px;
}
.badge-sale { background: linear-gradient(135deg, #f8303d, #d42630); }
.badge-new  { background: linear-gradient(135deg, #2ab858, #1e9645); }

/* ── Card body ── */
.product-card-body {
  padding: 13px 14px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.product-card-category {
  font-size: 10px;
  color: var(--secondary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: .5px;
}
.product-card-title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
}
.product-card-title a:hover { color: var(--primary); }
.product-card-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}
.product-card-rating i { font-size: 11px; color: var(--warning); }
.product-card-rating i.empty { color: #dde; }
.product-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: auto;
}
.price-current {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.price-old {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-currency { font-size: 11px; font-weight: 600; }

/* ── Action bar (desktop: slides up from bottom on hover) ── */
.product-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  position: absolute;
  bottom: 0; left: 0; right: 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .24s ease, opacity .2s ease;
  z-index: 3;
}
.product-card:hover .product-card-actions {
  transform: translateY(0);
  opacity: 1;
}
/* Cart button (wide) */
.pca-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Almarai', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease;
  white-space: nowrap;
}
.pca-cart:hover { background: var(--primary-dark); }
/* Icon buttons (square) */
.pca-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  text-decoration: none;
}
.pca-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ========== FEATURES BAR ========== */
.features-bar {
  background: var(--white);
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: right;
}
.feature-item i {
  font-size: 35px;
  color: var(--primary);
}
.feature-item h4 { font-size: 14px; margin-bottom: 3px; }
.feature-item p { font-size: 12px; color: var(--text-light); }

/* ========== BRANDS ========== */
.brands-slider {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
  padding: 10px 0;
  scroll-behavior: smooth;
}
.brands-slider::-webkit-scrollbar { display: none; }
.brand-item {
  min-width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  filter: grayscale(1);
  opacity: .6;
  transition: var(--transition);
}
.brand-item:hover { filter: grayscale(0); opacity: 1; }

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 30px; margin-bottom: 15px; }
.cta-banner p { font-size: 16px; opacity: .85; margin-bottom: 25px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ========== FOOTER ========== */
.footer {
  background: #1a2332;
  color: #b0bec5;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
}
.footer-col h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--secondary);
}
.footer-about p { font-size: 13px; line-height: 1.8; margin-bottom: 15px; }
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0bec5;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }

.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: #b0bec5;
  font-size: 13px;
  transition: var(--transition);
}
.footer-links a::before {
  content: '\f104';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 8px;
  font-size: 11px;
}
.footer-links a:hover { color: var(--secondary); padding-right: 5px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.footer-contact i {
  color: var(--secondary);
  font-size: 16px;
  margin-top: 3px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb-bar {
  background: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}
.product-gallery {
  position: relative;
}
.product-main-image {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
  margin-bottom: 14px;
  border: 1px solid rgba(0,0,0,.06);
}
.product-main-image img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  padding: 20px;
}
.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-thumbs img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 5px;
  background: var(--white);
  transition: var(--transition);
}
.product-thumbs img:hover,
.product-thumbs img.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,86,132,.15); }

.product-info h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary-dark);
  line-height: 1.4;
}
.product-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.product-meta span { margin-left: 0; }
.product-price-detail {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 15px;
  margin-bottom: 20px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(15,86,132,.05) 0%, rgba(15,86,132,.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(15,86,132,.1);
}
.product-price-detail .price-current { font-size: 28px; }
.product-price-detail .price-old { font-size: 18px; }
.product-description {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--text-light);
}
.product-qty {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qty-control button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
}
.qty-control button:hover { background: var(--primary); color: var(--white); }
.qty-control input {
  width: 52px;
  height: 44px;
  border: none;
  text-align: center;
  font-family: 'Almarai', sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.product-actions-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}
.product-specs {
  margin-top: 25px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-specs h3 {
  font-size: 15px;
  margin: 0;
  padding: 14px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 11px 18px; font-size: 13px; }
.specs-table td:first-child { font-weight: 700; background: var(--bg); width: 40%; color: var(--primary-dark); }

/* ========== SIDEBAR / FILTERS ========== */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding: 30px 0;
}
.sidebar-widget {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.06);
  padding: 0;
  margin-bottom: 18px;
  overflow: hidden;
}
.sidebar-widget h3 {
  font-size: 14px;
  font-weight: 700;
  padding: 14px 18px;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  letter-spacing: .3px;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget h3::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 16px;
  background: var(--secondary);
  border-radius: 2px;
  flex-shrink: 0;
}
/* ── Category chips — always one horizontal scrollable line ── */
.sidebar-categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 7px;
  padding: 12px 14px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sidebar-categories::-webkit-scrollbar { display: none; }
.sidebar-categories li { flex-shrink: 0; }
.sidebar-categories li a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sidebar-categories li a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.sidebar-categories li a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}
.sidebar-categories li a span {
  font-size: 10.5px;
  background: rgba(0,0,0,.08);
  color: inherit;
  padding: 1px 7px;
  border-radius: 50px;
  font-weight: 600;
  min-width: auto;
}
.sidebar-categories li a.active span {
  background: rgba(255,255,255,.25);
  color: #fff;
}
/* Price filter inside widget */
.sidebar-widget .price-filter-wrap { padding: 14px 18px; }
.price-filter { display: flex; gap: 10px; align-items: center; }
.price-filter input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Almarai', sans-serif;
  font-size: 13px;
  transition: border-color .18s ease;
}
.price-filter input:focus { outline: none; border-color: var(--primary); }
.sidebar-widget form { padding: 14px 18px; padding-top: 0; }

/* ========== PRODUCTS LIST HEADER ========== */
.products-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
}
.products-list-title {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}
.products-list-title small {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-inline-start: 6px;
}
.products-sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Almarai', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .18s ease;
}
.products-sort-select:focus { outline: none; border-color: var(--primary); }

/* ========== SUBCATEGORIES STRIP ========== */
.subcategories-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  overflow-x: auto;
  scrollbar-width: none;
}
.subcategories-strip::-webkit-scrollbar { display: none; }
.subcategory-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}
.subcategory-chip:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.subcategory-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(15,86,132,.3);
}

@media (max-width: 768px) {
  .subcategories-strip { flex-wrap: nowrap; padding: 10px 14px; margin-bottom: 14px; gap: 6px; }
  .subcategory-chip { padding: 6px 14px; font-size: 12.5px; }
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  transition: var(--transition);
}
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Almarai', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  background: var(--white);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,86,132,.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* Auth pages */
.auth-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}
.auth-box {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 450px;
}
.auth-box h1 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 24px;
}
.auth-box .btn { margin-top: 10px; }
.auth-links {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}
.auth-links a { color: var(--primary); font-weight: 700; }

/* Google sign-in button */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.google-btn:hover {
  background: #f7f8f8;
  box-shadow: 0 1px 3px rgba(60,64,67,.3);
  border-color: #c0c0c0;
}
.google-btn:active { background: #eef0f0; }
.google-btn svg { flex-shrink: 0; }

/* Auth divider "or" */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}
.auth-divider span {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ========== CART PAGE ========== */
.cart-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cart-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 15px;
  font-size: 13px;
  text-align: right;
}
.cart-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-item-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cart-item-info img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: var(--radius);
}
.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  max-width: 400px;
  margin-right: auto;
  margin-top: 20px;
}
.cart-summary h3 { margin-bottom: 15px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cart-summary-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

/* ========== CHECKOUT ========== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  padding: 30px 0;
}
.checkout-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 25px;
  margin-bottom: 20px;
}
.checkout-section h2 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.checkout-summary-sticky {
  position: sticky;
  top: 80px;
}

/* ========== ORDER SUCCESS ========== */
.order-success {
  text-align: center;
  padding: 60px 20px;
}
.order-success i { font-size: 60px; color: var(--success); margin-bottom: 20px; }
.order-success h1 { color: var(--primary); margin-bottom: 15px; }

/* ========== ABOUT PAGE ========== */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}
.about-hero h1 { font-size: 36px; margin-bottom: 15px; }
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px 0;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  padding: 40px 0;
}
.stat-item h3 { font-size: 36px; color: var(--primary); font-weight: 800; }
.stat-item p { color: var(--text-light); font-size: 14px; }

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 40px 0;
}
.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.contact-card i { font-size: 30px; color: var(--primary); margin-bottom: 10px; }
.contact-card h4 { font-size: 14px; margin-bottom: 5px; }
.contact-card p { font-size: 13px; color: var(--text-light); }
.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ========== ACCOUNT PAGE ========== */
.account-grid {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 30px);
  padding: clamp(18px, 3vw, 30px) 0;
  align-items: start;
}
.account-sidebar {
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15,86,132,.08);
  border: 1px solid rgba(15,86,132,.08);
  overflow: hidden;
  position: sticky;
  top: 112px;
}
.account-sidebar-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 55%, var(--secondary) 100%);
  color: var(--white);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.account-sidebar-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,.25), transparent 48%);
  pointer-events: none;
}
.account-sidebar-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  position: relative;
  z-index: 1;
}
.account-sidebar-avatar i {
  font-size: 40px;
  margin-bottom: 0;
}
.account-sidebar-copy {
  position: relative;
  z-index: 1;
}
.account-sidebar-header h3 {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.account-sidebar-meta {
  font-size: 12px;
  opacity: .86;
  overflow-wrap: anywhere;
}
.account-sidebar-nav {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  font-size: 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: var(--transition);
  background: transparent;
}
.account-sidebar-nav a i {
  font-size: 16px;
  color: var(--primary);
}
.account-sidebar-nav a:hover,
.account-sidebar-nav a.active {
  background: linear-gradient(180deg, #f3f8ff 0%, #eef6ff 100%);
  color: var(--primary);
  border-color: rgba(15,86,132,.12);
  box-shadow: 0 10px 22px rgba(15,86,132,.08);
}
.account-content {
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15,86,132,.08);
  border: 1px solid rgba(15,86,132,.08);
  padding: clamp(22px, 4vw, 28px);
  min-width: 0;
}
.account-page-header {
  margin-bottom: 25px;
  align-items: flex-start;
}
.account-page-title {
  margin-bottom: 6px;
}
.account-page-subtitle {
  max-width: 580px;
  color: var(--text-light);
}

/* ========== ALERT ========== */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-error { background: #fce4e4; color: var(--danger); border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* ========== 404 ========== */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 h1 { font-size: 100px; color: var(--primary); }
.page-404 h2 { font-size: 24px; margin-bottom: 15px; }
.page-404 p { color: var(--text-light); margin-bottom: 25px; }

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 55px;
  height: 55px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 25px rgba(37,211,102,.6); }
}

/* ========== SCROLL TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ========== LOADING ========== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== INFO PAGE ========== */
.info-page {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  margin: 30px auto;
  max-width: 900px;
}
.info-page h1 {
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}
.info-page p { line-height: 2; }

/* ========== USER PAGE SYSTEM ========== */
.page-shell {
  padding: clamp(24px, 4vw, 36px) 0 48px;
}
.page-header {
  text-align: center;
  margin-bottom: clamp(22px, 4vw, 34px);
}
.page-header--start {
  text-align: start;
}
.page-title-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  margin-bottom: 12px;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 28px rgba(15,86,132,.24);
}
.page-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.page-title small {
  font-size: .55em;
  color: var(--text-muted);
  font-weight: 600;
}
.page-subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}
.page-header--start .page-subtitle {
  margin-inline: 0;
  max-width: none;
}
.content-card {
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border: 1px solid rgba(15,86,132,.08);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(15,86,132,.08);
  padding: clamp(20px, 4vw, 30px);
}
.content-card--soft {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.content-card--danger {
  background: linear-gradient(180deg, #fff 0%, #fff6f6 100%);
  border-color: rgba(248,48,61,.18);
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(38px, 6vw, 60px) 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px dashed rgba(15,86,132,.18);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15,86,132,.08);
}
.empty-state i {
  display: block;
  font-size: clamp(42px, 7vw, 60px);
  color: rgba(15,86,132,.28);
  margin-bottom: 16px;
}
.empty-state h2,
.empty-state h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}
.empty-state p {
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto;
}
.empty-state .btn {
  margin-top: 16px;
}
.muted-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 12px;
}
.helper-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
}
.auth-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 13px;
}
.auth-inline-link {
  color: var(--primary);
  font-weight: 700;
}
.auth-alt-card {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.auth-alt-divider {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.account-section {
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border-radius: 18px;
  border: 1px solid rgba(15,86,132,.08);
  box-shadow: 0 12px 30px rgba(15,86,132,.07);
}
.account-section--soft {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.account-section--danger {
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  border-color: rgba(248,48,61,.18);
}
.account-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 15px;
}
.account-section-title--danger {
  color: #dc3545;
}
.account-section-description {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 15px;
}
.account-inline-box {
  max-width: 300px;
}
.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}
.account-orders-table thead tr {
  background: var(--bg);
}
.account-orders-table th,
.account-orders-table td {
  padding: 12px;
  font-size: 13px;
}
.account-orders-table th {
  text-align: start;
}
html[dir="rtl"] .account-orders-table th,
html[dir="rtl"] .order-items-table th {
  text-align: right;
}
.account-orders-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.account-orders-table tbody tr:last-child {
  border-bottom: none;
}
.account-order-link {
  min-width: 96px;
  justify-content: center;
}
.account-empty-orders {
  min-height: 220px;
}
.contact-map-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15,86,132,.09);
  border: 1px solid rgba(15,86,132,.08);
  height: 100%;
  min-height: 400px;
}
.contact-map-card img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}
.contact-map-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  background: var(--bg-dark);
  color: var(--text-light);
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 24px;
}
.contact-map-empty i {
  font-size: 60px;
  opacity: .3;
}
.contact-map-empty p {
  font-size: 14px;
  opacity: .7;
}
.info-content {
  line-height: 2;
  color: var(--text-light);
}
.order-detail-card {
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15,86,132,.08);
  border: 1px solid rgba(15,86,132,.08);
  padding: clamp(20px, 4vw, 30px);
}
.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}
.detail-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.detail-card {
  background: var(--bg);
  border: 1px solid rgba(15,86,132,.08);
  border-radius: 16px;
  padding: 18px;
}
.detail-card h3 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.detail-card p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}
.order-items-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  min-width: 480px;
  background: var(--white);
}
.order-items-table thead tr {
  background: var(--bg);
}
.order-items-table th,
.order-items-table td {
  padding: 12px;
}
.order-items-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.order-items-table tbody tr:last-child {
  border-bottom: none;
}
.order-totals-card {
  max-width: 320px;
  margin-inline-start: auto;
  background: var(--bg);
  border: 1px solid rgba(15,86,132,.08);
  border-radius: 16px;
  padding: 16px 18px;
}
.order-proof-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}
.order-proof-preview {
  max-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.checkout-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-summary-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg);
  padding: 4px;
}
.checkout-summary-item-meta {
  flex: 1;
  min-width: 0;
}
.checkout-summary-item-name {
  font-size: 13px;
  font-weight: 700;
}
.checkout-summary-item-price {
  font-size: 12px;
  color: #999;
}
.checkout-summary-item-total {
  font-weight: 700;
  white-space: nowrap;
}
.order-success-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Wide tables scroll horizontally on narrow viewports */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-responsive .cart-table { min-width: 520px; }
.table-responsive .account-orders-table { min-width: 620px; }

/* Order / inline detail grids (used on account order page) */
.order-detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
.order-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.order-proof-image {
  max-width: 100%;
  height: auto;
}

/* ========== SHARED SECTION POLISH ========== */
.section-cta {
  text-align: center;
  margin-top: 30px;
}

.about-copy,
.about-media {
  width: 100%;
}

.about-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 28px;
}
.team-card {
  background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15,86,132,.08);
  text-align: center;
  padding: 30px 20px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border: 1px solid rgba(15,86,132,.08);
  width: 100%;
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15,86,132,.12);
  border-color: rgba(15,86,132,.16);
}
.team-avatar,
.team-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-placeholder {
  background: linear-gradient(135deg, rgba(15,86,132,.08), rgba(181,155,110,.18));
}
.team-avatar-placeholder i {
  font-size: 36px;
  color: var(--primary);
  opacity: .55;
}
.team-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.team-role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}
.team-bio {
  font-size: 12px;
  color: #6f7b87;
  line-height: 1.7;
  margin-top: 8px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 24px;
}
.testimonial-card {
  background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
  border-radius: 20px;
  box-shadow: 0 14px 35px rgba(15,86,132,.09);
  padding: 28px 24px;
  position: relative;
  border: 1px solid rgba(15,86,132,.08);
  border-top: 4px solid var(--primary);
  width: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(15,86,132,.12);
}
.testimonial-quote-icon {
  font-size: 28px;
  color: var(--primary);
  opacity: .15;
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}
.testimonial-stars i { font-size: 14px; }
.testimonial-text {
  font-size: 14px;
  color: #55606d;
  line-height: 1.85;
  margin-bottom: 20px;
  font-style: italic;
  text-align: center;
}
.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.testimonial-author-avatar,
.testimonial-author-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-author-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.testimonial-author-meta { text-align: start; }
.testimonial-author-meta strong {
  font-size: 14px;
  display: block;
  color: var(--text);
}
.testimonial-author-meta span {
  font-size: 12px;
  color: #8a94a2;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 1200px) {
  .hero-slider { height: min(450px, 35vw); }
}

@media (max-width: 1200px) {
  .hero-content { padding: 0 40px; }
  .hero-content h1 { font-size: clamp(24px, 4vw, 34px); }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: clamp(22px, 3.5vw, 28px); }
  .cta-banner { padding: 45px 0; }
  .cta-banner h2 { font-size: clamp(22px, 4vw, 28px); }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .page-with-sidebar { grid-template-columns: 1fr; gap: 16px; padding: 20px 0; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-sticky { position: static; top: auto; margin-top: 20px; }
  .account-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-main-image img { height: auto; min-height: 260px; max-height: 400px; }
  .auth-box { padding: clamp(24px, 5vw, 40px); }
  .info-page { padding: clamp(20px, 4vw, 40px); margin-left: 0; margin-right: 0; }

  /* ── Hide sidebar completely on tablet/mobile ── */
  .page-with-sidebar > aside { display: none; }
}

/* ── Hide top bar on tablet & mobile ── */
@media (max-width: 992px) {
  .top-bar { display: none; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }

  /* Header — simpler, cleaner look */
  .header { box-shadow: 0 1px 0 rgba(15,86,132,.06), 0 6px 16px rgba(15,86,132,.06); }
  .header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px 0 8px;
    gap: 10px 12px;
    align-items: center;
  }
  .logo img {
    height: 42px;
    width: auto;
    max-width: 160px;
  }
  .logo {
    min-width: 0;
  }
  .logo-text { font-size: clamp(18px, 5vw, 22px); }

  /* Search moves to full-width second row */
  .header-search {
    order: 3;
    grid-column: 1 / -1;
    flex-basis: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    padding-top: 2px;
  }
  .header-search form {
    display: block;
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(15,86,132,.14);
    background: #f6f9fd;
    box-shadow: none;
  }
  .header-search input {
    width: 100%;
    padding: 11px 16px;
    padding-inline-end: 52px;
    font-size: 14px;
    background: transparent;
    min-height: 46px;
  }
  .header-search button {
    position: absolute;
    top: 50%;
    inset-inline-end: 5px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
  }
  .header-search button:hover { transform: translateY(-50%) scale(1.02); }

  /* Action icons — unified simple style */
  .header-actions {
    gap: 6px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    justify-self: start;
    flex: 0 0 auto;
    min-width: 0;
    order: 2;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
  .header-action {
    width: 40px;
    height: 40px;
    display: inline-flex;
    justify-content: center;
    font-size: 12px;
    gap: 0;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f6f9fd;
    border: 1px solid rgba(15,86,132,.1);
    box-shadow: none;
    color: var(--primary);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
    position: relative;
  }
  .header-action:hover,
  .header-action:focus-visible {
    background: #eaf2fb;
    border-color: rgba(15,86,132,.2);
    transform: translateY(-1px);
  }
  .header-action[href="/account/wishlist"] i { color: #b28c45; }
  .header-action[href="/account"] i { color: var(--primary); }
  /* Cart button is accent-colored to stand out */
  .header-action[href="/cart"] {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
  }
  .header-action[href="/cart"]:hover {
    background: #a08858;
    border-color: #a08858;
  }
  .header-action[href="/cart"] i { color: #fff; }
  .notif-bell #notifBellIcon { color: var(--primary); }
  .notif-bell.is-open {
    background: var(--primary);
    border-color: var(--primary);
  }
  .notif-bell.is-open #notifBellIcon { color: #fff; }
  .header-action > span:not(.cart-count):not(.wishlist-count):not(.notif-count) { display: none; }
  .header-action i { font-size: 16px; }
  .logo {
    order: 1;
    flex-shrink: 0;
    justify-self: end;
  }
  .cart-count, .wishlist-count {
    top: -5px;
    right: -5px;
    width: 17px;
    height: 17px;
    font-size: 9px;
    border-width: 2px;
  }
  .notif-bell,
  .notif-overlay {
    display: none !important;
  }

  /* Show hamburger */
  .menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: none;
  }

  /* ── Mobile Nav ── */
  body.mobile-nav-open { overflow: hidden; }
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 18, 36, .5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
    z-index: 1090;
  }
  .mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(365px, calc(100vw - 18px));
    max-width: 100%;
    height: 100dvh;
    background: transparent;
    box-shadow: -16px 0 48px rgba(4,18,36,.3);
    overflow: hidden;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(104%);
    transition: transform .34s cubic-bezier(.22,1,.36,1), visibility .34s ease;
    border-radius: 0;
    z-index: 1100;
  }
  .main-nav.active {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }
  .main-nav::before,
  .main-nav::after { display: none; }
  .main-nav .container {
    padding-inline: 0;
    height: 100%;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0d4a77 0%, #08345a 45%, #051b38 100%);
  }
  .mobile-nav-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 10px 0;
    padding: calc(14px + env(safe-area-inset-top)) 18px 14px;
    border-radius: 24px 24px 18px 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(181,155,110,.18) 100%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .mobile-nav-panel-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 55%);
    pointer-events: none;
  }
  .mobile-nav-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
  }
  .mobile-nav-kicker {
    font-size: 11px;
    letter-spacing: .5px;
    color: rgba(255,255,255,.72);
  }
  .mobile-nav-brand strong {
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
  }
  .mobile-nav-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    font-size: 16px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    position: relative;
    z-index: 1;
    transition: background .18s ease, transform .18s ease;
  }
  .mobile-nav-close:hover {
    background: rgba(255,255,255,.18);
    transform: rotate(90deg);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    background: transparent;
    padding: 14px 0 calc(24px + env(safe-area-inset-bottom));
    gap: 0;
    position: relative;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Gold shimmer accent at top */
  .nav-menu::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(181,155,110,.5) 20%, #b59b6e 50%, rgba(181,155,110,.5) 80%, transparent 100%);
    margin: 0 18px 14px;
    flex-shrink: 0;
  }

  .nav-menu > li { width: 100%; }

  /* Push All-Categories after Products (3rd position) */
  .nav-all-categories { order: 3; }
  .nav-menu > li:nth-child(2) { order: 1; } /* Home */
  .nav-menu > li:nth-child(3) { order: 2; } /* Products */
  .nav-menu > li:nth-child(n+4) { order: 4; } /* rest */

  /* All-Categories: gold accent section */
  .nav-all-categories {
    padding: 0 10px;
    margin-bottom: 10px;
  }
  .nav-all-categories > a {
    background: linear-gradient(135deg, rgba(181,155,110,.2) 0%, rgba(181,155,110,.08) 100%) !important;
    border: 1px solid rgba(181,155,110,.28) !important;
    border-inline-start: 3px solid #b59b6e !important;
    margin: 0 !important;
    width: 100% !important;
    border-radius: 13px !important;
    padding: 15px 18px !important;
    color: #f0e0c0 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: .3px !important;
  }
  .nav-all-categories > a:hover {
    background: linear-gradient(135deg, rgba(181,155,110,.3) 0%, rgba(181,155,110,.14) 100%) !important;
  }
  .nav-all-categories > a i { color: #d4c4a0 !important; }

  .nav-menu > li > a {
    border-bottom: none;
    justify-content: flex-start;
    text-align: start;
    min-height: 56px;
    font-size: 15px;
    margin: 3px 10px;
    width: calc(100% - 20px);
    border-radius: 16px;
    background: rgba(255,255,255,.045);
    letter-spacing: .2px;
    padding: 15px 18px;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
    border: 1px solid rgba(255,255,255,.06);
    border-inline-start: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255,255,255,.82);
  }
  .nav-menu > li > a i:first-child {
    width: 22px;
    text-align: center;
    font-size: 15px;
    color: rgba(181,155,110,.7);
    flex-shrink: 0;
    transition: color .18s ease;
  }
  .nav-menu > li > a:hover {
    background: rgba(255,255,255,.09);
    border-inline-start-color: var(--secondary);
    color: #fff;
    transform: translateX(-2px);
  }
  html[dir="ltr"] .nav-menu > li > a:hover { transform: translateX(2px); }
  .nav-menu > li > a:hover i:first-child { color: var(--secondary); }
  .nav-menu > li.active > a {
    background: linear-gradient(135deg, rgba(181,155,110,.18) 0%, rgba(181,155,110,.1) 100%);
    border-inline-start-color: var(--secondary);
    font-weight: 700;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0,0,0,.14);
  }
  .nav-menu > li.active > a i:first-child { color: var(--secondary); }
  .nav-menu > li.active > a::after { display: none; }
  .nav-menu > li > a::after { display: none; }

  /* Visual separator after All Categories */
  .nav-all-categories {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }

  /* Mobile categories dropdown - improved 2-column grid */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border-radius: 18px;
    border-top: none;
    margin: 8px 10px 14px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 0 0;
    overflow: hidden;
  }
  .nav-dropdown.is-open .dropdown-menu { display: grid; }
  .nav-all-categories > a > i.fa-chevron-down {
    margin-inline-start: auto;
    transition: transform .2s ease;
  }
  .nav-dropdown.is-open > a > i.fa-chevron-down { transform: rotate(180deg); }
  .dropdown-menu a {
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.1);
    text-align: center;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 13px;
    background: rgba(255,255,255,.07);
    justify-content: center;
    display: flex;
    align-items: center;
    min-height: 54px;
    transition: background .18s ease, border-color .2s ease, color .18s ease;
    letter-spacing: .2px;
  }
  .dropdown-menu a::before { display: none; }
  .dropdown-menu a:hover {
    background: rgba(181,155,110,.2);
    border-color: rgba(181,155,110,.45);
    color: #fff;
    padding-inline-start: 10px;
  }

  /* ── Mobile Nav Footer (lang switch + socials) ── */
  .mobile-nav-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 14px calc(22px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(0,0,0,.18) 100%);
    flex-shrink: 0;
  }
  .mobile-lang-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #f5e9cf;
    background: linear-gradient(135deg, rgba(181,155,110,.22) 0%, rgba(181,155,110,.08) 100%);
    border: 1px solid rgba(181,155,110,.35);
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
    transition: background .22s ease, transform .2s ease, box-shadow .22s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
  }
  .mobile-lang-switch i { font-size: 15px; color: #d4c4a0; }
  .mobile-lang-switch span { flex: 1; }
  .mobile-lang-arrow { font-size: 12px !important; opacity: .7; }
  .mobile-lang-switch:hover,
  .mobile-lang-switch:focus-visible {
    background: linear-gradient(135deg, rgba(181,155,110,.38) 0%, rgba(181,155,110,.16) 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(181,155,110,.22);
  }
  .mobile-nav-social {
    display: flex;
    justify-content: center;
    gap: 10px;
  }
  .mobile-nav-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.82);
    font-size: 14px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .mobile-nav-social a:hover {
    background: rgba(181,155,110,.22);
    border-color: rgba(181,155,110,.4);
    color: #fff;
    transform: translateY(-2px);
  }

  .hero-slider {
    height: clamp(320px, 76vw, 390px);
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
  .hero-slide {
    justify-content: center;
    align-items: flex-end;
    padding: 0 16px 48px;
  }
  .hero-slide-overlay {
    background: linear-gradient(180deg, rgba(4,20,40,.18) 0%, rgba(4,20,40,.62) 100%);
  }
  .hero-content {
    width: min(100%, 372px);
    padding: 24px 20px 22px;
    max-width: none;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(6,24,46,.18) 0%, rgba(6,24,46,.44) 100%);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 28px;
    box-shadow: 0 22px 44px rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
  }
  .hero-content h1 {
    font-size: clamp(24px, 6.2vw, 30px);
    margin-bottom: 10px;
    line-height: 1.35;
    text-shadow: 0 3px 14px rgba(0,0,0,.18);
  }
  .hero-content p {
    font-size: 13.5px;
    max-width: 34rem;
    margin-inline: auto;
    margin-bottom: 18px;
    line-height: 1.85;
  }
  .hero-content .btn,
  .section-cta .btn,
  .cta-banner .btn {
    width: auto;
    max-width: 100%;
  }
  .hero-content .btn {
    min-height: 54px;
    min-width: 220px;
    padding: 15px 30px;
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(181,155,110,.3);
  }
  .hero-slider-dots {
    bottom: 14px;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(5,22,41,.22);
    backdrop-filter: blur(8px);
  }
  .hero-slider-dots span {
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255,255,255,.32);
  }
  .section-title { margin-bottom: 30px; }
  .section-title p {
    max-width: 580px;
    margin-inline: auto;
  }
  .page-shell {
    padding: 20px 0 36px;
  }
  .page-header--start {
    text-align: center;
  }
  .page-header--start .page-subtitle {
    margin-inline: auto;
  }
  .content-card,
  .account-section,
  .order-detail-card,
  .order-totals-card {
    padding: 18px;
    border-radius: 18px;
  }
  .account-grid {
    gap: 16px;
    padding: 18px 0;
  }
  .account-sidebar {
    position: static;
    top: auto;
    border-radius: 20px;
  }
  .account-sidebar-header {
    padding: 18px 16px;
    text-align: start;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .account-sidebar-avatar {
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 18px;
  }
  .account-sidebar-avatar i {
    font-size: 32px;
  }
  .account-sidebar-copy {
    min-width: 0;
    flex: 1;
  }
  .account-sidebar-header h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .account-sidebar-nav {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .account-sidebar-nav a {
    min-height: 78px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 10px;
  }
  .account-content {
    padding: 20px;
    border-radius: 20px;
  }
  .account-page-header {
    margin-bottom: 18px;
    text-align: center;
    align-items: center;
  }
  .account-page-subtitle {
    margin-inline: auto;
    font-size: 13px;
  }
  .account-inline-box {
    max-width: none;
  }
  .table-responsive {
    overflow: visible;
  }
  .table-responsive .account-orders-table {
    min-width: 0;
  }
  .account-orders-table {
    display: block;
    background: transparent;
  }
  .account-orders-table thead {
    display: none;
  }
  .account-orders-table tbody {
    display: grid;
    gap: 12px;
  }
  .account-orders-table tbody tr {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(15,86,132,.1);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 12px 26px rgba(15,86,132,.07);
  }
  .account-orders-table td {
    display: grid;
    gap: 4px;
    padding: 0;
    border: none;
  }
  .account-orders-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
  }
  .account-order-number {
    color: var(--primary);
  }
  .account-order-action-cell {
    padding-top: 4px;
  }
  .account-order-link {
    width: 100%;
  }
  .account-empty-orders {
    min-height: 180px;
  }
  .auth-meta {
    flex-direction: column;
    align-items: stretch;
  }
  .detail-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .order-detail-header {
    justify-content: center;
    text-align: center;
  }
  .order-totals-card {
    max-width: none;
    margin-inline: 0;
  }
  .checkout-summary-item {
    align-items: flex-start;
  }
  .order-success-actions .btn {
    width: min(100%, 300px);
  }
  /* ── Products page layout on mobile ── */
  .page-with-sidebar { gap: 8px; padding: 12px 0; }
  .products-list-header { padding: 10px 14px; margin-bottom: 12px; gap: 8px; }
  .products-list-title { font-size: 15px; }
  .products-sort-select { font-size: 12.5px; padding: 7px 10px; }

  /* ── Product grid & cards on mobile ── */
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 12px; }
  .product-card:hover { transform: none; box-shadow: 0 2px 14px rgba(0,0,0,.08); }

  /* Actions: always-visible bar at bottom of card */
  .product-card-actions {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    background: var(--bg);
    gap: 5px;
    justify-content: center;
  }
  /* All 3 buttons are equal square icons on mobile */
  .pca-label { display: none; }
  .pca-cart {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    gap: 0;
    background: var(--primary);
    color: #fff;
  }
  .pca-icon { width: 36px; height: 36px; border-radius: 8px; font-size: 13px; }
  .product-card-body {
    padding: 12px 12px 10px;
    text-align: center;
    align-items: center;
  }
  .product-card-category,
  .product-card-title,
  .product-card-price {
    width: 100%;
    text-align: center;
  }
  .product-card-rating,
  .product-card-price { justify-content: center; }
  .product-card-title { font-size: 12.5px; -webkit-line-clamp: 2; }
  .product-card-category { font-size: 9.5px; }
  .price-current { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer {
    padding: 28px 0 0;
    background: #162536;
  }
  .footer-grid {
    gap: 18px;
  }
  .footer-col {
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .footer-col h3 {
    margin-bottom: 9px;
    font-size: 14px;
    padding-bottom: 0;
    font-weight: 700;
  }
  .footer-col h3::after { display: none; }
  .footer-about p {
    font-size: 12px;
    line-height: 1.8;
    color: #c0ceda;
    margin-bottom: 10px;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .footer-links li { margin: 0; }
  .footer-links a {
    display: inline;
    min-height: 0;
    font-size: 12px;
    color: #c8d4de;
    border-radius: 0;
    padding-inline: 0;
  }
  .footer-links a:hover {
    color: #fff;
    background: transparent;
    padding-right: 0;
  }
  .footer-links a::before { display: none; }
  .footer-social {
    gap: 8px;
  }
  .footer-social a {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
  }
  .footer-contact li {
    gap: 7px;
    margin-bottom: 8px;
    color: #c5d2dd;
    font-size: 12px;
  }
  .footer-col { text-align: center; }
  .footer-social,
  .footer-links { justify-content: center; }
  .footer-contact li {
    justify-content: center;
    text-align: center;
  }
  .footer-bottom {
    margin-top: 10px;
    padding: 12px 0 calc(10px + env(safe-area-inset-bottom));
    font-size: 10px;
    color: #97aabd;
    border-top-color: rgba(255,255,255,.06);
  }
  .features-bar { padding: 20px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-item {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 18px 16px;
    background: linear-gradient(180deg, #fff 0%, #f9fbfe 100%);
    border: 1px solid rgba(15,86,132,.08);
    box-shadow: 0 10px 28px rgba(15,86,132,.08);
  }
  .feature-item i { font-size: 30px; }
  .feature-item p {
    max-width: 30rem;
    margin-inline: auto;
  }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card {
    min-height: 156px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .brands-slider {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    padding: 0;
  }
  .brand-item {
    min-width: 0;
    width: 100%;
    height: 78px;
    filter: none;
    opacity: 1;
  }
  .cart-table { font-size: 12px; }
  .cart-summary { max-width: none; margin-left: 0; margin-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-hero { padding: clamp(40px, 10vw, 60px) 0; }
  .about-hero h1 { font-size: clamp(22px, 6vw, 30px); }
  .about-content {
    text-align: center;
    gap: 24px;
  }
  .about-copy,
  .about-media {
    max-width: 560px;
    margin-inline: auto;
  }
  .about-actions { justify-content: center; }
  .about-actions .btn {
    flex: 1 1 220px;
    max-width: 280px;
  }
  .team-grid,
  .testimonials-grid { gap: 16px; }
  .team-card,
  .testimonial-card {
    max-width: 420px;
    margin-inline: auto;
  }
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  .testimonial-author-meta { text-align: center; }
  .breadcrumb { flex-wrap: wrap; row-gap: 4px; }
  .pagination { flex-wrap: wrap; }
  .page-404 h1 { font-size: clamp(56px, 20vw, 100px); }
  .page-404 h2 { font-size: clamp(18px, 4vw, 22px); }
  .order-detail-meta-grid { grid-template-columns: 1fr; }
  .order-proof-grid { grid-template-columns: 1fr !important; }
  /* ── Product Detail Mobile ── */
  .product-detail { padding: 20px 0 32px; gap: 0; }
  .product-gallery { margin-bottom: 0; }
  .product-main-image {
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  .product-main-image img {
    height: clamp(220px, 55vw, 320px);
    padding: 16px;
    object-fit: contain;
  }
  .product-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 14px 12px;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid var(--border);
  }
  .product-thumbs::-webkit-scrollbar { display: none; }
  .product-thumbs img { width: 60px; height: 60px; flex-shrink: 0; border-radius: 8px; }
  .product-info {
    background: var(--bg);
    padding: 20px 16px 16px;
  }
  .product-info h1 { font-size: clamp(17px, 5vw, 22px); line-height: 1.4; margin-bottom: 8px; }
  .product-meta { margin-bottom: 10px; gap: 4px 12px; font-size: 12px; }
  .product-price-detail {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(15,86,132,.07) 0%, rgba(15,86,132,.04) 100%);
  }
  .product-price-detail .price-current { font-size: clamp(22px, 6vw, 28px); }
  .product-description { font-size: 13.5px; margin-bottom: 16px; }
  .product-qty { margin-bottom: 16px; gap: 12px; }
  .qty-control button { width: 46px; height: 46px; font-size: 22px; }
  .qty-control input { width: 56px; height: 46px; font-size: 17px; }
  .product-actions-detail {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .product-actions-detail .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  /* Specs on mobile — card style */
  .product-specs { margin-top: 20px; border-radius: 10px; }
  .product-specs h3 { font-size: 14px; padding: 12px 16px; }
  .specs-table td { padding: 10px 14px; font-size: 12.5px; }
  .specs-table td:first-child { width: 45%; }

  .whatsapp-float { left: 16px; bottom: 70px; width: 50px; height: 50px; font-size: 24px; }
  .scroll-top { right: 16px; bottom: 16px; }
  .form-control,
  .header-search input,
  .qty-control input {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .top-bar-links a:nth-child(2),
  .top-bar-links span {
    display: none;
  }
  .top-bar-social a:not(.lang-switcher) {
    display: none;
  }
  .header-main { gap: 8px 10px; }
  .main-nav {
    width: calc(100vw - 10px);
  }
  .page-title-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 20px;
  }
  .mobile-nav-panel-header {
    margin: 8px 8px 0;
    padding-inline: 16px;
  }
  .logo img {
    height: 38px;
    max-width: 140px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-action,
  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
  .header-action i { font-size: 16px; }
  .nav-menu > li > a {
    margin-inline: 8px;
    width: calc(100% - 16px);
    padding-inline: 16px;
  }
  .dropdown-menu {
    margin-inline: 8px;
  }
  .header-search form { border-radius: 20px; }
  .header-search input {
    font-size: 14px;
    padding: 11px 16px;
    padding-inline-end: 52px;
  }
  .header-search button {
    width: 38px;
    height: 38px;
    inset-inline-end: 5px;
  }
  .hero-slider {
    height: clamp(286px, 86vw, 344px);
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
  }
  .hero-slide {
    padding-inline: 10px;
    padding-bottom: 46px;
  }
  .hero-content {
    width: min(100%, 336px);
    padding: 20px 16px 18px;
    border-radius: 22px;
  }
  .hero-content h1 { font-size: clamp(21px, 6.8vw, 26px); }
  .hero-content p { font-size: 12.8px; line-height: 1.75; }
  .hero-content .btn {
    min-width: 192px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 16px;
  }
  .hero-slider-dots {
    bottom: 12px;
    gap: 8px;
    padding: 6px 10px;
  }
  .page-shell { padding: 18px 0 30px; }
  .content-card,
  .account-section,
  .order-detail-card,
  .order-totals-card { padding: 16px; }
  .empty-state { padding: 32px 16px; }
  .section { padding: 32px 0; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { padding: 18px 10px; }
  .category-card i { font-size: 36px; }
  /* Products list header compact */
  .products-list-header { padding: 10px 14px; margin-bottom: 12px; }
  .products-list-title { font-size: 15px; }
  .products-sort-select { font-size: 12px; padding: 7px 10px; }
  /* Product cards on small screens */
  .product-card { border-radius: 10px; }
  .product-card-body { padding: 8px 9px 6px; }
  .product-card-title { font-size: 12px; }
  .price-current { font-size: 14px; }
  .pca-cart, .pca-icon { width: 32px; height: 32px; }
  .product-card-actions { padding: 7px 8px; gap: 4px; }
  /* Product detail on 480px */
  .product-info { padding: 16px 14px 14px; }
  .product-price-detail { padding: 12px 14px; }
  .product-actions-detail .btn { padding: 12px 16px; font-size: 14px; }
  .section-title { margin-bottom: 28px; }
  .btn-lg { padding: 12px 20px; font-size: 15px; }
  .checkout-section { padding: 18px; }
  .contact-form { padding: 20px; }
  .account-content { padding: 18px; }
  .account-sidebar-header {
    padding: 16px 14px;
    gap: 12px;
  }
  .account-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-sidebar-nav a:last-child {
    grid-column: 1 / -1;
  }
  .account-orders-table tbody tr {
    padding: 14px;
    border-radius: 16px;
  }
  .footer {
    padding-top: 24px;
  }
  .footer-grid {
    gap: 14px;
  }
  .footer-col h3 {
    font-size: 13px;
    margin-bottom: 7px;
  }
  .footer-about p {
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 12px;
  }
  .footer-links {
    gap: 2px 8px;
  }
  .footer-links a {
    font-size: 12px;
  }
  .footer-social { gap: 7px; }
  .footer-social a {
    width: 30px;
    height: 30px;
  }
  .footer-contact li { font-size: 11px; margin-bottom: 7px; }
  .footer-bottom { margin-top: 8px; font-size: 10px; }
  .about-stats { grid-template-columns: 1fr; }
  .brands-slider,
  .team-grid,
  .testimonials-grid { grid-template-columns: 1fr; }
  .section-cta .btn,
  .about-actions .btn,
  .cta-banner .btn { width: 100%; max-width: none; }
  .contact-info-cards { grid-template-columns: 1fr; }
  .product-thumbs img { width: 55px; height: 55px; }
  .product-detail { gap: 20px; }
  .pagination a, .pagination span { width: 36px; height: 36px; font-size: 12px; }
  .checkout-summary-sticky { margin-top: 12px; }
}

/* Text overflow handling for long names on mobile */
.product-card h3,
.product-info h1,
.product-description,
.product-card-body .price-current {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Modal/overlay mobile containment */
@media (max-width: 480px) {
  .modal, [role="dialog"] {
    max-width: calc(100vw - 32px) !important;
    max-height: calc(100vh - 32px) !important;
  }
}

/* Very small phones (400px and below) */
@media (max-width: 400px) {
  .logo img {
    height: 34px;
    max-width: 120px;
  }
  .header-actions { gap: 5px; }
  .header-action,
  .menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }
  .header-action i { font-size: 15px; }
  .header-search input {
    padding-inline-start: 14px;
    padding-inline-end: 48px;
  }
  .header-search button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .hero-content {
    width: 100%;
    padding: 16px 14px 14px;
  }
  .hero-content .btn {
    min-width: 176px;
    padding-inline: 20px;
  }
  .account-sidebar-nav {
    grid-template-columns: 1fr;
  }
  .account-sidebar-nav a:last-child {
    grid-column: auto;
  }
  .account-sidebar-nav a {
    min-height: 64px;
    flex-direction: row;
    justify-content: flex-start;
    text-align: start;
  }
  /* Hide wishlist on very tight screens */
  .header-action[href="/account/wishlist"] { display: none; }
}

/* Very small phones (360px and below) */
@media (max-width: 360px) {
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .categories-grid { grid-template-columns: 1fr; gap: 8px; }
  .category-card { padding: 15px 10px; }
  .nav-menu > li > a { font-size: 13.5px; padding: 12px 14px; }
  .dropdown-menu { grid-template-columns: 1fr; }
}

/* Status Badges */
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; }
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cce5ff; color: #004085; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-rejected { background: #f8d7da; color: #721c24; }

/* ========== NOTIFICATION BELL ========== */
.notif-bell:focus-visible,
.notif-mark-all:focus-visible,
.notif-close:focus-visible {
  outline: 2px solid rgba(15,86,132,.22);
  outline-offset: 2px;
}
.notif-bell { position: relative; cursor: pointer; }
.notif-bell.is-open { z-index: 501; }
.notif-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--danger, #f8303d);
  color: #fff;
  font-size: 10px;
  min-width: 18px; height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #fff;
  line-height: 1;
  animation: notif-pop .3s cubic-bezier(.34,1.56,.64,1) both;
  pointer-events: none;
}
.notif-count.visible { display: flex; }
@keyframes notif-pop { from { transform:scale(0); } to { transform:scale(1); } }

@keyframes bell-shake {
  0%,100% { transform:rotate(0); }
  20%      { transform:rotate(-16deg); }
  40%      { transform:rotate(16deg); }
  60%      { transform:rotate(-10deg); }
  80%      { transform:rotate(8deg); }
}
.notif-bell.has-unread #notifBellIcon { animation: bell-shake .6s ease; }

/* ========== NOTIFICATION DROPDOWN ========== */
.notif-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%; transform: translateX(-50%);
  width: min(360px, calc(100vw - 24px));
  max-height: 480px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15,86,132,.12);
  box-shadow: 0 20px 60px rgba(10,40,63,.22), 0 4px 16px rgba(0,0,0,.07);
  z-index: 500;
  overflow: hidden;
  transform-origin: top center;
}
.notif-dropdown.open {
  display: flex;
  animation: notif-slide-in .22s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes notif-slide-in {
  from { opacity:0; transform:translateX(-50%) translateY(-10px) scale(.96); }
  to   { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
}

/* Header */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg,#f4f9ff 0%,#fff 100%);
  flex-shrink: 0;
  position: relative;
}
.notif-header-left { display:flex; align-items:center; gap:8px; color:var(--primary,#0f5684); }
.notif-header-left i { font-size:16px; }
.notif-header-left strong { font-size:14px; color:#1a2a3a; }
.notif-header-right { display:flex; align-items:center; gap:6px; }
.notif-mark-all {
  font-size:11px; color:var(--primary,#0f5684); font-weight:600;
  text-decoration:none; padding:3px 9px; border-radius:20px;
  background:rgba(15,86,132,.09); transition:background .2s; white-space:nowrap;
}
.notif-mark-all:hover { background:rgba(15,86,132,.18); }
.notif-close {
  background:none; border:none; padding:4px 7px; cursor:pointer;
  color:#aaa; border-radius:6px; transition:background .2s,color .2s; line-height:1;
}
.notif-close:hover { background:#f0f0f0; color:#333; }

/* List */
#notifList { flex:1; overflow-y:auto; overscroll-behavior:contain; max-height:340px; }
#notifList::-webkit-scrollbar { width:4px; }
#notifList::-webkit-scrollbar-track { background:#f5f5f5; }
#notifList::-webkit-scrollbar-thumb { background:#ddd; border-radius:2px; }

/* Loading */
.notif-loading { display:flex; align-items:center; justify-content:center; padding:32px; }
.notif-loading.hidden { display:none; }
.notif-spinner {
  width:28px; height:28px;
  border:3px solid #f0f0f0;
  border-top-color:var(--primary,#0f5684);
  border-radius:50%;
  animation:notif-spin .7s linear infinite;
}
@keyframes notif-spin { to { transform:rotate(360deg); } }

/* Empty state */
.notif-empty {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:40px 20px; gap:10px; color:#bbb;
}
.notif-empty i { font-size:38px; opacity:.3; }
.notif-empty span { font-size:13px; }

/* Items */
a.notif-item { text-decoration:none; color:inherit; display:block; }
.notif-item {
  display:flex; align-items:flex-start; gap:12px;
  padding:12px 16px; border-bottom:1px solid #f5f5f5;
  cursor:pointer; transition:background .15s; position:relative;
}
.notif-item:last-child { border-bottom:none; }
.notif-item:hover { background:#f8fafd; }
.notif-item.unread { background:#f0f7ff; }
.notif-item.unread::before {
  content:''; position:absolute; left:0; top:0; bottom:0;
  width:3px; background:var(--primary,#0f5684); border-radius:0 2px 2px 0;
}
html[dir="rtl"] .notif-item.unread::before { left:auto; right:0; border-radius:2px 0 0 2px; }
.notif-item-icon {
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:14px; flex-shrink:0;
  box-shadow:0 2px 8px rgba(0,0,0,.13);
}
.notif-item-body { flex:1; min-width:0; }
.notif-item-title { font-weight:700; font-size:13px; margin-bottom:2px; color:#1a2a3a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.notif-item-msg {
  color:#666; font-size:12px; line-height:1.4;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.notif-item-time { font-size:10px; color:#aaa; margin-top:4px; }

/* Footer */
.notif-footer {
  border-top:1px solid #f0f0f0; padding:10px 16px;
  text-align:center; flex-shrink:0; background:#fafafa;
}
.notif-footer a { font-size:12px; color:var(--primary,#0f5684); font-weight:600; text-decoration:none; transition:color .2s; }
.notif-footer a:hover { color:var(--primary-dark,#0a3d5e); }

/* Mobile overlay */
.notif-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.45); z-index:499;
  backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px);
  animation:notif-fade-in .2s ease;
}
.notif-overlay.visible { display:block; }
body.notif-open { overflow: hidden; }
@keyframes notif-fade-in { from { opacity:0; } to { opacity:1; } }

/* ── Mobile: bottom sheet ── */
@media (max-width: 768px) {
  .notif-dropdown {
    position:fixed !important;
    top:auto !important; bottom:0 !important;
    left:0 !important; right:0 !important;
    transform:none !important;
    width:100% !important; max-height:82vh !important;
    border-radius:22px 22px 0 0 !important;
    border:none !important;
    box-shadow:0 -12px 48px rgba(10,40,63,.28) !important;
    z-index:500 !important;
  }
  .notif-dropdown.open {
    animation:notif-slide-up .32s cubic-bezier(.22,.68,0,1) both !important;
  }
  @keyframes notif-slide-up {
    from { opacity:0; transform:translateY(80px); }
    to   { opacity:1; transform:translateY(0); }
  }
  #notifList {
    max-height:calc(82vh - 170px) !important;
    padding:4px 0;
  }
  .notif-header {
    padding:26px 18px 14px !important;
    background:#fff !important;
    border-bottom:1px solid #f0f2f5 !important;
  }
  .notif-header::before {
    content:''; position:absolute; top:10px; left:50%; transform:translateX(-50%);
    width:44px; height:5px; background:#d5dae1; border-radius:3px;
  }
  .notif-header-left strong { font-size:15px; }
  .notif-header-left i { font-size:17px; }
  .notif-header-right {
    gap:8px;
  }
  .notif-mark-all {
    font-size:12px;
    padding:7px 13px;
    border-radius:999px;
    background:rgba(15,86,132,.1);
  }
  .notif-close {
    width:36px;
    height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f3f5f8;
    color:#5a6678;
    font-size:18px;
  }
  .notif-close:hover { background:#e7ebf0; color:#1a2a3a; }
  .notif-item {
    padding:14px 18px;
    gap:13px;
  }
  .notif-item-icon {
    width:42px; height:42px;
    font-size:15px;
  }
  .notif-item-title { font-size:14px; margin-bottom:3px; }
  .notif-item-msg { font-size:13px; }
  .notif-item-time { font-size:11px; margin-top:5px; }
  .notif-footer {
    padding:14px 16px calc(16px + env(safe-area-inset-bottom)) !important;
    background:#fff !important;
  }
  .notif-footer a { font-size:13px; }
  .notif-empty { padding:50px 20px; }
  .notif-empty i { font-size:44px; }
  .notif-empty span { font-size:14px; }
  .notif-overlay { background:rgba(0,0,0,.55) !important; }
}
@media (max-width: 480px) {
  .notif-dropdown { max-height:85vh !important; border-radius:20px 20px 0 0 !important; }
  #notifList { max-height:calc(85vh - 165px) !important; }
  .notif-header { padding:24px 16px 12px !important; }
  .notif-item { padding:13px 16px; gap:11px; }
  .notif-item-icon { width:40px; height:40px; }
  .notif-mark-all { padding:6px 11px; font-size:11px; }
  .notif-close { width:34px; height:34px; font-size:17px; }
}

/* ========== CHAT WIDGET ========== */
#chatWidget {
  position: fixed !important;
  bottom: 22px !important;
  right: 84px !important;
  z-index: 998;
}
#chatWidget button:hover { transform: scale(1.05); }
#chatWindow {
  animation: chatSlideUp .3s ease;
  border: 1px solid rgba(15,86,132,.12) !important;
  box-shadow: 0 16px 40px rgba(8,35,56,.24) !important;
}
#chatPreForm input:focus,
#chatBody input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(15,86,132,.12);
}
@keyframes chatSlideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@media (max-width: 768px) {
  #chatWidget {
    right: 14px !important;
    bottom: 74px !important;
  }
  #chatToggleBtn {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
  }
  #chatWindow {
    width: min(390px, calc(100vw - 12px)) !important;
    right: 0 !important;
    bottom: 64px !important;
    max-height: 75vh !important;
  }
  #chatBody {
    height: clamp(260px, 52vh, 380px) !important;
  }
  #chatMsgs {
    padding: 12px !important;
  }
}
@media (max-width:480px) {
  #chatWidget {
    right: 10px !important;
    bottom: 72px !important;
  }
  #chatWindow {
    width: calc(100vw - 10px) !important;
    right: -2px !important;
    bottom: 62px !important;
    max-height: 74vh !important;
    border-radius: 14px !important;
  }
  #chatPreForm {
    padding: 14px !important;
  }
  #chatPreForm p {
    font-size: 12px !important;
  }
}

/* ========== SCROLL ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(15,86,132,.25); }
  50%       { box-shadow: 0 0 0 10px rgba(15,86,132,0); }
}

/* Base hidden state — applied by JS before scroll */
[data-animate] {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate="up"]    { transform: translateY(36px); }
[data-animate="left"]  { transform: translateX(-36px); }
[data-animate="right"] { transform: translateX(36px); }
[data-animate="scale"] { transform: scale(.88); }
[data-animate="fade"]  { transform: none; }

[data-animate].visible {
  opacity: 1;
  transform: none !important;
}

/* Stagger delay helpers */
[data-delay="1"] { transition-delay: .1s !important; }
[data-delay="2"] { transition-delay: .2s !important; }
[data-delay="3"] { transition-delay: .3s !important; }
[data-delay="4"] { transition-delay: .4s !important; }
[data-delay="5"] { transition-delay: .5s !important; }
[data-delay="6"] { transition-delay: .6s !important; }

/* ========== ENHANCED CARD HOVER ========== */
.product-card {
  will-change: transform;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 18px 45px rgba(15,86,132,.14);
}
.category-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 35px rgba(15,86,132,.13);
  border-color: var(--primary);
  color: var(--primary);
}
.category-card {
  border: 2px solid transparent;
}
.category-card:hover i { transform: scale(1.2) rotate(-6deg); transition: transform .35s ease; }
.category-card i { transition: transform .35s ease; }

/* ========== HERO SECTION ENTRANCE ========== */
.hero-content h1  { animation: fadeInUp .7s ease both; animation-delay: .15s; }
.hero-content p   { animation: fadeInUp .7s ease both; animation-delay: .3s; }
.hero-content .btn { animation: fadeInUp .7s ease both; animation-delay: .45s; }

/* ========== FEATURES BAR ========== */
.feature-item {
  transition: transform .3s ease, box-shadow .3s ease;
  border-radius: var(--radius);
  padding: 12px 16px;
}
.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  background: rgba(15,86,132,.04);
}
.feature-item i {
  transition: transform .35s ease, color .25s ease;
}
.feature-item:hover i {
  transform: scale(1.25) rotate(-8deg);
  color: var(--secondary);
}

/* ========== SECTION TITLE UNDERLINE ANIMATION ========== */
.section-title h2::after {
  transition: width .5s ease;
}
.section-title:hover h2::after,
.section-title.visible h2::after {
  width: 90px;
}

/* ========== PASSWORD TOGGLE ========== */
.pw-field {
  position: relative;
}
.pw-field input {
  padding-inline-end: 44px !important;
}
.pw-toggle {
  position: absolute;
  top: 50%;
  inset-inline-end: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 16px;
  padding: 0;
  line-height: 1;
  transition: color .2s;
}
.pw-toggle:hover { color: var(--primary); }

/* ========== ENHANCED AUTH BOX ========== */
.auth-box {
  animation: scaleIn .45s ease both;
}
.auth-page {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-dark) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.form-control:focus {
  animation: pulse-glow .6s ease;
}

/* ========== BEAUTIFUL FILTER BAR ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: 0 2px 12px rgba(15,86,132,.07);
  margin-bottom: 22px;
  border: 1px solid rgba(15,86,132,.08);
}
.filter-bar input,
.filter-bar select {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid #e4e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  background: #f8f9fc;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  min-width: 0;
}
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15,86,132,.09);
}
.filter-bar .btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.search-input-wrap i {
  position: absolute;
  inset-inline-start: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #aab;
  font-size: 14px;
  pointer-events: none;
}
.search-input-wrap input {
  padding-inline-start: 36px !important;
  width: 100%;
}
