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

:root {
  /* Color Palette - Jahziny: Luxurious Tan & Alabaster Wedding Theme */
  --bg-gradient: radial-gradient(circle at top, #F7F4F0 0%, #EBE6DE 100%); /* Isabelline to Alabaster */
  --bg-dark: #EBE6DE; /* Alabaster */
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.90);
  --border-glass: rgba(210, 180, 140, 0.22); /* Tan base */
  --border-focus: rgba(210, 180, 140, 0.6);
  
  --primary: #D2B48C; /* Tan */
  --primary-glow: rgba(210, 180, 140, 0.25);
  --secondary: #D9C6AC; /* Dun */
  --secondary-glow: rgba(217, 198, 172, 0.25);
  --accent: #8C6E4A; /* Dark Bronze Accent */
  --accent-glow: rgba(140, 110, 74, 0.2);
  
  --text-primary: #4A3C31; /* Deep Bronze Grey */
  --text-secondary: #705D50;
  --text-muted: #A39185;
  --success: #5DA67A;
  
  /* Layout & Animations */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 8px 32px 0 rgba(140, 110, 74, 0.08), 0 0 20px var(--primary-glow);
  --shadow-soft: 0 8px 32px 0 rgba(140, 110, 74, 0.06);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-en: 'Inter', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-dark);
}

*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 20px;
  border: 2px solid var(--bg-dark);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-en);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Direction Specific overrides */
html[dir="rtl"] body {
  font-family: var(--font-ar);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Container */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Glassmorphism Common Style */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 15px 0;
}

header.scrolled {
  background: rgba(245, 237, 228, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  color: var(--primary);
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
  object-fit: cover;
  opacity: 0.9; /* Highly visible cinematic video as requested */
  pointer-events: none;
  filter: saturate(0.85) contrast(1.05) brightness(1.02);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 248, 242, 0.0) 0%, rgba(245, 237, 228, 0.8) 75%, #F5EDE4 100%);
  z-index: -1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 15px;
}

.brand-top-line {
  font-size: 1.5rem;
  font-weight: 700;
  color: #795738; /* Luxurious bronze-gold from the logo */
  letter-spacing: 4px;
  margin-bottom: -5px;
  opacity: 0.9;
}

.brand-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-brand-icon {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #795738 0%, #E8D3A7 50%, #795738 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(121, 87, 56, 0.3));
  animation: shine-effect 3s infinite ease-in-out;
}

@keyframes shine-effect {
  0%, 100% { filter: brightness(1) drop-shadow(0 2px 6px rgba(121, 87, 56, 0.3)); }
  50% { filter: brightness(1.2) drop-shadow(0 2px 12px rgba(121, 87, 56, 0.5)); }
}

.brand-main-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
  color: #795738;
}

html[dir="rtl"] .brand-main-title {
  font-size: 3.8rem;
  font-weight: 900;
  margin: 0;
}

.brand-main-title span {
  background: linear-gradient(135deg, #795738 0%, #D4AF37 50%, #795738 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.hero-slogan {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8c674b; /* Bronze slogan color */
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
  display: block;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 40px auto;
  text-shadow: 0 1.5px 2px rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Planner / Budget Calculator Section */
.planner-section {
  padding: 80px 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.section-header h2 span {
  color: var(--primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.planner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .planner-container {
    grid-template-columns: 1fr;
  }
}

.planner-card {
  padding: 40px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.input-currency {
  position: absolute;
  inset-inline-end: 20px;
  font-weight: 700;
  color: var(--secondary);
}

.category-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.category-checkbox {
  position: relative;
}

.category-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.category-tile i {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.category-tile span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.category-checkbox input:checked + .category-tile {
  background: rgba(196, 146, 158, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(196, 146, 158, 0.15);
}

.category-checkbox input:checked + .category-tile i {
  color: var(--primary);
  transform: scale(1.1);
}

.category-checkbox input:checked + .category-tile span {
  color: var(--text-primary);
}

/* Planner Results Panel */
.planner-results {
  padding: 40px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.planner-placeholder {
  margin: auto;
  text-align: center;
  color: var(--text-muted);
}

.planner-placeholder i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: rgba(139, 94, 94, 0.1);
}

.budget-chart-container {
  margin-bottom: 30px;
}

.budget-total-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.budget-bar-wrapper {
  height: 24px;
  background: rgba(139, 94, 94, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass);
}

.budget-bar-segment {
  height: 100%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease, filter 0.2s ease;
  position: relative;
  cursor: pointer;
}

.budget-bar-segment:hover {
  filter: brightness(1.15);
  transform: scaleY(1.1);
  z-index: 5;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.budget-bar-segment::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0));
}

.planner-matches-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary);
}

.planner-recs-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
  max-height: 380px;
  overflow-y: auto;
  padding-inline-end: 10px;
}

.rec-item-card {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  align-items: center;
  transition: var(--transition);
}

.rec-item-card:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.6);
}

