/* SHEIN-inspired E-commerce CSS - Mobile First Approach with Desktop Enhancement */

/* CSS Variables for easy customization */
:root {
  --primary-color: rgb(30, 72, 128);
  --primary-dark: #18345c; /* A darker shade based on #1e4880 */
  --primary-light: #3d72b4; /* A lighter shade based on #1e4880 */
  --primary-gradient: linear-gradient(135deg, #1e4880 0%, #3d72b4 100%);
  --primary-gradient-hover: linear-gradient(135deg, #3d72b4 0%, #1e4880 100%);

  --secondary-color: #333333;
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #888888;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --error-color: #f44336;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --section-spacing: 20px;
  --card-spacing: 10px;
  /* --container-width: 1500px; */
  --container-width: 90%;
  --purple-accent: #9370db; /* Purple accent color for trends */
}

.lens-power-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lens-power-modal.is-active {
  display: flex;
}

.lens-power-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.lens-power-modal__dialog {
  position: relative;
  width: min(92vw, 420px);
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px 16px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

.lens-power-modal__close {
  position: absolute;
  top: 10px;
  left: 10px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: #666;
  cursor: pointer;
}

.lens-power-modal__title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.lens-power-modal__profile-name {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #222;
  line-height: 1.35;
}

.lens-power-modal__profile-name[hidden] {
  display: none !important;
}

.lens-power-modal__hint {
  margin: 0 0 14px;
  color: #666;
  font-size: 0.92rem;
}

.lens-power-modal__fields-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lens-power-modal__fields-pair .lens-power-modal__field {
  flex: 1 1 140px;
  min-width: 0;
}

.lens-power-modal__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.lens-power-modal__field select {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.lens-power-modal__submit {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  background: #111;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.lens-power-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* كمية (+/−) بنفس أسلوب صفحة السلة — متجر، نافذة قوة العدسة، صفحة المنتج */
.lens-power-modal__pair-qty {
  margin: 12px 0 0;
}

.lens-power-modal__pair-qty label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
}

.item-quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  background-color: #f5f5f5;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.item-quantity .quantity-input {
  width: 48px;
  height: 30px;
  border: none;
  outline: none;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
  background: #fff;
  color: #111;
  padding: 0;
  margin: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}

.item-quantity .quantity-input::-webkit-outer-spin-button,
.item-quantity .quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Cairo", "Tajawal", sans-serif;
  direction: rtl;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  /* overflow-x: hidden; */
  /* padding-bottom: 60px; Space for bottom nav */
  /* padding-top: 110px; Space for fixed header */
}

.customer-type-selector p {
  margin-top: 10px;
}

.c-type {
  color: var(--primary-dark);
  font-weight: bold;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--primary-dark);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
.button {
  cursor: pointer;
  border: none;
  outline: none;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-weight: bold;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

/* button:hover,
.button:hover {
  background: var(--primary-dark);
} */

/* Add styles for the new add-to-cart button */
.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.view-product {
  flex: 1 1 auto;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #fff;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1;
  transition: all 0.2s ease;
}
.add-to-cart-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  background: #fff;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  margin: 0;
  transition: all 0.2s ease;
}
.add-to-cart-btn:hover {
  background-color: var(--light-gray);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}
.add-to-cart-btn.is-unavailable {
  background: #f7f7f7;
  color: #9aa0a6;
  border-color: #e3e3e3;
}
.add-to-cart-btn.is-unavailable:hover {
  background: #f7f7f7;
  color: #9aa0a6;
  border-color: #e3e3e3;
  transform: none;
}

/* Store toast notifications */
.site-notification {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1001;
  max-width: min(92vw, 360px);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.site-notification.show {
  opacity: 1;
  transform: translateY(0);
}
.site-notification.success {
  background: linear-gradient(135deg, #1f8f49, #27ae60);
}
.site-notification.error {
  background: linear-gradient(135deg, #d33a2c, #e74c3c);
}
.site-notification.info {
  background: linear-gradient(135deg, #1769aa, #2196f3);
}
.site-notification__icon {
  flex: 0 0 auto;
  font-size: 1rem;
  line-height: 1.1;
  margin-top: 1px;
  opacity: 0.95;
}
.site-notification__text {
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}

/* SHEIN-style Header - Mobile */
.shein-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1001;
  background-color: var(--background-color);
  box-shadow: var(--shadow);
}

/* شريط علوي اختياري (رسالة من الإعدادات) — خلفية سوداء */
.header-top {
  background-color: #000;
  color: #fff;
  padding: 8px 0;
  border-bottom: 1px solid #222;
}

.header-top-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.header-top-message {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #f0f0f0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
}

/* Desktop vs mobile header blocks */
.header-desktop-only {
  display: none;
}

.header-mobile-only {
  display: block;
  width: 100%;
}

.header-mobile-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 8px;
}

.header-mobile-col {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-mobile-col-menu {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 4px;
}

.header-mobile-col-brand {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-align: center;
  padding: 0 6px;
}

.header-mobile-col-icons {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 10px;
}

.header-mobile-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.header-mobile-logo-img {
  flex-shrink: 0;
}

.header-mobile-logo-img img {
  width: 44px;
  height: auto;
  margin: 0;
  border-radius: 8px;
}

.header-mobile-logo-text {
  align-items: center;
  text-align: center;
}

.header-mobile-logo-text .logo-text-title {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.header-mobile-logo-text .logo-text-subtitle {
  font-size: 0.65rem;
  line-height: 1.2;
  margin: 0;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--secondary-color);
  font-size: 1.1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.mobile-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--secondary-color);
  font-size: 0.88rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.mobile-search-toggle:hover,
.mobile-menu-toggle:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.mobile-search-panel {
  display: none;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--border-color);
}

.mobile-search-panel.is-open {
  display: block;
}

.mobile-search-panel-form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.mobile-search-panel-form input {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background-color: var(--light-gray);
  font-size: 0.95rem;
}

.mobile-search-panel-form button[type="submit"] {
  flex-shrink: 0;
  width: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--primary-color);
  color: var(--light-text);
}

@media (min-width: 992px) {
  .header-mobile-only {
    display: none;
  }

  .header-desktop-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
  }
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  a {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  img {
    width: 70px;
    margin: 0 10px;
    border-radius: 10px;
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-text-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}
.logo-text-subtitle {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

.search-bar {
  flex-grow: 1;
  margin: 0 15px;
  position: relative;
}

.search-bar form {
  display: flex;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 8px 15px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background-color: var(--light-gray);
}

.search-bar button {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--dark-gray);
  padding: 5px;
}

.search-form-feedback {
  display: none;
  font-size: 0.75rem;
  color: var(--error-color);
  line-height: 1.2;
}

.search-form-feedback.is-visible {
  display: block;
}

.search-input-error {
  border-color: var(--error-color) !important;
}

.search-bar .search-form-feedback {
  position: absolute;
  right: 12px;
  top: calc(100% + 2px);
}

.mobile-search-panel-form .search-form-feedback {
  flex: 0 0 100%;
  order: 3;
  margin-top: -2px;
  padding-right: 6px;
}

.header-icons {
  display: flex;
  gap: 15px;
}

.header-icon {
  font-size: 1.2rem;
  color: var(--secondary-color);
  position: relative;
}

/* حسابي: قائمة منسدلة بجانب أيقونة المستخدم */
.header-account-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: visible;
}

.header-account-trigger {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.header-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 200px;
  width: max-content;
  max-width: min(260px, calc(100vw - 16px));
  padding: 8px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1205;
  overflow-wrap: anywhere;
}

.header-account-caret {
  font-size: 0.7rem;
  opacity: 0.8;
}

.header-mobile-col-icons,
.header-icons,
.header-container,
.shein-header {
  overflow: visible;
}

.header-account-dropdown-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s ease;
}

.header-account-dropdown-link i {
  width: 16px;
  text-align: center;
}

.header-account-dropdown-link:hover {
  background: #f5f7fa;
  color: var(--primary-color);
}

.wishlist-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff6b6b;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.wishlist-icon {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: var(--primary-color);
  color: var(--light-text);
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Banner Background */
.mobile-banner-bg {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  overflow: hidden;
  margin-top: 140px;
}

.mobile-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0)
  );
}

