/* ═══════════════════════════════════════════
   Luqta V3.1 — Arabic RTL · Fixed Layout
   Professional Product Cards · Elegant Icons
   ═══════════════════════════════════════════ */

:root {
  --bg: #FFFDF7;
  --bg-warm: #FFF7ED;
  --bg-card: #FFFFFF;
  --bg-footer: #F7F2E9;
  
  --gold: #C9A84C;
  --gold-light: #E0C878;
  --gold-dark: #A88A3D;
  
  --text: #1C1C1C;
  --text-secondary: #5C5C5C;
  --text-muted: #8A8A8A;
  
  --border: #E8E0D0;
  --border-light: #F2ECE0;
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.08);
  
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-heading-ar: 'Noto Naskh Arabic', 'Playfair Display', serif;
  --font-body-ar: 'Tajawal', 'Inter', system-ui, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;
  
  --radius: 10px;
  --radius-lg: 14px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading-ar);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.05rem; font-weight: 600; }

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }

/* ═══ Container ═══ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ═══ Navigation ═══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: all 0.25s ease;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(10px);
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links { display: flex; gap: var(--space-lg); align-items: center; }
.nav-links a { font-size: 0.88rem; color: var(--text-secondary); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  color: var(--text); font-size: 1.5rem;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
}

/* ═══ Language Toggle — top-left, layout never flips ═══ */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.lang-toggle:hover { border-color: var(--gold); color: var(--gold-dark); }
.lang-toggle .current-lang { color: var(--text-muted); }
.lang-toggle .active-lang { color: var(--gold-dark); font-weight: 700; }

/* ═══ Hero ═══ */
.hero {
  padding: 130px var(--space-lg) var(--space-3xl);
  text-align: center;
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFDF7 60%);
}

.hero-content { max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: var(--gold);
  color: #FFF;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: var(--space-lg);
}

.hero h1 { margin-bottom: var(--space-md); }
.hero h1 .brand { color: var(--gold-dark); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-cta {
  display: inline-block;
  padding: 14px 44px;
  background: var(--gold);
  color: #FFF;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: none; cursor: pointer;
}

.hero-cta:hover {
  background: var(--gold-dark);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}

.hero-disclosure {
  margin-top: var(--space-xl);
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}

.hero-disclosure a { color: var(--gold-dark); text-decoration: underline; }

/* ═══ Section ═══ */
.section { padding: var(--space-3xl) 0; }
.section-warm { background: var(--bg-warm); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 { color: var(--text); }
.section-header p { color: var(--text-secondary); max-width: 480px; margin: var(--space-sm) auto 0; }

/* ═══ Category Cards — Elegant ═══ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.cat-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  display: block;
}

.cat-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Elegant category icon */
.cat-card-icon {
  width: 64px; height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card-icon svg {
  width: 40px; height: 40px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--space-xs); }
.cat-card .cat-card-sub { font-size: 0.85rem; color: var(--gold-dark); margin-bottom: var(--space-sm); }
.cat-card .cat-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: var(--space-md); }

.cat-card .cat-card-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold-dark);
  transition: letter-spacing 0.2s;
}

.cat-card:hover .cat-card-link { letter-spacing: 0.03em; }

/* ═══ Product Cards ═══ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: #FFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Professional product image placeholder */
.product-card-img {
  height: 230px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img.img-beauty { background: #FDF3F5; }
.product-card-img.img-pets { background: #FDF6EF; }
.product-card-img.img-kitchen { background: #F3F6F9; }
.product-card-img.img-home { background: #F8F6F1; }

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profession SVG placeholder */
.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-placeholder svg {
  width: 120px;
  height: 120px;
  opacity: 0.25;
}

.product-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--gold);
  color: #FFF;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  z-index: 2;
}

.product-card-body { padding: var(--space-md) var(--space-lg) var(--space-lg); }

.product-card-category {
  font-size: 0.78rem;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  color: var(--text);
}

.product-card-stars {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.product-card-stars span { color: var(--text-muted); font-size: 0.78rem; margin-right: 4px; }

.product-card-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.product-card-price .currency { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); }

.product-card-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: #FFF;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.product-card-btn:hover {
  background: var(--gold-dark);
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}

.product-card-btn-secondary {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  transition: color 0.2s;
}

.product-card-btn-secondary:hover { color: var(--gold-dark); }

/* ═══ Feature Bar ═══ */
.feature-bar {
  background: #FFF;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-xl) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

.feature-item { padding: var(--space-md); }
.feature-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.feature-item h3 { font-size: 0.95rem; margin-bottom: var(--space-xs); }
.feature-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ═══ Disclosure ═══ */
.disclosure-banner {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  margin-top: var(--space-xl);
}

.disclosure-banner p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.disclosure-banner a { color: var(--gold-dark); font-weight: 500; text-decoration: underline; }

/* ═══ Shop Tabs ═══ */
.shop-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.shop-tab {
  padding: 10px 22px;
  background: #FFF;
  border: 1px solid var(--border);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}

.shop-tab:hover { border-color: var(--gold-light); color: var(--text); }
.shop-tab.active { background: var(--gold); color: #FFF; border-color: var(--gold); }

/* ═══ Detail Page ═══ */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.detail-image-main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #FDF3F5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-image-main img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-md);
}

.detail-stars {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.detail-stars span { color: var(--text-muted); font-size: 0.85rem; margin-right: 4px; }

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.detail-section-title {
  color: var(--gold-dark);
  font-weight: 600;
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 0.95rem;
}

.detail-specs { list-style: none; margin-bottom: var(--space-xl); }
.detail-specs li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.detail-specs li::before { content: '✦ '; color: var(--gold); }

.detail-btns { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); }

.detail-btn {
  display: block;
  padding: 14px 32px;
  background: var(--gold);
  color: #FFF;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-btn:hover { background: var(--gold-dark); }

.detail-btn-outline {
  display: block;
  padding: 12px 32px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

.detail-note {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--bg-warm);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.detail-note h4 { font-size: 0.9rem; color: var(--gold-dark); margin-bottom: var(--space-xs); }
.detail-note p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ═══ Footer ═══ */
.footer {
  background: var(--bg-footer);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}

.footer p { color: var(--text-secondary); font-size: 0.89rem; line-height: 1.7; }
.footer-links li { margin-bottom: var(--space-xs); }
.footer-links a { font-size: 0.87rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-dark); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══ Animations ═══ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.fade-in.delay-1 { transition-delay: 0.08s; }
.fade-in.delay-2 { transition-delay: 0.16s; }
.fade-in.delay-3 { transition-delay: 0.24s; }
.fade-in.delay-4 { transition-delay: 0.32s; }

/* ═══ Back to Top ═══ */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: #FFF;
  border: none;
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  opacity: 0; transform: translateY(100px);
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); }

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  :root { --space-3xl: 3rem; --space-2xl: 2rem; }
  
  .nav-inner { flex-direction: row; }
  .nav-links {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: var(--space-sm);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  
  .hero { padding: 110px var(--space-md) var(--space-2xl); }
  .hero h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