.rec-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.rec-item-details {
  flex-grow: 1;
}

.rec-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.rec-item-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.rec-item-price {
  color: var(--primary);
  font-weight: 700;
}

.rec-item-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.rec-item-vendor {
  font-size: 0.75rem;
  color: var(--secondary);
  margin-top: 3px;
}

.planner-results-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

/* Mall Store Section */
.mall-section {
  padding: 80px 0;
}

.mall-filter-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 25px 30px;
  margin-bottom: 50px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(180, 140, 120, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(139, 94, 94, 0.04);
}

.mall-tabs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.mall-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(210, 180, 140, 0.15);
  color: var(--text-secondary);
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mall-tab-btn i {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.mall-tab-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(210, 180, 140, 0.1);
}

.mall-tab-btn:hover i {
  color: var(--primary);
}

.mall-tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(210, 180, 140, 0.3);
  font-weight: 700;
}

.mall-tab-btn.active i {
  color: #fff;
}

.mall-tab-btn.active:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(210, 180, 140, 0.45);
}

/* ===== MALL ACCORDION CATEGORIES ===== */
.mall-accordion {
  width: 100%;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mall-accordion-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
  transition: var(--transition);
}

.mall-accordion-item:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--primary);
}

.mall-accordion-header {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  transition: var(--transition);
}

.mall-accordion-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mall-accordion-header i {
  color: var(--primary);
}

.mall-accordion-header .chevron {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

.mall-accordion-item.active .chevron {
  transform: rotate(180deg);
}

.mall-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px;
}

.mall-accordion-item.active .mall-accordion-content {
  padding: 15px 20px;
}

/* Mall Accordion subcategory chips */
.mall-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(210, 180, 140, 0.15);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.mall-chip-btn i {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mall-chip-btn:hover {
  background: #fff;
  color: var(--accent);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.mall-chip-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(210, 180, 140, 0.3);
}

.mall-chip-btn.active i {
  color: #fff;
}

.mall-search-filter {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 5px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.search-box input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(180, 140, 120, 0.18);
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

html[dir="rtl"] .search-box input {
  padding: 12px 42px 12px 18px;
}

.search-box i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  inset-inline-start: 16px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  pointer-events: none;
}

.search-box input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(196, 146, 158, 0.2);
}

.search-box input:focus + i {
  color: var(--primary);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.product-card {
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(139, 94, 94, 0.12), 0 0 15px rgba(196, 146, 158, 0.1);
}

.product-card-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #EDE5DC;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-card-tag {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-glass);
  color: var(--secondary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wishlist-heart-btn {
  position: absolute;
  top: 15px;
  inset-inline-end: 15px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.wishlist-heart-btn:hover {
  background: #fff;
  color: #f44336;
  transform: scale(1.1);
}

.wishlist-heart-btn.active {
  background: #fff;
  color: #f44336;
  border-color: #f44336;
}

.product-card-content {
  padding: 20px;
}

.product-card-vendor {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 5px;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
  color: #ffb300;
  font-size: 0.85rem;
}

.product-card-rating span {
  color: var(--text-secondary);
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 15px;
}

.product-card-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}

/* Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 237, 228, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 40px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .modal-content {
    padding: 20px;
  }
}

.modal-gallery img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  max-height: 400px;
  object-fit: cover;
}

.modal-info-header {
  margin-bottom: 20px;
}

.modal-info-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.modal-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.modal-detail-label {
  color: var(--text-muted);
}

.modal-detail-val {
  font-weight: 600;
}

.modal-price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
}

.modal-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

/* Side Drawers (Cart and Checklist) */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(61, 43, 43, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 450px;
  max-width: 100%;
  background: rgba(255, 252, 248, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-inline-start: 1px solid var(--border-glass);
  z-index: 1600;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 30px;
  display: flex;
  flex-direction: column;
}

/* Right slide-in for English, Left slide-in for Arabic */
html[dir="ltr"] .drawer {
  right: 0;
  transform: translateX(100%);
}

html[dir="rtl"] .drawer {
  left: 0;
  transform: translateX(-100%);
}

html[dir="ltr"] .drawer-overlay.active + .drawer,
html[dir="ltr"] .drawer.active {
  transform: translateX(0);
}

html[dir="rtl"] .drawer-overlay.active + .drawer,
html[dir="rtl"] .drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.drawer-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.drawer-close:hover {
  color: var(--primary);
}

.drawer-items-list {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-inline-end: 5px;
}

/* Cart Item card */
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}

.qty-btn {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.75rem;
}

.qty-btn:hover {
  background: var(--primary);
  color: #fff;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: #f44336;
}

/* Checklist Drawer Specifics */
.checklist-progress-bar {
  background: rgba(139, 94, 94, 0.08);
  height: 12px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  margin-bottom: 20px;
}

.checklist-progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  height: 100%;
  width: 0;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); /* bounce-back smooth transition */
  box-shadow: 0 0 10px rgba(196, 146, 158, 0.4);
  position: relative;
  overflow: hidden;
}

