/* ============================================
   GHADA SHAKAL — Design System
   Premium Women's Fashion E-Commerce
   White & Purple Theme — Matching Logo
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Poppins:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors — from Logo */
  --color-primary: #6B2183;
  /* Deep purple (logo text) */
  --color-primary-light: #8B3FA3;
  /* Lighter purple */
  --color-primary-dark: #4A1560;
  /* Darker purple */
  --color-lavender: #9B8EC4;
  /* Butterfly lavender */
  --color-pink: #F0C4D4;
  /* Butterfly pink */
  --color-blush: #FDF2F8;
  /* Very light pink bg */

  /* Neutral Colors */
  --color-white: #ffffff;
  --color-bg: #FAFAFA;
  /* Page background */
  --color-surface: #ffffff;
  /* Card/section bg */
  --color-surface-alt: #F5F0F7;
  /* Alt surface (light purple tint) */
  --color-text: #1a1a2e;
  /* Primary text */
  --color-text-light: #555566;
  /* Secondary text */
  --color-text-muted: #8888A0;
  /* Muted text */

  /* Gray Scale */
  --color-gray-100: #f7f7f9;
  --color-gray-200: #e8e8ee;
  --color-gray-300: #d4d4dd;
  --color-gray-400: #a3a3b3;
  --color-gray-500: #737380;
  --color-gray-600: #525260;
  --color-gray-700: #404050;
  --color-gray-800: #2a2a3a;

  /* Legacy mappings (components referencing old dark-theme names) */
  /* --color-black was used as BACKGROUND → now white */
  --color-black: #ffffff;
  --color-black-light: #F5F0F7;
  --color-black-lighter: #ffffff;
  --color-dark: #F5F0F7;
  /* --color-gold was accent → now brand purple */
  --color-gold: #6B2183;
  --color-gold-light: #8B3FA3;
  --color-gold-dark: #4A1560;
  /* --color-pearl was used for TEXT on dark bg → now dark text */
  --color-pearl: #1a1a2e;

  /* Override gray-700/800 (used for borders) to lighter */
  --color-gray-700: #e0dce5;
  --color-gray-800: #d4d0da;
  --color-danger: #e74c3c;
  --color-success: #2ecc71;
  --color-info: #3498db;

  /* Typography */
  --font-heading: 'Playfair Display', 'Tajawal', serif;
  --font-body: 'Poppins', 'Tajawal', sans-serif;
  --font-arabic: 'Tajawal', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(107, 33, 131, 0.06);
  --shadow-md: 0 4px 20px rgba(107, 33, 131, 0.08);
  --shadow-lg: 0 8px 40px rgba(107, 33, 131, 0.12);
  --shadow-purple: 0 4px 30px rgba(107, 33, 131, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(107, 33, 131, 0.1);
  --glass-blur: blur(20px);

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ── Global Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  direction: ltr;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-lavender);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.text-gold {
  color: var(--color-gold);
}

.text-blush {
  color: var(--color-blush);
}

.text-muted {
  color: var(--color-gray-400);
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-sm {
  max-width: 900px;
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-lg) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: var(--space-md) 0;
  box-shadow: 0 2px 20px rgba(107, 33, 131, 0.08);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.navbar-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--color-gold);
  text-transform: uppercase;
}

.navbar-brand .brand-tagline {
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: var(--color-gray-400);
  text-transform: uppercase;
}

.main-logo {
  height: 85px;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: all var(--transition-base);
}

.footer-logo {
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;
  display: block;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.navbar-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  position: relative;
  padding-bottom: 4px;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--color-primary);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.navbar-actions button,
.navbar-actions a {
  position: relative;
  color: var(--color-text);
  font-size: 1.2rem;
  transition: color var(--transition-base);
}

.navbar-actions button:hover,
.navbar-actions a:hover {
  color: var(--color-primary);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.6rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 99999;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-black);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-black);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-black-lighter);
  color: var(--color-pearl);
  border: 1px solid var(--color-gray-700);
}

.btn-dark:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 0.9rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* ── Cards ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

/* Product Card */
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-black-lighter);
  transition: all var(--transition-base);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.product-card .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-gray-100);
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-card .product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(107, 33, 131, 0.85) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform var(--transition-base);
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.product-card:hover .product-overlay {
  transform: translateY(0);
}

.product-overlay .overlay-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(107, 33, 131, 0.15);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.product-overlay .overlay-btn:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

.product-card .product-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--color-gold);
  color: var(--color-black);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.product-card .product-info {
  padding: var(--space-lg);
}

.product-card .product-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-pearl);
}