.mobile-banner-content {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.mobile-trend-div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
}

.mobile-trend-tag {
  display: inline-block;
  background-color: var(--purple-accent);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.mobile-trend-title {
  font-size: 1.2rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.mobile-trend-title i {
  margin-right: 5px;
}

.mobile-featured-products {
  width: 100px;
  display: flex;
  gap: 5px;
  /* overflow-x: auto; */
  padding-bottom: 10px;
  /* -webkit-overflow-scrolling: touch; */
  /* scrollbar-width: none; */
}

.mobile-featured-products::-webkit-scrollbar {
  display: none;
}

.mobile-product-card {
  flex: 0 0 auto;
  width: 100px;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.mobile-product-image {
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.mobile-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-product-price {
  /* padding: 8px; */
  text-align: center;
  font-weight: bold;
  background-color: rgba(255, 255, 255, 0.9);
}

.mobile-product-unit {
  color: #888888;
  font-size: 0.8rem;
  /* padding: 8px; */
  text-align: center !important;
  margin: 0 auto;
}

/* SHEIN-style Categories Scroll - Mobile */
.categories-scroll {
  overflow-x: auto;
  white-space: nowrap;
  padding: 10px 0;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.categories-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.categories-container {
  display: inline-flex;
  flex-direction: row;
  direction: rtl;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 15px;
}

.category-item {
  padding: 5px 15px;
  margin-left: 0;
  border-radius: 15px;
  font-size: 0.9rem;
  background-color: var(--light-gray);
  color: var(--text-color);
  white-space: nowrap;
}

.category-item.active {
  background-color: var(--primary-color);
  color: var(--light-text);
  font-weight: bold;
}

/* SHEIN-style Bottom Navigation Bar - Mobile Only */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  position: relative;
}

.nav-item i {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.nav-item.active i {
  color: var(--primary-color);
}

.nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: var(--light-text);
  font-size: 0.7rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Categories Bottom Sheet (SHEIN-style) - Mobile Only */
.categories-sheet {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
}

.categories-sheet.active {
  visibility: visible;
  pointer-events: auto;
}

.categories-sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.categories-sheet.active .categories-sheet-overlay {
  opacity: 1;
}

.categories-sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-color);
  border-radius: 15px 15px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}

.categories-sheet.active .categories-sheet-content {
  transform: translateY(0);
}

.categories-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.categories-sheet-header h3 {
  font-size: 1.2rem;
}

.categories-sheet-close {
  background: transparent;
  color: var(--secondary-color);
  font-size: 1.2rem;
  padding: 5px;
}

.categories-sheet-body {
  padding: 15px 20px;
}

.category-sheet-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.category-sheet-item i {
  margin-left: 15px;
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.category-sheet-item.active {
  color: var(--primary-color);
}

.category-sheet-item.active i {
  color: var(--primary-color);
}

/* قائمة المتجر الجانبية (منفصلة عن categories-sheet) */
.store-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 2100;
  visibility: hidden;
  pointer-events: none;
}

.store-nav-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.store-nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.store-nav-drawer.is-open .store-nav-drawer-overlay {
  opacity: 1;
}

.store-nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(90vw, 340px);
  max-width: 100%;
  background-color: var(--background-color);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.store-nav-drawer.is-open .store-nav-drawer-panel {
  transform: translateX(0);
}

.store-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

.store-nav-drawer-title {
  font-size: 1.15rem;
  font-weight: bold;
  margin: 0;
  color: var(--secondary-color);
}

.store-nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--secondary-color);
  font-size: 1.25rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.store-nav-drawer-close:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.store-nav-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0 24px;
}

.store-nav-drawer-section {
  margin-bottom: 8px;
}

.store-nav-drawer-heading {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 8px 16px 10px;
  margin: 0;
}

.store-nav-drawer-list {
  display: flex;
  flex-direction: column;
}

.store-nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-color);
  transition: var(--transition);
  border-bottom: 1px solid var(--light-gray);
}

