/* ============================================
   FLOWERS E-COMMERCE - DESIGN SYSTEM
   Primary: #355872 | Secondary: #7AAACE
   Tertiary: #9CD5FF | Neutral: #F7F8F0
   Fonts: Manrope (Headlines) + Inter (Body)
   ============================================ */

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

/* ===== CSS VARIABLES ===== */
html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
}
:root {
  --primary: #355872;
  --primary-dark: #2a4559;
  --primary-light: #4a7a9b;
  --secondary: #7AAACE;
  --tertiary: #9CD5FF;
  --neutral: #F7F8F0;
  --neutral-dark: #eef0e6;
  --promo-bg: #2a4559;
  --white: #ffffff;
  --text-dark: #1a2e3b;
  --text-mid: #4a5568;
  --text-light: #718096;
  --border: #e2e8f0;
  --border-light: #f0f2eb;
  --success: #48bb78;
  --danger: #e53e3e;
  --warning: #ed8936;
  --shadow-sm: 0 1px 3px rgba(53,88,114,0.08);
  --shadow-md: 0 4px 16px rgba(53,88,114,0.12);
  --shadow-lg: 0 8px 32px rgba(53,88,114,0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s ease;
  --font-headline: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--neutral);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
}

[dir="rtl"] {
  --font-headline: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}
[dir="rtl"] body { font-family: var(--font-body); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ===== TYPOGRAPHY ===== */
.font-headline { font-family: var(--font-headline); }
.font-body { font-family: var(--font-body); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--text-light); }

/* ===== PROMO BAR ===== */
.promo-bar {
  background: var(--promo-bg);
  color: var(--white);
  padding: 8px 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1001;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.promo-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  height: 20px;
}

.promo-items {
  position: relative;
  height: 100%;
}

.promo-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.promo-item.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar-flowers {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

/* Visibility helpers */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }

/* Left section (desktop: logo region) */
.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 2rem;
}
[dir="rtl"] .navbar-brand-wrapper { margin-right: 0; margin-left: 2rem; }

.navbar-brand-flowers {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo-img { 
  max-height: 50px !important; 
  max-width: 120px !important;
  width: auto !important;
  object-fit: contain; 
  display: block;
  border-radius:20px;
}

/* Middle: nav links */
.navbar-collapse-flowers {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
}

.navbar-nav-flowers {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Each nav item (position:static so mega menu anchors to navbar, not the li) */
.nav-item-flowers {
  position: static;
  display: flex;
  align-items: center;
}

/* Nav link (desktop) */
.nav-link-flowers {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 0.35rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
}

.nav-link-flowers::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link-flowers:hover::after,
.nav-link-flowers.active::after { transform: scaleX(1); }
.nav-link-flowers:hover,
.nav-link-flowers.active { color: var(--primary); }

/* Link + chevron row */
.nav-item-header {
  display: flex;
  align-items: center;
  height: 64px; /* Essential to cover the gap up to the mega menu on desktop */
}

/* Chevron: completely hidden until shown by media query */
.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0 3px;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-toggle-btn.active .nav-arrow { transform: rotate(180deg); }
.nav-item-flowers:hover .nav-arrow { transform: rotate(180deg); }
.nav-item-flowers:hover .nav-toggle-btn { color: var(--primary); }

.nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

/* ===================================================
   DESKTOP MEGA MENU
   position:absolute + top:100% anchors the menu to the
   BOTTOM of .navbar-flowers (which is position:sticky,
   so it acts as the containing block). width:100% fills
   the full navbar width = full viewport on most sites.
   =================================================== */
.mega-menu-flowers {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 2px solid var(--border-light);
  box-shadow: 0 8px 32px rgba(53,88,114,0.13);
  display: none;
  z-index: 999;
}

/* Mouse-bridge: lets user move cursor from link down to menu */
.mega-menu-flowers::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
}

.mega-menu-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.25rem 1rem;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.mega-menu-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
  transition: var(--transition);
}

[dir="rtl"] .mega-menu-item { flex-direction: row-reverse; }

.mega-menu-item:hover {
  color: var(--primary);
  background: rgba(53,88,114,0.06);
}

