/* ===========================================================
   متجر الأحذية - Arabic Shoe Store
   RTL E-Commerce Styles
   =========================================================== */

/* ----- CSS Custom Properties ----- */
:root {
  /* Colors */
  --gold: #D4A843;
  --gold-light: #E8D5A3;
  --gold-dark: #B8860B;
  --navy: #0F0F23;
  --navy-light: #1E1E3F;
  --cream: #FAF8F5;
  --cream-dark: #F0EDE8;
  --white: #FFFFFF;
  --black: #1A1A2E;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;

  /* Typography */
  --font-primary: 'Tajawal', 'Cairo', 'Noto Naskh Arabic', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 4px 14px rgba(212, 168, 67, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-slow: 400ms var(--ease-in-out);

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  direction: rtl;
  text-align: right;
  background-color: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove default list styles */
ul, ol {
  list-style: none;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
}

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

/* Buttons */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
}

/* Inputs */
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  direction: rtl;
  text-align: right;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--navy);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xl);
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ----- Utility Classes ----- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================================================
   HEADER
   =========================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 168, 67, 0.15);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header.hidden {
  transform: translateY(-100%);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Search */
.search-wrapper {
  flex: 1;
  max-width: 400px;
  margin: 0 var(--space-xl);
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--transition-base);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.search-btn {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.search-btn:hover {
  color: var(--gold);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-sm);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  padding: 3px;
}

.lang-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  opacity: 0.5;
  text-decoration: none;
}

.lang-link:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
}

.lang-link.active {
  opacity: 1;
  background: rgba(212, 168, 67, 0.2);
  box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.3);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: all var(--transition-base);
  background: rgba(255, 255, 255, 0.05);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 300ms var(--ease-bounce);
}

.cart-count.visible {
  transform: scale(1);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.05);
}

/* Navigation */
.nav {
  background: var(--navy);
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 999;
  transition: transform var(--transition-base);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0 var(--space-lg);
  height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 10px 20px;
  border-radius: var(--radius-xl);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition-base);
  position: relative;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--gold);
  background: rgba(212, 168, 67, 0.12);
}

/* ===========================================================
   HERO SECTION
   =========================================================== */
.hero {
  margin-top: calc(var(--header-height) + 56px);
  min-height: calc(100vh - var(--header-height) - 56px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #1a1a3e 50%, var(--navy-light) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 168, 67, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 168, 67, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 25% 25%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, var(--gold) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(212, 168, 67, 0.12);
  border: 1px solid rgba(212, 168, 67, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: var(--radius-full);
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-md);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-xs);
}

/* Hero Image */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(212, 168, 67, 0.05));
  border: 1px solid rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  position: relative;
  overflow: hidden;
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(212, 168, 67, 0.15), transparent 60%);
}

.floating-badge {
  position: absolute;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-badge-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 1.5s;
}

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

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ===========================================================
   SECTIONS - General
   =========================================================== */
.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

/* ===========================================================
   CATEGORIES SECTION
   =========================================================== */
.categories {
  background: var(--white);
  padding: var(--space-3xl) 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.category-card:hover {
  border-color: rgba(212, 168, 67, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(212, 168, 67, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform var(--transition-base);
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(-5deg);
}

.category-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.category-count {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ===========================================================
   PRODUCTS SECTION
   =========================================================== */
.products {
  padding: var(--space-3xl) 0;
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--gray-100);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.filter-btn:hover {
  background: var(--gray-200);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold-dark);
}

.sort-select {
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--gold);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--space-lg);
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--gray-100);
  animation: fadeInUp 400ms var(--ease-out) forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(212, 168, 67, 0.2);
}

.product-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-badge.sale {
  background: var(--error);
  color: white;
}

.product-badge.new {
  background: var(--gold);
  color: var(--navy);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
  padding: 5%;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.03));
}

.product-wishlist {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.product-wishlist:hover {
  background: var(--white);
  color: var(--error);
  transform: scale(1.1);
}

.product-wishlist.active {
  color: var(--error);
}

.product-info {
  padding: var(--space-md);
}

.product-category {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.product-name:hover {
  color: var(--gold-dark);
}

a.product-image {
  display: block;
  cursor: pointer;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.stars {
  color: var(--warning);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.product-price .currency {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}

.product-old-price {
  font-size: 0.9rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-right: var(--space-sm);
}

.add-to-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
  flex-shrink: 0;
}

.add-to-cart-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.4);
}

.add-to-cart-btn:active {
  transform: scale(0.95);
}

/* ===========================================================
   FEATURES SECTION
   =========================================================== */
.features {
  background: var(--navy);
  padding: var(--space-3xl) 0;
  color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(212, 168, 67, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto var(--space-md);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ===========================================================
   TESTIMONIALS
   =========================================================== */
.testimonials {
  background: var(--white);
  padding: var(--space-3xl) 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--cream);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--warning);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--gray-400);
}