.store-nav-drawer-link:last-child {
  border-bottom: none;
}

.store-nav-drawer-link i {
  width: 1.25rem;
  text-align: center;
  color: var(--dark-gray);
  flex-shrink: 0;
}

.store-nav-drawer-link:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.store-nav-drawer-link:hover i {
  color: var(--primary-color);
}

.store-nav-drawer-link.is-active {
  color: var(--primary-color);
  font-weight: bold;
  background-color: rgba(30, 72, 128, 0.06);
}

.store-nav-drawer-link.is-active i {
  color: var(--primary-color);
}

/* سلة جانبية سريعة (بعد إضافة للسلة) */
.mini-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  visibility: hidden;
  pointer-events: none;
}

.mini-cart-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mini-cart-drawer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mini-cart-drawer.is-open .mini-cart-drawer-overlay {
  opacity: 1;
}

.mini-cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 400px);
  max-width: 100%;
  background-color: var(--background-color);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.mini-cart-drawer.is-open .mini-cart-drawer-panel {
  transform: translateX(0);
}

.mini-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.mini-cart-drawer-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-cart-drawer-title i {
  color: var(--primary-color);
  font-size: 1rem;
}

.mini-cart-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--secondary-color);
  font-size: 1.25rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.mini-cart-drawer-close:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
}

.mini-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
}

.mini-cart-drawer-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.mini-cart-drawer-empty i {
  font-size: 2.5rem;
  color: var(--light-gray);
  margin-bottom: 12px;
  display: block;
}

.mini-cart-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--light-gray);
}

.mini-cart-line:last-child {
  border-bottom: none;
}

.mini-cart-line__img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-cart-line__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cart-line__meta {
  min-width: 0;
  flex: 1;
}

.mini-cart-line__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.35;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-cart-line__variant {
  font-size: 0.78rem;
  color: var(--dark-gray);
  margin: 0 0 6px;
}

