/* ═══════════════════════════════════════════════════════════════════════════
   main.css — Idea & Classification Company Store
   Cream gradient design with flowing lines, bilingual RTL/LTR support
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --cream:          #F4F4F4;
  --cream-light:    #FCFCFC;
  --cream-dark:     #EDEDED;
  --cream-border:   #D9D9D9;

  --gold:           #F0B23A;
  --gold-light:     #FFD36A;
  --gold-dark:      #D86A2C;

  --brown:          #A85A2A;
  --brown-light:    #C06C34;

  --text-primary:   #7A4423;
  --text-secondary: #9B6A49;
  --text-muted:     #7FBFC4;

  --white:          #FFFFFF;

  --brand-cyan:     #57D6D3;
  --brand-cyan-light:#8BE8E2;
  --brand-blue:     #2B86C5;
  --brand-blue-dark:#1E5F9A;
  --brand-orange:   #F08A2E;
  --brand-orange-dark:#D95B22;
  --brand-brown:    #A85A2A;

  --shadow-sm:      0 2px 8px rgba(168,90,42,0.08);
  --shadow-md:      0 4px 20px rgba(43,134,197,0.12);
  --shadow-lg:      0 8px 40px rgba(240,138,46,0.16);
  --shadow-xl:      0 16px 60px rgba(168,90,42,0.20);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    9999px;

  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --font-ar:        'Cairo', sans-serif;
  --font-en:        'Poppins', sans-serif;
  --nav-height:     72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--cream);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

body.lang-en { font-family: var(--font-en); }

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

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

/* ── Gradient Text ─────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan), var(--brand-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(217,91,34,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,91,34,0.45);
  color: var(--white);
}
.btn-outline {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.btn-secondary {
  background: var(--cream-dark);
  color: var(--text-primary);
  border-color: var(--cream-border);
}
.btn-secondary:hover { background: var(--cream-border); }

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #dc3545; color: white; }
.btn-danger:hover { background: #c82333; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(253,248,240,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cream-border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(253,248,240,0.98);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(160,120,48,0.3);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-weight: 800; font-size: 1rem; color: var(--text-primary); }
.logo-sub { font-size: 0.7rem; color: var(--text-muted); }

.nav-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}

.search-form {
  display: flex;
  background: var(--cream-dark);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--cream-border);
  overflow: hidden;
  transition: var(--transition);
}

.search-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.search-form input {
  flex: 1;
  padding: 10px 18px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.search-form button {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-border);
  overflow: hidden;
  display: none;
  z-index: 100;
}

.search-suggestions.active { display: block; }

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  transition: var(--transition);
  cursor: pointer;
}
.suggestion-item:hover { background: var(--cream); }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }
.suggestion-item-info { flex: 1; }
.suggestion-item-name { font-weight: 600; font-size: 0.9rem; }
.suggestion-item-price { font-size: 0.8rem; color: var(--gold-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--cream-dark);
  color: var(--text-primary);
}

.nav-admin-link {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: white !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--cream-dark);
  border: 1.5px solid var(--cream-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.lang-toggle:hover { background: var(--gold); color: white; border-color: var(--gold); }

.cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(160,120,48,0.3);
  transition: var(--transition);
}
.cart-btn:hover { transform: scale(1.08); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Flash Messages ─────────────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(500px, 90vw);
}

.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-danger  { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.flash-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.flash-close {
  margin-right: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
}
.flash-close:hover { opacity: 1; }

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

}




.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--gold-light), transparent);
  top: -200px;
  right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--cream-dark), transparent);
  bottom: -100px;
  left: -50px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.3), transparent);
  top: 50%;
  left: 40%;
  animation: blobFloat 12s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-lines {
  position: absolute;
  inset: 0;
}

.hero-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.15), transparent);
  animation: lineFlow 4s ease-in-out infinite;
}

.hero-line:nth-child(1) { left: 15%; animation-delay: 0s; }
.hero-line:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.hero-line:nth-child(3) { left: 50%; animation-delay: 1s; }
.hero-line:nth-child(4) { left: 65%; animation-delay: 1.5s; }
.hero-line:nth-child(5) { left: 80%; animation-delay: 2s; }
.hero-line:nth-child(6) { left: 90%; animation-delay: 2.5s; }

@keyframes lineFlow {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 60px 24px 60px;
  max-width: 620px;
  margin-right: auto;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--gold-dark); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--cream-border); }

.hero-visual {
  position: relative;
  width: 480px;
  height: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-main-visual {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.3);
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 { width: 220px; height: 220px; animation-delay: 0s; }
.ring-2 { width: 300px; height: 300px; animation-delay: 0.5s; border-style: dashed; }
.ring-3 { width: 380px; height: 380px; animation-delay: 1s; opacity: 0.5; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.03); opacity: 1; }
}

.visual-center {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 32px rgba(160,120,48,0.4);
  animation: centerGlow 3s ease-in-out infinite;
}

@keyframes centerGlow {
  0%, 100% { box-shadow: 0 8px 32px rgba(160,120,48,0.4); }
  50%       { box-shadow: 0 12px 48px rgba(160,120,48,0.6); }
}

.hero-card-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid var(--cream-border);
  animation: cardFloat 4s ease-in-out infinite;
}

.hero-card-float i {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.card-1 { top: 60px; right: 20px; animation-delay: 0s; }
.card-2 { bottom: 80px; right: 30px; animation-delay: 1s; }
.card-3 { top: 50%; left: 10px; animation-delay: 2s; }

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

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Categories Strip ──────────────────────────────────────────────────── */
.categories-strip {
  background: var(--white);
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
  padding: 20px 0;
  overflow: hidden;
}

