/* =========================================
   AtlasStride — Official Brand Color System
   Colors from: resources/images/brand color palet.jpg
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Official Brand Colors ── */
  --cream-beige:  #FDFCF8;   /* Main background */
  --dark-brown:   #B68D40;   /* Primary accent / copper */
  --soft-brown:   #4B5563;   /* Secondary text / muted grey */
  --charcoal:     #1A1A1A;   /* Main text */
  --light-sand:   #E5E7EB;   /* Subtle borders / hover */

  /* ── Aliases for the design system ── */
  --primary:    var(--dark-brown);
  --primary-dk: #9A7736;
  --primary-lt: #C9A45D;
  --dark:       var(--charcoal);
  --dark-2:     #2D3748;
  --dark-3:     #4A5568;
  --text:       var(--charcoal);
  --text-light: var(--soft-brown);
  --bg:         var(--cream-beige);
  --bg-2:       #FFFFFF;
  --bg-3:       #F3F4F6;
  --white:      #FFFFFF;
  --red:        #EF4444;
  --green:      #10B981;

  --shadow:    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.02);
  --radius:    8px;
  --radius-lg: 16px;
  --transition: all 0.2s ease-in-out;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Tajawal', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
body.lang-fr {
  direction: ltr;
  text-align: left;
}

h1,h2,h3,h4 { font-family: 'Inter', 'Tajawal', sans-serif; font-weight: 600; color: var(--dark); line-height: 1.2; letter-spacing: -0.025em; }
body.lang-fr h1, body.lang-fr h2, body.lang-fr h3 { font-family: 'Inter', sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px; border-radius: 50px; border: 2px solid transparent;
  font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dk); border-color: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(129,84,52,0.35); }
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark-3); }
.btn-outline:hover { background: var(--dark); color: var(--cream-beige); }
.btn-ghost { background: transparent; color: var(--text-light); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: var(--red); color: white; border-color: var(--red); }
.btn-danger:hover { background: #992D22; }

/* ── Language Switcher ── */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  background: rgba(129,84,52,0.08); border-radius: 50px; padding: 3px;
}
.lang-btn {
  padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: none; background: transparent; color: var(--text-light);
}
.lang-btn.active { background: var(--primary); color: white; }
.lang-btn:hover:not(.active) { background: var(--bg-3); color: var(--dark); }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251,241,233,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.nav.scrolled { border-bottom-color: var(--bg-2); box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 28px; }
body.lang-fr .nav-links { flex-direction: row; }
.nav-links a { color: var(--text-light); font-size: 0.9rem; font-weight: 500; transition: var(--transition); position: relative; padding-bottom: 4px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
body.lang-fr .nav-links a::after { left: 0; right: auto; }
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; display: flex; align-items: center; padding: 8px; color: var(--dark); transition: var(--transition); }
.cart-btn:hover { color: var(--primary); transform: scale(1.1); }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--primary); color: white; font-size: 0.65rem; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); transition: var(--transition); border-radius: 2px; }