.mini-cart-line__qty-price {
  font-size: 0.85rem;
  color: var(--dark-gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.mini-cart-line__total {
  font-weight: bold;
  color: var(--primary-color);
  margin-inline-start: auto;
}

.mini-cart-drawer-footer {
  flex-shrink: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--border-color);
  background: var(--background-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-cart-drawer-subtotal {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
}

.mini-cart-drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-sizing: border-box;
}

.mini-cart-drawer-btn--primary {
  background: var(--primary-color);
  color: #fff;
}

.mini-cart-drawer-btn--primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.mini-cart-drawer-btn--secondary {
  background: var(--light-gray);
  color: var(--secondary-color);
}

.mini-cart-drawer-btn--secondary:hover {
  background: var(--border-color);
}

/* موبايل: ورقة سفلية بارتفاع محدود بدل لوحة جانبية عريضة */
@media (max-width: 767px) {
  .mini-cart-drawer-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(82vh, 520px);
    min-height: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.14);
    transform: translateY(105%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .mini-cart-drawer.is-open .mini-cart-drawer-panel {
    transform: translateY(0);
  }

  .mini-cart-drawer-panel::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--border-color);
    margin: 10px auto 4px;
    flex-shrink: 0;
    opacity: 0.85;
  }

  .mini-cart-drawer-header {
    padding: 8px 14px 12px;
    border-bottom-color: var(--light-gray);
  }

  .mini-cart-drawer-title {
    font-size: 1rem;
  }

  .mini-cart-drawer-close {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .mini-cart-drawer-body {
    flex: 1;
    min-height: 0;
    padding: 4px 12px 8px;
  }

  .mini-cart-line {
    gap: 10px;
    padding: 10px 0;
  }

  .mini-cart-line__img {
    width: 56px;
    height: 56px;
  }

  .mini-cart-line__title {
    font-size: 0.85rem;
  }

  .mini-cart-line__variant {
    font-size: 0.72rem;
    margin-bottom: 4px;
  }

  .mini-cart-line__qty-price {
    font-size: 0.8rem;
  }

  .mini-cart-drawer-footer {
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
    border-top-color: var(--light-gray);
  }

  .mini-cart-drawer-subtotal {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .mini-cart-drawer-btn {
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  .mini-cart-drawer-empty {
    padding: 20px 12px;
    font-size: 0.88rem;
  }

  .mini-cart-drawer-empty i {
    font-size: 2rem;
    margin-bottom: 8px;
  }
}

/* Landing Page Styles */
.landing-page {
  padding: 20px 15px;
}

.customer-type-selector {
  background-color: var(--light-gray);
  padding: 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  text-align: center;
}

.customer-type-label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.customer-type-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}

.customer-type-btn {
  padding: 10px;
  border-radius: var(--border-radius);
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.customer-type-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
}

.landing-page-content {
  text-align: center;
  padding: 20px 0;
}

.landing-page-content h1 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.landing-page-content p {
  margin-bottom: 20px;
  color: var(--dark-gray);
}

.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 30px 0;
}

.feature {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.feature h3 {
  margin-bottom: 10px;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.welcome-button {
  display: block;
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: var(--transition);
}

.welcome-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Sections Grid Styles */
.shop-container-sections {
  padding: 20px 15px;
}

.page-title {
  text-align: center;
  margin-bottom: 25px;
}

.page-title h2 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.page-title p {
  color: var(--dark-gray);
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.section-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-image {
  height: 300px;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.no-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--dark-gray);
}

/* عدم وجود صورة — المتجر الإلكتروني (أيقونة + نص) */
.store-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 1rem;
  box-sizing: border-box;
  color: #888;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.35;
  background-color: var(--light-gray);
}

.store-no-image__icon {
  font-size: 2.5rem;
  opacity: 0.7;
  color: #aaa;
  line-height: 1;
}

.store-no-image__caption {
  display: block;
  font-size: 0.85rem;
}

/* بطاقات شبكة / سلّة صغيرة */
.item-image .store-no-image,
.item-image-placeholder.store-no-image {
  min-height: 100%;
  border-radius: 4px;
}

.store-no-image--compact {
  min-height: 0;
  padding: 0.35rem;
  gap: 0.25rem;
}

.store-no-image--compact .store-no-image__icon {
  font-size: 1.75rem;
}

.store-no-image--compact .store-no-image__caption {
  font-size: 0.7rem;
  line-height: 1.2;
}

/* صفحة منتج — مساحة العرض الرئيسية */
.store-no-image--hero {
  min-height: 320px;
}

@media (min-width: 992px) {
  .store-no-image--hero {
    min-height: 420px;
  }
}

.section-info {
  padding: 15px;
  text-align: center;
}

.section-info h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.section-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: var(--light-text);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: bold;
  transition: var(--transition);
}

.section-btn:hover {
  background-color: var(--primary-dark);
}

/* Products View Styles */
.shop-container {
  padding: 20px 15px;
  width: 100%;
  max-width: 100%;
  /* overflow-x: hidden; */
  box-sizing: border-box;
}

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: var(--dark-gray);
}

.breadcrumbs a {
  color: var(--primary-color);
}

.breadcrumbs span {
  color: var(--text-color);
}

/* Products Grid Styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}

.product-card {
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
  height: auto;
  aspect-ratio: 1 / 1;
  background-color: var(--light-gray);
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.product-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  box-sizing: border-box;
}

.product-wishlist {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  width: 35px !important;
  height: 35px !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 1000 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.product-wishlist:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.product-wishlist i {
  font-size: 1.1rem;
  color: #666;
  transition: all 0.3s ease;
}

.product-wishlist:hover i {
  color: #ff6b6b;
}

.product-wishlist.wishlist-active i {
  color: #ff6b6b;
}

.product-wishlist.wishlist-active {
  background-color: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.product-card .product-code {
  display: none !important;
}

.product-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: var(--primary-color);
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* Wishlist badge in header */
.wishlist-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff6b6b;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.wishlist-icon {
  position: relative;
}

/* Wishlist page styles */
.no-products {
  text-align: center;
  padding: 60px 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin: 40px 0;
}

.no-products p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.shop-now-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color, #000);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.shop-now-btn:hover {
  background-color: var(--primary-dark, #333);
}

.no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 100%;
  min-height: 120px;
  padding: 1rem;
  box-sizing: border-box;
  color: #888;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.35;
  background-color: var(--light-gray);
}

.no-image > i {
  font-size: 2.5rem;
  opacity: 0.7;
  color: #aaa;
  line-height: 1;
}

.no-image > span {
  display: block;
}