.strip-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0;
}
.strip-scroll::-webkit-scrollbar { display: none; }

.strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--cream);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--cream-border);
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
  flex-shrink: 0;
}

.strip-item:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(160,120,48,0.3);
}

.strip-icon {
  width: 32px;
  height: 32px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--gold-dark);
  transition: var(--transition);
}

.strip-item:hover .strip-icon { background: rgba(255,255,255,0.25); color: white; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(201,168,76,0.12);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.section-cta { text-align: center; margin-top: 48px; }

/* ── Products Grid ─────────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--cream-border);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold-light);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}

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

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

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  font-size: 3rem;
  color: var(--gold-light);
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,26,14,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-overlay { opacity: 1; }

.btn-quick-view {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--white);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  transform: translateY(10px);
}

.product-card:hover .btn-quick-view { transform: translateY(0); }
.btn-quick-view:hover { background: var(--gold); color: white; }

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-featured {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
}

.product-info { padding: 20px; }

.product-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

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

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.product-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.product-delivery {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-border);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.price-currency {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-add-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-add-cart:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(160,120,48,0.4);
}

/* ── Why Section ───────────────────────────────────────────────────────── */
.why-section { position: relative; background: var(--cream-dark); }
.why-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A84C' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  border: 1px solid var(--cream-border);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-light);
}

.why-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(160,120,48,0.3);
}

.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.why-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* ── Tamara Banner ─────────────────────────────────────────────────────── */
.tamara-banner {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-orange-dark));
}

.tamara-content {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.tamara-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.tamara-text { flex: 1; }
.tamara-text h3 { font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 4px; }
.tamara-text p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.tamara-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tamara-brand {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.tamara-tag {
  padding: 3px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
}

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,26,14,0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-overlay.active .modal-box { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  z-index: 10;
  transition: var(--transition);
}

[dir="ltr"] .modal-close { left: auto; right: 16px; }
.modal-close:hover { background: var(--gold); color: white; }

.modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  font-size: 2rem;
  color: var(--gold);
}

/* ── Page Header ───────────────────────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-height) + 48px) 0 48px;
  background: linear-gradient(160deg, var(--cream-dark), var(--cream));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header.compact {
  padding: calc(var(--nav-height) + 24px) 0 24px;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23C9A84C' fill-opacity='0.06' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  margin-top: 12px;
}

.breadcrumb a { color: var(--gold-dark); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Products Page Layout ──────────────────────────────────────────────── */
.products-page { padding: 40px 0 80px; }

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

[dir="rtl"] .products-layout { grid-template-columns: 260px 1fr; }

.filters-sidebar { position: sticky; top: calc(var(--nav-height) + 20px); }

.filter-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--cream-border);
  box-shadow: var(--shadow-sm);
}

