/* ==========================================================================
   ABMONTRE LUXURY STOREFRONT STYLESHEET
   Style: Luxury, Minimal, Editorial, High-End Swiss-Inspired Watch Boutique
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Cinzel:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-main: #09090B;
  --bg-surface: #121215;
  --bg-card: #18181C;
  --bg-card-hover: #202026;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(212, 175, 55, 0.35);

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  --accent-gold: #D4AF37;
  --accent-gold-light: #F3E5AB;
  --accent-gold-dark: #997B22;

  --badge-sale: #8B0000;
  --badge-stock: #166534;
  --badge-soldout: #3F3F46;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Cairo', system-ui, -apple-system, sans-serif;

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  --accent-gold: #D4AF37;
  --accent-gold-light: #F3E5AB;
  --accent-gold-dark: #997B22;

  --badge-sale: #8B0000;
  --badge-stock: #166534;
  --badge-soldout: #3F3F46;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --header-height: 80px;
  --container-max: 1360px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(9, 9, 11, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF 0%, #E5E5E5 50%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-top: -2px;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 992px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-gold);
  transition: var(--transition);
}

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle {
  display: flex;
}

@media (min-width: 992px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 1000;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

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

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-link:hover, .drawer-link.active {
  color: var(--accent-gold);
}

.drawer-footer {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   HERO SECTION (Cinematic & Editorial)
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(90vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 60px 0;
  background: radial-gradient(circle at 80% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, #09090B 0%, #121215 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 560px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-badge {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  background: rgba(212, 175, 55, 0.05);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-gold);
  letter-spacing: normal;
  text-transform: none;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1/1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* ==========================================================================
   BUTTONS (Luxury Minimal Solid)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
  text-align: center;
}

.btn-primary {
  background: var(--text-primary);
  color: #000000;
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #000000;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}

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

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  color: #000000;
  border: 1px solid var(--accent-gold);
  font-weight: 700;
}

.btn-gold:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.75rem;
}

/* ==========================================================================
   SECTION HEADERS (Editorial Style)
   ========================================================================== */
.section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 110px 0;
  }
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-top: 16px;
}

.section-link:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   PRODUCT CARDS & GRID (Responsive & Luxury)
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 28px;
}

@media (min-width: 560px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.product-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-surface);
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-thumb {
  transform: scale(1.08);
}