/* ===========================================================
   NEWSLETTER
   =========================================================== */
.newsletter {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.08), transparent 70%);
  pointer-events: none;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.newsletter-desc {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.95rem;
  direction: rtl;
  text-align: right;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: #0A0A1A;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}

.footer-title {
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold);
  padding-right: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.85rem;
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-payments span {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

/* ===========================================================
   CART SIDEBAR
   =========================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 400ms var(--ease-out);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.cart-overlay.open .cart-sidebar {
  transform: translateX(0);
}

.cart-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.cart-title-count {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-weight: 400;
}

.cart-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.cart-close:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-md);
  color: var(--gray-400);
}

.cart-empty-icon {
  font-size: 4rem;
  opacity: 0.5;
}

.cart-empty-text {
  font-size: 1rem;
  font-weight: 500;
}

.cart-empty-sub {
  font-size: 0.85rem;
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--cream);
  margin-bottom: var(--space-sm);
  animation: slideIn 250ms var(--ease-out);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
  color: var(--navy);
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: var(--space-sm);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.cart-item-price {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 0.95rem;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gray-600);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.qty-value {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  color: var(--navy);
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gray-400);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.cart-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.cart-total-label {
  font-size: 0.95rem;
  color: var(--gray-600);
}

.cart-total-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.cart-total-value .currency {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.cart-cod-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--success);
  margin-bottom: var(--space-md);
}

/* ===========================================================
   PRODUCT MODAL
   =========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  transform: scale(0.95) translateY(20px);
  transition: all 400ms var(--ease-out);
  position: relative;
}

.modal-overlay.open .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.modal-image {
  background: linear-gradient(135deg, var(--cream), var(--cream-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10rem;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.modal-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, transparent 50%, rgba(0,0,0,0.02));
}

.modal-body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.modal-category {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-product-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
}

.modal-price .currency {
  font-size: 1.1rem;
  color: var(--gray-500);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.modal-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.size-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.size-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.color-options {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gold);
}

.modal-qty {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-qty .qty-btn {
  width: 36px;
  height: 36px;
}

.modal-qty .qty-value {
  font-size: 1.1rem;
  min-width: 30px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: auto;
}

/* ===========================================================
   CHECKOUT MODAL
   =========================================================== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.checkout-overlay.open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: all 400ms var(--ease-out);
}

.checkout-overlay.open .checkout-modal {
  transform: scale(1) translateY(0);
}

.checkout-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: var(--gray-50);
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--gray-400);
}

.step.active {
  color: var(--gold-dark);
  font-weight: 600;
}

.step.completed {
  color: var(--success);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step.active .step-number {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.step.completed .step-number {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200);
  border-radius: 1px;
}

.step-line.completed {
  background: var(--success);
}

.checkout-body {
  padding: var(--space-xl);
}

.checkout-form {
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
}

.checkout-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-input {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  direction: rtl;
  text-align: right;
  background: var(--white);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
}

/* COD Badge */
.cod-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.cod-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cod-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.cod-text strong {
  color: var(--success);
}

/* Order Summary */
.order-summary-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  border-top: 2px solid var(--gray-200);
}

/* ===========================================================
   NOTIFICATION TOAST
   =========================================================== */
.toast-container {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.9rem;
  animation: toastIn 300ms var(--ease-out), toastOut 300ms var(--ease-in-out) forwards;
  animation-duration: 300ms, 300ms;
  animation-delay: 0s, 2.5s;
  animation-fill-mode: forwards, forwards;
  pointer-events: auto;
  min-width: 280px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

.toast-icon {
  font-size: 1.2rem;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }

/* ===========================================================
   ORDER CONFIRMATION MODAL
   =========================================================== */
.confirmation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.confirmation-overlay.open {
  opacity: 1;
  visibility: visible;
}

.confirmation-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: var(--space-2xl);
  text-align: center;
  transform: scale(0.95) translateY(20px);
  transition: all 400ms var(--ease-out);
}

.confirmation-overlay.open .confirmation-modal {
  transform: scale(1) translateY(0);
}

.confirmation-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-lg);
}

