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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #FAF6EF;
  /* Soft Elegant Cream */
  background-image: url('/images/brand_pattern.png');
  background-size: 800px;
  background-repeat: repeat;
  background-attachment: fixed;
  color: #4B2E2A;
  /* Rich dark brown-burgundy */
  font-weight: 500;
  /* Medium body text */
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #5A0000;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  /* Extra bold for headings */
  line-height: 1.2;
}

.text-secondary {
  color: #6B4A45;
  /* Muted warm brown */
  font-weight: 700;
}

html.dark .text-secondary {
  color: #E9DFC9;
  /* Lighter beige for contrast */
}

.text-muted {
  color: #6B4A45;
  opacity: 0.8;
}

html.dark .text-muted {
  color: #E9DFC9;
  opacity: 0.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(250, 246, 239, 0.98);
  /* 2% visibility - Very Hidden */
  z-index: -1;
  pointer-events: none;
}

html.dark body {
  background-color: #1A0000;
  /* Deep Dark Burgundy */
  color: #F4EBDD;
}

html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #F4EBDD;
}

html.dark body::before {
  background-color: rgba(26, 0, 0, 0.95);
  /* 5% visibility in Dark Mode */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #F4EBDD;
}

::-webkit-scrollbar-thumb {
  background: #7A0000;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5A0000;
}

/* Dark mode scrollbar */
html.dark ::-webkit-scrollbar-track {
  background: #5A0000;
}

html.dark ::-webkit-scrollbar-thumb {
  background: #E9DFC9;
}

html.dark ::-webkit-scrollbar-thumb:hover {
  background: #F4EBDD;
}

/* Micro Animations */
.glass-nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(244, 235, 221, 0.95);
  border-bottom: 2px solid #7A0000;
}

html.dark .glass-nav {
  background: rgba(90, 0, 0, 0.95);
  border-bottom: 2px solid #E9DFC9;
}

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 30px -5px rgba(74, 13, 26, 0.3), 0 10px 10px -5px rgba(74, 13, 26, 0.1);
}

/* Base Scroll Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

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

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #7A0000 0%, #5A0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-dark {
  background: linear-gradient(135deg, #E9DFC9 0%, #F4EBDD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-overlay {
  background: linear-gradient(0deg, rgba(90, 0, 0, 0.95) 0%, rgba(122, 0, 0, 0.6) 50%, rgba(90, 0, 0, 0.4) 100%);
}

/* Delicious Continuous Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float-delay {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(3deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-float-delay {
  animation: float-delay 7s ease-in-out infinite;
}

@keyframes float-fast {
  0% {
    transform: translateY(0px) rotate(-1deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }

  100% {
    transform: translateY(0px) rotate(-1deg);
  }
}

.animate-float-fast {
  animation: float-fast 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(122, 0, 0, 0.6);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(122, 0, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(122, 0, 0, 0);
  }
}

.pulse-btn {
  animation: pulse-glow 2s infinite;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Image zoom effect inside cards */
.img-zoom-hover img {
  transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-zoom-hover:hover img {
  transform: scale(1.15) rotate(1deg);
}

/* ═══════════════════════════════════════════
   VINTAGE HERO SECTION
   ═══════════════════════════════════════════ */

/* Sepia-dark layered overlay */
.hero-vintage-overlay {
  background:
    linear-gradient(to top, rgba(90, 0, 0, 0.97) 0%, rgba(122, 0, 0, 0.75) 40%, rgba(90, 0, 0, 0.45) 100%),
    linear-gradient(to right, rgba(90, 0, 0, 0.65) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(90, 0, 0, 0.50) 0%, transparent 30%);
  mix-blend-mode: multiply;
}

/* Film grain texture via SVG data URI */
.hero-grain {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  pointer-events: none;
}

/* Vignette radial shadow */
.hero-vignette {
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(90, 0, 0, 0.85) 100%);
  pointer-events: none;
}

/* Ornamental corner L-brackets */
.vintage-corner {
  width: 38px;
  height: 38px;
  border-color: #E9DFC9;
  border-style: solid;
  border-width: 0;
  opacity: 0.4;
}

.vintage-corner-tr {
  border-top-width: 2px;
  border-right-width: 2px;
}

.vintage-corner-tl {
  border-top-width: 2px;
  border-left-width: 2px;
}

.vintage-corner-br {
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.vintage-corner-bl {
  border-bottom-width: 2px;
  border-left-width: 2px;
}

/* Thin burgundy divider line */
.vintage-divider-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, #7A0000, transparent);
}

