/*
Theme Name: AbdouMahmoud
Theme URI: https://abdoumahmoud.ma
Author: AbdouMahmoud Store
Author URI: https://abdoumahmoud.ma
Description: قالب متجر أواني منزلية مغربي — هوية بصرية مستوحاة من الزليج والطين الفاسي — متجاوب 100% — مُحسَّن للتحويل والمبيعات عبر WooCommerce
Version: 3.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: abdoumahmoud
Tags: e-commerce, rtl-language, custom-logo, full-width-template, woocommerce, terracotta, zellige, moroccan-craft
WC requires at least: 7.0
WC tested up to: 8.5
*/

/* =============================================
   ABDOUMAHMOUD THEME — MAIN STYLESHEET
   هوية بصرية: طين فاسي + زليج أزرق — بدل الأسود/الذهبي التقليدي
   ============================================= */

:root {
  /* طين محروق — الأساس الغامق (بدل الأسود البحت) */
  --noir:       #211C17;
  --noir-soft:  #2A241D;
  --noir-mid:   #332B22;
  --noir-card:  #2D2620;
  /* تيراكوتا فاسية — اللون المُوقِّع بدل الذهبي */
  --or:         #BD6332;
  --or-light:   #DC8C58;
  --or-pale:    #F3DCC6;
  --or-dim:     rgba(189,99,50,0.15);
  /* أزرق الزليج — لون ثانوي للتمييز واللمسات */
  --bleu:       #155E5A;
  --bleu-light: #2A8A82;
  --bleu-dim:   rgba(21,94,90,0.12);
  /* جير/جص — أبيض دافئ بدل الأبيض البارد */
  --blanc:      #FAF5EB;
  --gris:       #8A7F70;
  --gris-light: #D9CEBC;
  --danger:     #B33B2C;
  --success:    #2E7D5B;
  --radius-sm:  2px;
  --radius:     4px;
  --radius-lg:  8px;
  --shadow-clay: 0 8px 40px rgba(189,99,50,0.18);
  --shadow-dark: 0 12px 48px rgba(33,28,23,0.4);
  --ease:       cubic-bezier(0.25,0.46,0.45,0.94);
  --transition: 0.4s var(--ease);
  --font-display: 'El Messiri', 'Tajawal', Georgia, serif;
  --font-body:    'Tajawal', 'Noto Sans Arabic', sans-serif;
}

/* ── الزخرفة الموقِّعة: شريط زليج هندسي (SVG مضمّن) ──
   يُستخدم كفاصل بين الأقسام الكبرى فقط — ليس زخرفة متكررة في كل مكان */
.am-zellige-divider {
  height: 14px;
  width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='14' viewBox='0 0 56 14'%3E%3Cg fill='none' stroke='%23BD6332' stroke-width='1.4'%3E%3Cpath d='M0 7 L7 0 L14 7 L7 14 Z'/%3E%3Cpath d='M14 7 L21 0 L28 7 L21 14 Z' stroke='%23155E5A'/%3E%3Cpath d='M28 7 L35 0 L42 7 L35 14 Z'/%3E%3Cpath d='M42 7 L49 0 L56 7 L49 14 Z' stroke='%23155E5A'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.85;
}
.am-zellige-divider.on-dark { opacity: 0.6; }

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--blanc);
  color: var(--noir);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
/* French LTR */
body.lang-fr {
  direction: ltr;
  text-align: left;
}
/* Arabic RTL (default) */
body.lang-ar {
  direction: rtl;
  text-align: right;
}
body.dark-page { background: var(--noir); color: var(--blanc); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; }
input, textarea, select { font-family: var(--font-body); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--noir); }
::-webkit-scrollbar-thumb { background: var(--or); border-radius: 2px; }
::selection { background: var(--or); color: var(--noir); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
}
.display-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.05;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--or);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--or); }
.section-title.on-dark { color: var(--blanc); }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header p { font-size: 15px; color: var(--gris); margin-top: 12px; max-width: 500px; margin-inline: auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}
.btn-clay {
  background: var(--or);
  color: var(--noir);
}
.btn-clay:hover {
  background: var(--or-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-clay);
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--blanc);
}
.btn-outline:hover { border-color: var(--or); color: var(--or); }
.btn-outline-dark {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--noir);
}
.btn-outline-dark:hover { border-color: var(--or); color: var(--or); }
.btn-full { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* ── ANNOUNCEMENT BAR ── */
.am-announce {
  background: var(--or);
  color: var(--noir);
  text-align: center;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  z-index: 100;
}
.am-announce::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
  animation: am-shimmer 3s infinite;
}
@keyframes am-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.am-announce a { color: var(--noir); font-weight: 700; text-decoration: underline; }

/* ── HEADER ── */
.am-header {
  background: var(--noir);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s;
}
.am-header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.am-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Logo */
.am-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.am-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.3));
  transition: filter 0.3s;
}
.am-logo img:hover {
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.6));
}
.am-logo-text {
  font-family: var(--font-display);
  color: var(--blanc);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 3px;
  margin-right: 10px;
}
.am-logo-text span { color: var(--or); }

/* Main Nav */
.am-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.am-nav a {
  color: var(--gris-light);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.8px;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
  white-space: nowrap;
}
.am-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width 0.3s var(--ease);
}
.am-nav a:hover,
.am-nav a.current-menu-item { color: var(--or); }
.am-nav a:hover::after,
.am-nav a.current-menu-item::after { width: 100%; }

/* Header Actions */
.am-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.am-search-btn, .am-wishlist-btn {
  background: none;
  color: var(--gris-light);
  font-size: 18px;
  padding: 6px;
  transition: color 0.3s;
  border: none;
  cursor: pointer;
}
.am-search-btn:hover, .am-wishlist-btn:hover { color: var(--or); }
.am-cart-btn {
  background: var(--or);
  color: var(--noir);
  border: none;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.am-cart-btn:hover { background: var(--or-light); }
.am-cart-count {
  background: var(--noir);
  color: var(--or);
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.am-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanc);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ── MOBILE DRAWER ── */
.am-mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--noir);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(110%);
  transition: transform 0.45s var(--ease);
}
.am-mobile-drawer.open { transform: translateX(0); }
.am-drawer-close {
  position: absolute;
  top: 20px; left: 20px;
  background: none;
  border: none;
  color: var(--or);
  font-size: 28px;
  cursor: pointer;
}
.am-mobile-drawer a {
  font-family: var(--font-display);
  color: var(--blanc);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.am-mobile-drawer a:hover { color: var(--or); }
.am-drawer-logo {
  position: absolute;
  top: 16px; right: 20px;
}
.am-drawer-logo img { height: 44px; filter: drop-shadow(0 0 12px rgba(201,168,76,0.4)); }

/* ── HERO ── */
.am-hero {
  background: var(--noir);
  min-height: calc(100vh - 32px); /* 32px = WordPress admin bar */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 0;
}
.logged-in .am-hero {
  min-height: calc(100vh - 32px);
}
body:not(.logged-in) .am-hero {
  min-height: 92vh;
}
.am-hero-particles {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(201,168,76,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 85% 20%, rgba(201,168,76,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(201,168,76,0.03) 0%, transparent 60%);
}
.am-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
.am-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  width: 100%;
}
.am-hero-content { animation: am-fadeUp 0.9s ease both; }
@keyframes am-fadeUp {
  from { opacity:0; transform: translateY(32px); }
  to   { opacity:1; transform: translateY(0); }
}
.am-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 40px;
  padding: 7px 16px;
  color: var(--or);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}