/* ── Flash Messages ── */
.flash {
  position: fixed; top: 80px; right: 24px; z-index: 1100;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--radius); font-size: 0.9rem;
  box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; max-width: 380px;
}
body.lang-fr .flash { right: auto; left: 24px; }
.flash-success { background: #F0FAF4; color: #1A5C36; border-left: 4px solid var(--green); }
body.lang-fr .flash-success { border-left: 4px solid var(--green); border-right: none; }
body:not(.lang-fr) .flash-success { border-left: none; border-right: 4px solid var(--green); }
.flash-error { background: #FDF0EE; color: #7B2D26; border-right: 4px solid var(--red); }
body.lang-fr .flash-error { border-right: none; border-left: 4px solid var(--red); }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: inherit; margin-right: 8px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
body.lang-fr .flash { animation: slideInLtr 0.3s ease; }
@keyframes slideInLtr { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

/* ── Page layout ── */
main { padding-top: 72px; }
.section { padding: 80px 0; }
.page-hero { background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%); color: var(--cream-beige); padding: 60px 0 40px; }
.page-hero-sm { padding: 50px 0 30px; }
.page-hero h1 { font-size: 2.2rem; color: var(--cream-beige); margin-bottom: 8px; }
.page-hero p { color: rgba(251,241,233,0.7); font-size: 1rem; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; }
.section-header p { color: var(--text-light); margin-top: 6px; font-size: 0.95rem; }
.see-all { color: var(--primary); font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.see-all:hover { text-decoration: underline; }

/* ── Hero ── */
.hero {
  min-height: 92vh; display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-2) 55%, var(--dark-3) 100%);
}
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(129,84,52,0.18) 0%, transparent 65%); }
body.lang-fr .hero-bg { background: radial-gradient(ellipse at 70% 50%, rgba(129,84,52,0.18) 0%, transparent 65%); }
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1; padding: 60px 24px; max-width: 1200px; margin: 0 auto;
}
.hero-tag {
  display: inline-block; background: rgba(129,84,52,0.2); color: var(--light-sand);
  border: 1px solid rgba(209,183,159,0.3); border-radius: 50px;
  padding: 6px 18px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--cream-beige); line-height: 1.15; margin-bottom: 20px; }
.hero-title em { color: var(--light-sand); font-style: normal; }
.hero-subtitle { color: rgba(251,241,233,0.75); font-size: 1.05rem; margin-bottom: 36px; max-width: 440px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
body:not(.lang-fr) .hero-cta { flex-direction: row-reverse; justify-content: flex-end; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-img-main {
  width: 340px; height: 340px; object-fit: cover; border-radius: 50%;
  border: 4px solid rgba(209,183,159,0.3);
  box-shadow: 0 20px 60px rgba(40,38,37,0.4);
  animation: float 5s ease-in-out infinite;
}
.hero-logo-badge {
  position: absolute; bottom: 20px; right: 20px;
  background: rgba(251,241,233,0.12); backdrop-filter: blur(12px);
  border: 1px solid rgba(209,183,159,0.25); border-radius: var(--radius-lg);
  padding: 12px 20px; color: var(--cream-beige); font-size: 0.85rem; font-weight: 600;
}
body.lang-fr .hero-logo-badge { left: 20px; right: auto; }
.floating { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(251,241,233,0.4); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--light-sand), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── Categories ── */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; padding: 32px; cursor: pointer; transition: var(--transition); }
.cat-sandal { background: linear-gradient(135deg, var(--light-sand) 0%, var(--soft-brown) 100%); }
.cat-clog { background: linear-gradient(135deg, var(--dark-3) 0%, var(--charcoal) 100%); }
.cat-overlay { position: absolute; inset: 0; background: rgba(40,38,37,0.3); transition: var(--transition); }
.cat-card:hover .cat-overlay { background: rgba(40,38,37,0.15); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-bg-img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; transition: transform 0.5s ease; }
.cat-card:hover .cat-bg-img { transform: scale(1.05); }
.cat-icon { position: absolute; top: 28px; left: 28px; font-size: 3rem; opacity: 0.6; transition: var(--transition); }
body.lang-fr .cat-icon { left: auto; right: 28px; }
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-8deg); opacity: 1; }
.cat-info { position: relative; z-index: 1; color: white; }
.cat-info h3 { font-size: 1.8rem; color: white; margin-bottom: 4px; }
.cat-info p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 12px; }
.cat-link { font-weight: 700; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 2px; transition: var(--transition); }
.cat-card:hover .cat-link { border-bottom-color: white; }

