/* ============================================================
   FJBAIG — Custom Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;
  --gold: #b8860b;
  --gold-light: #d4a843;
  --success: #22c55e;
  --danger: #ef4444;
  --whatsapp: #25D366;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate-800);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────────── */
.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.font-sans  { font-family: 'Inter', sans-serif; }

/* ── Promo Bar ──────────────────────────────────────────────── */
.promo-bar {
  background: var(--slate-900);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: 3px;
  text-decoration: none;
  cursor: pointer;
}
.nav-links a, .nav-links span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--slate-600);
  text-decoration: none;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links span:hover { color: var(--slate-900); }
.nav-links a::after, .nav-links span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--slate-900);
  transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links span:hover::after { width: 100%; }
.nav-icon {
  position: relative;
  cursor: pointer;
  color: var(--slate-700);
  transition: color 0.3s;
}
.nav-icon:hover { color: var(--slate-900); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--slate-900);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  background: linear-gradient(135deg, var(--slate-100) 0%, var(--slate-200) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,134,11,0.08) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; }
.hero-tag {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid var(--gold-light);
  padding: 6px 16px;
  border-radius: 2px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero p {
  font-size: 16px;
  color: var(--slate-500);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slate-900);
  color: #fff;
  padding: 14px 36px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--slate-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--slate-900);
  padding: 14px 36px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: 2px solid var(--slate-900);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: var(--slate-900);
  color: #fff;
  transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  padding: 14px 36px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── Product Grid ───────────────────────────────────────────── */
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--slate-100);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
}
.product-card:hover {
  border-color: var(--slate-300);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  z-index: 2;
}
.quick-add {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--slate-900);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}
.product-card:hover .quick-add { transform: translateY(0); }
.product-info { padding: 16px; }
.product-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.product-info .category-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate-400);
  margin-bottom: 8px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
}
.price-original {
  font-size: 13px;
  color: var(--slate-400);
  text-decoration: line-through;
}
.stars { color: #f59e0b; font-size: 13px; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  border-right: 1px solid var(--slate-200);
  padding-right: 24px;
}
.sidebar h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 16px;
}
.sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--slate-600);
  cursor: pointer;
  border-bottom: 1px solid var(--slate-100);
  transition: color 0.3s;
}
.sidebar-item:hover, .sidebar-item.active {
  color: var(--slate-900);
  font-weight: 600;
}
.sidebar-count {
  font-size: 12px;
  color: var(--slate-400);
  background: var(--slate-100);
  padding: 2px 8px;
  border-radius: 10px;
}
.price-slider { width: 100%; margin-top: 8px; accent-color: var(--slate-900); }

/* ── Product Detail ─────────────────────────────────────────── */
.thumb-gallery {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.thumb-gallery img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all 0.3s;
}
.thumb-gallery img:hover, .thumb-gallery img.active {
  border-color: var(--slate-900);
  opacity: 1;
}
.size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  border: 2px solid var(--slate-200);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background: #fff;
  color: var(--slate-700);
  padding: 0 12px;
}
.size-pill:hover { border-color: var(--slate-400); }
.size-pill.active {
  border-color: var(--slate-900);
  background: var(--slate-900);
  color: #fff;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--slate-200);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: var(--slate-700);
}
.qty-btn:hover {
  border-color: var(--slate-900);
  background: var(--slate-900);
  color: #fff;
}
.qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 2px solid var(--slate-200);
  border-left: none;
  border-right: none;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  outline: none;
}
.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 16px;
}
.share-icon:hover {
  background: var(--slate-900);
  color: #fff;
  border-color: var(--slate-900);
}

/* ── Reviews ────────────────────────────────────────────────── */
.review-card {
  border: 1px solid var(--slate-100);
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.3s;
}
.review-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }

/* ── Cart Sidebar ───────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
}
.cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
}

/* ── WhatsApp Widget ────────────────────────────────────────── */
.whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
}
.whatsapp-blob {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: pulse-wa 2s infinite;
  text-decoration: none;
  transition: transform 0.3s;
}
.whatsapp-blob:hover { transform: scale(1.1); }
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  pointer-events: none;
}
.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--slate-950);
  color: var(--slate-400);
}
.footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer a {
  color: var(--slate-400);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  cursor: pointer;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

/* ── Legal Pages ────────────────────────────────────────────── */
.legal-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 8px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--slate-800);
}
.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-page ul { padding-left: 20px; }

/* ── Auth Forms ─────────────────────────────────────────────── */
.auth-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--slate-200);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  background: #fff;
}
.auth-input:focus { border-color: var(--slate-900); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--slate-900);
  color: #fff;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  max-width: 360px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--slate-200);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.checkout-input:focus { border-color: var(--slate-900); }

/* ── Star Rating Input ──────────────────────────────────────── */
.star-rating-input { display: flex; gap: 4px; direction: rtl; }
.star-rating-input input { display: none; }
.star-rating-input label {
  font-size: 28px;
  color: var(--slate-200);
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: #f59e0b; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--slate-100); }
::-webkit-scrollbar-thumb { background: var(--slate-400); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-500); }

/* ── Mobile Nav ─────────────────────────────────────────────── */
.mobile-menu-btn { display: none; cursor: pointer; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 250;
  flex-direction: column;
  padding: 80px 32px 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav span {
  font-size: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  cursor: pointer;
  color: var(--slate-700);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .mobile-menu-btn { display: block; }
  .hero { height: 50vh; min-height: 350px; }
  .hero h1 { font-size: 28px; }
  .cart-drawer { width: 100vw; }
  .thumb-gallery img { width: 55px; height: 70px; }
}

/* ── View Transitions ───────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: 13px;
  color: var(--slate-400);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--slate-400);
  text-decoration: none;
  cursor: pointer;
}
.breadcrumb a:hover { color: var(--slate-900); }

/* ── Wishlist heart ─────────────────────────────────────────── */
.heart-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--slate-200);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 20px;
  color: var(--slate-400);
}
.heart-btn:hover, .heart-btn.active {
  color: var(--danger);
  border-color: var(--danger);
}

/* ── Newsletter Section ─────────────────────────────────────── */
.newsletter-section {
  background: var(--slate-100);
  padding: 64px 0;
  text-align: center;
}