.am-hero-badge::before {
  content:'';
  width:6px; height:6px;
  background: var(--or);
  border-radius: 50%;
  animation: am-pulse 2s infinite;
}
@keyframes am-pulse { 0%,100%{opacity:1} 50%{opacity:0.2} }
.am-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 78px);
  font-weight: 300;
  color: var(--blanc);
  line-height: 1.08;
  margin-bottom: 20px;
}
.am-hero h1 em { font-style: italic; color: var(--or); display: block; }
.am-hero-desc {
  color: var(--gris);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}
.am-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.am-hero-visual { animation: am-fadeUp 0.9s 0.2s ease both; }

/* Hero product card */
.am-hero-card {
  background: linear-gradient(135deg, #1c1c1c 0%, #111 100%);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-hero-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  width: 100%;
}
.am-hero-card-inner img {
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(201,168,76,0.25));
  transition: transform 0.6s var(--ease);
}
.am-hero-card:hover .am-hero-card-inner img { transform: scale(1.05) translateY(-8px); }
.am-hero-card-label {
  font-family: var(--font-display);
  color: var(--gris);
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 300;
}
.am-hero-badge-top {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--or);
  color: var(--noir);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 2px;
}
.am-hero-price-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(8,8,8,0.9);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--blanc);
  font-size: 13px;
}
.am-hero-price-tag strong { color: var(--or); font-size: 22px; display: block; margin-top: 2px; }
.am-hero-float {
  position: absolute;
  top: 12px; right: 12px;
  width: 60px; height: 60px;
  background: var(--noir);
  border: 2px solid var(--or);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--or);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* ── HERO SLIDER (بانرات متحركة بدل الهيرو الثابت) ── */
.am-hero-slider-section {
  background: var(--noir);
  padding: 20px 0;
  min-height: auto;
  display: block;
  overflow: visible;
}
.am-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0d0d0d;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.am-slider-track {
  position: relative;
  width: 100%;
  /* الارتفاع يتبع أعرض/أطول صورة ضمن حدود معقولة لتفادي فراغ كبير أو قص النص */
  height: clamp(260px, 46vw, 560px);
}
.am-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease;
  text-decoration: none;
  color: inherit;
}
.am-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.am-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* عندما لا يوجد عنوان مخصص (البانر يحتوي نصّه الخاص) — زر صغير ثابت أسفل السلايد */
.am-slide-cta {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--or);
  color: var(--noir);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 26px;
  border-radius: 40px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: var(--transition);
  white-space: nowrap;
}
.am-slide:hover .am-slide-cta {
  background: var(--or-light);
  transform: translateX(-50%) translateY(-3px);
}
/* عندما يوجد عنوان/وصف — نعرض طبقة تدرّج نصية فوق الصورة */
.am-slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(8,8,8,0.15) 0%, rgba(8,8,8,0.75) 100%);
}
.am-slide-overlay h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 4vw, 42px);
  color: var(--blanc);
  max-width: 700px;
  line-height: 1.25;
}
.am-slide-overlay p {
  color: var(--gris-light);
  font-size: 14px;
  line-height: 1.7;
  max-width: 480px;
}
.am-slide-overlay .btn { pointer-events: none; }

/* أسهم التنقل */
.am-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(8,8,8,0.55);
  color: var(--blanc);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.am-slider-arrow:hover { background: var(--or); color: var(--noir); }
.am-slider-prev { right: 16px; }
.am-slider-next { left: 16px; }

/* نقاط التنقل */
.am-slider-dots {
  position: absolute;
  bottom: 14px;
  right: 50%;
  transform: translateX(50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}
.am-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.am-slider-dot.is-active {
  background: var(--or);
  width: 22px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .am-hero-slider-section { padding: 12px 0 !important; }
  .am-slider { border-radius: var(--radius); }
  .am-slider-track { height: clamp(220px, 68vw, 420px); }
  .am-slider-arrow { width: 34px; height: 34px; font-size: 18px; }
  .am-slider-prev { right: 8px; }
  .am-slider-next { left: 8px; }
  .am-slide-overlay { padding: 20px; gap: 10px; }
  .am-slide-overlay p { display: none; } /* توفير مساحة على الموبايل */
  .am-slide-cta { bottom: 12px; font-size: 12px; padding: 8px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .am-slide { transition: none; }
}

/* ── TRUST BAR ── */
.am-trust {
  background: var(--noir-soft);
  border-top: 1px solid rgba(201,168,76,0.1);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  padding: 20px 0;
}
.am-trust-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.am-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gris-light);
  font-size: 13px;
}
.am-trust-icon { font-size: 20px; color: var(--or); flex-shrink: 0; }

/* ── PRODUCT CARD ── */
.am-product-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.am-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-color: rgba(201,168,76,0.25);
}
.am-product-thumb {
  aspect-ratio: 1;
  background: #f5f5f3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.am-product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.am-product-card:hover .am-product-thumb img { transform: scale(1.07); }
.am-product-thumb .am-placeholder { font-size: 72px; }
.am-product-badges {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.am-badge {
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: 2px;
  display: inline-block;
}
.am-badge-hot   { background: var(--danger); color: #fff; }
.am-badge-new   { background: var(--bleu); color: var(--blanc); }
.am-badge-sale  { background: var(--or); color: var(--blanc); }
.am-badge-promo { background: #8e44ad; color: #fff; }
.am-product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s;
}
.am-product-card:hover .am-product-overlay { opacity: 1; }
.am-quick-buy {
  background: var(--or);
  color: var(--noir);
  border: none;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--font-body);
  transform: translateY(10px);
  transition: transform 0.3s;
}
.am-product-card:hover .am-quick-buy { transform: translateY(0); }
/* Mobile: always show add-to-cart below product info */
.am-product-card .am-mobile-atc {
  display: none;
}
@media (hover: none), (max-width: 768px) {
  .am-product-overlay { display: none !important; }
  .am-product-card .am-mobile-atc {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 12px;
    padding: 10px;
    background: var(--or);
    color: var(--noir);
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: center;
    min-height: 44px;
  }
}
.am-product-info { padding: 16px; }
.am-product-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--noir);
  margin-bottom: 3px;
  line-height: 1.3;
}
.am-product-cat { font-size: 11px; color: var(--gris); letter-spacing: 0.5px; margin-bottom: 10px; }
.am-product-foot { display: flex; align-items: center; justify-content: space-between; }
.am-product-price { font-size: 17px; font-weight: 700; color: var(--noir); }
.am-product-price span { font-size: 12px; font-weight: 400; color: var(--gris); }
.am-product-old { font-size: 13px; color: var(--gris); text-decoration: line-through; }
.am-product-stars { color: var(--or); font-size: 12px; letter-spacing: 1px; }

