:root {
  --primary: #1a1a1a;
  --primary-hover: #333333;
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-light: #ecfdf5;
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --text-lighter: #999999;
  --bg: #ffffff;
  --bg-light: #f9f9f9;
  --bg-warm: #ecfdf5;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --success: #047857;
  --error: #d32f2f;
  --warning: #f57c00;
  --badge-bg: #047857;
  --sale-red: #d32f2f;
  --font-en: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: "Tajawal", sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[dir="rtl"] body { font-family: var(--font-ar); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== ANNOUNCEMENT BAR ========== */
.announcement-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px 48px 10px 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
}
[dir="rtl"] .announcement-bar { padding: 10px 16px 10px 48px; }
.announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.announcement-bar__lang {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 12px;
  opacity: 0.85;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 2px 10px;
  border-radius: 3px;
  transition: var(--transition);
}
.announcement-bar__lang:hover { opacity: 1; border-color: #fff; }
[dir="rtl"] .announcement-bar__lang { right: auto; left: 24px; }

/* ========== HEADER ========== */
.header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text);
  flex-shrink: 0;
}
.header__mobile-toggle svg { width: 24px; height: 24px; }
.header__nav { display: flex; gap: 28px; align-items: center; flex-shrink: 0; }
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
  white-space: nowrap;
}
.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.header__nav a:hover { color: var(--accent); }
.header__nav a:hover::after { width: 100%; }
.header__logo {
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header__logo-img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__action-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.header__action-btn:hover { color: var(--accent); }
.header__action-btn svg { width: 22px; height: 22px; stroke-width: 1.5; }
.header__badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--badge-bg);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== MEGA MENU ========== */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 4px 0;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.nav-dropdown__trigger::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-dropdown__trigger:hover { color: var(--accent); }
.nav-dropdown__trigger:hover::after { width: 100%; }
.nav-dropdown__trigger svg { transition: transform 0.3s ease; }
.nav-dropdown:hover .nav-dropdown__trigger svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  min-width: 600px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 200;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}
[dir="rtl"] .mega-menu { left: auto; right: 50%; transform: translateX(50%) translateY(8px); }
.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
[dir="rtl"] .nav-dropdown:hover .mega-menu { transform: translateX(50%) translateY(0); }

.mega-menu__inner { padding: 24px; }
.mega-menu__categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mega-menu__category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  transition: var(--transition);
}
.mega-menu__category-title:hover { color: var(--accent); }
.mega-menu__category-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.mega-menu__subcategories {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.mega-menu__subcategories li { margin-bottom: 4px; }
.mega-menu__subcategories a {
  font-size: 13px;
  color: var(--text-light);
  padding: 4px 0;
  display: block;
  transition: var(--transition);
}
.mega-menu__subcategories a:hover { color: var(--accent); padding-left: 6px; }
[dir="rtl"] .mega-menu__subcategories a:hover { padding-left: 0; padding-right: 6px; }
.mega-menu__footer {
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: 16px;
  text-align: center;
}
.mega-menu__view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
.mega-menu__view-all:hover { opacity: 0.8; }

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  z-index: 200;
  padding: 8px 0;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}
[dir="rtl"] .nav-dropdown__menu { left: auto; right: 50%; transform: translateX(50%) translateY(8px); }
.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: all;
}
[dir="rtl"] .nav-dropdown:hover .nav-dropdown__menu { transform: translateX(50%) translateY(0); }
.nav-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
.nav-dropdown__item:hover { background: var(--bg-light); color: var(--accent); }
.nav-dropdown__item-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}
.nav-dropdown__item--all { font-weight: 600; color: var(--accent); }
.nav-dropdown__divider { height: 1px; background: var(--border-light); margin: 4px 0; }

/* ========== MOBILE NAV DRAWER ========== */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.active { display: block; opacity: 1; }
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}
[dir="rtl"] .mobile-nav { left: auto; right: 0; transform: translateX(100%); }
.mobile-nav.active { transform: translateX(0); }
[dir="rtl"] .mobile-nav.active { transform: translateX(0); }
.mobile-nav__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-nav__logo-img {
  height: 44px;
  width: auto;
}
.mobile-nav__group { border-bottom: 1px solid var(--border-light); }
.mobile-nav__subs { padding: 0 0 8px 20px; }
[dir="rtl"] .mobile-nav__subs { padding: 0 20px 8px 0; }
.mobile-nav__sublink {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}
.mobile-nav__sublink:hover { color: var(--accent); }
.mobile-nav__close { background: none; border: none; padding: 4px; color: var(--text); }
.mobile-nav__close svg { width: 24px; height: 24px; }
.mobile-nav__links { display: flex; flex-direction: column; gap: 0; }
.mobile-nav__link {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.mobile-nav__link:hover { color: var(--accent); }
.mobile-nav__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.mobile-nav__action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-light);
  transition: var(--transition);
}
.mobile-nav__action:hover { color: var(--accent); }
.mobile-nav__action svg { width: 20px; height: 20px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 0 48px;
}
.hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}
.hero__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero__subtitle {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.7;
  margin-bottom: 32px;
  opacity: 0.9;
  max-width: 480px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--text); }
