﻿/* ============================================================
   CHRONOS LUXE – Global Styles  |  Creamy + Olive Theme
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Palette ── */
  --cream:        #f5f0e8;
  --cream-dark:   #ede6d6;
  --cream-deeper: #e4dac8;
  --cream-card:   #faf7f2;
  --cream-card2:  #f0ead8;

  --olive:        #5c6b3a;   /* نبيتي أساسي */
  --olive-light:  #7a8f4e;   /* نبيتي فاتح */
  --olive-dark:   #3d4a26;   /* نبيتي غامق */
  --olive-muted:  #8a9a60;   /* نبيتي ناعم */

  --text-dark:    #1a1a14;
  --text-mid:     #4a4a38;
  --text-soft:    #7a7a60;

  --gold:         #b8960c;
  --gold-light:   #d4af37;
  --gold-dark:    #8a6f08;
  --gold-gradient: linear-gradient(135deg, #b8960c, #d4af37, #b8960c);

  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 3px; }

/* ── Gold text gradient ── */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Shimmer (olive tones) ── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.shimmer-text {
  background: linear-gradient(90deg, #3d4a26 0%, #5c6b3a 25%, #7a8f4e 50%, #5c6b3a 75%, #3d4a26 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(92,107,58,0.2);
}
.glass-dark {
  background: rgba(245,240,232,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(92,107,58,0.25);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  padding: 1.25rem 0;
}
.navbar.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(92,107,58,0.2);
  padding: 0.75rem 0;
  box-shadow: 0 4px 30px rgba(92,107,58,0.1);
}
.nav-link {
  position: relative;
  color: var(--text-mid);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--olive), var(--olive-light));
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--olive); }
.nav-link:hover::after { width: 100%; }

/* ── Hero ── */
.hero-section {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(92,107,58,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(184,150,12,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Hero grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92,107,58,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,107,58,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Countdown ── */
.countdown-box {
  background: rgba(92,107,58,0.08);
  border: 1px solid rgba(92,107,58,0.25);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  min-width: 70px;
}
.countdown-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--olive);
  line-height: 1;
}
.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 4px;
}

/* ── Floating stat cards ── */
.stat-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(92,107,58,0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  animation: float-card 4s ease-in-out infinite;
  box-shadow: 0 4px 20px rgba(92,107,58,0.1);
}
.stat-card:nth-child(2) { animation-delay: 1.5s; }
.stat-card:nth-child(3) { animation-delay: 3s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Buttons ── */
.btn-gold {
  background: linear-gradient(135deg, var(--olive), var(--olive-light), var(--olive));
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(92,107,58,0.35); }

.btn-outline {
  background: transparent;
  color: var(--olive);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  border: 1.5px solid var(--olive);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: rgba(92,107,58,0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92,107,58,0.15);
}

/* ── Section headings ── */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--olive);
  border: 1px solid rgba(92,107,58,0.3);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  background: rgba(92,107,58,0.06);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
.section-divider {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--olive), var(--olive-light));
  margin: 1rem auto;
  border-radius: 2px;
}