.checklist-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.todo-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.todo-item.completed {
  border-color: var(--success);
  background: rgba(93, 166, 122, 0.08);
  opacity: 0.7;
}

.todo-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-glass);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: transparent;
  transition: var(--transition);
}

.todo-item.completed .todo-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.todo-item-text {
  flex-grow: 1;
}

.todo-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.todo-item.completed .todo-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-tag {
  font-size: 0.75rem;
  color: var(--secondary);
}

/* Cart / Checklist Footer */
.drawer-footer {
  border-top: 1px solid var(--border-glass);
  padding-top: 20px;
  margin-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 15px;
  border-top: 1px dashed var(--border-glass);
  padding-top: 15px;
}

.promo-code-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.promo-code-input input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.promo-code-input input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Checkout Page Structure */
.checkout-section {
  padding: 120px 0;
  display: none;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-form-panel {
  padding: 40px;
}

.checkout-summary-panel {
  padding: 30px;
}

.checkout-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--secondary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.checkout-field input, .checkout-field select {
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.checkout-field input:focus, .checkout-field select:focus {
  outline: none;
  border-color: var(--primary);
}

.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.payment-option-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.payment-option-label i {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.payment-option-label input {
  display: none;
}

.payment-option-label:has(input:checked) {
  border-color: var(--primary);
  background: rgba(196, 146, 158, 0.1);
  box-shadow: 0 0 10px rgba(196, 146, 158, 0.15);
}

.payment-option-label:has(input:checked) i {
  color: var(--primary);
}

/* Order Success Screen */
.receipt-modal-content {
  text-align: center;
}

.receipt-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(93, 166, 122, 0.1);
  border: 2px solid var(--success);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  color: var(--success);
  margin: 0 auto 20px auto;
  box-shadow: 0 0 20px rgba(93, 166, 122, 0.2);
}

.receipt-details-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  text-align: start;
}

.receipt-details-table th, .receipt-details-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-glass);
}

.receipt-details-table th {
  color: var(--text-muted);
  font-weight: 600;
}