/* ── Products Grid & Card ── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 16px rgba(40,38,37,0.06); transition: var(--transition); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card-img-wrap { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.product-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card-img { transform: scale(1.06); }
.product-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.product-badge { position: absolute; top: 12px; right: 12px; background: rgba(40,38,37,0.75); backdrop-filter: blur(6px); color: var(--cream-beige); font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
body.lang-fr .product-badge { right: auto; left: 12px; }
.product-badge-featured { position: absolute; top: 12px; left: 12px; background: var(--primary); color: white; font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
body.lang-fr .product-badge-featured { left: auto; right: 12px; }
.product-card-body { padding: 20px; }
.product-name { font-size: 1.05rem; margin-bottom: 4px; }
.product-name a:hover { color: var(--primary); }
.product-material { font-size: 0.8rem; color: var(--text-light); margin-bottom: 14px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; }
body.lang-fr .product-card-footer { flex-direction: row; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); font-family: 'Playfair Display', serif; }
.btn-add-cart { display: flex; align-items: center; gap: 6px; background: var(--primary); color: white; border: none; border-radius: 50px; padding: 9px 18px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn-add-cart:hover { background: var(--primary-dk); transform: scale(1.04); }

/* ── Brand Logo in views ── */
.brand-logo { height: 48px; width: auto; }
.logo-text-brand { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--dark); }

/* ── Features / Why Us ── */
.why-us { background: linear-gradient(135deg, var(--charcoal) 0%, var(--dark-2) 100%); }
.why-us .section-header h2 { color: var(--cream-beige); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: rgba(251,241,233,0.05); border: 1px solid rgba(209,183,159,0.15); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: var(--transition); }
.feature-card:hover { background: rgba(129,84,52,0.1); border-color: rgba(209,183,159,0.3); transform: translateY(-4px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { color: var(--cream-beige); font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: rgba(251,241,233,0.6); font-size: 0.88rem; }

/* ── CTA Banner ── */
.cta-banner { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-lt) 50%, var(--dark-brown) 100%); padding: 80px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 2.2rem; color: white; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1rem; }