.product-info {
  padding: 10px;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.add-to-cart-btn.index {
  background-color: white !important;
  color: black !important;
  border: 1px solid black !important;
  border-radius: 35% !important;
  width: 50px !important;
  flex: 0 0 auto !important;
}

/* .product-title-code {
  display: flex !important;
  justify-content: space-between;
  height: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
} */

.product-info h3 {
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 0 0 4px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.product-code {
  font-size: 0.8rem;
  color: var(--dark-gray);
  /* margin-bottom: 10px; */
}

.product-price {
  display: flex;
  align-items: center;
  gap: 5px;
  /* margin-bottom: 15px; */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.price {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.1rem;
  color: #f44336 !important;
}

.unit {
  font-size: 0.8rem;
  color: var(--dark-gray);
}

.add-to-cart {
  width: 100%;
  padding: 8px 0;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: var(--border-radius);
  font-weight: bold;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: center;
}

.add-to-cart:hover {
  background-color: var(--primary-dark);
}

.view-product {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

.view-product:hover {
  background-color: var(--light-gray);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
}

/* Recommended Products Section */
.recommended-products {
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  /* overflow-x: hidden; */
  box-sizing: border-box;
}

.recommended-products h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--secondary-color);
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  color: var(--dark-gray);
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 30px 15px;
  margin-bottom: 60px; /* Space for bottom nav */
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-section {
  margin-bottom: 20px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-links a {
  display: block;
  color: var(--light-text);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--light-text);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* Animation for product cards */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.5s ease forwards;
}

.product-card:nth-child(2) {
  animation-delay: 0.1s;
}

.product-card:nth-child(3) {
  animation-delay: 0.2s;
}

.product-card:nth-child(4) {
  animation-delay: 0.3s;
}

/* Add to cart animation */
@keyframes addToCartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.add-to-cart:active {
  animation: addToCartPulse 0.3s ease;
}

/* Categories strip — same bar as desktop, shown under header on all viewports */
.desktop-categories-nav {
  position: relative;
  display: block;
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(247, 250, 255, 0.95) 100%
  );
  border-bottom: 1px solid rgba(30, 72, 128, 0.1);
  backdrop-filter: blur(8px);
  -webkit-overflow-scrolling: touch;
}

.desktop-categories-container {
  max-width: var(--container-width);
  margin: 0 auto;
  position: relative;
  padding: 0 48px;
}

.desktop-categories-scroll {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.desktop-categories-scroll::-webkit-scrollbar {
  display: none;
}

.desktop-categories-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 2px 0;
  width: max-content;
}

.desktop-category-item {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--secondary-color);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  position: relative;
}

.desktop-category-item::after {
  content: "";
  position: absolute;
  right: 10px;
  left: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.desktop-category-item:hover {
  background: rgba(30, 72, 128, 0.08);
  color: var(--primary-color);
  transform: translateY(-1px);
}

.desktop-category-item.active {
  color: var(--primary-color);
  background: rgba(30, 72, 128, 0.12);
  border-color: rgba(30, 72, 128, 0.14);
}

.desktop-category-item.active::after {
  background: var(--primary-gradient);
}

.desktop-categories-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--bg-white);
  border: 1px solid rgba(30, 72, 128, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  color: var(--primary-color);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.desktop-categories-arrow.left {
  left: 8px;
}

.desktop-categories-arrow.right {
  right: 8px;
}

.desktop-categories-arrow:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
  border-color: var(--primary-color);
}

.desktop-categories-arrow.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.js-desktop-lens-trigger {
  cursor: default;
}

/* ======= DESKTOP STYLES (SHEIN-inspired) ======= */
@media (min-width: 992px) {
  body {
    padding-top: 140px; /* Increased space for desktop header */
    padding-bottom: 0; /* No bottom nav on desktop */
  }

  .container {
    max-width: var(--container-width);
    margin: 0 auto;
  }

  /* Desktop Header */
  .shein-header {
    height: auto;
  }

  /* شريط الرسالة: يُعرض من الإعدادات عند وجود نص؛ الخلفية السوداء مُعرّفة أعلى */
  body:has(.shein-header .header-top) {
    padding-top: 175px;
  }

  .header-container {
    padding: 0;
    max-width: var(--container-width);
    margin: 0 auto;
  }

  .logo {
    font-size: 2rem;
  }

  .search-bar {
    max-width: 500px;
  }

  .search-bar input {
    padding: 10px 20px;
    border-radius: 25px;
  }

  .header-icons {
    gap: 20px;
  }

  .header-icon {
    font-size: 1.4rem;
  }

  /*
   * شريط الأقسام على الكمبيوتر: RTL + flex-start حتى يبدأ القسم الأول من اليمين،
   * وبدون justify-content: center حتى لا يختل موضع التمرير والأسهم.
   */
  .desktop-categories-scroll {
    direction: rtl;
    justify-content: flex-start;
  }

  .desktop-categories-list {
    direction: rtl;
    justify-content: flex-start;
  }

  .desktop-category-item {
    direction: rtl;
  }

  /* نافذة فلاتر العدسات — عريضة، وسط أفقي، ظهور/اختفاء سلس */
  .desktop-lens-flyout {
    box-sizing: border-box;
    position: fixed;
    left: 50%;
    z-index: 2500;
    width: min(92vw, 1100px);
    max-width: 1100px;
    background: #fff;
    border-radius: 12px;
    box-shadow:
      0 12px 40px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(0, 0, 0, 0.06);
    text-align: right;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -12px) scale(0.985);
    transition:
      opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.34s step-end,
      box-shadow 0.32s ease;
    will-change: opacity, transform;
  }

  .desktop-lens-flyout.desktop-lens-flyout--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition:
      opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s step-start,
      box-shadow 0.32s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .desktop-lens-flyout,
    .desktop-lens-flyout.desktop-lens-flyout--open {
      transition-duration: 0.01ms;
    }
  }

  .desktop-lens-flyout-inner {
    padding: 14px 16px 16px;
  }

  .desktop-lens-flyout-loading,
  .desktop-lens-flyout-empty {
    padding: 20px;
    text-align: center;
    color: var(--dark-gray);
    font-size: 0.95rem;
  }

  .desktop-lens-flyout-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
  }

  .desktop-lens-flyout-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--secondary-color);
  }

  .desktop-lens-flyout-all {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
  }

  .desktop-lens-flyout-all:hover {
    text-decoration: underline;
  }

  .desktop-lens-flyout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
  }

  .desktop-lens-flyout-group {
    margin: 0;
  }

  .desktop-lens-flyout-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
  }

  .desktop-lens-flyout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .desktop-lens-flyout-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #333;
    background: #fafafa;
    text-decoration: none;
    transition:
      border-color 0.2s ease,
      background 0.2s ease;
  }

  .desktop-lens-flyout-chip:hover {
    border-color: var(--primary-color);
    background: var(--light-gray);
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--text-color);
  }

  .desktop-lens-flyout-chip-color {
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 8px 6px;
    font-size: 0.75rem;
    text-align: center;
  }

  .desktop-lens-flyout-color-icon {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .desktop-lens-flyout-color-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .desktop-lens-flyout-chips-brands {
    gap: 10px 12px;
    flex-wrap: nowrap;
    width: max-content;
  }

  .desktop-lens-flyout-brands-row {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .desktop-lens-flyout-brands-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    flex: 1;
  }

  .desktop-lens-flyout-brands-scroll::-webkit-scrollbar {
    display: none;
  }

  .desktop-lens-flyout-brands-arrow {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(30, 72, 128, 0.18);
    background: var(--bg-white);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
  }

  .desktop-lens-flyout-brands-arrow:hover {
    background: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
  }

  .desktop-lens-flyout-brands-arrow.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .desktop-lens-flyout-chip-brand {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    max-width: 140px;
    padding: 10px 8px 8px;
    text-align: center;
  }

  .desktop-lens-flyout-brand-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-lens-flyout-brand-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .desktop-lens-flyout-brand-thumb--empty {
    background: linear-gradient(135deg, #f0f0f0 0%, #e2e2e2 100%);
    color: #9ca3af;
  }

  .desktop-lens-flyout-brand-thumb--empty .fa-image {
    font-size: 2.75rem;
    opacity: 0.85;
  }

  .desktop-lens-flyout-brand-name {
    display: block;
    width: 100%;
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
  }

  @media (max-width: 1180px) {
    .desktop-lens-flyout-grid {
      grid-template-columns: 1fr;
    }
  }

  /* Modern Hero (similar to loqta modern-hero) */
  .modern-hero {
    margin-top: 110px;
    margin-bottom: 42px;
    padding: 30px 15px 12px;
    background:
      radial-gradient(
        600px circle at 85% 15%,
        color-mix(in srgb, var(--primary-light) 22%, transparent) 0%,
        transparent 60%
      ),
      radial-gradient(
        500px circle at 15% 80%,
        color-mix(in srgb, var(--primary-color) 14%, transparent) 0%,
        transparent 65%
      );
    border-radius: 18px;
  }

  .modern-hero .hero-content {
    display: flex;
    align-items: center;
    gap: 44px;
    min-height: 500px;
    justify-content: space-between;
  }

  .modern-hero .hero-text {
    flex: 1;
    max-width: 560px;
  }

  .modern-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: var(--light-text);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
  }

  .modern-hero .hero-main-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .modern-hero .hero-sub-title {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: var(--text-secondary);
    margin-bottom: 14px;
  }

  .modern-hero .hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 22px;
    max-width: 500px;
  }

  .modern-hero .hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  .modern-hero .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
  }

  .modern-hero .hero-btn.primary {
    background: var(--primary-gradient);
    color: var(--light-text);
  }

  .modern-hero .hero-btn.secondary {
    background: var(--light-text);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }

  .modern-hero .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
  }

  .modern-hero .hero-stats {
    display: flex;
    gap: 24px;
  }

  .modern-hero .stat-item {
    text-align: center;
  }

  .modern-hero .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
  }

  .modern-hero .stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
  }

  .modern-hero .hero-visual {
    flex: 1;
    position: relative;
    max-width: 560px;
  }

  .modern-hero .hero-image-container {
    position: relative;
    width: 100%;
    height: 500px;
  }

  .modern-hero .hero-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
  }

  .modern-hero .hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .modern-hero .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
  }

  .modern-hero .hero-slide.active {
    opacity: 1;
    z-index: 2;
  }

  .modern-hero .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modern-hero .hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: color-mix(in srgb, var(--light-text) 90%, transparent);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
  }

  .modern-hero .hero-main-image:hover .hero-slider-arrow {
    opacity: 1;
  }

  .modern-hero .hero-slider-arrow:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-50%) scale(1.07);
  }

  .modern-hero .hero-slider-arrow.prev {
    left: 16px;
  }

  .modern-hero .hero-slider-arrow.next {
    right: 16px;
  }

  .modern-hero .hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
  }

  .modern-hero .hero-slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .modern-hero .hero-slider-dot.active {
    background: var(--primary-color);
    border-color: var(--light-text);
    transform: scale(1.2);
  }

  .modern-hero .floating-cards {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 11;
  }

  .modern-hero .floating-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: modernHeroFloat 3s ease-in-out infinite;
  }

  .modern-hero .floating-card.card-1 {
    top: 18%;
    left: -18px;
    animation-delay: 0s;
  }

  .modern-hero .floating-card.card-2 {
    top: 52%;
    right: -18px;
    animation-delay: 1s;
  }

  .modern-hero .floating-card.card-3 {
    bottom: 14%;
    left: 20%;
    animation-delay: 2s;
  }

  .modern-hero .card-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modern-hero .card-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .modern-hero .card-title {
    font-size: 0.82rem;
    font-weight: 700;
  }

  .modern-hero .card-subtitle {
    font-size: 0.74rem;
    color: var(--text-secondary);
  }

  @keyframes modernHeroFloat {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
  }

  @media (max-width: 991px) {
    .modern-hero {
      margin-top: 12px;
      padding: 16px 12px 8px;
    }

    .modern-hero .hero-content {
      flex-direction: column;
      gap: 22px;
      min-height: auto;
    }

    .modern-hero .hero-text {
      order: 2;
      text-align: center;
    }

    .modern-hero .hero-visual {
      order: 1;
      max-width: 100%;
      width: 100%;
    }

    .modern-hero .hero-buttons {
      justify-content: center;
    }

    .modern-hero .hero-stats {
      justify-content: center;
      gap: 18px;
    }

    .modern-hero .hero-image-container {
      height: 320px;
    }

    .modern-hero .floating-cards {
      display: none;
    }

    .modern-hero .hero-slider-arrow {
      opacity: 1;
      width: 38px;
      height: 38px;
    }

    /* Mobile: ensure hero slider layout/visibility */
    .modern-hero .hero-slider {
      display: block !important;
      width: 100%;
      height: 100%;
    }

    .modern-hero .hero-slider-dots {
      bottom: 12px;
      display: flex;
    }

    .modern-hero .hero-slide {
      opacity: 0;
    }

    .modern-hero .hero-slide.active {
      opacity: 1;
    }
  }

  /* Desktop Category Showcase */
  .category-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
  }

  .category-showcase-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    img {
      height: 400px;
    }
  }

  .category-showcase-link {
    color: white;
  }

  .category-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .category-showcase-item:hover img {
    transform: scale(1.05);
  }

  .category-showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--light-text);
  }

  .category-showcase-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

  /* Desktop Promo Banner */
  .promo-banner {
    display: flex;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
  }

  .promo-banner-image {
    flex: 1;
    max-width: 50%;
  }

  .promo-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .promo-banner-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .promo-banner-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
  }

  .promo-banner-text {
    margin-bottom: 20px;
    color: var(--dark-gray);
  }

  .promo-banner-button {
    align-self: flex-start;
  }

  /* Desktop Product Filters */
  .product-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
  }

  .filter-options {
    display: flex;
    gap: 15px;
  }

  .filter-option {
    position: relative;
  }

  .filter-button {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
  }

  .filter-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: var(--background-color);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 5px;
    z-index: 100;
    display: none;
  }

  .filter-option:hover .filter-dropdown {
    display: block;
  }

  .filter-group {
    margin-bottom: 15px;
  }

  .filter-group-title {
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--border-color);
  }

  .filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }

  .filter-checkbox input {
    margin-left: 10px;
  }

  .sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sort-label {
    font-weight: bold;
  }

  .sort-select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background-color);
  }

  /* Desktop Products Grid - 5 columns */
  @media (min-width: 1200px) {
    .products-grid {
      grid-template-columns: repeat(5, 1fr);
      width: 100%;
      max-width: 100%;
      /* overflow-x: hidden; */
    }

    .sections-grid {
      grid-template-columns: repeat(5, 1fr);
    }
  }

  /* Desktop Footer */
  footer {
    margin-bottom: 0;
    padding: 50px 0;
  }

  .footer-container {
    flex-direction: row;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
  }

  .footer-section {
    flex: 1;
  }

  /* Desktop Newsletter */
  .newsletter {
    background-color: var(--light-gray);
    padding: 40px 0;
    margin-bottom: 30px;
  }

  .newsletter-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
  }

  .newsletter-content {
    flex: 1;
    max-width: 500px;
  }

  .newsletter-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .newsletter-text {
    color: var(--dark-gray);
    margin-bottom: 0;
  }

  .newsletter-form {
    flex: 1;
    max-width: 500px;
    display: flex;
  }

  .newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border-right: none;
  }

  .newsletter-button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
  }
}