.filter-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }

.filter-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.filter-input:focus { border-color: var(--gold); }

.filter-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.category-filter-list { display: flex; flex-direction: column; gap: 4px; }

.cat-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.cat-filter-item:hover { background: var(--cream); color: var(--text-primary); }
.cat-filter-item.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
}

/* Results Bar */
.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-border);
}

.results-info { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-secondary); }
.results-count { font-weight: 700; color: var(--text-primary); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
  border: 1.5px solid var(--cream-border);
}
.view-btn.active, .view-btn:hover { background: var(--gold); color: white; border-color: var(--gold); }

/* List View */
.products-grid.list-view { grid-template-columns: 1fr; }
.products-grid.list-view .product-card { display: flex; }
.products-grid.list-view .product-image-wrap { width: 200px; flex-shrink: 0; aspect-ratio: auto; }
.products-grid.list-view .product-info { flex: 1; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.page-btn.active, .page-btn:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: white;
  border-color: transparent;
}

.page-ellipsis { color: var(--text-muted); padding: 0 4px; }

/* ── Empty State ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state i {
  font-size: 4rem;
  color: var(--cream-border);
  margin-bottom: 24px;
}

.empty-state h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 24px; }

/* ── Product Detail Page ───────────────────────────────────────────────── */
.product-detail-page { padding: 40px 0 80px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
  border: 1px solid var(--cream-border);
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--gold-light);
}

.gallery-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--cream-border);
  flex-shrink: 0;
  transition: var(--transition);
}

.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.product-detail-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
}

.product-detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream-border);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.meta-item i { color: var(--gold); }

.product-detail-price { margin-bottom: 24px; }
.price-label { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 8px; }

.price-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price-big {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.price-currency-big { font-size: 1rem; color: var(--text-muted); }

.tamara-installment {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 14px;
  background: rgba(201,168,76,0.08);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201,168,76,0.2);
}

.product-detail-desc { margin-bottom: 28px; }
.product-detail-desc h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.product-detail-desc p { color: var(--text-secondary); line-height: 1.8; }

.add-to-cart-form { margin-bottom: 24px; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.qty-selector label { font-weight: 600; font-size: 0.9rem; }

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control button {
  width: 36px;
  height: 36px;
  background: var(--cream-dark);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}

.qty-control button:hover { background: var(--gold); color: white; }

.qty-control input {
  width: 50px;
  height: 36px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--cream-border);
  border-right: 1.5px solid var(--cream-border);
  background: var(--white);
  font-weight: 700;
  outline: none;
}

.cart-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-add-to-skillta {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  box-shadow: 0 4px 16px rgba(160,120,48,0.35);
}

.product-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-border);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.feature-item i { color: var(--gold); }

/* ── Related Section ───────────────────────────────────────────────────── */
.related-section { background: var(--cream-dark); }

/* ── About Page ────────────────────────────────────────────────────────── */
.about-page { padding: 60px 0 80px; }

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-hero-text .section-tag { margin-bottom: 16px; }
.about-hero-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 20px; }
.about-hero-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

.about-hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,0.3);
  position: absolute;
  animation: ringPulse 3s ease-in-out infinite;
}

.about-visual-center {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  box-shadow: 0 8px 32px rgba(160,120,48,0.4);
}

.about-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--cream-border);
}

.about-float-card i { color: var(--gold); font-size: 1.1rem; }
.card-a { top: 40px; right: 20px; animation: cardFloat 4s ease-in-out infinite; }
.card-b { bottom: 60px; left: 20px; animation: cardFloat 4s ease-in-out infinite 1s; }

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--cream-border);
  text-align: center;
  transition: var(--transition);
}

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

.mv-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  margin: 0 auto 20px;
}

.mv-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.mv-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