.product-card .product-category {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-bottom: var(--space-sm);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-card .product-price {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  font-weight: 600;
}

.product-card .product-price .old-price {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  text-decoration: line-through;
  margin-right: var(--space-sm);
  font-weight: 400;
}

/* ── Section Styling ── */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header .section-line {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 auto var(--space-md);
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Grid System ── */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Footer ── */
.footer {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .brand-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--color-primary);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-200);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: var(--color-gray-500);
  font-size: 0.8rem;
}

/* ── Input Fields ── */
.input-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-black-lighter);
  border: 1px solid var(--color-gray-700);
  border-radius: var(--radius-md);
  color: var(--color-pearl);
  font-size: 0.95rem;
  transition: border-color var(--transition-base);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.input-group input::placeholder {
  color: var(--color-gray-600);
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-gold {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 110, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 10px rgba(201, 169, 110, 0);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-right {
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
}

.animate-scale {
  opacity: 0;
  animation: scaleIn 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

/* ── Utility Classes ── */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.w-full {
  width: 100%;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* Gold Separator */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: var(--space-md) auto;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--color-black-lighter);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);
  color: var(--color-pearl);
  font-size: 0.9rem;
  animation: fadeInDown 0.4s ease, fadeIn 0.4s ease;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 300px;
  box-shadow: var(--shadow-gold);
}

.toast .toast-icon {
  color: var(--color-gold);
  font-size: 1.2rem;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-black-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* ── Page Header / Breadcrumb ── */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-black-light) 0%, var(--color-black) 100%);
  border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--color-gray-400);
  font-size: 0.85rem;
}

.breadcrumb a:hover {
  color: var(--color-gold);
}

.breadcrumb .separator {
  color: var(--color-gray-600);
}

/* ── Loading Spinner ── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gray-800);
  border-top-color: var(--color-gold);
  border-radius: var(--radius-full);
  animation: rotate 0.8s linear infinite;
}

/* ── Mobile Bottom Navigation (App-style) ── */
.mobile-bottom-nav {
  display: none;
  /* Hidden on desktop */
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(107, 33, 131, 0.1);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
  }

  body {
    padding-bottom: 72px;
    /* Space for bottom nav */
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.65rem;
    padding: 4px 8px;
    transition: all 0.2s ease;
    min-width: 50px;
    position: relative;
  }

  .bottom-nav-item.active {
    color: var(--color-primary);
  }

  .bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--color-gold);
    border-radius: 0 0 3px 3px;
  }

  .bottom-nav-icon {
    font-size: 1.3rem;
    line-height: 1;
  }

  .bottom-nav-label {
    font-weight: 500;
    letter-spacing: 0;
    font-family: var(--font-body);
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar .container {
    position: relative;
  }

  .navbar-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -25px;
    /* half of logo height */
    width: max-content;
    z-index: 1;
    pointer-events: auto;
  }

  .navbar-actions {
    position: relative;
    z-index: 10;
    /* Above logo so hamburger is clickable */
  }

  .main-logo {
    height: 50px;
  }

  .menu-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    transition: right var(--transition-base);
    border-left: 1px solid var(--glass-border);
  }

  .navbar-menu.open {
    right: 0;
  }

  .navbar-menu a {
    font-size: 1.1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
  }

  .footer {
    padding: var(--space-2xl) 0 var(--space-lg);
    padding-bottom: 90px;
    /* Space for bottom nav */
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    margin: 0 auto 10px auto;
    height: 70px;
  }

  .footer-brand p {
    font-size: 0.85rem;
    max-width: 300px;
    margin: 0 auto var(--space-md);
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column {
    padding: 0;
  }

  .footer-column h4 {
    margin-bottom: var(--space-md);
    font-size: 0.8rem;
  }

  .footer-column ul li {
    margin-bottom: var(--space-xs);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    padding-top: var(--space-md);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-xl);
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════════
   RTL OVERRIDES — Arabic Language Support
   ═══════════════════════════════════════════ */
[dir="rtl"] .navbar-menu a::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .cart-count {
  right: auto;
  left: -8px;
}

[dir="rtl"] .product-card .product-badge {
  right: auto;
  left: var(--space-md);
}

[dir="rtl"] .product-card .product-price .old-price {
  margin-right: 0;
  margin-left: var(--space-sm);
}

[dir="rtl"] .product-card .product-info {
  text-align: right;
}

[dir="rtl"] .footer-column ul li a:hover {
  padding-left: 0;
  padding-right: 8px;
}

[dir="rtl"] .text-right {
  text-align: left;
}

[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .mr-sm {
  margin-right: 0;
  margin-left: var(--space-sm);
}

[dir="rtl"] .ml-sm {
  margin-left: 0;
  margin-right: var(--space-sm);
}


/* Mobile menu RTL */
@media (max-width: 768px) {
  [dir="rtl"] .navbar-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid var(--glass-border);
    transition: left var(--transition-base);
  }

  [dir="rtl"] .navbar-menu.open {
    right: auto;
    left: 0;
  }
}