/* ── GRID ── */
.am-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.am-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ── PACKS ── */
.am-pack-card {
  background: var(--noir-card);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.am-pack-card::before {
  content:'';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.am-pack-card:hover { transform: translateY(-5px); border-color: var(--or); }
.am-pack-card:hover::before { opacity: 1; }
.am-pack-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e1e1e 0%, #161616 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  gap: 12px;
  position: relative;
}
.am-pack-img img { object-fit: cover; width: 100%; height: 100%; }
.am-pack-qty {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--or);
  color: var(--noir);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
}
.am-pack-body { padding: 22px; }
.am-pack-name {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--blanc);
  margin-bottom: 6px;
  display: block;
  text-decoration: none;
}
.am-pack-img { text-decoration: none; color: inherit; }
.am-pack-desc { font-size: 13px; color: var(--gris); margin-bottom: 18px; line-height: 1.6; }
.am-pack-pricing { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.am-pack-price { font-size: 26px; font-weight: 700; color: var(--or); }
.am-pack-old { font-size: 13px; color: var(--gris); text-decoration: line-through; }
.am-pack-saving {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--or);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 700;
}

/* ── OFFER / COUNTDOWN ── */
.am-offer-section {
  background: var(--noir);
  border-top: 1px solid rgba(201,168,76,0.08);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  position: relative;
  overflow: hidden;
}
.am-offer-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.am-offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.am-countdown { display: flex; gap: 12px; margin: 24px 0; }
.am-cd-item {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  min-width: 76px;
}
.am-cd-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--or);
  display: block;
  line-height: 1;
}
.am-cd-lbl { font-size: 10px; color: var(--gris); margin-top: 5px; letter-spacing: 1px; }
.am-stock-wrap { margin-bottom: 28px; }
.am-stock-txt {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gris-light);
  margin-bottom: 8px;
}
.am-stock-txt strong { color: var(--or); }
.am-stock-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; }
.am-stock-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--or), var(--or-light));
  border-radius: 2px;
  width: 73%;
  animation: am-fill 2s ease 0.5s both;
}
@keyframes am-fill { from{width:0} to{width:73%} }
.am-offer-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.am-offer-product {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  position: relative;
  overflow: hidden;
}
.am-offer-product img { max-width: 80%; max-height: 80%; object-fit: contain; }
.am-offer-spin {
  position: absolute;
  top: 12px; right: 12px;
  width: 72px; height: 72px;
  background: var(--danger);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  border: 3px solid var(--blanc);
  animation: am-rot 10s linear infinite;
  line-height: 1.3;
}
@keyframes am-rot { to{transform:rotate(360deg)} }
.am-offer-price {
  position: absolute;
  bottom: 16px; right: 16px;
  background: var(--or);
  color: var(--noir);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 20px;
}
.am-offer-price del { font-size: 13px; font-weight: 400; opacity: 0.7; }

/* ── REVIEWS ── */
.am-review-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.am-review-card:hover {
  border-color: rgba(201,168,76,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.am-review-stars { color: var(--or); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.am-review-text {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}
.am-review-footer { display: flex; align-items: center; gap: 12px; }
.am-review-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--or), var(--or-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--noir);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.am-review-name { font-weight: 700; font-size: 14px; }
.am-review-loc { font-size: 12px; color: var(--gris); }
.am-review-verified { font-size: 11px; color: var(--success); font-weight: 600; margin-top: 10px; }

/* ── STATS ── */
.am-stats { background: var(--noir); padding: 56px 0; }
.am-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.am-stat {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(201,168,76,0.08);
}
.am-stat:first-child { border-right: none; border-left: 1px solid rgba(201,168,76,0.08); }
.am-stat-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  color: var(--or);
  display: block;
  line-height: 1;
}
.am-stat-lbl { font-size: 12px; color: var(--gris); margin-top: 8px; letter-spacing: 1px; }

/* ── NEWSLETTER ── */
.am-newsletter { background: var(--or); padding: 56px 0; text-align: center; }
.am-newsletter h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  color: var(--noir);
  margin-bottom: 8px;
}
.am-newsletter p { color: rgba(0,0,0,0.65); font-size: 15px; margin-bottom: 28px; }
.am-nl-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.am-nl-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(0,0,0,0.2);
  background: transparent;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
  direction: rtl;
}
.am-nl-input:focus { border-color: var(--noir); }
.am-nl-input::placeholder { color: rgba(0,0,0,0.45); }

/* ── FOOTER ── */
.am-footer {
  background: var(--noir);
  border-top: 1px solid rgba(201,168,76,0.08);
  padding: 64px 0 24px;
}
.am-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.am-footer-brand {}
.am-footer-logo { margin-bottom: 16px; }
.am-footer-logo img { height: 52px; filter: drop-shadow(0 0 10px rgba(201,168,76,0.3)); }
.am-footer-desc { font-size: 13px; color: var(--gris); line-height: 1.7; max-width: 240px; margin-bottom: 20px; }
.am-socials { display: flex; gap: 10px; }
.am-social {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gris);
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}
.am-social:hover { border-color: var(--or); color: var(--or); }
.am-footer-col h4 {
  color: var(--or);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-family: var(--font-body);
}
.am-footer-col ul li { margin-bottom: 10px; }
.am-footer-col ul li a { color: var(--gris); font-size: 13px; transition: color 0.3s; }
.am-footer-col ul li a:hover { color: var(--or); }
.am-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.am-footer-bottom p { font-size: 12px; color: var(--gris); }
.am-payment { display: flex; gap: 8px; }
.am-payment-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--gris-light);
}

/* ── WA FLOAT ── */
.am-wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.am-wa-label {
  background: var(--noir);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--blanc);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.am-wa-btn {
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  text-decoration: none;
  font-size: 24px;
  animation: am-float 3s ease-in-out infinite;
  transition: var(--transition);
}
.am-wa-btn:hover { transform: scale(1.12); animation: none; }
@keyframes am-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }

/* ── WOOCOMMERCE OVERRIDES ── */
.woocommerce-page { direction: rtl; }
.woocommerce ul.products li.product { text-align: right; }
.woocommerce ul.products li.product .button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
  background: var(--or) !important;
  color: var(--noir) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  letter-spacing: 0.5px !important;
  transition: var(--transition) !important;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
  background: var(--or-light) !important;
  color: var(--noir) !important;
}
.woocommerce ul.products li.product .price { color: var(--noir) !important; font-weight: 700 !important; }
.woocommerce ul.products li.product .onsale {
  background: var(--or) !important;
  color: var(--noir) !important;
  border-radius: 2px !important;
}
.woocommerce form .form-row label { color: var(--noir); font-weight: 600; font-size: 13px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select {
  border: 1px solid #ddd !important;
  border-radius: var(--radius) !important;
  padding: 12px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  transition: border-color 0.3s !important;
  direction: rtl !important;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--or) !important;
  outline: none !important;
}
#add_payment_method table.cart td.actions .coupon .input-text,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce-checkout table.cart td.actions .coupon .input-text {
  border: 1px solid #ddd !important;
}
.woocommerce-cart h1,
.woocommerce-checkout h1,
.woocommerce-account h1 {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
  color: var(--noir) !important;
}
.woocommerce .woocommerce-breadcrumb { color: var(--gris); font-size: 13px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--or); }
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--noir) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
}
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--or) !important;
  color: var(--noir) !important;
  font-weight: 700 !important;
}
.woocommerce-message { border-top-color: var(--or) !important; }
.woocommerce-message a.button { background: var(--or) !important; color: var(--noir) !important; }
.star-rating span::before { color: var(--or) !important; }
.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  background: var(--or) !important;
  color: var(--noir) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 18px 32px !important;
  border-radius: var(--radius-sm) !important;
}