.about-services { margin-bottom: 80px; }
.about-services .section-title { text-align: center; margin-bottom: 32px; }

.services-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.service-overview-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  border: 1.5px solid var(--cream-border);
  transition: var(--transition);
}

.service-overview-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sov-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  margin: 0 auto 12px;
}

.service-overview-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--cream-dark);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  text-align: center;
}

.stat-card { }
.stat-number { font-size: 2.5rem; font-weight: 800; margin-bottom: 8px; }
.stat-desc { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Policy Page ───────────────────────────────────────────────────────── */
.policy-page { padding: 48px 0 80px; }

.policy-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--cream-border);
}

.policy-nav-link {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--cream-dark);
  border: 1.5px solid var(--cream-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}

.policy-nav-link:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}

.policy-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 24px;
  border: 1px solid var(--cream-border);
}

.policy-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.policy-section h2 i { color: var(--gold); }

.policy-section p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }

.policy-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-section ul li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Cart Page ─────────────────────────────────────────────────────────── */
.cart-page { padding: 40px 0 80px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-border);
  margin-bottom: 16px;
  transition: var(--transition);
}

.cart-item:hover { box-shadow: var(--shadow-sm); }

.cart-item-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gold-light);
}

.cart-item-details { flex: 1; }
.cart-item-details h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.cart-item-details h3 a:hover { color: var(--gold-dark); }
.cart-item-cat { font-size: 0.8rem; color: var(--text-muted); }
.cart-item-price { font-size: 0.95rem; font-weight: 700; color: var(--gold-dark); margin-top: 6px; }

.cart-item-qty { }

.cart-item-subtotal {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  min-width: 80px;
  text-align: center;
}

.cart-remove-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-remove-btn:hover { background: #dc2626; color: white; }

.cart-actions-bar {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.cart-summary-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--cream-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.cart-summary-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.summary-divider { height: 1px; background: var(--cream-border); margin: 8px 0; }

.total-row {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.total-amount { font-size: 1.3rem; font-weight: 800; color: var(--gold-dark); }

.tamara-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px;
  background: rgba(201,168,76,0.06);
  border-radius: var(--radius-sm);
  margin: 12px 0 16px;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.text-success { color: #16a34a; font-weight: 600; }

/* ── Checkout Page ─────────────────────────────────────────────────────── */
.checkout-page { padding: 40px 0 80px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--cream-border);
  margin-bottom: 20px;
}

.form-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.payment-methods { display: flex; flex-direction: column; gap: 12px; }

.payment-option {
  border: 2px solid var(--cream-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
}

.payment-option.active { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.payment-option input[type=radio] { display: none; }

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.payment-option-icon {
  width: 44px;
  height: 44px;
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.tamara-icon { background: linear-gradient(135deg, #1a1a2e, #16213e); color: white; }

.payment-option-info { flex: 1; }
.payment-option-info strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.payment-option-info span { font-size: 0.8rem; color: var(--text-muted); }

.payment-option-check { color: var(--cream-border); font-size: 1.2rem; transition: var(--transition); }
.payment-option.active .payment-option-check { color: var(--gold); }

.checkout-secure-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-border);
}

.summary-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.summary-item-img img { width: 100%; height: 100%; object-fit: cover; }

.summary-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.summary-item-info { flex: 1; }
.summary-item-name { display: block; font-size: 0.88rem; font-weight: 600; }
.summary-item-qty { font-size: 0.8rem; color: var(--text-muted); }
.summary-item-price { font-weight: 700; font-size: 0.9rem; color: var(--gold-dark); }

/* ── Order Confirmation ─────────────────────────────────────────────────── */
.confirmation-page {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  display: flex;
  justify-content: center;
}

.confirmation-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--cream-border);
  box-shadow: var(--shadow-xl);
}

.confirmation-icon {
  font-size: 5rem;
  color: #16a34a;
  margin-bottom: 24px;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.confirmation-card h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.confirmation-subtitle { color: var(--text-secondary); margin-bottom: 32px; }

.order-info-box {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  text-align: right;
}

[dir="ltr"] .order-info-box { text-align: left; }

.order-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-border);
  font-size: 0.9rem;
}

.order-info-row:last-child { border-bottom: none; }
.order-number-display { font-size: 1rem; color: var(--gold-dark); }

.confirmation-items {
  text-align: right;
  margin-bottom: 28px;
}

[dir="ltr"] .confirmation-items { text-align: left; }
.confirmation-items h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.conf-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--cream-border);
  color: var(--text-secondary);
}

.confirmation-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }

.confirmation-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ── Order Track Page ──────────────────────────────────────────────────── */
.track-page { padding: 40px 0 80px; max-width: 800px; margin: 0 auto; }

.track-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--cream-border);
  margin-bottom: 32px;
}

.track-form-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.track-form { display: flex; flex-direction: column; gap: 16px; }

.track-result {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--cream-border);
}

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.track-header h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.order-num { color: var(--gold-dark); }
.track-header p { font-size: 0.85rem; color: var(--text-muted); }

/* Timeline */
.order-timeline {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 80px;
}

.timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--cream-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.timeline-step.completed .timeline-icon {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-color: var(--gold);
  color: white;
}

.timeline-step.active .timeline-icon {
  background: white;
  border-color: var(--gold);
  color: var(--gold-dark);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.timeline-step.completed .timeline-label,
.timeline-step.active .timeline-label { color: var(--gold-dark); }

.timeline-connector {
  position: absolute;
  top: 22px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--cream-border);
  z-index: 1;
}

.timeline-step.completed .timeline-connector { background: var(--gold); }
.timeline-step:first-child .timeline-connector { display: none; }

.track-items { margin-bottom: 24px; }
.track-items h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.track-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--cream-border);
  font-size: 0.9rem;
}

.track-item-name { flex: 1; color: var(--text-secondary); }
.track-item-qty { color: var(--text-muted); padding: 0 12px; }
.track-item-price { font-weight: 700; color: var(--gold-dark); }

.track-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-weight: 700;
  font-size: 1rem;
}

.track-history h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

.history-entry {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--cream-border);
}

.history-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.history-info { display: flex; flex-direction: column; gap: 4px; }
.history-note { font-size: 0.88rem; color: var(--text-secondary); }
.history-time { font-size: 0.8rem; color: var(--text-muted); }