.receipt-details-table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 15px 25px;
  background: rgba(255, 252, 248, 0.97);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(139, 94, 94, 0.12), 0 0 10px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInToast 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideInToast {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Footer Section */
footer {
  background: rgba(237, 229, 220, 0.95);
  border-top: 1px solid var(--border-glass);
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  margin-top: 100px;
}

footer p {
  margin-bottom: 15px;
}

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .social-icons a {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

footer .social-icons a:hover {
  transform: scale(1.1);
}

footer .social-icons a#social-facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
footer .social-icons a#social-instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; color: #fff; }
footer .social-icons a#social-tiktok:hover { background: #010101; border-color: #010101; color: #fff; }
footer .social-icons a#social-twitter:hover { background: #1DA1F2; border-color: #1DA1F2; color: #fff; }
footer .social-icons a#social-whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
footer .social-icons a#social-snapchat:hover { background: #FFFC00; border-color: #FFFC00; color: #000; }
footer .social-icons a#social-pinterest:hover { background: #BD081C; border-color: #BD081C; color: #fff; }

/* Page switching visibility logic */
.active-page {
  display: block !important;
}

.inactive-page {
  display: none !important;
}

/* ===== FLOATING SOCIAL MEDIA BUTTONS STACK ===== */
.floating-social-stack {
  position: fixed;
  bottom: 25px;
  inset-inline-start: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  z-index: 999;
}

.floating-social-stack .float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-decoration: none;
}

.floating-social-stack .float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-social-stack .float-facebook { background: #1877F2; }
.floating-social-stack .float-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.floating-social-stack .float-tiktok { background: #010101; border: 1px solid rgba(255, 255, 255, 0.15); }
.floating-social-stack .float-twitter { background: #1DA1F2; }
.floating-social-stack .float-snapchat { background: #FFFC00; color: #000; }
.floating-social-stack .float-pinterest { background: #BD081C; }
.floating-social-stack .float-whatsapp {
  width: 60px;
  height: 60px;
  background: #25D366;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2s infinite;
}

.floating-social-stack .float-whatsapp:hover {
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  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); }
}

/* ===== PRODUCT CARD SHARE BUTTON ===== */
.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-share {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-share:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== SHARE OVERLAY & MODAL ===== */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(61, 43, 43, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.share-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.share-modal {
  width: 90%;
  max-width: 400px;
  padding: 30px;
  text-align: center;
  transform: translateY(30px);
  transition: transform 0.3s ease;
}

.share-overlay.active .share-modal {
  transform: translateY(0);
}

.share-modal h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.share-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.share-snapchat { background: #fffc00; color: #000 !important; }
.share-twitter { background: #1DA1F2; }
.share-copy { background: var(--accent); }

/* ===== RESPONSIVE: WHATSAPP & SHARE ===== */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px;
    inset-inline-start: 15px;
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }
  
  .share-buttons {
    grid-template-columns: 1fr;
  }
}

/* ===== GENERAL MOBILE RESPONSIVENESS OVERRIDES ===== */
@media (max-width: 768px) {
  /* Header & Navbar */
  header {
    padding: 10px 0 !important;
  }
  .navbar {
    padding: 0 15px !important;
  }
  .logo {
    font-size: 1.3rem !important;
    gap: 6px !important;
  }
  .logo svg {
    width: 28px !important;
    height: 28px !important;
    margin-inline-end: 4px !important;
  }
  .nav-links {
    display: none !important; /* Hide links on mobile, scroll layout is self-explanatory */
  }
  .nav-actions {
    gap: 8px !important;
  }
  #nav-btn-checkout-top {
    display: none !important; /* Hide large checkout button in mobile header */
  }
  .btn-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
  }

  /* Hero Section */
  .hero {
    padding: 100px 0 60px 0 !important;
  }
  .brand-main-title {
    font-size: 2.2rem !important;
  }
  html[dir="rtl"] .brand-main-title {
    font-size: 2.4rem !important;
  }
  .hero-brand-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 2rem !important;
    margin-inline-end: 8px !important;
  }
  .hero-slogan {
    font-size: 1.25rem !important;
    margin-bottom: 20px !important;
  }
  .hero p {
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
    line-height: 1.6 !important;
    padding: 0 10px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    padding: 0 20px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Planner & Budget Calculator Panels */
  .planner-card, .planner-results {
    padding: 24px 16px !important;
  }
  .category-selection-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
    gap: 10px !important;
  }
  .category-tile {
    padding: 12px 6px !important;
    gap: 8px !important;
  }
  .category-tile i {
    font-size: 1.2rem !important;
  }
  .category-tile span {
    font-size: 0.75rem !important;
    text-align: center;
  }

  /* Checkout Panels */
  .checkout-form-panel, .checkout-summary-panel {
    padding: 24px 16px !important;
  }

  /* Mall Filter Bar */
  .mall-filter-bar {
    padding: 12px 8px !important;
  }
  .mall-tab-btn {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }

  /* Drawers */
  .drawer {
    padding: 20px 15px !important;
  }

  /* Horizontal Floating Social Bar on Mobile */
  .floating-social-stack {
    flex-direction: row !important;
    bottom: 15px !important;
    inset-inline-start: 15px !important;
    gap: 8px !important;
  }
  .floating-social-stack .float-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
  }
  .floating-social-stack .float-whatsapp {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.3rem !important;
  }
}