/* ── PAGE / SINGLE PRODUCT ── */
.am-page-hero {
  background: var(--noir);
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.am-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  color: var(--blanc);
  font-weight: 300;
}
.am-page-hero h1 span { color: var(--or); }
.am-breadcrumb { color: var(--gris); font-size: 12px; margin-top: 10px; }
.am-breadcrumb a { color: var(--or); }

/* ── TOAST ── */
.am-toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--noir);
  color: var(--blanc);
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--or);
  font-size: 14px;
  opacity: 0;
  transition: all 0.4s;
  z-index: 99999;
  white-space: nowrap;
  box-shadow: var(--shadow-dark);
}
.am-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── SEARCH OVERLAY ── */
.am-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,8,0.95);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.am-search-overlay.open { opacity: 1; visibility: visible; }
.am-search-overlay input {
  background: none;
  border: none;
  border-bottom: 2px solid var(--or);
  color: var(--blanc);
  font-size: clamp(24px, 4vw, 48px);
  font-family: var(--font-display);
  font-weight: 300;
  text-align: center;
  padding: 16px 32px;
  outline: none;
  width: 80%;
  max-width: 640px;
  direction: rtl;
}
.am-search-overlay input::placeholder { color: rgba(255,255,255,0.25); }
.am-search-close {
  position: absolute;
  top: 24px; left: 24px;
  background: none;
  border: none;
  color: var(--or);
  font-size: 30px;
  cursor: pointer;
}
.am-search-hint { color: var(--gris); font-size: 13px; margin-top: 20px; letter-spacing: 1px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .am-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .am-footer-grid { grid-template-columns: 1fr 1fr; }
  .am-nav { gap: 20px; }
}

@media (max-width: 860px) {
  .am-nav { display: none; }
  .am-menu-toggle { display: block; }
  .am-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; }
  .am-hero-visual { order: -1; max-width: 320px; margin: 0 auto; }
  .am-hero h1 { font-size: 42px; }
  .am-offer-grid { grid-template-columns: 1fr; gap: 40px; }
  .am-offer-visual { order: -1; max-width: 260px; margin: 0 auto; }
  .am-grid-3 { grid-template-columns: 1fr 1fr; }
  .am-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .am-stat:nth-child(1),
  .am-stat:nth-child(2) { border-bottom: 1px solid rgba(201,168,76,0.08); }
}

@media (max-width: 540px) {
  .am-grid-3 { grid-template-columns: 1fr; }
  .am-grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .am-hero-actions { flex-direction: column; }
  .am-hero-actions .btn { width: 100%; }
  .am-trust-inner { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 8px; gap: 24px; }
  .am-countdown { gap: 8px; }
  .am-cd-item { min-width: 58px; padding: 10px 10px; }
  .am-cd-num { font-size: 28px; }
  .am-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .am-footer-bottom { flex-direction: column; text-align: center; }
  .am-nl-form { flex-direction: column; }
  .am-nl-form .btn { width: 100%; }
  .section-pad { padding: 56px 0; }
  /* Mobile: single product */
  .am-single-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .am-single-actions { flex-direction: column !important; }
  .am-add-cart-btn { width: 100% !important; }
  /* Mobile: header */
  .am-logo img { width: 130px !important; height: auto !important; }
  .container { padding: 0 16px; }
  /* Mobile: WC cart/checkout */
  .woocommerce-checkout .woocommerce-billing-fields,
  .woocommerce-checkout .woocommerce-shipping-fields { padding: 16px; }
  /* Mobile: product card text */
  .am-product-name { font-size: 13px; }
  .am-product-card { border-radius: 4px; }
  /* Mobile: announce bar */
  .am-announce span { font-size: 11px; }
  /* Mobile: page hero */
  .am-page-hero h1 { font-size: clamp(22px, 6vw, 36px); }
}

/* ── EXTRA SMALL (iPhone SE, Galaxy A series) ── */
@media (max-width: 380px) {
  .am-grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .am-hero h1 { font-size: 32px; }
  .am-cd-num { font-size: 22px; }
  .am-cd-item { min-width: 44px; padding: 8px 6px; }
}

/* ── TOUCH DEVICE OPTIMIZATIONS ── */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets on touch screens */
  .btn { min-height: 48px; }
  .am-qty-btn { width: 48px; height: 52px; }
  .am-qty-input { height: 52px; }
  .am-tab-btn { padding: 14px 20px; }
  .am-thumb { width: 80px; height: 80px; }
  /* Remove hover-only overlays that don't work on touch */
  .am-product-overlay { display: none; }
  /* Show add-to-cart button always on mobile */
  .am-product-card .am-quick-buy { display: block; }
}


/* =============================================
   ABDOUMAHMOUD THEME v2.0 — ADDITIONS
   ============================================= */

/* ── HERO STATS ROW ── */
.am-hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.am-hero-stat { text-align: center; }
.am-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--or);
  font-weight: 400;
}
.am-hero-stat span {
  font-size: 11px;
  color: var(--gris);
  letter-spacing: 1px;
}
.am-hero-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(201,168,76,0.2);
}

/* ── TRUST BAR IMPROVED ── */
.am-trust-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.am-trust-item > div {
  display: flex;
  flex-direction: column;
}
.am-trust-item strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--blanc);
}
.am-trust-item small {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ── WHY US SECTION ── */
.am-why-us { background: var(--blanc); }
.am-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.am-why-item {
  background: #fff;
  border: 1px solid #f0ede6;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.am-why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-clay);
  border-color: var(--or-pale);
}
.am-why-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}
.am-why-item h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--noir);
  margin-bottom: 10px;
}
.am-why-item p {
  font-size: 13px;
  color: var(--gris);
  line-height: 1.7;
}

/* ── FAQ SECTION ── */
.am-faq-section { background: var(--blanc); }
.am-faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.am-faq-item {
  border: 1px solid #eee;
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.3s;
}
.am-faq-item:hover { border-color: var(--or-pale); }
.am-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--noir);
  cursor: pointer;
  text-align: right;
  gap: 12px;
  transition: color 0.3s;
}
.am-faq-q:hover { color: var(--or); }
.am-faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--or-dim);
  color: var(--or);
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.am-faq-a {
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  padding: 0 24px;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

/* ── FINAL CTA ── */
.am-final-cta {
  background: var(--noir);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.am-final-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%);
}
.am-final-cta-inner {
  position: relative;
  z-index: 1;
}