.btn--white:hover { background: #f5f5f5; transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { background: transparent; border: 1.5px solid var(--text); color: var(--text); }
.btn--outline:hover { background: var(--text); color: #fff; }
.btn--outline-white { background: transparent; border: 1.5px solid #fff; color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--text); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--lg { padding: 16px 40px; font-size: 15px; }

/* ========== SECTION HEADERS ========== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-header__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.section-header__desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== CATEGORY CARDS ========== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  cursor: pointer;
  display: block;
}
.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.category-card:hover .category-card__img { transform: scale(1.05); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.category-card__name { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.category-card__count { color: rgba(255,255,255,0.75); font-size: 13px; }
.category-card__btn {
  margin-top: 12px;
  padding: 10px 24px;
  background: #fff;
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  width: fit-content;
}
.category-card__placeholder {
  width: 100%;
  height: 100%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card__placeholder span {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
}

/* ========== PRODUCT CARDS ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  position: relative;
  display: block;
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); }
.product-card__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-light);
  aspect-ratio: 3/4;
  margin-bottom: 12px;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card__no-img {
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-lighter);
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.product-card__badge--sale { background: var(--sale-red); color: #fff; }
.product-card__badge--new { background: var(--accent); color: #fff; }
.product-card__badge--sold-out { background: var(--text-light); color: #fff; }
[dir="rtl"] .product-card__badge { left: auto; right: 10px; }
.product-card__quick-actions {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  display: flex;
  gap: 8px;
  transition: var(--transition);
}
.product-card:hover .product-card__quick-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.product-card__quick-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card__quick-btn:hover { background: var(--accent); color: #fff; }
.product-card__quick-btn svg { width: 18px; height: 18px; }
.product-card__info { padding: 0 2px; }
.product-card__vendor {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-lighter);
  margin-bottom: 4px;
}
.product-card__name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price { display: flex; align-items: center; gap: 8px; }
.product-card__price-current { font-size: 15px; font-weight: 600; }
.product-card__price-compare { font-size: 13px; color: var(--text-lighter); text-decoration: line-through; }
.product-card__colors { display: flex; gap: 6px; margin-top: 8px; }
.product-card__color { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; }

/* ========== DOUBLE BANNER ========== */
.double-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.banner-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.banner-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.banner-card:hover .banner-card__img { transform: scale(1.04); }
.banner-card__content { position: absolute; padding: 32px; max-width: 320px; }
.banner-card__title { font-size: clamp(20px, 3vw, 28px); font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.banner-card__desc { font-size: 14px; margin-bottom: 20px; opacity: 0.8; line-height: 1.6; }

/* ========== WIDE BANNER ========== */
.wide-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
}
.wide-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wide-banner__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.wide-banner__content { position: relative; z-index: 2; color: #fff; max-width: 520px; padding: 0 48px; }
.wide-banner__title { font-size: clamp(24px, 4vw, 40px); font-weight: 700; margin-bottom: 12px; line-height: 1.15; }
.wide-banner__desc { font-size: 16px; margin-bottom: 28px; opacity: 0.9; line-height: 1.7; }

/* ========== FEATURES / TRUST ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.feature-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
  color: var(--accent);
}
.feature-item__icon svg { width: 24px; height: 24px; }
.feature-item__title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.feature-item__desc { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ========== NEWSLETTER ========== */
.newsletter {
  background: var(--bg-warm);
  padding: 64px 0;
  text-align: center;
}
.newsletter__title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.newsletter__desc { font-size: 15px; color: var(--text-light); margin-bottom: 28px; }
.newsletter__form { display: flex; max-width: 480px; margin: 0 auto; gap: 8px; }
.newsletter__input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  background: #fff;
}
.newsletter__input:focus { border-color: var(--accent); }

/* ========== FOOTER ========== */
.footer { background: var(--primary); color: #fff; padding: 64px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer__brand-name { margin-bottom: 16px; }
.footer__logo-img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.footer__brand-desc { font-size: 14px; line-height: 1.7; opacity: 0.7; margin-bottom: 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.footer__social a:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.footer__social svg { width: 16px; height: 16px; }
.footer__heading { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 20px; text-transform: uppercase; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { font-size: 14px; opacity: 0.7; transition: var(--transition); }
.footer__links a:hover { opacity: 1; }
.footer__newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.footer__newsletter-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.footer__newsletter-input:focus { border-color: rgba(255,255,255,0.4); }
.footer__newsletter-btn {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.footer__newsletter-btn:hover { background: var(--accent-hover); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copyright { font-size: 13px; opacity: 0.5; }
.footer__payment { display: flex; gap: 12px; align-items: center; }
.footer__payment-icon {
  width: 40px;
  height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.6;
}

/* ========== BREADCRUMB ========== */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-lighter); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { opacity: 0.4; }

/* ========== SHOP PAGE ========== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding-bottom: 80px; }
.shop-filters { position: sticky; top: 96px; align-self: start; }
.shop-filters__title { font-size: 16px; font-weight: 600; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.filter-group { margin-bottom: 24px; }
.filter-group__title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.filter-group__options { display: flex; flex-direction: column; gap: 8px; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; color: var(--text-light); transition: var(--transition); }
.filter-option:hover { color: var(--text); }
.filter-option input[type="checkbox"] { accent-color: var(--accent); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.shop-toolbar__count { font-size: 14px; color: var(--text-light); }
.shop-toolbar__sort { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; background: #fff; }

/* ========== PRODUCT DETAIL ========== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 0 64px; }
.product-gallery__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 3/4;
  margin-bottom: 12px;
  position: relative;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; }
.product-gallery__main img.loading { opacity: 0.5; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.product-gallery__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.7;
}
.product-gallery__thumb:hover,
.product-gallery__thumb.active { border-color: var(--accent); opacity: 1; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info__vendor { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.product-info__name { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin-bottom: 12px; line-height: 1.25; }
.product-info__price { font-size: 22px; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-info__price-compare { font-size: 16px; color: var(--text-lighter); text-decoration: line-through; font-weight: 400; }
.product-info__reviews { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--text-light); flex-wrap: wrap; }
.product-info__divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.product-info__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.product-info__colors { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.product-info__color { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--border); cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.product-info__color:hover,
.product-info__color.active { border-color: var(--accent); }
.product-info__sizes { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.product-info__size {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  background: none;
}
.product-info__size:hover,
.product-info__size.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.product-info__qty { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); width: fit-content; margin-bottom: 20px; }
.product-info__qty-btn { width: 44px; height: 44px; border: none; background: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.product-info__qty-input { width: 50px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); font-size: 14px; font-weight: 600; outline: none; height: 44px; }
.product-info__actions { display: flex; gap: 12px; margin-bottom: 20px; }
.product-info__actions .btn { flex: 1; min-width: 0; }
.product-info__desc { font-size: 14px; line-height: 1.8; color: var(--text-light); }

/* ========== CART ========== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; padding: 24px 0 80px; }
.cart-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border-light); align-items: center; }
.cart-item__image { width: 80px; height: 100px; border-radius: var(--radius); overflow: hidden; background: var(--bg-light); flex-shrink: 0; }
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.cart-item__variant { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.cart-item__price { font-size: 15px; font-weight: 600; }
.cart-item__qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); }
.cart-item__qty-btn { width: 32px; height: 32px; border: none; background: none; cursor: pointer; font-size: 14px; }
.cart-item__qty-val { width: 36px; text-align: center; font-size: 13px; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); height: 32px; line-height: 32px; }
.cart-item__remove { background: none; border: none; color: var(--text-lighter); cursor: pointer; font-size: 13px; transition: var(--transition); }
.cart-item__remove:hover { color: var(--error); }
.cart-summary { background: var(--bg-light); border-radius: var(--radius-lg); padding: 32px; align-self: start; position: sticky; top: 96px; }
.cart-summary__title { font-size: 18px; font-weight: 700; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.cart-summary__row--total { font-size: 18px; font-weight: 700; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 16px; margin-bottom: 24px; }
.cart-summary__coupon { display: flex; gap: 8px; margin-bottom: 20px; }
.cart-summary__coupon input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; }

/* ========== CHECKOUT ========== */
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; padding: 24px 0 80px; }
.checkout-section { margin-bottom: 32px; }
.checkout-section__title { font-size: 18px; font-weight: 700; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.checkout-summary { background: var(--bg-light); border-radius: var(--radius-lg); padding: 32px; align-self: start; position: sticky; top: 96px; }
.checkout-address-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.checkout-address-card:hover { border-color: var(--accent); }
.checkout-address-card--selected { border-color: var(--accent); background: var(--accent-light); }
.checkout-address__badge {
  font-size: 11px;
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; letter-spacing: 0.3px; }
.form-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; outline: none; transition: var(--transition); background: #fff; }
.form-input:focus { border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ========== AUTH ========== */
.page-auth { display: flex; justify-content: center; padding: 48px 0 64px; min-height: 60vh; align-items: flex-start; }
.auth-card { width: 100%; max-width: 440px; padding: 40px 32px; }
.auth-card__title { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-card__subtitle { font-size: 15px; color: var(--text-light); text-align: center; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; font-size: 13px; color: var(--text-lighter); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-btns { display: flex; flex-direction: column; gap: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 500; background: #fff; transition: var(--transition); width: 100%; }
.social-btn:hover { background: var(--bg-light); border-color: var(--text-lighter); }
.social-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-light); }
.auth-footer a { color: var(--accent); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ========== ACCOUNT ========== */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding: 32px 0 64px; }
.account-sidebar { border-right: 1px solid var(--border); padding-right: 32px; }
[dir="rtl"] .account-sidebar { border-right: none; border-left: 1px solid var(--border); padding-right: 0; padding-left: 32px; }
.account-sidebar__name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.account-sidebar__email { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.account-sidebar__nav { display: flex; flex-direction: column; gap: 4px; }
.account-sidebar__link { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; transition: var(--transition); display: flex; align-items: center; gap: 10px; }
.account-sidebar__link:hover { background: var(--accent-light); color: var(--accent); }
.account-sidebar__link.active { background: var(--accent-light); font-weight: 600; color: var(--accent); }
.account-sidebar__link svg { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }
.account-content__title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }

/* ========== ERROR PAGES ========== */
.page-404, .page-500 { text-align: center; padding: 120px 0 80px; }
.page-404 h1, .page-500 h1 { font-size: clamp(60px, 15vw, 120px); font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 16px; }
.page-404 p, .page-500 p { font-size: 18px; color: var(--text-light); margin-bottom: 32px; }

/* ========== ABOUT ========== */
.page-about { padding: 32px 0 64px; }
.about-hero { text-align: center; padding: 56px 24px; background: var(--accent-light); border-radius: var(--radius-lg); margin-bottom: 48px; }
.about-hero h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; margin-bottom: 16px; }
.about-hero p { font-size: 16px; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid__image { border-radius: var(--radius-lg); overflow: hidden; }
.about-grid__image img { width: 100%; height: 100%; object-fit: cover; }
.about-grid__text h2 { font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.about-grid__text p { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }

/* ========== CONTACT ========== */
.page-contact { padding: 32px 0 64px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 700; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--text-light); margin-bottom: 32px; line-height: 1.7; }
.contact-info__item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-info__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.contact-info__icon svg { width: 20px; height: 20px; }
.contact-info__text h3 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-info__text p { font-size: 14px; color: var(--text-light); }
.contact-form-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 32px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .header__nav { display: none; }
  .header__mobile-toggle { display: block; }
  .mega-menu, .nav-dropdown__menu { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { border: none; padding: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 768px) {
  .hero { height: 60vh; min-height: 380px; }
  .hero__content { padding: 0 24px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category-card { aspect-ratio: 4/3; }
  .category-card__overlay { padding: 16px; }
  .category-card__name { font-size: 16px; }
  .category-card__btn { padding: 8px 16px; font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__image { aspect-ratio: 2/3; }
  .product-card__vendor { font-size: 10px; }
  .product-card__name { font-size: 13px; }
  .product-card__price-current { font-size: 14px; }
  .product-card__colors { display: none; }
  .product-card__quick-actions { display: none; }
  .double-banner { grid-template-columns: 1fr; }
  .banner-card { aspect-ratio: 4/3; }
  .banner-card__content { padding: 24px; }
  .wide-banner { height: 300px; border-radius: var(--radius); }
  .wide-banner__content { padding: 0 24px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .newsletter { padding: 48px 0; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 12px; }
  .cart-item > :last-child { grid-column: 2; }
  .auth-card { padding: 32px 24px; }
  .contact-form-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .announcement-bar { font-size: 11px; padding: 8px 40px 8px 12px; }
  .header__inner { height: 60px; }
  .header__logo { font-size: 18px; }
  .header__actions { gap: 8px; }
  .header__action-btn svg { width: 20px; height: 20px; }
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 3/2; }
  .product-grid { gap: 10px; }
  .product-card__image { margin-bottom: 8px; }
  .product-card__name { font-size: 12px; -webkit-line-clamp: 1; }
  .product-card__price-current { font-size: 13px; }
  .wide-banner { height: 260px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
  .product-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .product-info__actions { flex-direction: column; }
  .product-info__actions .btn { width: 100%; }
  .cart-item__image { width: 64px; height: 80px; }
  .cart-summary { padding: 24px; }
}