/* فلتر «عدسة محددة / غير محددة» — نافذة hover والقسم sections.php */
.desktop-lens-flyout-group-defined {
  grid-column: 1 / -1;
}

.desktop-lens-flyout-defined-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.desktop-lens-flyout-lens-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border-color, #dee2e6);
  border-radius: 8px;
  background: var(--bg-secondary, #fff);
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  color: #333;
  box-sizing: border-box;
  font-size: 0.88rem;
}

.desktop-lens-flyout-lens-option:hover {
  border-color: var(--primary-color);
  background: var(--light-gray);
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  color: var(--text-color);
}

.desktop-lens-flyout-lens-option:focus-visible {
  outline: 2px solid var(--primary-color, #1e4880);
  outline-offset: 2px;
}

.desktop-lens-flyout-lens-option.desktop-lens-flyout-lens-option--active {
  border-color: var(--primary-color);
  background: var(--light-gray);
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  box-shadow: none;
  color: var(--text-color);
}

.desktop-lens-flyout-lens-option.desktop-lens-flyout-lens-option--active:hover {
  border-color: var(--primary-color);
  background: var(--light-gray);
  background: color-mix(in srgb, var(--primary-color) 12%, transparent);
  color: var(--text-color);
}

.desktop-lens-flyout-lens-option-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-lens-flyout-lens-icon-defined {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8d5c4 0%, #d4b896 100%);
  border: 3px solid #8b6914;
  box-sizing: border-box;
  flex-shrink: 0;
}

.desktop-lens-flyout-lens-icon-undefined {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8 0%, #c0c0c0 100%);
  border: none;
  flex-shrink: 0;
}

/* Medium screens (tablets) */
@media (min-width: 768px) and (max-width: 991px) {
  .sections-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 100%;
    /* overflow-x: hidden; */
  }

  .features {
    flex-direction: row;
  }

  .feature {
    flex: 1;
  }

  .welcome-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .customer-type-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-section {
    flex: 1;
    min-width: 200px;
  }
}