/* ── CHECKOUT TRUST BADGES ── */
.am-checkout-trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px;
  background: #f8f7f4;
  border-radius: 4px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

/* ── PRODUCT PAGE: SHIPPING INFO ── */
.am-shipping-info {
  background: #f8f7f4;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 13px;
}
.am-shipping-info h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--noir);
}
.am-shipping-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  color: #555;
}
.am-shipping-row:last-child { border-bottom: none; }

/* ── RETURN POLICY BOX ── */
.am-return-box {
  border: 1px solid var(--or-pale);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
}
.am-return-box .icon { font-size: 20px; flex-shrink: 0; }

/* ── SECTION HEADER P ── */
.section-header p {
  font-size: 14px;
  color: var(--gris);
  margin-top: 10px;
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ── RESPONSIVE: WHY GRID ── */
@media (max-width: 992px) {
  .am-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
  .am-why-grid { grid-template-columns: 1fr; gap: 16px; }
  .am-hero-stats { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .am-faq-q { font-size: 14px; }
  .am-final-cta { padding: 56px 0; }
}

/* ── ANNOUNCE CLOSE BUTTON ── */
.am-announce-close {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--noir);
  font-size: 16px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 4px;
}
.am-announce-close:hover { opacity: 1; }

/* ── DRAWER OVERLAY ── */
.am-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.am-mobile-drawer.open ~ .am-drawer-overlay {
  opacity: 1;
  visibility: visible;
}

/* ── DRAWER NAV LINKS ── */
.am-mobile-drawer > a {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  color: var(--blanc);
  letter-spacing: 2px;
  transition: color 0.3s;
  text-align: center;
}
.am-mobile-drawer > a:hover,
.am-mobile-drawer > a.current-menu-item { color: var(--or); }
.am-drawer-logo { position: absolute; top: 18px; right: 20px; }
.am-drawer-logo img { height: 44px; width: auto; }

/* ── WOO WRAPPER ── */
.am-woo-wrapper { padding-top: 0; }

/* ── WOO PAGE HERO ── */
.am-woo-page .am-page-hero { margin-bottom: 0; }

/* ── CHECKOUT PAGE SPECIFIC ── */
.woocommerce-checkout h3 {
  font-family: var(--font-display) !important;
  font-size: 22px !important;
  font-weight: 300 !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #eee !important;
  color: var(--noir) !important;
}
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 24px;
}
.woocommerce #payment {
  background: #fff !important;
  border-radius: 6px !important;
  border: 1px solid #eee !important;
}
.woocommerce #payment div.payment_box { background: #f8f7f4 !important; }
.woocommerce #payment ul.payment_methods li label { font-size: 14px !important; }

/* ── COD highlight ── */
.payment_method_cod label::before {
  color: var(--or) !important;
}

/* ── ORDER RECEIVED ── */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--success);
  text-align: center;
  margin-bottom: 24px;
}

/* ── MY ACCOUNT ── */
.woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--noir) !important;
  border-radius: 6px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  color: var(--gris-light) !important;
  padding: 12px 20px !important;
  display: block !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  transition: color 0.3s !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--or) !important;
}

/* ── PRODUCT CATEGORY SUBCATS ── */
.am-subcats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.am-subcat-card {
  background: #f8f7f4;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 14px 20px;
  text-align: center;
  transition: all 0.3s;
  flex: 1;
  min-width: 130px;
}
.am-subcat-card:hover {
  border-color: var(--or);
  background: var(--or-pale);
  transform: translateY(-3px);
}
.am-subcat-card .icon { font-size: 32px; margin-bottom: 8px; display: block; }
.am-subcat-card span { font-size: 13px; font-weight: 600; color: var(--noir); }