.badge-group {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

.badge-sale {
  background: var(--badge-sale);
  color: #FFFFFF;
}

.badge-soldout {
  background: rgba(0,0,0,0.75);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 18px;
}

.current-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.old-price {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-btn {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* Out of stock state */
.is-soldout {
  opacity: 0.75;
}

/* ==========================================================================
   PRODUCT DETAILS PAGE
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

@media (min-width: 992px) {
  .product-detail-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-display {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

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

.thumbnail-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
  transition: var(--transition);
}

.thumbnail-item.active, .thumbnail-item:hover {
  border-color: var(--accent-gold);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-summary {
  display: flex;
  flex-direction: column;
}

.detail-category {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-old-price {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 32px;
  white-space: pre-line;
}

.stock-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
}

.stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.stock-dot.out {
  background: #EF4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.qty-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-value {
  width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.luxury-benefits {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.benefit-item svg {
  color: var(--accent-gold);
  flex-shrink: 0;
}

/* ==========================================================================
   CHECKOUT PAGE (Cash on Delivery & Wilaya Delivery Engine)
   ========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

@media (min-width: 992px) {
  .checkout-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }
}

.checkout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.checkout-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-card-title svg {
  color: var(--accent-gold);
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

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

/* Radio Card Selectors */
.radio-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.radio-card:hover {
  border-color: var(--border-light);
}

.radio-card input {
  position: absolute;
  opacity: 0;
}

.radio-card.active {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.radio-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.radio-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Order Summary Box */
.order-summary-sticky {
  position: sticky;
  top: 100px;
}

.summary-item-card {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.summary-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 10px;
}

.summary-total-amount {
  color: var(--accent-gold);
  font-family: var(--font-display);
}

/* ==========================================================================
   ORDER CONFIRMATION PAGE
   ========================================================================== */
.confirmation-box {
  max-width: 640px;
  margin: 60px auto 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.confirm-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.confirm-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.order-badge-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 8px 24px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  margin: 16px 0 24px;
}

/* ==========================================================================
   SEARCH MODAL
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.search-box-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.search-input-box {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 12px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  outline: none;
}

.search-results {
  margin-top: 36px;
  max-height: 60vh;
  overflow-y: auto;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: auto;
  background: #060608;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

.footer-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   INFINITE SCROLL LOADER & EMPTY STATES
   ========================================================================== */
.infinite-scroll-loader {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  width: 100%;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--text-muted);
}

.empty-state-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}

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

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   LANGUAGE SWITCHER & RTL STYLING
   ========================================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3px 4px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--accent-gold);
  color: #09090B;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Mobile drawer language switcher */
.drawer-lang-wrap {
  display: flex;
  justify-content: center;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

/* RTL Adjustments */
html[dir="rtl"] body {
  font-family: var(--font-arabic);
  letter-spacing: normal;
}

html[dir="rtl"] .brand-sub {
  font-family: var(--font-arabic);
  letter-spacing: 0.15em;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-title,
html[dir="rtl"] .detail-title,
html[dir="rtl"] .confirm-title,
html[dir="rtl"] .empty-state-title {
  font-family: var(--font-arabic);
  font-weight: 700;
  letter-spacing: normal;
}

html[dir="rtl"] .hero-description {
  font-size: 1.05rem;
  line-height: 1.9;
}

html[dir="rtl"] .nav-link,
html[dir="rtl"] .drawer-link,
html[dir="rtl"] .btn,
html[dir="rtl"] .section-subtitle,
html[dir="rtl"] .detail-category {
  letter-spacing: normal;
}

html[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

/* Drawer RTL */
html[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border);
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
}

html[dir="rtl"] .mobile-drawer.active {
  left: 0;
  right: auto;
}

/* Form and UI RTL Alignments */
html[dir="rtl"] .form-label,
html[dir="rtl"] .form-input,
html[dir="rtl"] .form-select,
html[dir="rtl"] .form-textarea,
html[dir="rtl"] .radio-card,
html[dir="rtl"] .footer-links,
html[dir="rtl"] .footer-title,
html[dir="rtl"] .checkout-card-title {
  text-align: right;
}

html[dir="rtl"] .search-input {
  text-align: right;
}

html[dir="rtl"] .badge-group {
  left: auto;
  right: 12px;
}

html[dir="rtl"] .product-category,
html[dir="rtl"] .product-name,
html[dir="rtl"] .detail-description {
  text-align: right;
}

html[dir="rtl"] .detail-price-box {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

html[dir="rtl"] .stock-status-row {
  flex-direction: row;
}

html[dir="rtl"] .summary-row {
  flex-direction: row;
}

html[dir="rtl"] .benefit-item {
  text-align: right;
}

/* ==========================================================================
   SMARTPHONE & COMPREHENSIVE RESPONSIVE STYLING (Mobile & Desktop Parity)
   ========================================================================== */

/* Universal touch optimization */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

button, input, select, textarea, a {
  touch-action: manipulation;
}

/* Base Container & Header on Tablets & Smartphones (<= 991px) */
@media (max-width: 991px) {
  :root {
    --header-height: 72px;
  }

  .container {
    padding: 0 18px;
  }

  /* Hero Mobile Layout */
  .hero {
    padding: 40px 0 50px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  html[dir="rtl"] .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
    line-height: 1.15;
  }

  .hero-description {
    font-size: 0.95rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  .hero-image-wrapper {
    max-width: 340px;
    margin: 0 auto;
    border-radius: 18px;
  }

  /* Product Detail Mobile */
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 20px 0 50px;
  }

  .detail-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .detail-price {
    font-size: 1.55rem;
  }

  /* Checkout Mobile */
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 0 50px;
  }

  .order-summary-sticky {
    position: static;
  }
}

/* Smartphone Breakpoint (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  .container {
    padding: 0 16px;
  }

  /* Sections Spacing */
  .section {
    padding: 44px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  html[dir="rtl"] .section-header {
    align-items: flex-start;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .section-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
  }

  .section-link {
    font-size: 0.78rem;
  }

  /* Buttons on Mobile */
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.8rem;
  }

  .btn-lg {
    padding: 16px 24px;
    font-size: 0.85rem;
  }

  /* Checkout Mobile Polish */
  .checkout-card {
    padding: 20px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
  }

  .checkout-card-title {
    font-size: 1.05rem;
    margin-bottom: 16px;
  }

  /* 16px prevents iOS Safari auto-zoom */
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
    padding: 12px 14px;
  }

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

  .form-row {
    gap: 12px;
  }

  .radio-card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .radio-card {
    padding: 14px 16px;
  }

  /* Summary Card Mobile */
  .summary-item-card {
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .summary-thumb {
    width: 64px;
    height: 64px;
  }

  .summary-row {
    font-size: 0.88rem;
    padding: 8px 0;
  }

  .summary-row.total {
    font-size: 1.15rem;
  }

  /* Confirmation Box Mobile */
  .confirmation-box {
    padding: 28px 16px;
    margin: 20px auto 50px;
    border-radius: 12px;
  }

  .confirm-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .confirm-title {
    font-size: 1.4rem;
  }

  .order-badge-number {
    font-size: 1.1rem;
    padding: 6px 18px;
    margin: 12px 0 18px;
    word-break: break-word;
  }

  /* Search Modal Mobile */
  .search-modal {
    padding: 24px 16px;
  }

  .search-input {
    font-size: 1.25rem;
  }

  /* WhatsApp Float Mobile */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

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

  /* Footer Mobile */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-bottom {
    font-size: 0.75rem;
    text-align: center;
  }
}

/* Ultra Mobile & Small Smartphones (<= 640px) */
@media (max-width: 640px) {
  /* 2-Column Luxury Watch Grid */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    border-radius: 6px;
  }

  .product-info {
    padding: 12px 8px;
  }

  .product-category {
    font-size: 0.65rem;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
  }

  .product-name {
    font-size: 0.82rem;
    line-height: 1.3;
    margin-bottom: 6px;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-price-row {
    margin-bottom: 10px;
    gap: 4px;
    flex-wrap: wrap;
    align-items: baseline;
  }

  .current-price {
    font-size: 0.88rem;
    font-weight: 700;
  }

  .old-price {
    font-size: 0.72rem;
  }

  .product-btn {
    padding: 8px 6px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    border-radius: 4px;
  }

  .badge-group {
    top: 8px;
    left: 8px;
    gap: 4px;
  }

  html[dir="rtl"] .badge-group {
    left: auto;
    right: 8px;
  }

  .badge {
    padding: 2px 6px;
    font-size: 0.58rem;
  }

  /* Product Details Page on Small Phones */
  .main-image-display {
    border-radius: 10px;
  }

  .thumbnail-row {
    gap: 8px;
  }

  .thumbnail-item {
    width: 58px;
    height: 58px;
    border-radius: 6px;
  }

  .luxury-benefits {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 12px;
  }

  .benefit-item {
    font-size: 0.78rem;
  }

  .quantity-control {
    margin-bottom: 18px;
  }

  .qty-btn {
    width: 40px;
    height: 40px;
  }

  .qty-value {
    width: 40px;
    font-size: 1rem;
  }

  /* Header compact on extra small screens */
  .brand-title {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
  }

  .brand-sub {
    font-size: 0.5rem;
    letter-spacing: 0.15em;
  }

  .header-actions {
    gap: 6px;
  }

  .lang-switcher {
    padding: 2px 4px;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 0.68rem;
  }

  .icon-btn {
    padding: 6px;
  }

  .mobile-drawer {
    max-width: 88vw;
    padding: 20px 16px;
  }

  .page-banner {
    padding: 36px 0 24px !important;
  }

  .page-banner .section-title {
    font-size: 1.6rem !important;
  }
}

/* Category Filter Pills (Horizontal swipe on mobile & catalog pages) */
.category-pills-wrap {
  width: 100%;
  margin-bottom: 24px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #09090B;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION BAR (Smartphones <= 768px)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

.product-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  /* Offset page content so it never gets cut off by the bottom bar */
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: rgba(12, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 950;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 4px;
    flex: 1;
    min-height: 48px;
    cursor: pointer;
    background: transparent;
    border: none;
    text-decoration: none;
    transition: var(--transition);
    user-select: none;
  }

  .bottom-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    transition: var(--transition);
  }

  .bottom-nav-item.active {
    color: var(--accent-gold);
    font-weight: 700;
  }

  .bottom-nav-item.active svg {
    stroke: var(--accent-gold);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
  }

  .bottom-nav-item:hover,
  .bottom-nav-item:active {
    color: var(--accent-gold);
  }

  /* Product Details Mobile Sticky Purchase Bar */
  .product-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 68px;
    background: rgba(12, 12, 16, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-gold);
    z-index: 960;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.8);
  }

  .product-sticky-price {
    display: flex;
    flex-direction: column;
  }

  .product-sticky-price-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .product-sticky-price-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.2;
  }

  .product-sticky-btn {
    padding: 11px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* Reposition Floating WhatsApp button above Bottom Nav */
  .whatsapp-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

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

  /* Hide header WhatsApp icon on mobile screens to prevent header crowding */
  .header-whatsapp {
    display: none !important;
  }
}

/* Extra small smartphones (<= 360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .products-grid {
    gap: 8px;
  }

  .product-info {
    padding: 10px 6px;
  }

  .product-name {
    font-size: 0.78rem;
  }

  .current-price {
    font-size: 0.82rem;
  }

  .product-btn {
    padding: 7px 4px;
    font-size: 0.65rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .hero-title {
    font-size: 1.85rem !important;
  }
}

/* Extra small smartphones (<= 340px) */
@media (max-width: 340px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .brand-title {
    font-size: 1.05rem;
  }
}


