

/* ===== Ad Banners Slider (Home / Shop) ===== */
/* =========================
   BANNERS SLIDER - MODERN + RESPONSIVE
   - Title centered
   - Images fully visible (contain)
   - Track forced LTR for smooth left->right autoplay
========================= */

.ad-banners{
  max-width: 1200px;
  margin: 18px auto 10px;
  padding: 0 14px;
}

.ad-banners-head{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center; /* title centered */
  gap:10px;
  margin-bottom:10px;
}

.ad-banners-title{
  margin:0;
  text-align:center;
  font-family:"Cairo","Tajawal",sans-serif;
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.ad-banners-controls{
  position:absolute;
  left: 0; /* keep buttons at the left side */
  top: 50%;
  transform: translateY(-50%);
  display:flex;
  gap:8px;
}

.ad-btn{
  width:40px;
  height:40px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  font-size:22px;
  cursor:pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ad-btn:hover{
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 16px 28px rgba(0,0,0,.14);
}

.ad-banners-viewport{
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, #ffffff, #f6f8fa);
}

.ad-banners-track{
  direction: ltr; /* make autoplay predictable left->right */
  display:flex;
  gap:12px;
  padding:12px;
  overflow-x:auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ad-banners-track::-webkit-scrollbar{ display:none; }

.ad-banner-slide{
  flex: 0 0 100%;
  scroll-snap-align: start;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
}

@media (min-width: 720px){
  .ad-banner-slide{ flex-basis: calc(50% - 6px); }
}
@media (min-width: 1024px){
  .ad-banner-slide{ flex-basis: calc(33.333% - 8px); }
}

.ad-banner-link{ display:block; text-decoration:none; }

.ad-banner-img{
  width:100%;
  height: 220px;
  display:block;
  object-fit: contain;     /* show the banner entirely */
  object-position: center;
  background:#ffffff;
  padding: 10px;           /* avoids touching edges */
}
@media (max-width: 520px){
  .ad-banner-img{ height: 170px; padding: 10px; }
}

.ad-banners-dots{
  display:flex;
  gap:8px;
  justify-content:center;
  padding: 10px 0 2px;
}

.ad-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  border:none;
  background: rgba(0,0,0,.25);
  cursor:pointer;
  transition: width .15s ease, background .15s ease;
}

.ad-dot.is-active{
  width:22px;
  background: rgba(0,0,0,.60);
}


/* ============================================
   VARIABLES CSS - MODERN PREMIUM DESIGN SYSTEM
   ============================================ */
:root {
    /* Brand Colors - Premium Gold/Yellow & Dark Gray */
    --primary-color: #f59e0b; /* Modern energetic gold */
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --primary-lighter: #fde68a;
    --secondary-color: #111827; /* Rich dark blue-gray instead of muddy brown */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #374151 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(0, 0, 0, 0.95) 100%);
    
    /* Text Colors */
    --text-dark: #111827;      /* High contrast reading */
    --text-medium: #4b5563;    /* Secondary text */
    --text-light: #6b7280;     /* Muted text */
    --text-lighter: #9ca3af;
    
    /* Surface & Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;       /* Very soft, clean gray */
    --bg-lighter: #f3f4f6;
    --bg-gray: #e5e7eb;
    
    /* State Colors */
    --success-color: #10b981;  /* Modern emerald */
    --error-color: #ef4444;    /* Modern red */
    --warning-color: #f59e0b;
    --info-color: #3b82f6;     /* Modern blue */
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.3); /* Primary color glow */
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius - Modern Rounded Shapes */
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    --border-radius-full: 9999px;
    
    /* Typography */
    --font-primary: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2.25rem;
    --font-size-4xl: 3rem;
    --font-size-5xl: 4rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    direction: rtl;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em; /* Modern tight kerning for headings */
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-medium);
    line-height: 1.7; /* Better readability */
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm); /* Default soft corners for images */
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px; /* Wider modern max-width */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* ============================================
   BOUTONS - MODERNIZED
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-full); /* Pill shape for modern look */
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-bounce);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.5);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-gray);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: var(--font-size-lg);
}

.btn-block {
    width: 100%;
}

.btn-consultation {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* Modern blue instead of teal */
    color: white;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.btn-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.5);
}

/* ============================================
   FORMULAIRES - MODERNIZED
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--bg-gray);
    border-radius: var(--border-radius-md);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-lighter);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); /* Modern focus ring */
}

/* ============================================
   ALERTES - MODERNIZED
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent; /* Modern accent line */
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* ============================================
   UTILITAIRES
   ============================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-sm);
    }
    
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-xs);
    }
    
    h1 { font-size: var(--font-size-2xl); }
    h2 { font-size: var(--font-size-xl); }
    h3 { font-size: var(--font-size-lg); }
}

/* ============================================
   ANIMATIONS - MODERN & SMOOTH
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03); /* Softer pulse */
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-in {
    animation: slideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modern Hover Effects for Cards/Elements */
.hover-lift {
    transition: var(--transition-bounce);
}
.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow);
}

/* ============================================
   SCROLLBAR PERSONNALISÉE - MODERNIZED
   ============================================ */
::-webkit-scrollbar {
    width: 8px; /* Slimmer */
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-light); /* More subtle default */
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}



/* =========================
   PACKS SLIDER — 3 par vue, navigation flèches
========================= */
.packs-section {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 14px;
}

/* En-tête : titre + boutons */
.packs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.packs-title {
  margin: 0;
  font-family: "Cairo","Tajawal",sans-serif;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.2;
  color: #1c1917;
}

/* Boutons de navigation */
.packs-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.packs-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  color: #422006;
}
.packs-nav-btn:hover:not(:disabled) {
  background: #eab308;
  color: #fff;
  border-color: #ca8a04;
}
.packs-nav-btn:disabled {
  opacity: .32;
  cursor: default;
  pointer-events: none;
}

.packs-counter {
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  min-width: 36px;
  text-align: center;
}

/* Fenêtre de visualisation */
.packs-viewport {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

/* Piste (flex horizontal, toujours LTR) */
.packs-track {
  display: flex;
  direction: ltr !important;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Chaque item = exactement 1/3 de la fenêtre */
.packs-item {
  flex: 0 0 calc(100% / 3);
  min-width: calc(100% / 3);
  border-right: 1px solid rgba(0,0,0,.07);
  box-sizing: border-box;
}
.packs-item:last-child { border-right: 0; }

.packs-item-inner {
  display: block;
  text-decoration: none;
  color: inherit;
}

.packs-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #f4f6f8;
}

.packs-label {
  margin: 0;
  padding: 8px 10px;
  font-family: "Cairo","Tajawal",sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #1c1917;
  border-top: 1px solid rgba(0,0,0,.06);
  background: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dots de pagination */
.packs-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.packs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.15);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.packs-dot.active {
  background: #eab308;
  transform: scale(1.3);
}

@media (max-width: 520px) {
  .packs-section { padding: 0 10px; }
  .packs-title   { font-size: 17px; }
  .packs-label   { font-size: 11px; padding: 6px 6px; }
  .packs-nav-btn { width: 32px; height: 32px; font-size: 17px; }
}


/* Accessibility */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}

/* Shop page SEO H1 — visible but blends into the UI */
.shop-seo-h1 {
  font-family: "Cairo", "Tajawal", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
  text-align: center;
  margin: 1rem 0 0.25rem;
  line-height: 1.4;
}