.mega-menu-item:hover { color: var(--primary); background: rgba(53,88,114,0.06); }
.mega-menu-item:hover::before { background: var(--primary); }

/* ==============================================
   DESKTOP ONLY — show mega menu on hover
   and show chevron as visual indicator
   ============================================== */
@media (min-width: 993px) {
  /* Show mega menu dropdown on hover */
  .nav-item-flowers.has-dropdown:hover > .mega-menu-flowers {
    display: block;
  }

  /* Show chevron next to has-dropdown link on desktop */
  .nav-item-flowers.has-dropdown > .nav-item-header > .nav-toggle-btn {
    display: inline-flex;
    pointer-events: none;  /* desktop: not clickable, just visual */
    opacity: 0.55;
  }
  .nav-item-flowers.has-dropdown:hover > .nav-item-header > .nav-toggle-btn {
    opacity: 1;
    color: var(--primary);
  }
}

/* ── Right Actions ── */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}
[dir="rtl"] .navbar-actions { margin-left: 0; margin-right: auto; }

/* Desktop search */
.navbar-search { display: flex; align-items: center; }
.search-input-wrapper { position: relative; }
.search-input-flowers {
  background: var(--neutral);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 36px 7px 14px;
  font-size: 0.875rem;
  width: 200px;
  transition: var(--transition);
  font-family: var(--font-body);
  color: var(--text-dark);
}
.search-input-flowers:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
  width: 240px;
}
.search-input-flowers::placeholder { color: var(--text-light); }
[dir="rtl"] .search-input-flowers { padding: 7px 14px 7px 36px; }

.search-icon {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.8rem;
  pointer-events: none;
}
[dir="rtl"] .search-icon { right: auto; left: 10px; }

/* Icon buttons */
.nav-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
}
.nav-icon-btn:hover { background: var(--neutral); color: var(--primary); }

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.lang-btn {
  padding: 4px 10px;
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
  transition: var(--transition);
}
.lang-btn.active { background: var(--primary); color: white; }

/* Mobile toggle (hidden on desktop) */
.mobile-toggle-btn { display: none; }