/* Diamond ornament */
.vintage-diamond {
  width: 7px;
  height: 7px;
  background: #7A0000;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Full-width ornament rule */
.vintage-ornament-rule {
  height: 1px;
  background: linear-gradient(to right, rgba(122, 0, 0, 0.4), rgba(122, 0, 0, 0.13));
  flex: 1;
}

/* Badge / stamp area */
.vintage-stamp {
  border: 1px solid rgba(122, 0, 0, 0.2);
  padding: 8px 20px;
  background: rgba(90, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
}

/* Headline text shadow for depth */
.vintage-headline {
  text-shadow: 2px 3px 18px rgba(0, 0, 0, 0.9), 0 0 60px rgba(122, 0, 0, 0.15);
}

.vintage-title-line {
  letter-spacing: -0.01em;
}

.vintage-subtitle-line {
  text-shadow: 1px 2px 12px rgba(122, 0, 0, 0.4), 2px 3px 18px rgba(0, 0, 0, 0.9);
}

/* Subtext styling */
.vintage-subtext {
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}

/* Primary CTA — burgundy with light text */
.vintage-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, #7A0000 0%, #5A0000 100%);
  color: #F4EBDD;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: 1px solid #7A0000;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(122, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.vintage-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5A0000 0%, #7A0000 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vintage-btn-primary:hover::before {
  opacity: 1;
}

.vintage-btn-primary:hover {
  box-shadow: 0 6px 30px rgba(122, 0, 0, 0.55);
  transform: translateY(-1px);
}

.vintage-btn-primary span,
.vintage-btn-primary svg {
  position: relative;
  z-index: 1;
}

/* Outline CTA — vintage border style */
.vintage-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 36px;
  background: transparent;
  color: #E9DFC9;
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border: 1px solid rgba(233, 223, 201, 0.33);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.vintage-btn-outline:hover {
  border-color: #F4EBDD;
  color: #F4EBDD;
  background: rgba(244, 235, 221, 0.08);
}

/* Stats strip — antique paper/dark finish */
.vintage-stats-strip {
  background: rgba(90, 0, 0, 0.85);
  border-top: 1px solid rgba(122, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

.vintage-stats-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(122, 0, 0, 0.4), transparent);
}

.vintage-stat-num {
  font-family: 'Cairo', sans-serif;
  text-shadow: 0 0 20px rgba(122, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════
   MINIMAL LUXURY HERO
   ═══════════════════════════════════════════ */

.hero-minimal-bg {
  background: radial-gradient(circle at 50% 50%, #FDF9F8 0%, #F2E8E6 100%);
  background-color: #F2E8E6;
  position: relative;
  box-shadow: inset 0 0 150px rgba(122, 0, 0, 0.04),
    0 40px 60px -20px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(122, 0, 0, 0.08);
}

/* Pattern handled globally on body to avoid 'divided' look */

html.dark .hero-minimal-bg {
  background: radial-gradient(circle at 50% 50%, #4A0D1A 0%, #300000 100%);
  background-color: #300000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3),
    0 30px 50px rgba(0, 0, 0, 0.5);
}

html.dark .hero-minimal-bg::before {
  opacity: 0.05;
}

.product-focal-shadow {
  filter: drop-shadow(0 30px 50px rgba(122, 0, 0, 0.25));
}

html.dark .product-focal-shadow {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

/* ═══════════════════════════════════════════
   VINTAGE CATEGORY STRIP
   ═══════════════════════════════════════════ */

.vintage-cat-strip {
  background: #5A0000;
  position: relative;
}

.vintage-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  color: #E9DFC9;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  position: relative;
}

.vintage-cat-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #E9DFC9;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.vintage-cat-link:hover {
  color: #F4EBDD;
}

.vintage-cat-link:hover::after {
  transform: scaleX(1);
}

.vintage-cat-icon {
  color: #E9DFC9;
  font-size: 0.55rem;
  opacity: 0.7;
}

/* "عرض الكل" special style */
.vintage-cat-all {
  color: #F4EBDD;
  font-weight: 900;
  border-right: none !important;
  letter-spacing: 0.1em;
}

.vintage-cat-all:hover {
  color: #E9DFC9;
}

/* ═══════════════════════════════════════════
   CART & MODAL STYLES
   ═══════════════════════════════════════════ */

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: rgba(244, 235, 221, 0.98);
  backdrop-filter: blur(15px);
  z-index: 100;
  transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

html.dark .cart-drawer {
  background: rgba(90, 0, 0, 0.98);
  box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
}

.cart-drawer.open {
  left: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(90, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

/* Floating Cart Button */
.floating-cart-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 80;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-cart-btn:hover {
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #7A0000;
  color: #F4EBDD;
  font-size: 10px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #F4EBDD;
}

/* Modal Styles */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #F4EBDD;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(122, 0, 0, 0.25);
}

html.dark .modal-content {
  background: #5A0000;
}

.modal.show .modal-content {
  transform: scale(1);
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(122, 0, 0, 0.1);
  background: #F4EBDD;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
}

html.dark .form-input {
  background: #5A0000;
  border-color: rgba(233, 223, 201, 0.2);
  color: #F4EBDD;
}

.form-input:focus {
  border-color: #7A0000;
  box-shadow: 0 0 0 3px rgba(122, 0, 0, 0.1);
}

/* Quantity Controls */
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E9DFC9;
  color: #7A0000;
  transition: all 0.2s ease;
}

html.dark .qty-btn {
  background: #7A0000;
  color: #F4EBDD;
}

.qty-btn:hover {
  background: #7A0000;
  color: #F4EBDD;
}

/* Product Card Improvements */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card .add-to-cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(122, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

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


/* Global pattern handled via body for a continuous, non-divided look */
#hero,
section,
footer {
  background-image: none !important;
}

/* Do NOT apply pattern inside cards to keep them clean as requested */
.product-card,
.menu-card,
.cart-item,
.bg-white,
.bg-beige-50 {
  background-image: none !important;
}