/* ── Product Cards ── */
.product-card {
  background: var(--cream-card);
  border: 1px solid rgba(92,107,58,0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 2px 12px rgba(92,107,58,0.06);
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(92,107,58,0.35);
  box-shadow: 0 20px 60px rgba(92,107,58,0.15), 0 0 0 1px rgba(92,107,58,0.1);
}
.product-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--cream-dark);
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.discount-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.wishlist-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(92,107,58,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.wishlist-btn:hover, .wishlist-btn.active { color: #c0392b; border-color: #c0392b; }

.color-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(92,107,58,0.2);
  cursor: pointer;
  transition: border-color 0.2s;
}
.color-dot:hover { border-color: var(--olive); }

/* ── Filter tabs ── */
.filter-tab {
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(92,107,58,0.2);
  background: transparent;
  color: var(--text-soft);
}
.filter-tab:hover { border-color: var(--olive); color: var(--olive); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(92,107,58,0.25);
}

/* ── Feature cards ── */
.feature-card {
  background: var(--cream-card);
  border: 1px solid rgba(92,107,58,0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(92,107,58,0.05);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(92,107,58,0.07) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(92,107,58,0.3); box-shadow: 0 12px 40px rgba(92,107,58,0.12); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 64px; height: 64px;
  background: rgba(92,107,58,0.1);
  border: 1px solid rgba(92,107,58,0.2);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  transition: all 0.3s;
  color: var(--olive);
}
.feature-card:hover .feature-icon {
  background: rgba(92,107,58,0.18);
  box-shadow: 0 0 20px rgba(92,107,58,0.2);
}

/* ── Best Sellers ── */
.bestseller-card {
  background: var(--cream-card);
  border: 1px solid rgba(92,107,58,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 2px 12px rgba(92,107,58,0.06);
}
.bestseller-card:hover {
  border-color: rgba(92,107,58,0.35);
  box-shadow: 0 25px 70px rgba(92,107,58,0.14);
}
.spotlight {
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(92,107,58,0.12) 0%, transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0;
}
.bestseller-card:hover .spotlight { opacity: 1; }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--cream-card);
  border: 1px solid rgba(92,107,58,0.1);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.4s ease;
  box-shadow: 0 2px 12px rgba(92,107,58,0.05);
}
.testimonial-card:hover {
  border-color: rgba(92,107,58,0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(92,107,58,0.12);
}
.avatar-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(92,107,58,0.35);
  object-fit: cover;
}

/* ── Comparison Table ── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(92,107,58,0.08);
}
.compare-table th { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); }
.compare-table td:first-child { text-align: left; color: var(--text-mid); font-size: 0.9rem; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(92,107,58,0.03); }
.check-icon { color: var(--olive); font-size: 1.1rem; }
.cross-icon { color: #bbb; font-size: 1.1rem; }
.our-col { background: rgba(92,107,58,0.05); }

/* ── Flash Sale / Special Offers ── */
@keyframes border-dance {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-border {
  position: relative;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(270deg, var(--olive), var(--olive-light), var(--olive-muted), var(--olive-dark));
  background-size: 300% 300%;
  animation: border-dance 3s ease infinite;
}
.animated-border-inner {
  background: var(--cream-card);
  border-radius: 14px;
  padding: 1.5rem;
  height: 100%;
}

/* ── FAQ Accordion ── */
.faq-item {
  background: var(--cream-card);
  border: 1px solid rgba(92,107,58,0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
  box-shadow: 0 1px 6px rgba(92,107,58,0.05);
}
.faq-item.open { border-color: rgba(92,107,58,0.35); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--olive); }
.faq-icon {
  width: 28px; height: 28px;
  background: rgba(92,107,58,0.1);
  border: 1px solid rgba(92,107,58,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--olive);
  font-size: 0.75rem;
}
.faq-item.open .faq-icon { background: var(--olive); color: #fff; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-answer.open { max-height: 200px; padding: 0 1.5rem 1.25rem; }

/* ── Newsletter ── */
.newsletter-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92,107,58,0.1) 0%, transparent 70%),
    linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  border-top: 1px solid rgba(92,107,58,0.12);
  border-bottom: 1px solid rgba(92,107,58,0.12);
}
.newsletter-input {
  background: rgba(255,255,255,0.8);
  border: 1.5px solid rgba(92,107,58,0.2);
  border-radius: 4px 0 0 4px;
  padding: 0.875rem 1.25rem;
  color: var(--text-dark);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  flex: 1;
}
.newsletter-input:focus { border-color: var(--olive); }
.newsletter-input::placeholder { color: var(--text-soft); }

/* ── Footer ── */
.footer-link {
  color: var(--text-soft);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-link:hover { color: var(--olive); }
.social-icon {
  width: 38px; height: 38px;
  background: rgba(92,107,58,0.08);
  border: 1px solid rgba(92,107,58,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.social-icon:hover { background: rgba(92,107,58,0.15); border-color: var(--olive); color: var(--olive); }

/* ── Payment icons ── */
.payment-icon {
  background: rgba(92,107,58,0.07);
  border: 1px solid rgba(92,107,58,0.15);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(92,107,58,0.35);
  transition: all 0.3s;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(92,107,58,0.45); }

/* ── Live notification ── */
.live-notification {
  position: fixed;
  bottom: 2rem; left: 2rem;
  background: var(--cream-card);
  border: 1px solid rgba(92,107,58,0.25);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  box-shadow: 0 10px 40px rgba(92,107,58,0.15);
  z-index: 998;
  max-width: 300px;
  transform: translateX(-120%);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.live-notification.show { transform: translateX(0); }
.notif-dot {
  width: 8px; height: 8px;
  background: #4a7c3f;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,124,63,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(74,124,63,0); }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Cart badge ── */
.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: linear-gradient(135deg, var(--olive), var(--olive-light));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ── Stars ── */
.stars { color: var(--gold-light); font-size: 0.8rem; letter-spacing: 1px; }

/* ── Stats counter ── */
.stat-counter {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--olive);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section { padding-top: 5rem; }
  .countdown-number { font-size: 1.5rem; }
  .stat-card { padding: 0.75rem 1rem; }
  .section-title { font-size: 1.75rem; }
  .compare-table th, .compare-table td { padding: 0.75rem; font-size: 0.8rem; }
  .live-notification { max-width: 260px; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}

/* ── Misc utilities ── */
.line-through-price { text-decoration: line-through; color: var(--text-soft); opacity: 0.6; }
.gold-border { border: 1px solid rgba(92,107,58,0.25); }
.gold-border-top { border-top: 1px solid rgba(92,107,58,0.12); }
.text-gold { color: var(--olive); }
.bg-dark-card { background: var(--cream-card); }
.bg-dark-card2 { background: var(--cream-card2); }