/* ── SEO PAGES (static pages for SEO categories) ── */
.am-seo-page-intro {
  background: var(--blanc);
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.am-seo-page-intro h1 { font-family: var(--font-display); font-size: clamp(28px,4vw,48px); font-weight: 300; }
.am-seo-page-intro p  { font-size: 15px; color: var(--gris); max-width: 540px; margin: 14px auto 0; line-height: 1.7; }

/* ── LOADING SPINNER ── */
.am-spinner {
  width: 24px; height: 24px;
  border: 2px solid rgba(201,168,76,0.2);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: am-spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes am-spin { to { transform: rotate(360deg); } }

/* ── PRINT STYLES ── */
@media print {
  .am-header, .am-announce, .am-wa, .am-newsletter,
  .am-footer, .am-search-overlay, .am-mobile-drawer { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .am-product-price { color: #000 !important; }
}

/* ── HIGH CONTRAST / ACCESSIBILITY ── */
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── RTL fixes for WC ── */
.woocommerce-page .woocommerce { direction: rtl; text-align: right; }
.woocommerce-page form.checkout { direction: rtl; }
.woocommerce-page .woocommerce-message,
.woocommerce-page .woocommerce-error,
.woocommerce-page .woocommerce-info { direction: rtl; text-align: right; }

/* ── EMPTY STATE (no products / empty cart / no search results) ── */
.am-no-products { text-align:center; padding:80px 20px; display:flex; flex-direction:column; align-items:center; gap:16px; color:var(--gris); }
.am-no-products h3 { font-family:var(--font-display); font-size:24px; font-weight:400; color:var(--noir); }

/* ═══════════════════════════════════════════════════════════════
   MISSING CLASSES — added to fix unstyled elements
   ═══════════════════════════════════════════════════════════════ */

/* ── SHOP PAGE LAYOUT ── */
.am-shop-main { flex: 1; min-width: 0; }

/* ── SORT BAR ── */
.am-sort-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── SINGLE PRODUCT LAYOUT ── */
.am-single-gallery { display: flex; flex-direction: column; gap: 12px; }
.am-single-info    { display: flex; flex-direction: column; gap: 16px; }

/* ── PRODUCT TABS (description / reviews / shipping) ── */
.am-tabs         { border-top: 1px solid rgba(201,168,76,0.12); padding-top: 32px; }
.am-tab-content  { padding: 24px 0; line-height: 1.8; color: var(--gris); }

/* ── CART TABLE CELLS ── */
.am-cart-items              { width: 100%; }
.am-cart-qty                { text-align: center; }
.am-cart-remove             { text-align: center; }
.am-cart-remove .remove     { color: var(--danger); font-size: 18px; text-decoration: none; }
.am-cart-remove .remove:hover { opacity: .7; }

/* ── SIDEBAR WIDGETS ── */
.am-widget       { margin-bottom: 32px; }
.am-widget-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--or);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,168,76,0.18);
}

/* ── FOOTER WIDGET TITLES ── */
.am-footer-col-title {
  color: var(--or);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-family: var(--font-body);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   BILINGUAL SUPPORT (AR + FR) — v3.1.0
   ═══════════════════════════════════════════════════════════════ */

/* ── French (LTR) global overrides ── */
body.lang-fr .am-header-inner { flex-direction: row-reverse; }
body.lang-fr .am-header-actions { flex-direction: row-reverse; }
body.lang-fr .am-nav { flex-direction: row-reverse; }
body.lang-fr .am-announce { text-align: center; }
body.lang-fr .am-announce-close { right: 16px; left: auto; }
body.lang-fr .am-mobile-drawer { left: 0; right: auto; transform: translateX(-110%); }
body.lang-fr .am-mobile-drawer.open { transform: translateX(0); }
body.lang-fr .am-drawer-logo { left: 20px; right: auto; }
body.lang-fr .am-product-badges { left: auto; right: 12px; }
body.lang-fr .am-product-foot { flex-direction: row-reverse; }
body.lang-fr .am-footer-bottom { flex-direction: row-reverse; }
body.lang-fr .am-socials { flex-direction: row; }
body.lang-fr .am-single-grid { direction: ltr; }
body.lang-fr .am-hero-inner { direction: ltr; }
body.lang-fr .am-hero-inner .am-hero-content { text-align: left; }
body.lang-fr .am-hero-actions { justify-content: flex-start; }
body.lang-fr .section-header { text-align: left; }
body.lang-fr .am-trust-inner { flex-direction: row; justify-content: center; }
body.lang-fr .am-product-info { text-align: left; }
body.lang-fr .woocommerce-page .woocommerce,
body.lang-fr .woocommerce-page form.checkout { direction: ltr; text-align: left; }
body.lang-fr .am-qty-input { border-right: 1px solid #ddd; border-left: 1px solid #ddd; }
body.lang-fr .am-breadcrumb { direction: ltr; text-align: left; }

/* French font fallback for Latin characters */
body.lang-fr {
  --font-display: 'El Messiri', Georgia, 'Times New Roman', serif;
  --font-body: 'Tajawal', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Performance: contain repaints ── */
.am-header        { will-change: transform; }
.am-product-card  { contain: layout style; }
.am-mobile-drawer { overflow: hidden; }
.am-hero          { contain: layout; }

/* ── Safe area support (iPhone notch/Dynamic Island) ── */
.am-header { padding-top: env(safe-area-inset-top, 0); }
.am-footer { padding-bottom: calc(env(safe-area-inset-bottom, 0) + 16px); }
.am-wa     { bottom: calc(env(safe-area-inset-bottom, 0) + 24px); }

/* ── Accessibility: focus visible ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

/* ── Reduce motion for users who prefer it ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Dark mode support ── */
@media (prefers-color-scheme: dark) {
  .am-why-item { background: var(--noir-card); border-color: rgba(255,255,255,0.05); }
  .am-subcat-card { background: var(--noir-card); border-color: rgba(255,255,255,0.05); }
}

/* ── Image optimization ── */
img { content-visibility: auto; }
.am-product-thumb img,
.am-main-img img { object-fit: cover; }

/* ── WooCommerce French notices ── */
body.lang-fr .woocommerce-message::before { content: '✓ '; }
body.lang-fr .woocommerce-error::before { content: '✗ '; }

/* ── Mobile: sticky add-to-cart on single product page ── */
@media (max-width: 768px) {
  .am-single-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--noir);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
    display: flex;
    gap: 10px;
    z-index: 9980;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.3);
  }
  .am-single-sticky-bar .btn { flex: 1; font-size: 14px; min-height: 48px; }
  /* Push footer above sticky bar */
  .am-footer { margin-bottom: 80px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE COMPLETE FIX — v3.1.1
   يصلح جميع المشاكل البصرية على الهاتف في كل الصفحات
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. OVERFLOW FIX — منع أي عنصر من الخروج عن الشاشة ── */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
* {
  max-width: 100%;
}
img, video, iframe, embed, object {
  max-width: 100% !important;
  height: auto;
}

/* ── 2. HEADER — تثبيت الهيدر وتحسينه للموبايل ── */
.am-header {
  position: sticky !important;
  top: 0;
  z-index: 9990;
  width: 100%;
  left: 0;
  right: 0;
}
.am-header-inner {
  padding: 0 4px;
}
/* منع الهيدر من الخروج عن الشاشة */
.am-header .container {
  overflow: hidden;
}

/* ── 3. PAGE HERO — إصلاح العنوان مكرر ── */
/* إخفاء h1 الأول في صفحة المنتج لأنه يتكرر */
.single-product .am-page-hero h1:first-of-type {
  display: none;
}
/* تصغير padding الـ hero على الموبايل */
@media (max-width: 768px) {
  .am-page-hero {
    padding: 28px 0 20px;
  }
  .am-page-hero h1 {
    font-size: clamp(18px, 5vw, 28px) !important;
    padding: 0 16px;
    word-break: break-word;
  }
  .am-breadcrumb {
    padding: 0 16px;
    font-size: 11px;
    line-height: 1.5;
    word-break: break-word;
  }
}

/* ── 4. SINGLE PRODUCT PAGE ── */
@media (max-width: 768px) {
  /* إصلاح الـ grid ليصبح عمود واحد */
  .am-single-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* الصورة الرئيسية */
  .am-main-img {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 4px;
    overflow: hidden;
  }
  .am-main-img img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  /* أزرار الكمية والسلة */
  .am-single-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .am-qty-wrap, .am-add-cart-btn, .am-wa-order-btn {
    width: 100% !important;
  }
  .am-qty-wrap {
    justify-content: center;
  }
  /* الـ tabs */
  .am-tab-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .am-tab-btn {
    white-space: nowrap;
    font-size: 12px !important;
    padding: 10px 14px !important;
  }
  /* Trust badges */
  .am-single-trust {
    flex-direction: column;
    gap: 8px;
  }
  .am-single-trust .am-trust-item {
    min-width: unset;
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
  }
  /* اسم المنتج */
  .am-single-name {
    font-size: clamp(22px, 5vw, 32px) !important;
  }
  /* السعر */
  .am-single-price {
    font-size: 28px !important;
  }
  /* Container padding */
  .single-product .container {
    padding: 0 12px !important;
  }
  /* Thumb strip */
  .am-thumb-strip {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
  .am-thumb {
    flex-shrink: 0;
    width: 60px !important;
    height: 60px !important;
  }
}

/* ── 5. SHOP / ARCHIVE PAGE ── */
@media (max-width: 768px) {
  /* Shop layout — عمود واحد على الهاتف */
  .am-shop-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* إخفاء السيدبار على الهاتف */
  .am-shop-sidebar {
    display: none;
  }
  /* شبكة المنتجات — عمودين */
  .am-products-grid,
  .am-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  /* pills التصنيفات */
  .am-cat-pills-bar {
    overflow-x: auto;
    padding: 10px 12px;
  }
  .am-cat-pills {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .am-cat-pill {
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 14px;
    flex-shrink: 0;
  }
  /* Shop header */
  .am-shop-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ── 6. HOME PAGE ── */
@media (max-width: 768px) {
  /* Hero section */
  .am-hero {
    min-height: auto !important;
    padding: 40px 0 !important;
  }
  .am-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 !important;
  }
  .am-hero-visual {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
  .am-hero h1 {
    font-size: clamp(28px, 7vw, 42px) !important;
    text-align: center;
  }
  .am-hero-desc {
    text-align: center;
    font-size: 14px;
  }
  .am-hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .am-hero-actions .btn {
    width: 100%;
    max-width: 300px;
  }
  .am-hero-badge {
    margin: 0 auto 16px;
  }
  /* Sections padding */
  .section-pad {
    padding: 40px 0 !important;
  }
  /* Grid 3 → 2 colones sur mobile */
  .am-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px;
  }
  /* Offer section */
  .am-offer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .am-offer-visual {
    order: -1;
    max-width: 240px;
    margin: 0 auto;
  }
  /* Countdown */
  .am-countdown {
    justify-content: center;
    gap: 8px;
  }
  .am-cd-item {
    min-width: 60px;
    padding: 10px 8px;
  }
  .am-cd-num {
    font-size: 26px;
  }
}

/* ── 7. BREADCRUMB — إصلاح الاتجاه ── */
.am-breadcrumb {
  direction: rtl;
  text-align: center;
  margin-top: 8px;
  line-height: 2;
}
/* لا تطبق RTL على الروابط الإنجليزية/الفرنسية */
.am-breadcrumb a,
.am-breadcrumb span {
  unicode-bidi: embed;
}

/* ── 8. FOOTER ── */
@media (max-width: 768px) {
  .am-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .am-footer-bottom {
    flex-direction: column !important;
    text-align: center;
    gap: 12px;
  }
  .am-nl-form {
    flex-direction: column;
    gap: 8px;
  }
  .am-nl-form input,
  .am-nl-form .btn {
    width: 100%;
  }
  .am-footer {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
  }
}

/* ── 9. CART & CHECKOUT ── */
@media (max-width: 768px) {
  .woocommerce-checkout .col2-set,
  .woocommerce-checkout .woocommerce-checkout-review-order {
    width: 100% !important;
    float: none !important;
  }
  .woocommerce table.shop_table {
    font-size: 13px;
  }
  .woocommerce table.shop_table .product-thumbnail {
    display: none;
  }
  .am-cart-table {
    overflow-x: auto;
  }
  /* إخفاء العمود الرابع في الـ cart على الهاتف */
  .shop_table .product-subtotal {
    display: none;
  }
}

/* ── 10. HEADER MOBILE — إصلاح شامل ── */
@media (max-width: 860px) {
  .am-nav { display: none !important; }
  .am-menu-toggle { display: flex !important; }
  .am-header-inner {
    height: 60px;
    gap: 8px;
  }
  .am-logo img {
    height: 42px !important;
    width: auto !important;
  }
  /* الـ Cart button — أصغر على الهاتف */
  .am-cart-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
  /* اخفاء نص "السلة" وإبقاء الأيقونة فقط */
  .am-cart-btn .am-cart-text {
    display: none;
  }
}

/* ── 11. DRAWER — إصلاح القائمة الجانبية ── */
.am-mobile-drawer {
  padding: 80px 24px 32px;
  overflow-y: auto;
  justify-content: flex-start;
  padding-top: 100px;
}
.am-mobile-drawer a {
  font-size: 24px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  width: 100%;
  text-align: center;
}
@media (max-width: 380px) {
  .am-mobile-drawer a {
    font-size: 20px;
  }
}

/* ── 12. WooCommerce overrides ── */
.woocommerce-page .woocommerce {
  max-width: 100%;
  overflow-x: hidden;
}
.woocommerce form .form-row {
  width: 100%;
  float: none;
  margin: 0 0 16px;
  box-sizing: border-box;
}
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
  width: calc(50% - 8px) !important;
  float: right !important;
}
.woocommerce form .form-row-first { margin-left: 16px !important; }
.woocommerce form .form-row-last  { margin-left: 0 !important; }
.woocommerce form .form-row-wide  { width: 100% !important; clear: both; }
.woocommerce form .form-row::after { content: ""; display: table; clear: both; }

.woocommerce form .form-row label {
  display: block;
  margin-bottom: 6px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-checkout .select2-container {
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}
.woocommerce-checkout .select2-container .select2-selection--single {
  height: 44px !important;
  padding: 6px 14px !important;
  border: 1px solid #ddd !important;
  border-radius: var(--radius) !important;
}
.woocommerce-checkout .select2-container .select2-selection__rendered {
  line-height: 32px !important;
  padding-right: 0 !important;
}
@media (max-width: 600px) {
  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }
}

/* ── 13. STICKY BAR — إصلاح الشريط الثابت أسفل الشاشة ── */
.am-single-sticky-bar {
  display: none; /* مخفي افتراضياً */
}
@media (max-width: 768px) {
  .am-single-sticky-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--noir);
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
    gap: 8px;
    z-index: 9980;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s, opacity 0.3s;
  }
  .am-single-sticky-bar .btn {
    flex: 1;
    font-size: 13px;
    min-height: 46px;
    padding: 10px;
  }
  /* مساحة للشريط الثابت */
  .single-product .am-footer,
  .single-product footer {
    padding-bottom: 80px !important;
  }
}

/* ── 14. IMAGES — منع الصورة من الخروج عن الشاشة ── */
.am-single-gallery,
.am-main-img,
.am-product-thumb {
  overflow: hidden;
  max-width: 100%;
}
.am-single-gallery img,
.am-main-img img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* ── 15. TEXT OVERFLOW FIX ── */
.am-product-name,
.am-pack-name,
.am-single-name,
h1, h2, h3 {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ── 16. TOUCH TARGETS — حجم مناسب للأصابع ── */
@media (max-width: 768px) {
  .btn,
  .am-cart-btn,
  .am-qty-btn,
  .am-cat-pill,
  .am-tab-btn {
    min-height: 44px;
  }
  /* إزالة hover على الهاتف */
  .am-product-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ── 17. SECTION SPACING على الهاتف ── */
@media (max-width: 480px) {
  .container {
    padding: 0 12px !important;
  }
  .am-hero .container {
    padding: 0 16px !important;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .section-title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .section-label {
    font-size: 10px;
    letter-spacing: 2px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   CRITICAL OVERFLOW FIX — v3.1.2
   سبب المشكلة: الـ drawer يستخدم translateX(110%) مما يخلق مساحة
   خارج الشاشة ويسمح بالتمرير الأفقي
   ═══════════════════════════════════════════════════════════════ */

/* الحل الجذري: منع أي overflow أفقي على كل العناصر الأساسية */
html {
  overflow-x: clip !important;
}
body {
  overflow-x: clip !important;
  position: relative;
}

/* Drawer: إخفاء كامل عند الإغلاق بدون إنشاء مساحة خارج الشاشة */
.am-mobile-drawer {
  visibility: hidden;
  overflow: hidden;
  transform: translateX(110%) !important;
}
.am-mobile-drawer.open {
  visibility: visible;
  transform: translateX(0) !important;
}

/* منع كل العناصر المثبتة (fixed/sticky) من إنشاء overflow */
.am-header,
.am-announce,
.am-wa,
.am-toast,
.am-search-overlay,
.am-single-sticky-bar {
  max-width: 100vw;
  overflow: hidden;
}

/* إصلاح الـ container على جميع العرضات */
.container {
  width: 100%;
  max-width: min(1200px, 100%);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* إصلاح الصورة في صفحة المنتج */
.am-single-gallery,
.am-main-img {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
}
.am-main-img img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover;
}

/* إصلاح الهيدر: يبقى داخل الشاشة دائماً */
.am-header {
  position: sticky !important;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
  z-index: 9990;
}

/* إصلاح شريط الإعلانات */
.am-announce {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
  overflow: hidden !important;
}

/* إصلاح كل الـ sections */
section,
.am-hero,
.am-trust,
.am-offer-section,
.am-footer {
  overflow-x: hidden;
  max-width: 100vw;
}

/* الـ grid لا يتجاوز عرض الشاشة */
.am-grid-4,
.am-grid-3,
.am-products-grid,
.am-shop-layout {
  max-width: 100%;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   DEFINITIVE OVERFLOW FIX — v3.1.3
   ═══════════════════════════════════════════════════════════════ */

/* أقوى قاعدة لمنع الـ overflow أفقياً */
html {
  overflow-x: hidden !important;
}
body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
}
#am-page-wrapper {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative !important;
}

/* Hero — إصلاح شامل على الموبايل */
@media (max-width: 860px) {
  .am-hero {
    padding: 32px 0 !important;
    min-height: unset !important;
  }
  .am-hero-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .am-hero-content {
    width: 100% !important;
    text-align: center;
  }
  .am-hero-visual {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
    order: -1;
  }
  .am-hero-card {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 3/4;
  }
  .am-hero h1 {
    font-size: clamp(26px, 7vw, 40px) !important;
  }
  .am-hero-actions {
    flex-direction: column !important;
    align-items: center !important;
  }
  .am-hero-actions .btn {
    width: 100% !important;
    max-width: 280px;
  }
  .am-hero-stats {
    justify-content: center;
  }
  /* Float badge — لا يخرج عن الكارد */
  .am-hero-float {
    width: 52px !important;
    height: 52px !important;
    font-size: 9px !important;
  }
  /* Price tag */
  .am-hero-price-tag {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* Container — ثابت دائماً داخل الشاشة */
.container {
  width: 100% !important;
  max-width: 1200px !important;
  padding-left: max(12px, env(safe-area-inset-left)) !important;
  padding-right: max(12px, env(safe-area-inset-right)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Header — ثابت في الأعلى */
.am-header,
.am-announce {
  width: 100% !important;
  max-width: 100vw !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
}

/* Drawer — يختفي كلياً بدون overflow */
.am-mobile-drawer:not(.open) {
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(110%) !important;
  overflow: hidden !important;
}
.am-mobile-drawer.open {
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(0) !important;
}

/* كل الـ sections لا تتجاوز العرض */
section,
.am-hero,
.am-trust,
.am-offer-section,
.am-stats,
.am-faq-section,
.am-final-cta,
.am-why-us,
.am-footer {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

/* الصور والميديا */
img, video, iframe, svg {
  max-width: 100% !important;
  height: auto;
}

/* Grids على الموبايل */
@media (max-width: 768px) {
  .am-grid-4,
  .am-grid-3,
  .am-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .am-offer-grid,
  .am-hero-inner {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }
  .am-offer-product {
    max-width: 240px !important;
    margin: 0 auto !important;
  }
  .am-offer-spin {
    width: 56px !important;
    height: 56px !important;
    font-size: 9px !important;
  }
  /* Pack cards */
  .am-grid-3 .am-pack-card {
    max-width: 100% !important;
  }
}


/* ── LANGUAGE SWITCHER ── */
.am-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--or);
  border-radius: 6px;
  color: var(--or);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.am-lang-btn:hover {
  background: var(--or);
  color: var(--noir);
}
@media (max-width: 380px) {
  .am-lang-btn { width: 30px; height: 30px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   GIVEAWAY SECTION — قسم المسابقة
   ═══════════════════════════════════════════════════════════════ */
.am-giveaway {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1208 50%, #0a0a0a 100%);
  padding: 80px 0;
  overflow: hidden;
  text-align: center;
}
.am-giveaway-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.am-giveaway-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}
.am-giveaway-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
  animation: am-bounce 2s ease-in-out infinite;
}
@keyframes am-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.am-giveaway-badge {
  display: inline-block;
  background: var(--or);
  color: var(--noir);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.am-giveaway-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 42px);
  color: var(--blanc);
  line-height: 1.2;
  margin-bottom: 16px;
}
.am-giveaway-title span {
  color: var(--or);
  font-size: 1.2em;
}
.am-giveaway-desc {
  color: var(--gris);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* العداد التنازلي */
.am-giveaway-countdown-label {
  color: var(--gris);
  font-size: 13px;
  margin-bottom: 12px;
}
.am-giveaway-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}
.am-gw-cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 64px;
}
.am-gw-cd-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--or);
  font-family: var(--font-display);
  line-height: 1;
}
.am-gw-cd-lbl {
  font-size: 10px;
  color: var(--gris);
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.am-gw-cd-sep {
  font-size: 28px;
  color: var(--or);
  font-weight: 700;
  margin-bottom: 16px;
}

/* خطوات المشاركة */
.am-giveaway-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  text-align: right;
}
.am-gw-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--blanc);
  font-size: 14px;
}
.am-gw-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--or);
  color: var(--noir);
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

/* نموذج التسجيل */
.am-gw-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 24px;
  text-align: right;
}
.am-gw-form-title {
  color: var(--or);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.am-gw-field {
  margin-bottom: 18px;
}
.am-gw-field label {
  display: block;
  color: var(--blanc);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}
.am-gw-field input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--blanc);
  font-size: 15px;
  font-family: var(--font-body);
  direction: rtl;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.am-gw-field input:focus {
  outline: none;
  border-color: var(--or);
  background: rgba(201,168,76,0.06);
}
.am-gw-field input::placeholder {
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
.am-gw-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  min-height: 52px;
  position: relative;
}
.am-gw-submit.loading {
  opacity: 0.7;
  pointer-events: none;
}
.am-gw-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
}

/* رسالة النجاح */
.am-gw-success {
  text-align: center;
  padding: 20px;
}
.am-gw-success-icon {
  font-size: 56px;
  margin-bottom: 16px;
  animation: am-bounce 1.5s ease-in-out infinite;
}
.am-gw-success h3 {
  color: var(--or);
  font-size: 24px;
  margin-bottom: 12px;
}
.am-gw-success p {
  color: var(--gris);
  font-size: 15px;
  line-height: 1.6;
}

/* ملاحظة */
.am-giveaway-note {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  margin-top: 16px;
}

/* موبايل */
@media (max-width: 480px) {
  .am-giveaway { padding: 56px 0; }
  .am-gw-cd-item { min-width: 52px; padding: 10px 10px; }
  .am-gw-cd-num  { font-size: 24px; }
  .am-gw-form-wrap { padding: 24px 16px; }
  .am-giveaway-icon { font-size: 48px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SLIDER — تثبيت الأسبقية فوق أنماط الهيرو القديمة (v3.2)
   ═══════════════════════════════════════════════════════════════ */
.am-hero.am-hero-slider-section {
  min-height: auto !important;
  padding: 20px 0 !important;
}
@media (max-width: 860px) {
  .am-hero.am-hero-slider-section {
    padding: 12px 0 !important;
  }
}