/* User dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px); right: 0;
  background: var(--white);
  min-width: 185px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  z-index: 1001;
  list-style: none;
  margin: 0;
  border: 1px solid var(--border-light);
}
[dir="rtl"] .dropdown-menu { right: auto; left: 0; }
.dropdown-menu.show { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.875rem;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
[dir="rtl"] .dropdown-item { text-align: right; }
.dropdown-item:hover { background: rgba(53,88,114,0.06); color: var(--primary); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 0.5rem 0; border: none; }


/* ===== BUTTONS ===== */
.btn-primary-flowers {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary-flowers:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary-flowers {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary-flowers:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outlined-flowers {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-outlined-flowers:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn-inverted-flowers {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-inverted-flowers:hover { background: var(--neutral); color: var(--primary); }

.btn-lg-flowers { padding: 14px 32px; font-size: 1rem; }

/* ===== HERO SECTION ===== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary);
  height: 100%;
  min-height: 480px; /* Taller height on desktop */
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
  background: white;
  border-color: white;
  transform: scale(1.2);
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  background: var(--primary);
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(53,88,114,0.85) 40%, transparent);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--white);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.hero-side .side-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.side-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.side-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.side-card-banner {
  position: relative;
  height: 100%;
  flex: 1;
  background: var(--secondary);
}

.side-card-banner img { width: 100%; height: 200px; object-fit: cover; opacity: 0.6; }

.side-card-banner-content {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.side-card-banner-content .label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.5rem;
}

.side-card-banner-content h3 {
  font-size: 1.5rem;
  color: white;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.side-card-offer {
  padding: 1.75rem;
  text-align: center;
  background: var(--white);
}

.offer-percent {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.offer-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* ===== SECTIONS ===== */
.section-title {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.5rem 0 2rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ===== CATEGORY CIRCLES ===== */
.categories-section {
  padding: 3rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.categories-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.category-circle:hover { transform: translateY(-4px); }
.category-circle:hover .circle-img { box-shadow: var(--shadow-lg); }

.circle-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.circle-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(40%); transition: var(--transition); }
.category-circle:hover .circle-img img { filter: grayscale(0%); }

.category-circle span {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* ===== PRODUCT CARD ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--neutral);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-new { background: var(--primary); color: white; }
.badge-sale { background: var(--danger); color: white; }

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.wishlist-btn:hover, .wishlist-btn.active {
  background: white;
  color: var(--danger);
  transform: scale(1.1);
}

.product-card-body { padding: 1.25rem; }

.product-sub-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.product-name {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.stars { color: #f6c90e; font-size: 0.8rem; }
.rating-count { font-size: 0.75rem; color: var(--text-light); }

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.product-price-original {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.add-cart-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* ===== COUNTDOWN BANNER ===== */
.countdown-banner {
  margin: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

.countdown-banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: brightness(0.5);
}

.countdown-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.side-card-offer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  height: 100%;
  padding: 2rem;
  background: #fdfcf7;
}

.countdown-title { font-size: 2rem; color: white; font-weight: 800; margin-bottom: 1.5rem; }
.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.countdown-unit {
  text-align: center;
}

.countdown-num {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.countdown-sep { font-size: 2rem; color: white; font-weight: 300; margin-bottom: 1rem; }
.countdown-unit span { font-size: 0.65rem; letter-spacing: 1.5px; color: rgba(255,255,255,0.7); text-transform: uppercase; }

/* ===== FILTERS SIDEBAR ===== */
.filter-sidebar {
  width: 240px;
  flex-shrink: 0;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-mid);
  transition: var(--transition);
}

.filter-option:hover { color: var(--primary); }

.filter-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

input[type="checkbox"]:checked + .filter-checkbox,
.filter-checkbox.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ===== PRODUCT DETAILS ===== */
.product-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-gallery {
  display: flex;
  gap: 1rem;
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-main {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--neutral);
  aspect-ratio: 1;
  position: relative;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.limited-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-info { }

.product-sub-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.product-detail-name {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.product-detail-name-ar {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.product-detail-price {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.size-selector { margin: 1.5rem 0; }
.size-selector-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.size-options { display: flex; gap: 0.75rem; }
.size-btn {
  padding: 8px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: var(--text-mid);
  transition: var(--transition);
}
.size-btn:hover, .size-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(53,88,114,0.05);
}

.add-to-cart-section {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-add-cart {
  flex: 1;
  padding: 14px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-wishlist-detail {
  width: 52px;
  height: 52px;
  border: 2px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.btn-wishlist-detail:hover { border-color: var(--danger); color: var(--danger); }

/* ===== ACCORDION ===== */
.accordion-flowers {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
}

.accordion-item-flowers {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: var(--transition);
}

.accordion-trigger:hover { color: var(--primary); }
.accordion-content { padding: 0 0 1rem; font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }

/* ===== REVIEWS ===== */
.reviews-section { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; }

.review-summary {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.rating-big {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.rating-num { font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.rating-stars-big { color: #f6c90e; font-size: 1.25rem; margin: 0.5rem 0; }
.rating-total { font-size: 0.75rem; color: var(--text-light); }

.rating-bars { display: flex; flex-direction: column; gap: 0.5rem; justify-content: center; }
.rating-bar-row { display: flex; align-items: center; gap: 1rem; font-size: 0.825rem; }
.rating-bar-row span { white-space: nowrap; color: var(--text-mid); min-width: 20px; }
.rating-bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f6c90e; border-radius: 3px; transition: width 1s ease; }

.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.review-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.75rem; }
.reviewer-name { font-weight: 700; font-size: 0.875rem; }
.review-date { font-size: 0.75rem; color: var(--text-light); }
.review-text { font-size: 0.875rem; color: var(--text-mid); line-height: 1.7; }

/* ===== CART ===== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  min-width: 0; /* prevent overflow */
  flex-wrap: wrap;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--neutral);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; white-space: normal; }
.cart-item-name a:hover { color: var(--primary); }
.cart-item-sub { font-size: 0.8rem; color: var(--text-light); }

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
}

.cart-item-total-price {
  text-align: right;
  min-width: 100px;
}

.item-total {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.875rem; color: var(--text-dark);
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-num { font-weight: 700; min-width: 20px; text-align: center; font-size: 0.9rem; }

.remove-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; color: var(--text-light);
  display: inline-flex; align-items: center; gap: 4px;
  transition: var(--transition);
  padding: 0;
}
.remove-btn:hover { color: var(--danger); }

.order-summary-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 80px;
}

.summary-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 0.875rem; font-size: 0.875rem; }
.summary-row .label { color: var(--text-light); }
.summary-row .value { font-weight: 600; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.summary-total { font-size: 1.25rem; font-weight: 800; color: var(--primary); }

.coupon-input-group { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.coupon-input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.875rem; font-family: var(--font-body);
  transition: var(--transition);
}
.coupon-input:focus { outline: none; border-color: var(--primary); }

.payment-icons { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.payment-icon { width: 40px; height: 26px; background: var(--neutral); border-radius: 4px; }

/* ===== CHECKOUT ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.checkout-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group-flowers { margin-bottom: 1.25rem; }
.form-label-flowers { font-size: 0.8rem; font-weight: 600; color: var(--text-mid); display: block; margin-bottom: 0.5rem; }
.form-control-flowers {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: white;
  transition: var(--transition);
}
.form-control-flowers:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(122,170,206,0.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.delivery-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.delivery-option {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.delivery-option.active, .delivery-option:hover { border-color: var(--primary); background: rgba(53,88,114,0.04); }
.delivery-type { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.delivery-price { font-size: 1rem; font-weight: 800; color: var(--primary); }
.delivery-time { font-size: 0.75rem; color: var(--text-light); }

.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.payment-option.active, .payment-option:hover { border-color: var(--primary); }
.payment-option input { accent-color: var(--primary); }
.payment-option-label { font-weight: 600; font-size: 0.875rem; }

/* ===== FOOTER ===== */
.footer-flowers {
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.footer-brand p { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; margin: 1rem 0; max-width: 280px; }
.footer-social { display: flex; gap: 0.75rem; }
.social-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 0.85rem;
  transition: var(--transition);
}
.social-icon:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.footer-col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dark); margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-light); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright { font-size: 0.75rem; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
.footer-payments { display: flex; gap: 0.5rem; }
.payment-method-icon {
  width: 40px; height: 26px;
  background: var(--neutral);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--text-light); font-weight: 700;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-flowers {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: var(--text-light);
  padding: 1.5rem 2rem 0;
  max-width: 1400px;
  margin: 0 auto;
}
.breadcrumb-flowers a { color: var(--text-light); }
.breadcrumb-flowers a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border); }
.breadcrumb-current { color: var(--text-dark); font-weight: 600; }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-left {
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1563241527-3004b7be0ffd?w=800&q=80') center/cover;
  opacity: 0.6;
}

.auth-left-content { position: relative; z-index: 1; text-align: center; }
.auth-logo { font-family: var(--font-headline); font-size: 2rem; font-weight: 800; color: white; margin-bottom: 1rem; }
.auth-tagline { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.7; max-width: 300px; }

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--white);
}

.auth-form-wrapper { width: 100%; max-width: 400px; }
.auth-title { font-size: 1.75rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.5rem; }
.auth-subtitle { font-size: 0.875rem; color: var(--text-light); margin-bottom: 2rem; }

.lang-switch-auth {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,0.8);
}

/* ===== ADMIN DASHBOARD ===== */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 280px;
  background: #355872;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 4px 0 16px rgba(0,0,0,0.05);
  z-index: 100;
}

.admin-logo {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.admin-logo h2 { font-size: 1rem; font-weight: 800; color: white; }
.admin-logo span { font-size: 0.7rem; color: rgba(255,255,255,0.6); }

.admin-nav { flex: 1; }
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-right: 4px solid transparent;
}
.admin-nav-item:hover, .admin-nav-item.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-right-color: #3b82f6;
}
.admin-nav-item .icon { width: 18px; height: 18px; opacity: 0.8; }
.admin-nav-item.active .icon { opacity: 1; }

.admin-content { margin-left: 220px; flex: 1; padding: 2rem; background: var(--neutral); min-height: 100vh; }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  background: white; border-radius: var(--radius-md);
  padding: 1rem 1.5rem; margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.admin-header-title h1 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.1rem; }
.admin-header-title p { font-size: 0.8rem; color: var(--text-light); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2rem; }

.stat-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: rgba(53,88,114,0.05);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.stat-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.25rem; font-family: var(--font-headline); }
.stat-change { font-size: 0.75rem; font-weight: 600; }
.stat-change.positive { color: var(--success); }
.stat-change.negative { color: var(--danger); }

.admin-grid-2 { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }

.admin-table-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.admin-card-header h3 { font-size: 0.95rem; font-weight: 800; }
.admin-card-header a { font-size: 0.75rem; color: var(--primary); font-weight: 600; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-light);
  padding: 0.75rem 1.5rem; text-align: inherit;
  background: var(--neutral);
}
.admin-table td { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-light); font-size: 0.875rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--neutral); }

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.status-delivered { background: #d1fae5; color: #065f46; }
.status-processing { background: #fef3c7; color: #92400e; }
.status-shipped { background: #dbeafe; color: #1e40af; }
.status-pending { background: rgba(53,88,114,0.1); color: var(--primary); }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== ABOUT US ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 4rem;
  align-items: center;
}

.about-hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1.1; margin-bottom: 1.5rem; }
.about-hero p { font-size: 1rem; color: var(--text-mid); line-height: 1.8; }

.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--primary);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.philosophy-section { padding: 4rem 2rem; }
.philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }

.philosophy-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.philosophy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.philosophy-card.featured { background: var(--primary); color: white; }
.philosophy-card.featured h3, .philosophy-card.featured p { color: white; }
.philosophy-icon { font-size: 1.5rem; margin-bottom: 1.5rem; }
.philosophy-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.75rem; }
.philosophy-card p { font-size: 0.875rem; line-height: 1.7; color: var(--text-mid); }

/* ===== CONTACT ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info h2 { font-size: 2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 1rem; }
.contact-info p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(53,88,114,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 1rem; flex-shrink: 0;
}
.contact-detail-text label { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--text-light); text-transform: uppercase; display: block; margin-bottom: 0.25rem; }
.contact-detail-text a, .contact-detail-text p { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

.contact-form-card {
  background: var(--neutral);
  border-radius: var(--radius-md);
  padding: 2rem;
}

/* ===== WISHLIST ===== */
.wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem; }

/* ===== ORDERS ===== */
.order-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-md); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.order-number { font-weight: 800; color: var(--primary); }
.order-date { font-size: 0.8rem; color: var(--text-light); }

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 700;
}
.lang-btn {
  padding: 4px 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: var(--transition);
  color: var(--text-light);
}
.lang-btn.active { background: var(--primary); color: white; }

/* ===== ALERTS ===== */
.alert-flowers {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success-flowers { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error-flowers { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info-flowers { background: rgba(156,213,255,0.2); color: var(--primary); border: 1px solid var(--tertiary); }

/* ===== PAGINATION ===== */
.pagination-flowers { display: flex; align-items: center; gap: 0.5rem; justify-content: center; margin: 2rem 0; }
.page-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; color: var(--text-mid);
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { border-color: var(--primary); color: var(--primary); background: rgba(53,88,114,0.05); }
.page-btn.active { background: var(--primary); color: white; }

/* ===== QUICK ADD (Admin) ===== */
.quick-add-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .hero-overlay { background: linear-gradient(to left, rgba(53,88,114,0.85) 40%, transparent); }
[dir="rtl"] .gallery-thumbnails { order: 1; }
[dir="rtl"] .gallery-main { order: 0; }
[dir="rtl"] .accordion-trigger { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .admin-sidebar { right: 0; left: auto; }
[dir="rtl"] .footer-brand p { max-width: 280px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
  .hero-section { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .product-detail-wrapper { grid-template-columns: 1fr; }
  .cart-layout { 
    grid-template-columns: 1fr; 
    padding: 1rem;
    overflow-x: hidden;
  }
  .cart-item {
    gap: 1rem;
    padding: 1.25rem;
    align-items: flex-start;
  }
  .cart-item-img { width: 70px; height: 70px; }
  .cart-item-info { width: calc(100% - 85px); flex: none; }
  .cart-item-actions {
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
    justify-content: space-between;
    gap: 1rem;
  }
  .cart-item-total-price { min-width: 0; }
  .order-summary-box { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .about-img { max-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-wrapper { flex-direction: column; }
  .admin-sidebar { position: relative; width: 100%; height: auto; flex-direction: row; overflow-x: auto; }
  .admin-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 992px) {
  .mobile-only { display: flex !important; }
  .desktop-only { display: none !important; }

  /* ─── MOBILE NAVBAR: 3-column grid ─── */
  .navbar-flowers {
      padding: 0 1rem;
      height: 64px;
      display: grid !important;
      grid-template-columns: 1fr auto 1fr !important;
      align-items: center !important;
      gap: 0;
      width: 100%;
      box-sizing: border-box;
      overflow: visible;
  }

  .navbar-block-left {
      display: flex !important;
      align-items: center;
      justify-content: flex-start;
      gap: 0.5rem;
      padding: 0 !important;
      margin: 0 !important;
  }

  .navbar-brand-wrapper {
      display: flex !important;
      align-items: center;
      justify-content: center;
      padding: 0 !important;
      margin: 0 !important;
  }
  .navbar-brand-flowers { margin: 0 !important; font-size: 1.05rem; }
    .site-logo-img {
        max-height: 48px !important;
        max-width: 90px !important;
        width: auto !important;
        object-fit: contain;
        display: block;
        border-radius: 20px;
    }

  .navbar-actions {
      display: flex !important;
      align-items: center;
      justify-content: flex-end;
      gap: 0.5rem;
      padding: 0 !important;
      margin: 0 !important;
  }

  .mobile-toggle-btn {
      display: flex !important;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      font-size: 1.4rem;
      color: var(--primary);
      padding: 6px;
      cursor: pointer;
      border-radius: 8px;
      transition: var(--transition);
  }
  .mobile-toggle-btn:hover { background: var(--neutral); }

  /* ─── MOBILE MENU PANEL ─── */
  .navbar-collapse-flowers {
      position: absolute;
      top: 100%;
      left: 0 !important;
      right: 0 !important;
      width: 100% !important;
      margin: 0 !important;
      display: none;
      flex-direction: column;
      background: var(--white);
      border-top: 2px solid var(--primary);
      box-shadow: 0 12px 40px rgba(53,88,114,0.18);
      z-index: 998;
      box-sizing: border-box;
      overflow-y: auto;
      max-height: calc(100svh - 64px);
      /* Smooth open */
      padding: 0;
  }
  .navbar-collapse-flowers.show { display: flex; }

  /* ─── NAV LIST ─── */
  .navbar-nav-flowers {
      flex-direction: column;
      width: 100%;
      gap: 0;
      align-items: stretch;
      padding: 0;
      list-style: none;
      margin: 0;
  }

  /* ─── EACH CATEGORY ROW ─── */
  .nav-item-flowers {
      width: 100%;
      border-bottom: 1px solid var(--border-light);
      padding: 0;
      margin: 0;
      flex-direction: column; /* Force sub-menu to block below the header */
      align-items: stretch;
  }

  /* The header row: link + arrow — auto height on mobile */
  .nav-item-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.875rem 1.25rem;
      width: 100%;
      gap: 0.5rem;
      height: auto; /* Override the desktop 64px */
  }

  /* LTR: link text left, arrow right */
  .nav-item-header .nav-link-flowers { flex: 1; }

  /* RTL: arrow left, link text right */
  [dir="rtl"] .nav-item-header { flex-direction: row-reverse; }

  /* Nav link inside mobile menu */
  .nav-item-flowers .nav-link-flowers {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-dark);
      padding: 0;
      display: block;
      text-decoration: none;
      line-height: 1.4;
  }
  .nav-item-flowers .nav-link-flowers::after { display: none; /* no underline animation on mobile */ }
  .nav-item-flowers .nav-link-flowers.active,
  .nav-item-flowers .nav-link-flowers:hover { color: var(--primary); }

  /* ── About Us (simple li, no has-dropdown class) ── */
  /* Give it the exact same look as the other nav items */
  .navbar-nav-flowers > li:not(.nav-item-flowers) {
      width: 100%;
      border-bottom: 1px solid var(--border-light);
      padding: 0.875rem 1.25rem;
      display: block;
  }
  .navbar-nav-flowers > li:not(.nav-item-flowers) > .nav-link-flowers {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-dark);
      padding: 0;
      display: block;
      text-decoration: none;
  }
  .navbar-nav-flowers > li:not(.nav-item-flowers) > .nav-link-flowers::after { display: none; }
  .navbar-nav-flowers > li:not(.nav-item-flowers) > .nav-link-flowers:hover { color: var(--primary); }

  /* ─── TOGGLE BUTTON (arrow) ─── */
  .nav-toggle-btn {
      display: flex !important;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: var(--neutral);
      color: var(--primary);
      flex-shrink: 0;
  }
  .nav-toggle-btn:hover { background: rgba(53,88,114,0.12); }
  .nav-toggle-btn.active { background: rgba(53,88,114,0.12); }
  .nav-toggle-btn.active .nav-arrow { transform: rotate(180deg); color: var(--primary); }
  .nav-arrow { font-size: 0.75rem; }

  /* ─── MOBILE SUB-MENU (mega-menu in mobile mode) ─── */
  .mega-menu-flowers {
      position: static !important;
      top: auto !important;
      width: 100% !important;
      box-shadow: none !important;
      border: none !important;
      display: none !important;
      background: rgba(53,88,114,0.03);
      border-top: 1px solid var(--border-light) !important;
      border-radius: 0 !important;
      animation: none !important;
      padding: 0.5rem 0;
      left: auto !important;
  }
  .mega-menu-flowers.show { display: block !important; }
  /* Also hide the desktop "fixed" mega menu */
  .mega-menu-flowers::before { display: none; }

  .mega-menu-inner { padding: 0; max-width: 100%; }

  .mega-menu-grid { 
      display: flex;
      flex-direction: column;
      gap: 0;
  }

  .mega-menu-item {
      padding: 0.65rem 1.5rem 0.65rem 2.5rem;
      border-bottom: 1px solid rgba(53,88,114,0.05);
      font-size: 0.875rem;
      border-radius: 0;
      color: var(--text-mid);
  }
  [dir="rtl"] .mega-menu-item { padding: 0.65rem 2.5rem 0.65rem 1.5rem; }

  .mega-menu-item:last-child { border-bottom: none; }

  .mega-menu-item::before {
      width: 3px;
      height: 3px;
      opacity: 0.6;
  }

  .mega-menu-item:hover {
      background: rgba(53,88,114,0.06);
      color: var(--primary);
  }

  /* Utility: Products Slider */
  .products-grid.products-slider-mobile {
      display: flex !important;
      overflow-x: auto !important;
      flex-wrap: nowrap !important;
      gap: 1.25rem !important;
      padding: 0 1.5rem 1.5rem !important;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scroll-padding: 1.5rem;
      scrollbar-width: none; /* Hide scrollbar for Firefox */
      -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
  }
  .products-grid.products-slider-mobile::-webkit-scrollbar {
      display: none; /* Hide scrollbar for Chrome/Safari */
  }
  .products-grid.products-slider-mobile .product-card {
      min-width: 215px !important;
      max-width: 215px !important;
      flex-shrink: 0;
      margin: 0 !important;
      scroll-snap-align: start;
  }
  .products-grid.products-slider-mobile .product-card-img {
      aspect-ratio: 1 / 1 !important;
      height: auto !important;
  }

  /* Product Detail Mobile Refinement */
  .product-detail-wrapper { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem; }
  .product-gallery { 
      flex-direction: column !important; 
      gap: 1.5rem !important;
  }
  .gallery-thumbnails {
      flex-direction: row !important;
      order: 2;
      width: 100% !important;
      overflow-x: auto;
      padding: 5px 0;
      gap: 0.75rem !important;
      justify-content: center;
  }
  .gallery-thumb { width: 70px !important; height: 70px !important; flex-shrink: 0; }
  .gallery-main {
      order: 1;
      width: 100% !important;
  }
  
  .hero-section { padding: 1rem; gap: 1rem; }
  .categories-grid { gap: 1rem; }
  .filter-sidebar { width: 100%; height: auto; position: static !important; }
  .filter-sidebar > div { position: static !important; }
  
  .products-grid { padding: 0 1.5rem; }
  .categories-section { padding: 3rem 1.5rem; }
  
  [style*="display:flex"][style*="gap:2rem"] { 
      flex-direction: column !important; 
      gap: 1.5rem !important; 
      padding: 1.5rem 1rem !important; 
  }

  .product-detail-name { font-size: 1.6rem; margin-bottom: 0.5rem; font-weight: 800; }
  .product-detail-price { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--primary); }
  
  /* Cart Actions Mobile */
  [style*="display:flex"][style*="align-items:center"][style*="gap:1rem"] {
      flex-direction: column !important;
      align-items: stretch !important;
      gap: 1rem !important;
  }
  .quantity-wrapper, div[style*="border:1px solid var(--border)"] { 
      width: 100% !important; 
      justify-content: center !important; 
      display: flex !important;
  }
  .btn-add-cart { 
      width: 100% !important; 
      margin: 0 !important;
      justify-content: center !important; 
      height: 56px !important; 
      font-size: 1.1rem !important;
      border-radius: var(--radius-md) !important;
  }
  .btn-wishlist-detail {
      width: 100% !important;
      height: 52px !important;
      justify-content: center !important;
      background: var(--neutral) !important;
  }
  .product-info { padding: 0; }

  /* Mobile search (inside collapsed menu) */
  .navbar-search.mobile-only { 
      flex-direction: row; 
      width: 100%; 
      gap: 0; 
      padding: 0.75rem 1.5rem;
      align-items: center; 
      box-sizing: border-box;
  }
  .navbar-search .search-input-wrapper { width: 100%; position: relative; }
  .navbar-search .search-input-flowers { 
      width: 100% !important; 
      padding: 10px 40px 10px 16px;
  }
  [dir="rtl"] .navbar-search .search-input-flowers {
      padding: 10px 16px 10px 40px;
  }
  .navbar-search .search-input-flowers:focus { width: 100% !important; }
  .navbar-search .search-icon {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
  }
  [dir="rtl"] .navbar-search .search-icon {
      right: auto;
      left: 12px;
  }
  .navbar-icons { width: 100%; justify-content: flex-start; gap: 1.5rem; }
  
  .hero-section { 
      padding: 1rem; 
      gap: 1rem; 
      grid-template-columns: 1fr; /* Force stack */
  }
  .hero-side { 
      display: grid; 
      grid-template-columns: 1fr; 
      gap: 1rem; 
  }
  .hero-side .side-card {
      height: 200px; /* Specific height for mobile to keep them visible but compact */
  }
  .side-card-banner img { height: 100%; }
  .side-card-banner-content h3 { font-size: 1.25rem; }
  
  .hero-slider {
      min-height: 380px; /* Slightly shorter for mobile */
  }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.9rem; }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); padding: 0 1rem; }
  .categories-grid { gap: 1.5rem; }
  .circle-img { width: 90px; height: 90px; }
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout-layout { 
      grid-template-columns: 1fr; 
      padding: 1rem !important;
      margin: 0 !important;
      width: 100% !important;
      box-sizing: border-box !important;
  }
  .checkout-card { 
      margin-left: 0 !important; 
      margin-right: 0 !important; 
      width: 100% !important;
      box-sizing: border-box !important;
  }
  .auth-wrapper { 
      grid-template-columns: 1fr; 
      min-height: auto; 
      padding: 2rem 1rem !important;
      margin: 0 !important;
      width: 100% !important;
      box-sizing: border-box !important;
  }
  .auth-left { display: block; height: 180px; margin-bottom: 1.5rem; border-radius: var(--radius-md); overflow: hidden; }
  .auth-card { 
      padding: 0 !important; 
      box-shadow: none !important; 
      margin: 0 !important;
      width: 100% !important;
  }
  .breadcrumb-flowers { padding: 1rem; }
  .review-summary { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; gap: 1rem !important; }
  .delivery-options { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 1rem; }
  .countdown-num { font-size: 2rem; }
  .about-hero h1 { font-size: 2.5rem; }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

html[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 30px;
}