/* ── Filter Bar ── */
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 32px; background: var(--white); padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.filter-input, .filter-select { padding: 10px 16px; border: 1.5px solid var(--bg-3); border-radius: 50px; font-size: 0.88rem; outline: none; transition: var(--transition); background: var(--bg); color: var(--dark); }
.filter-input:focus, .filter-select:focus { border-color: var(--primary); background: var(--white); }
.filter-input { flex: 1; min-width: 180px; }
.filter-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.filter-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: white; font-size: 0.82rem; padding: 4px 14px; border-radius: 50px; }
.filter-tag a { color: white; font-weight: 700; }
.results-count { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 36px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-inline { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: rgba(251,241,233,0.6); margin-top: 8px; }
.breadcrumb-inline a { color: rgba(251,241,233,0.8); }
.breadcrumb-inline a:hover { color: var(--light-sand); }

/* ── Product Detail ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-detail-img-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); }
.product-detail-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail-placeholder { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 8rem; background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.detail-badge-featured { position: absolute; top: 16px; left: 16px; background: var(--primary); color: white; font-size: 0.8rem; font-weight: 700; padding: 6px 16px; border-radius: 50px; }
body.lang-fr .detail-badge-featured { left: auto; right: 16px; }
.detail-category { display: inline-block; background: var(--bg-2); color: var(--text-light); border-radius: 50px; padding: 4px 14px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.detail-title { font-size: 2.4rem; margin-bottom: 12px; }
.detail-price { font-size: 2rem; font-family: 'Playfair Display', serif; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.detail-desc { color: var(--text-light); line-height: 1.8; margin-bottom: 24px; }
.detail-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; padding: 20px; background: var(--bg-2); border-radius: var(--radius); }
.meta-row { display: flex; gap: 12px; font-size: 0.9rem; justify-content: space-between; }
.meta-label { color: var(--text-light); font-weight: 500; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.qty-group { margin-bottom: 20px; }
.qty-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--bg-3); border-radius: 50px; overflow: hidden; width: fit-content; }
.qty-btn { background: var(--bg-2); border: none; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; transition: var(--transition); }
.qty-btn:hover { background: var(--primary); color: white; }
.qty-input { width: 60px; border: none; text-align: center; font-size: 1rem; font-weight: 700; padding: 8px 0; outline: none; background: var(--white); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.detail-perks { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bg-2); }
.perk { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-light); }
.related-section { margin-top: 80px; }
.related-section h2 { margin-bottom: 32px; }
.out-of-stock-msg { color: var(--red); font-weight: 600; margin-top: 16px; }

/* ── Cart ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.cart-item { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 2px 8px rgba(40,38,37,0.05); margin-bottom: 16px; }
.cart-item-img { width: 82px; height: 82px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 1rem; margin-bottom: 4px; }
.cart-item-cat { font-size: 0.8rem; color: var(--text-light); }
.cart-item-price { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.cart-item-qty { flex-shrink: 0; }
.qty-form .qty-control { border-radius: var(--radius); }
.cart-item-subtotal { font-size: 1.05rem; font-weight: 700; color: var(--primary); min-width: 70px; text-align: center; }
.btn-remove { background: none; border: none; cursor: pointer; color: var(--text-light); padding: 6px; transition: var(--transition); border-radius: 6px; }
.btn-remove:hover { color: var(--red); background: #FDF0EE; }
.cart-footer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.cart-summary { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.cart-summary h3 { font-size: 1.3rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--bg-2); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 0.95rem; }
.summary-total { font-size: 1.1rem; border-top: 1px solid var(--bg-2); padding-top: 16px; margin-top: 8px; }
.free-shipping-hint { font-size: 0.82rem; color: var(--text-light); text-align: center; margin: 12px 0; }
.secure-badge { text-align: center; font-size: 0.78rem; color: var(--text-light); margin-top: 14px; }

/* ── Checkout ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.checkout-fields { display: flex; flex-direction: column; gap: 28px; }
.form-section { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.form-section h3 { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; margin-bottom: 24px; }
.step-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; font-size: 0.85rem; font-weight: 700; font-family: 'Inter', sans-serif; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--bg-3); border-radius: var(--radius);
  font-size: 0.9rem; outline: none; transition: var(--transition); background: var(--bg); color: var(--dark);
  text-align: right; direction: rtl;
}
body.lang-fr .form-group input, body.lang-fr .form-group select, body.lang-fr .form-group textarea { text-align: left; direction: ltr; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--white); }
.input-error { border-color: var(--red) !important; }
.error-msg { color: var(--red); font-size: 0.8rem; }
.payment-option { border: 1.5px solid var(--bg-3); border-radius: var(--radius-lg); padding: 16px; }
.payment-option.selected { border-color: var(--primary); background: rgba(129,84,52,0.04); }
.payment-radio label { display: flex; align-items: center; gap: 16px; cursor: pointer; }
.payment-icon { font-size: 1.8rem; }
.payment-radio label strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.payment-radio label p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
.payment-radio input { accent-color: var(--primary); }
.checkout-summary { position: sticky; top: 90px; }
.summary-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.summary-card h3 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--bg-2); }
.summary-item { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; gap: 12px; }
.summary-item-info { display: flex; flex-direction: column; }
.summary-item-name { font-size: 0.9rem; font-weight: 600; }
.summary-item-qty { font-size: 0.8rem; color: var(--text-light); }
.summary-item-price { font-size: 0.9rem; font-weight: 700; color: var(--primary); white-space: nowrap; }
.summary-divider { border: none; border-top: 1px solid var(--bg-2); margin: 12px 0; }
.checkout-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 12px; line-height: 1.6; }

/* ── Order Confirmation ── */
.confirmation-section { min-height: 80vh; display: flex; align-items: center; }
.confirmation-card { max-width: 600px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 50px 40px; box-shadow: var(--shadow-md); text-align: center; }
.confirmation-icon { font-size: 4rem; margin-bottom: 20px; animation: bounce 0.6s ease; }
@keyframes bounce { 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }
.confirmation-card h1 { font-size: 2rem; margin-bottom: 8px; }
.confirmation-sub { color: var(--text-light); margin-bottom: 24px; }
.order-number-badge { display: inline-block; background: var(--bg-2); border: 1.5px solid var(--primary); color: var(--primary); font-weight: 700; font-size: 1.1rem; padding: 10px 28px; border-radius: 50px; margin-bottom: 32px; font-family: monospace; }
.confirmation-details { text-align: right; background: var(--bg); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
body.lang-fr .confirmation-details { text-align: left; }
.confirm-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid var(--bg-2); }
.confirm-row:last-child { border-bottom: none; }
.confirm-row span:first-child { color: var(--text-light); flex-shrink: 0; }
.confirm-items { text-align: right; margin-bottom: 24px; }
body.lang-fr .confirm-items { text-align: left; }
.confirm-items h3 { margin-bottom: 16px; font-size: 1.1rem; }
.confirm-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bg-2); font-size: 0.9rem; }
.confirm-item-info { display: flex; flex-direction: column; }
.confirm-item-qty { font-size: 0.8rem; color: var(--text-light); }
.confirm-total { display: flex; justify-content: space-between; padding-top: 12px; font-size: 1rem; }
.confirmation-note { font-size: 0.85rem; color: var(--text-light); margin-bottom: 28px; line-height: 1.6; }
.confirmation-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Status Pills ── */
.status-pill { display: inline-block; padding: 4px 14px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; text-transform: capitalize; }
.status-pending   { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-shipped   { background: #EDE9FE; color: #5B21B6; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* ── Footer ── */
.footer { background: var(--charcoal); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand-logo { height: 52px; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(0.8); }
.footer-brand p { color: rgba(251,241,233,0.5); font-size: 0.9rem; line-height: 1.7; }
.footer-links h4 { color: var(--cream-beige); font-size: 1rem; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(251,241,233,0.5); font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--light-sand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 20px 24px; text-align: center; }
.footer-bottom p { color: rgba(251,241,233,0.3); font-size: 0.82rem; }

/* ── Empty State & Pagination ── */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon { font-size: 4rem; margin-bottom: 20px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-light); margin-bottom: 28px; }
.pagination-wrap { margin-top: 40px; }
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination-btn { padding: 8px 16px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; transition: var(--transition); background: var(--white); color: var(--dark); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.pagination-btn:hover { background: var(--primary); color: white; }
.pagination-btn.active { background: var(--primary); color: white; }
.pagination-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-img-main { width: 260px; height: 260px; }
  .cat-grid, .product-detail-grid, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  body:not(.lang-fr) .hero-cta { justify-content: center; }
  .hero-logo-badge { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px; gap: 16px; box-shadow: var(--shadow-md); border-top: 1px solid var(--bg-2); z-index: 999; direction: rtl; text-align: right; }
  body.lang-fr .nav-links { direction: ltr; text-align: left; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
}

/* ── Cart Drawer & Overlay ── */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.5); z-index: 999;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer {
    position: fixed; top: 0; right: -420px; width: 100%; max-width: 420px;
    height: 100vh; background: var(--bg); z-index: 1000;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1); display: flex; flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-ar .cart-drawer { right: auto; left: -420px; box-shadow: 4px 0 24px rgba(0,0,0,0.1); }
.cart-drawer.open { transform: translateX(-420px); }
.lang-ar .cart-drawer.open { transform: translateX(420px); }
.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px; border-bottom: 1px solid var(--border);
}
.cart-header h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--text); }
.close-cart { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); transition: var(--transition); display: flex; }
.close-cart:hover { color: var(--primary); transform: scale(1.1); }
.cart-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.cart-items-container { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: flex; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-details { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.cart-item-meta { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.cart-item-price { font-weight: 700; color: var(--primary); margin-top: 4px; }
.cart-item-remove { background: none; border: none; color: #ef4444; font-size: 0.8rem; cursor: pointer; text-decoration: underline; margin-top: auto; padding: 0; text-align: left; }
.lang-ar .cart-item-remove { text-align: right; }
.cart-drawer-form { background: rgba(129,84,52,0.03); padding: 20px; border-radius: var(--radius); border: 1px solid rgba(129,84,52,0.1); }
.cart-drawer-form h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--primary-dk); font-weight: 600; }
.cart-footer { padding: 24px; border-top: 1px solid var(--border); background: var(--bg); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 1.25rem; font-weight: 700; }
.empty-cart-msg { text-align: center; color: var(--muted); padding: 40px 0; font-style: italic; }

@media (max-width: 480px) {
    .cart-drawer { max-width: 100%; right: -100%; }
    .lang-ar .cart-drawer { left: -100%; }
    .cart-drawer.open { transform: translateX(-100%); }
    .lang-ar .cart-drawer.open { transform: translateX(100%); }
}

/* Nav Cart Icon Badge */
.nav-cart-btn { background: none; border: none; color: var(--text); cursor: pointer; padding: 8px; position: relative; display: flex; transition: var(--transition); }
.nav-cart-btn:hover { color: var(--primary); }
.scrolled .nav-cart-btn { color: #fff; }
.cart-badge { position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 0.65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lang-ar .cart-badge { right: auto; left: 0; }

/* ── Minimalist Redesign Updates ── */
.min-hero { position: relative; height: 85vh; min-height: 500px; display: flex; align-items: center; justify-content: center; background: var(--bg-2); overflow: hidden; padding-top: 80px; }
.min-hero-layout { display: flex; max-width: 1400px; width: 100%; margin: 0 auto; height: 100%; position: relative; z-index: 2; padding: 0 5%; align-items: center; }
.min-hero-text { flex: 1; z-index: 3; }
.min-hero-img-wrap { flex: 1; height: 80%; display: flex; justify-content: center; align-items: center; }
.min-hero-img-wrap img { height: 100%; max-height: 600px; width: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15)); }
.min-hero-title { font-family: 'Playfair Display', serif; font-size: 5rem; line-height: 1.1; font-weight: 400; color: var(--text); margin-bottom: 24px; letter-spacing: -1px; }
.lang-ar .min-hero-title { letter-spacing: 0; }
.min-hero-title em { font-style: italic; color: var(--primary); }
.min-hero-desc { font-size: 1.1rem; line-height: 1.6; color: var(--muted); max-width: 450px; margin-bottom: 40px; }
@media(max-width: 900px) { .min-hero-layout { flex-direction: column; text-align: center; justify-content: center; } .min-hero-img-wrap { display: none; } .min-hero-desc { margin: 0 auto 40px; } .min-hero-title { font-size: 3rem; } }

.min-collections { display: flex; width: 100%; height: 60vh; min-height: 500px; }
.min-col { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; text-decoration: none; overflow: hidden; color: white; }
.min-col-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.6s ease; }
.min-col::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.35); z-index: 2; transition: background 0.4s ease; }
.min-col:hover .min-col-bg { transform: scale(1.05); }
.min-col:hover::after { background: rgba(0,0,0,0.5); }
.min-col-content { position: relative; z-index: 3; }
.min-col h2 { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 400; margin-bottom: 16px; letter-spacing: 1px; }
.min-col span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; border-bottom: 1px solid white; padding-bottom: 4px; }
@media(max-width: 900px) { .min-collections { flex-direction: column; height: 100vh; } }

.section-min-header { text-align: center; margin-bottom: 60px; }
.section-min-header h2 { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 400; color: var(--text); }
.section-min-header p { color: var(--muted); margin-top: 12px; }

.min-features-band { background: var(--bg-2); padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.min-features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.min-feat-icon { width: 32px; height: 32px; margin: 0 auto 16px; color: var(--text); opacity: 0.8; }
.min-feat-title { font-weight: 600; font-size: 1rem; color: var(--primary-dk); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.min-feat-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
@media(max-width: 768px) { .min-features-grid { grid-template-columns: 1fr 1fr; } }