/* Small screens (mobile) */
@media (max-width: 991px) {
  body {
    padding-top: 122px;
  }

  body:has(.shein-header .header-top) {
    padding-top: 162px;
  }

  .desktop-lens-flyout {
    display: none !important;
  }

  .desktop-categories-nav {
    display: none !important;
  }

  .categories-scroll.mobile {
    display: block;
  }

  .hero-slider,
  .category-showcase,
  .promo-banner,
  .product-filters,
  .newsletter {
    display: none;
  }

  /* Keep modern hero visible on mobile even if old .hero-slider is hidden */
  .modern-hero .hero-slider {
    display: block !important;
  }

  /* Mobile style for modern hero (explicit) */
  .modern-hero {
    display: block !important;
    margin-top: 12px;
    margin-bottom: 18px;
    padding: 12px;
  }

  .modern-hero .hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: auto;
  }

  .modern-hero .hero-text {
    order: 2;
    text-align: center;
    max-width: 100%;
    width: 100%;
    padding: 14px 12px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  }

  .modern-hero .hero-badge {
    margin: 0 auto 10px;
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .modern-hero .hero-main-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 6px;
  }

  .modern-hero .hero-sub-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 10px;
  }

  .modern-hero .hero-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .modern-hero .hero-buttons {
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .modern-hero .hero-btn {
    width: 100%;
    max-width: 240px;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .modern-hero .hero-stats {
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .modern-hero .stat-number {
    font-size: 1.25rem;
  }

  .modern-hero .stat-label {
    font-size: 0.75rem;
  }

  .modern-hero .hero-visual {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .modern-hero .hero-image-container {
    position: relative;
    height: 320px;
  }

  .modern-hero .hero-main-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
  }

  .modern-hero .hero-slider {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .modern-hero .hero-slide {
    position: absolute !important;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 0.55s ease-in-out !important;
    will-change: opacity;
  }

  .modern-hero .hero-slide.active {
    opacity: 1;
    z-index: 2;
  }

  .modern-hero .hero-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
  }

  .modern-hero .hero-slider-arrow {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 1 !important;
    width: 36px;
    height: 36px;
  }

  .modern-hero .hero-slider-arrow.prev {
    left: 10px;
  }

  .modern-hero .hero-slider-arrow.next {
    right: 10px;
  }

  .modern-hero .hero-slider-dots {
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    bottom: 10px;
    display: flex !important;
  }

  .modern-hero .floating-cards {
    display: none;
  }

  .mobile-banner-bg {
    display: none !important;
  }

  .logo-text {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo-text-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .logo-text-subtitle {
    font-size: 0.5rem;
  }
}

@media (min-width: 992px) {
  .mobile-banner-bg,
  .categories-scroll.mobile,
  .bottom-nav.mobile,
  .categories-scroll.mobile,
  .bottom-nav.mobile {
    display: none;
  }
}

/* Final mobile override for modern hero text */
@media (max-width: 991px) {
  body .modern-hero.container .hero-content .hero-text {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 14px 12px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e9eef5 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08) !important;
  }

  body .modern-hero.container .hero-content .hero-text .hero-badge {
    display: inline-flex !important;
    margin: 0 auto 10px !important;
  }

  body .modern-hero.container .hero-content .hero-text .hero-main-title {
    font-size: 2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  body .modern-hero.container .hero-content .hero-text .hero-sub-title {
    font-size: 1.1rem !important;
    color: #2f3b4a !important;
    margin-bottom: 10px !important;
  }

  body .modern-hero.container .hero-content .hero-text .hero-description {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    color: #5a6572 !important;
    margin-bottom: 12px !important;
    max-width: 100% !important;
  }

  body .modern-hero.container .hero-content .hero-text .hero-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  body .modern-hero.container .hero-content .hero-text .hero-stats {
    display: flex !important;
    justify-content: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
  }
}