.confirmation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.confirmation-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.confirmation-details {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: right;
}

.confirmation-detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
}

.confirmation-detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: var(--gray-500);
}

.detail-value {
  font-weight: 600;
  color: var(--navy);
}

.order-number {
  font-weight: 700;
  color: var(--gold-dark);
}

/* ===========================================================
   BACK TO TOP
   =========================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--navy);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-image {
    max-width: 350px;
  }

  .floating-badge-1 {
    left: 5%;
  }

  .floating-badge-2 {
    right: 5%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-image {
    min-height: 250px;
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .search-wrapper {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: var(--navy);
    transform: translateY(-100%);
    transition: transform var(--transition-base);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    height: auto;
    padding: var(--space-md);
    gap: var(--space-xs);
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero {
    margin-top: var(--header-height);
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-image {
    max-width: 280px;
    font-size: 6rem;
  }

  .floating-badge {
    display: none;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cart-sidebar {
    width: 100%;
  }

  .checkout-modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .checkout-overlay {
    padding: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toast-container {
    left: var(--space-md);
    right: var(--space-md);
  }

  .toast {
    min-width: auto;
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-body {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .product-info {
    padding: var(--space-sm);
  }

  .product-name {
    font-size: 0.85rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .add-to-cart-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .category-card {
    padding: var(--space-md);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .confirmation-modal {
    padding: var(--space-xl);
  }
}

/* ===========================================================
   LOADING / SCROLL ANIMATIONS
   =========================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .product-card {
    opacity: 1;
  }

  .cart-item {
    animation: none;
  }
}

/* ===========================================================
   CUSTOM SCROLLBAR
   =========================================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}

/* ===========================================================
   LTR MODE (French / English)
   Overrides RTL defaults when dir="ltr"
   =========================================================== */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .search-btn {
  left: auto;
  right: 8px;
}

html[dir="ltr"] .lang-switcher {
  margin-left: 0;
  margin-right: var(--space-sm);
}

html[dir="ltr"] .cart-count {
  right: auto;
  left: -4px;
}

html[dir="ltr"] .category-card::before {
  right: auto;
  left: 0;
  transform-origin: left;
}

html[dir="ltr"] .product-badge {
  right: auto;
  left: var(--space-md);
}

html[dir="ltr"] .product-wishlist {
  left: auto;
  right: var(--space-md);
}

html[dir="ltr"] .product-old-price {
  margin-right: 0;
  margin-left: var(--space-sm);
}

html[dir="ltr"] .modal-close {
  left: auto;
  right: var(--space-md);
}

html[dir="ltr"] .modal-image::after {
  background: linear-gradient(to right, transparent 50%, rgba(0,0,0,0.02));
}

html[dir="ltr"] .cart-sidebar {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

html[dir="ltr"] .cart-overlay.open .cart-sidebar {
  transform: translateX(0);
}

html[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 4px;
}

html[dir="ltr"] .toast-container {
  left: auto;
  right: var(--space-xl);
}

/* LTR toast animations need separate names */
html[dir="ltr"] .toast {
  animation-name: toastInLtr, toastOutLtr;
}

@keyframes toastInLtr {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOutLtr {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(30px); }
}

html[dir="ltr"] .cart-item {
  animation-name: slideInLtr;
}

@keyframes slideInLtr {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

html[dir="ltr"] .back-to-top {
  right: auto;
  left: var(--space-xl);
}

html[dir="ltr"] .confirmation-details {
  text-align: left;
}

html[dir="ltr"] .newsletter-input {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .form-input {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .order-form-input {
  direction: ltr;
  text-align: left;
}

html[dir="ltr"] .breadcrumb {
  flex-direction: row;
}

html[dir="ltr"] .hero-desc {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 1024px) {
  html[dir="ltr"] .floating-badge-1 {
    left: auto;
    right: 5%;
  }
  html[dir="ltr"] .floating-badge-2 {
    right: auto;
    left: 5%;
  }
}

@media (max-width: 768px) {
  html[dir="ltr"] .toast-container {
    left: var(--space-md);
    right: var(--space-md);
  }
  html[dir="ltr"] .back-to-top {
    right: auto;
    left: var(--space-md);
  }
}