/* ── Status Badges ─────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-large { padding: 6px 16px; font-size: 0.88rem; }

.status-pending    { background: #fef3c7; color: #92400e; }
.status-confirmed  { background: #dbeafe; color: #1e40af; }
.status-processing { background: #ede9fe; color: #5b21b6; }
.status-in_review  { background: #fce7f3; color: #9d174d; }
.status-completed  { background: #dcfce7; color: #166534; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }
.status-refunded   { background: #f3f4f6; color: #374151; }

.payment-unpaid  { background: #fee2e2; color: #991b1b; }
.payment-pending { background: #fef3c7; color: #92400e; }
.payment-paid    { background: #dcfce7; color: #166534; }
.payment-failed  { background: #fee2e2; color: #991b1b; }
.payment-refunded{ background: #f3f4f6; color: #374151; }

/* ── Auth Pages ────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--cream-light), var(--cream-dark));
  padding-bottom: 40px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: min(440px, 100%);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--cream-border);
}

.auth-card-wide { width: min(640px, 100%); }

.auth-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(160,120,48,0.3);
}

.auth-card h2 { text-align: center; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.password-input-wrap { position: relative; }
.password-input-wrap input { width: 100%; padding-left: 44px; }
[dir="rtl"] .password-input-wrap input { padding-left: 16px; padding-right: 44px; }

.toggle-password {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

[dir="rtl"] .toggle-password { left: auto; right: 12px; }
.toggle-password:hover { color: var(--gold-dark); }

.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.auth-footer a { color: var(--gold-dark); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, var(--brand-blue-dark), var(--brand-blue));
}

.footer-waves {
  position: absolute;
  top: -79px;
  left: 0;
  right: 0;
  height: 80px;
}

.footer-waves svg { width: 100%; height: 100%; }

.footer-content { padding: 60px 0 0; }

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}



.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.social-link:hover {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--gold-light); padding-right: 4px; }
[dir="ltr"] .footer-col ul li a:hover { padding-right: 0; padding-left: 4px; }

.footer-contact { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact i { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.payment-badges { display: flex; gap: 10px; }

.payment-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.tamara-badge { background: rgba(201,168,76,0.2); color: var(--gold-light); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

  .products-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filters-sidebar {
    position: static;
    top: auto;
    margin-bottom: 24px;
  }

  .category-filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-visual { display: none; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream-light);
    padding: 20px;
    border-bottom: 1px solid var(--cream-border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .hero { padding-top: calc(var(--nav-height) + 20px); }
  .hero-content { padding: 40px 20px; }

  .product-detail-grid,
  .cart-layout,
  .checkout-layout,
  .footer-grid,
  .mv-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filters-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 16px;
  }

  .filter-card,
  .results-bar,
  .product-card {
    width: 100%;
    min-width: 0;
  }

  .results-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .results-info,
  .view-toggle {
    width: 100%;
  }

  .view-toggle {
    justify-content: flex-start;
  }

  .category-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cat-filter-item {
    width: calc(50% - 4px);
    justify-content: center;
    text-align: center;
  }

  /* مهم: في صفحة الخدمات على الجوال خلي البطاقات عمودين */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    overflow: hidden;
  }

  /* إلغاء list view في الجوال */
  .products-grid.list-view {
    grid-template-columns: 1fr;
  }

  .products-grid.list-view .product-card {
    display: block;
  }

  .products-grid.list-view .product-image-wrap {
    width: 100%;
    aspect-ratio: 4/3;
  }

  .product-info {
    padding: 16px;
  }

  .product-name {
    font-size: 0.98rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-add-cart {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .page-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* على الشاشات الصغيرة جدًا يبقى عمودان لكن أضيق */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card,
  .filter-card {
    border-radius: 14px;
  }

  .results-bar,
  .filter-card {
    padding: 12px;
  }

  .cat-filter-item {
    width: 100%;
  }

  .product-info {
    padding: 14px;
  }

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

  .product-desc {
    font-size: 0.78rem;
  }

  .price-amount {
    font-size: 1.1rem;
  }

  .btn-add-cart {
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}
/* ── Products / Services Page Responsive Fix ─────────────────────────── */

.products-layout,
.products-main,
.products-grid,
.product-card,
.filters-sidebar,
.filter-card {
  min-width: 0;
}

.products-main {
  width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
  .products-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .filters-sidebar {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
  }

  .products-main {
    width: 100%;
  }

  .category-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cat-filter-item {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .products-page {
    padding: 24px 0 60px;
  }

  .products-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .filters-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
    order: 1;
  }

  .products-main {
    width: 100%;
    min-width: 0;
    order: 2;
  }

  .filter-card {
    padding: 16px;
  }

  .results-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .results-info {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .view-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .category-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .category-filter-list li {
    width: 100%;
  }

  .cat-filter-item {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* مهم: بطاقات الخدمات على الجوال */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .product-image-wrap {
    aspect-ratio: 4 / 3;
  }

  .product-info {
    padding: 14px;
  }

  .product-category {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .product-name {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-desc {
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-meta {
    margin-bottom: 12px;
  }

  .product-delivery {
    font-size: 0.75rem;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
  }

  .product-price {
    justify-content: center;
  }

  .price-amount {
    font-size: 1.1rem;
  }

  .price-currency {
    font-size: 0.75rem;
  }

  .btn-add-cart {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  /* عند اختيار list view على الجوال */
  .products-grid.list-view {
    grid-template-columns: 1fr;
  }

  .products-grid.list-view .product-card {
    display: block;
  }

  .products-grid.list-view .product-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-card,
  .results-bar,
  .product-card {
    border-radius: 14px;
  }

  .filter-card,
  .results-bar {
    padding: 12px;
  }

  .product-info {
    padding: 12px;
  }

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

  .product-desc {
    font-size: 0.76rem;
  }
}