/* ============================================
   POGUELANDIA — Dark Streetwear Theme
   RTL · Gold Accent · Cairo Font
   ============================================ */

:root {
  /* Luxury Palette */
  --cream:       #F8F3EC;
  --parchment:   #FDFAF6;
  --espresso:    #1C1108;
  --copper:      #A0521A;
  --copper-light:#C8782A;
  --stone:       #8C7460;
  
  --grad:        linear-gradient(135deg, #A0521A, #8C7460);

  --bg:          #FDFAF6;
  --bg-raised:   #F8F3EC;
  --bg-card:     #F8F3EC;
  --border:      rgba(160, 82, 26, .15);

  --text:        #1C1108;
  --text-muted:  #8C7460;

  --glow:        0 0 20px rgba(160, 82, 26, .15);
  --glow-lg:     0 0 40px rgba(160, 82, 26, .25);
  --shadow:      0 8px 30px rgba(28, 17, 8, .1);

  --ease:        cubic-bezier(.4,0,.2,1);

  --success: #27AE60;
  --error:   #E74C3C;
  --info:    #3498DB;
  
  /* Alias for backwards compatibility */
  --primary: #A0521A;
  --primary-light: #C8782A;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family:'Cairo', system-ui, sans-serif;
  background:var(--bg);
  color:var(--text);
  direction:rtl;
  overflow-x:hidden;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* ============================================
   ANIMATIONS — minimal set only
   ============================================ */

/* Announcement bar scroll — no pause on hover */
@keyframes marqueeRTL {
  from { transform:translateX(0); }
  to   { transform:translateX(50%); }
}

/* Spinner */
@keyframes spin { to { transform:rotate(360deg); } }

/* Skeleton loader */
@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* One-time card entrance */
@keyframes cardIn {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}

/* Hero float — ambient only */
@keyframes floatY {
  0%,100% { transform:translateY(0);    }
  50%      { transform:translateY(-8px); }
}

/* ============================================
   ANNOUNCEMENT BAR
   — animation-play-state is NEVER paused
   ============================================ */
.announce-bar {
  background:var(--grad);
  height:34px;
  overflow:hidden;
  display:flex;
  align-items:center;
  /* Prevent any child hover from pausing */
  pointer-events:none;
}

.announce-track {
  display:flex;
  gap:3rem;
  white-space:nowrap;
  width:max-content;
  /* infinite scroll, never stops */
  animation:marqueeRTL 28s linear infinite;
  /* Explicitly block pausing even if hover CSS sneaks in */
  animation-play-state:running !important;
}

.announce-track span {
  font-size:.7rem;
  font-weight:800;
  color:#FDFAF6;
  display:inline-flex;
  align-items:center;
  gap:.6rem;
}

.announce-track span i { font-size:.3rem; opacity:.6; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position:sticky; top:0; z-index:1000;
  background:rgba(12,12,12,.97);
  border-bottom:1px solid var(--border);
  transition:border-color .2s ease;
}

.header.scrolled {
  background:rgba(8,8,8,.99);
  border-bottom-color:rgba(160, 82, 26, .28);
}

.header-content {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:1rem 0;
}

.logo a { text-decoration:none; }

.logo h1 {
  background:var(--grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  font-size:1.8rem;
  font-weight:800;
  letter-spacing:2px;
  text-transform:uppercase;
}

.main-nav { display:flex; gap:.2rem; align-items:center; }

.main-nav a {
  text-decoration:none;
  color:var(--text-muted);
  font-weight:600;
  font-size:.82rem;
  padding:.55rem 1rem;
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:.4rem;
  transition:color .18s ease, background .18s ease;
}

.main-nav a:hover { background:rgba(160, 82, 26, .08); color:var(--copper-light); }

.main-nav a.active {
  background:rgba(160, 82, 26, .1);
  color:var(--copper);
  border:1px solid rgba(160, 82, 26, .28);
}

.menu-toggle {
  display:none;
  background:var(--grad);
  color:var(--bg);
  border:none;
  padding:.6rem .85rem;
  font-size:1.2rem;
  border-radius:8px;
  cursor:pointer;
}

.menu-overlay {
  display:none;
  position:fixed; inset:0;
  background:rgba(0,0,0,.8);
  z-index:999;
}

.menu-overlay.active { display:block; }

@media (max-width:768px) {
  .menu-toggle { display:block; }

  .main-nav {
    position:fixed;
    top:0; right:-100%;
    width:270px; height:100vh;
    background:var(--bg-raised);
    border-left:1px solid var(--border);
    flex-direction:column;
    gap:0;
    padding:76px 0 20px;
    overflow-y:auto;
    z-index:1000;
    transition:right .3s var(--ease);
  }

  .main-nav.active { right:0; }

  .main-nav a {
    padding:1.1rem 1.8rem;
    border-radius:0;
    border-bottom:1px solid var(--border);
    font-size:.88rem;
  }
}

/* ============================================
   HERO — split layout
   ============================================ */
.hero {
  background:var(--bg-raised);
  border-bottom:1px solid var(--border);
  position:relative;
  overflow:hidden;
  min-height:520px;
  display:flex;
  align-items:center;
}

/* Subtle grid lines */
.hero::before {
  content:'';
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(160, 82, 26, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 82, 26, .04) 1px, transparent 1px);
  background-size:48px 48px;
  pointer-events:none;
}

/* Gold glow blob — static, no animation */
.hero::after {
  content:'';
  position:absolute;
  width:500px; height:500px;
  background:radial-gradient(circle, rgba(160, 82, 26, .07) 0%, transparent 65%);
  top:-150px; left:-80px;
  pointer-events:none;
}

.hero-inner {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:center;
  padding:5rem 20px;
  position:relative;
  z-index:1;
}

.hero-eyebrow {
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  font-size:.72rem;
  font-weight:700;
  color:var(--copper);
  background:rgba(160, 82, 26, .08);
  border:1px solid rgba(160, 82, 26, .22);
  padding:.3rem .9rem;
  border-radius:20px;
  margin-bottom:1.3rem;
  letter-spacing:1px;
}

.hero-dot {
  width:6px; height:6px;
  background:var(--copper);
  border-radius:50%;
  display:inline-block;
}

.hero-title {
  font-size:clamp(2rem, 4vw, 3rem);
  font-weight:800;
  line-height:1.15;
  color:var(--text);
  margin-bottom:1.1rem;
}

.hero-title em {
  font-style:normal;
  background:var(--grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero-sub {
  font-size:.95rem;
  color:var(--text-muted);
  line-height:1.7;
  max-width:380px;
  margin-bottom:2rem;
}

.hero-actions {
  display:flex;
  gap:.85rem;
  flex-wrap:wrap;
  align-items:center;
}

/* ── Hero visual: floating stat cards ── */
.hero-visual {
  display:flex;
  flex-direction:column;
  gap:1rem;
  align-items:flex-start;
  padding-right:2rem;
  /* Non-interactive — purely decorative */
  pointer-events:none !important;
  user-select:none;
}

.hero-card-float {
  display:flex;
  align-items:center;
  gap:1rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:1rem 1.4rem;
  position:relative;
  overflow:hidden;
  width:100%;
  max-width:260px;
  pointer-events:none !important;
  will-change:transform;
  animation:floatY 5s ease-in-out infinite;
}

.hero-card-float--2 { align-self:center;    animation-duration:6.2s; animation-delay:-2.1s; }
.hero-card-float--3 { align-self:flex-end;  animation-duration:4.8s; animation-delay:-3.7s; }

.hero-card-glow {
  position:absolute; inset:0;
  background:radial-gradient(circle at 30% 50%, rgba(160, 82, 26, .06), transparent 70%);
  pointer-events:none;
}

.hero-icon { font-size:1.6rem; color:var(--copper); flex-shrink:0; }
.hero-stat { display:flex; flex-direction:column; }
.hero-stat-num  { font-size:1.3rem; font-weight:800; color:var(--text); line-height:1; }
.hero-stat-label { font-size:.7rem; color:var(--text-muted); margin-top:.18rem; }

/* Decorative lines */
.hero-line {
  position:absolute;
  background:linear-gradient(90deg, transparent, rgba(160, 82, 26, .15), transparent);
  height:1px; width:100%;
  pointer-events:none;
}
.hero-line--1 { top:35%; }
.hero-line--2 { bottom:25%; opacity:.5; }

/* ========== HERO MOBILE ADJUSTMENTS ========== */
@media (max-width:768px) {
  .hero-inner {
    grid-template-columns:1fr;
    gap:2rem;
    padding:3rem 20px;
    text-align:center;
  }
  .hero-eyebrow { margin-inline:auto; }
  .hero-sub { margin-inline:auto; }
  .hero-actions { justify-content:center; }
  
  /* Stack hero stats vertically, full width */
  .hero-visual {
    flex-direction:column;
    align-items:stretch;
    padding-right:0;
    gap:.75rem;
  }
  .hero-card-float {
    max-width:100%;          /* each card takes full width */
    padding:.75rem 1rem;
    animation:none;
    will-change:auto;
    justify-content:center;  /* center content horizontally */
  }
  /* Remove special handling for third card */
  .hero-card-float--3 {
    align-self:auto;
  }
  .hero-icon { font-size:1.3rem; }
  .hero-stat-num { font-size:1.1rem; }
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  background:var(--bg-card);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:.85rem 0;
}

.trust-items {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.trust-item {
  display:flex;
  align-items:center;
  gap:.55rem;
  padding:.5rem 1.5rem;
  font-size:.78rem;
  font-weight:600;
  color:var(--text-muted);
  white-space:nowrap;
}

.trust-item i { color:var(--copper); font-size:.85rem; }

.trust-sep { width:1px; height:24px; background:var(--border); }

@media (max-width:600px) {
  .trust-sep { display:none; }
  .trust-item { flex:1 1 45%; justify-content:center; padding:.5rem; font-size:.72rem; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  padding:.75rem 1.7rem;
  border-radius:8px;
  font-family:'Cairo',sans-serif;
  font-size:.85rem;
  font-weight:700;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:opacity .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn-primary { background:var(--grad); color:var(--bg); font-weight:800; }
.btn-primary:hover { opacity:.88; }

.btn-secondary {
  background:transparent;
  color:var(--copper);
  border:1.5px solid rgba(160, 82, 26, .4);
}
.btn-secondary:hover { background:rgba(160, 82, 26, .08); border-color:var(--copper); }

.btn-ghost {
  background:transparent;
  color:var(--text-muted);
  border:1px solid var(--border);
  font-size:.85rem;
}
.btn-ghost:hover { color:var(--copper); border-color:rgba(160, 82, 26, .4); }

.btn-lg { padding:.9rem 2rem; font-size:.95rem; }
.btn-sm { padding:.5rem 1.1rem; font-size:.78rem; }

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  text-align:center;
  font-size:1.5rem;
  font-weight:800;
  color:var(--text);
  margin-bottom:.35rem;
  letter-spacing:.5px;
}

.section-subtitle {
  text-align:center;
  color:var(--text-muted);
  font-size:.84rem;
  margin-bottom:2.2rem;
}

.section-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:2rem;
  gap:1rem;
}
.section-header .section-title   { margin-bottom:.2rem; text-align:right; }
.section-header .section-subtitle { text-align:right; margin-bottom:0; }

/* ============================================
   PRODUCT GRID & CARDS — Bowdrip-style
   Tall portrait image, minimal info below,
   "Buy Now" button slides up on hover
   ============================================ */
.products-section { padding:4rem 0; }

.product-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px,1fr));
  gap:1.1rem;
}

/* One-time entrance animation */
.product-grid .product-card {
  opacity:0;
  animation:cardIn .44s ease forwards;
}
.product-grid .product-card:nth-child(1)  { animation-delay:.05s; }
.product-grid .product-card:nth-child(2)  { animation-delay:.11s; }
.product-grid .product-card:nth-child(3)  { animation-delay:.17s; }
.product-grid .product-card:nth-child(4)  { animation-delay:.23s; }
.product-grid .product-card:nth-child(5)  { animation-delay:.29s; }
.product-grid .product-card:nth-child(6)  { animation-delay:.35s; }
.product-grid .product-card:nth-child(7)  { animation-delay:.39s; }
.product-grid .product-card:nth-child(8)  { animation-delay:.43s; }
.product-grid .product-card:nth-child(9)  { animation-delay:.47s; }
.product-grid .product-card:nth-child(10) { animation-delay:.50s; }
.product-grid .product-card:nth-child(11) { animation-delay:.52s; }
.product-grid .product-card:nth-child(12) { animation-delay:.54s; }
.product-grid .product-card:nth-child(n+13) { animation-delay:0s; }

/* ── Card shell ── */
.product-card {
  background:var(--bg-card);
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  position:relative;
  border:1px solid var(--border);
  transition:border-color .22s ease, box-shadow .22s ease;
}

.product-card:hover {
  border-color:rgba(160, 82, 26, .5);
  box-shadow:
    0 0 0 1px rgba(160, 82, 26, .15),
    0 8px 32px rgba(0,0,0,.55),
    0 2px 8px rgba(160, 82, 26, .08);
}

.product-card > a {
  text-decoration:none;
  color:inherit;
  flex:1;
  display:flex;
  flex-direction:column;
}

/* ── "Trending" badge — top-left, fire style ── */
.product-badge {
  position:absolute;
  top:10px;
  right:10px;        /* RTL: right = visual left */
  z-index:10;
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  background:rgba(20,20,20,.82);
  border:1px solid rgba(160, 82, 26, .35);
  color:var(--copper);
  font-size:.6rem;
  font-weight:800;
  padding:.22rem .65rem;
  border-radius:20px;
  backdrop-filter:blur(4px);
  letter-spacing:.4px;
}

.product-badge::before {
  content:'🔥';
  font-size:.65rem;
  line-height:1;
}

/* ── Image — tall portrait, full bleed ── */
.product-image {
  aspect-ratio:3/4;        /* portrait ratio like Bowdrip */
  background:var(--bg-raised);
  overflow:hidden;
  position:relative;
  flex-shrink:0;
}

.product-image img {
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}

.product-card:hover .product-image img { transform:scale(1.04); }

/* ── Overlay: "Buy Now" slides up from bottom ── */
.product-image-overlay {
  position:absolute;
  bottom:0; left:0; right:0;
  background:linear-gradient(to top,
    rgba(6,6,6,.9) 0%,
    rgba(6,6,6,.4) 55%,
    transparent 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  padding:1rem;
  gap:.4rem;
  /* Slide up from bottom — translateY instead of full opacity */
  transform:translateY(100%);
  opacity:0;
  transition:transform .28s ease, opacity .28s ease;
}

.product-card:hover .product-image-overlay {
  transform:translateY(0);
  opacity:1;
}

/* Hide redundant title/price in overlay — info strip has them */
.overlay-title  { display:none; }
.overlay-price  { display:none; }

.overlay-add-btn {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  width:100%;
  padding:.65rem 1rem;
  background:var(--grad);
  color:var(--bg);
  border:none;
  border-radius:8px;
  font-family:'Cairo',sans-serif;
  font-size:.78rem;
  font-weight:900;
  cursor:pointer;
  letter-spacing:.3px;
  transition:opacity .15s ease;
  white-space:nowrap;
}
.overlay-add-btn:hover { opacity:.88; }

/* ── Info strip — compact, just name + price ── */
.product-info {
  padding:.75rem .9rem .85rem;
  background:var(--bg-card);
  display:flex;
  flex-direction:column;
  gap:.2rem;
}

/* Hide meta row (sku/category) — not shown on Bowdrip-style */
.product-meta-row { display:none; }

/* Keep them available on products.php where layout differs */
.products-page .product-meta-row { display:flex; }

.product-code,
.product-category {
  display:inline-block;
  font-size:.57rem;
  font-weight:700;
  color:var(--copper);
  background:rgba(160, 82, 26, .07);
  border:1px solid rgba(160, 82, 26, .18);
  padding:.12rem .5rem;
  border-radius:3px;
}

.product-code i, .product-category i { margin-left:.22rem; }

.product-title {
  font-size:.88rem;
  font-weight:700;
  color:var(--text);
  line-height:1.3;
  margin:0;
  /* Single line truncation */
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.product-description {
  font-size:.67rem;
  color:var(--text-muted);
  line-height:1.35;
  margin-bottom:.15rem;
  display:none; /* hidden on card, shown on products page */
}

.product-price {
  font-size:1rem;
  font-weight:800;
  background:var(--grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  margin-top:.1rem;
}

.product-price .currency { font-size:.7rem; }

/* Empty state */
.empty-state { text-align:center; padding:3rem 0; }
.empty-state i { font-size:3rem; color:var(--text-muted); display:block; margin-bottom:1rem; }
.empty-state h3 { color:var(--text); margin-bottom:1rem; }

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
  padding:4rem 0;
  background:var(--bg-raised);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.categories-scroll {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(160px,1fr));
  gap:1.1rem;
}

@media (max-width:640px) {
  .categories-scroll {
    display:flex;
    overflow-x:auto;
    gap:.85rem;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    padding-bottom:4px;
  }
  .categories-scroll::-webkit-scrollbar { display:none; }
  .category-card { flex-shrink:0; width:140px; scroll-snap-align:start; }
}

.category-card {
  display:block;
  text-decoration:none;
  color:var(--text);
  background:var(--bg-card);
  border:1px solid var(--border);
  border-bottom:3px solid var(--copper);
  border-radius:10px;
  padding:1.1rem 1rem;
  text-align:center;
  transition:border-color .18s ease;
}

.category-card:hover { border-color:rgba(160, 82, 26, .5); }

.category-image {
  height:130px;
  overflow:hidden;
  border-radius:6px;
  background:var(--bg-raised);
  margin-bottom:.75rem;
}

.category-image img { width:100%; height:100%; object-fit:cover; display:block; }
.category-card h3 { font-size:.88rem; font-weight:700; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding:4.5rem 0;
  background:var(--bg-raised);
  border-top:1px solid var(--border);
}

.testimonials-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
  gap:1.6rem;
  margin-top:2.2rem;
}

.testimonial-card {
  background:var(--bg-card);
  border:1px solid var(--border);
  border-bottom:3px solid rgba(160, 82, 26, .3);
  border-radius:12px;
  padding:1.6rem;
}

.testimonial-stars {
  color:var(--copper);
  font-size:1rem;
  letter-spacing:2px;
  margin-bottom:.85rem;
}

.testimonial-text {
  font-size:.86rem;
  font-style:italic;
  color:var(--text);
  opacity:.88;
  line-height:1.8;
  margin-bottom:1.2rem;
}

.testimonial-author {
  display:flex;
  align-items:center;
  gap:.8rem;
  border-top:1px solid var(--border);
  padding-top:1.1rem;
}

.author-avatar {
  width:42px; height:42px;
  border-radius:50%;
  background:var(--grad);
  color:var(--bg);
  font-size:1.1rem;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.author-info h4 { font-size:.84rem; font-weight:700; color:var(--text); margin-bottom:.12rem; }
.author-info p  { font-size:.72rem; color:var(--text-muted); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background:var(--bg-raised);
  border-top:1px solid var(--border);
  padding:3rem 0 1.2rem;
  margin-top:4rem;
}

.footer-content {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
  gap:2rem;
  margin-bottom:2rem;
}

.footer-section h3 {
  background:var(--grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  font-size:.8rem;
  font-weight:800;
  letter-spacing:1.5px;
  margin-bottom:.9rem;
}

.footer-section p {
  font-size:.8rem;
  color:var(--text-muted);
  line-height:1.7;
  margin-bottom:.45rem;
}

.footer-section p i { color:var(--copper); margin-left:.35rem; }
.footer-section ul  { list-style:none; }
.footer-section ul li { margin-bottom:.55rem; }

.footer-section a {
  color:var(--text-muted);
  text-decoration:none;
  font-size:.8rem;
  display:flex; align-items:center; gap:.4rem;
  transition:color .18s ease;
}

.footer-section a:hover { color:var(--copper-light); }
.footer-section a i { color:var(--copper); font-size:.72rem; }

.footer-bottom {
  text-align:center;
  padding-top:1.4rem;
  border-top:1px solid var(--border);
  color:var(--text-muted);
  font-size:.76rem;
}

/* ============================================
   PRODUCT DETAIL (.pd-*) — improved gallery
   ============================================ */
.pd-page { padding:1.5rem 20px 5rem; }

.breadcrumb {
  display:flex; align-items:center; gap:.5rem;
  font-size:.78rem; color:var(--text-muted);
  margin-bottom:2rem; flex-wrap:wrap;
}
.breadcrumb a { color:var(--text-muted); text-decoration:none; transition:color .18s; }
.breadcrumb a:hover { color:var(--copper); }
.bc-sep { opacity:.4; }
.bc-current { color:var(--copper); font-weight:600; }

.pd-layout {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:3rem;
  align-items:start;
}

/* ===== معرض الصور (محسّن) ===== */
.pd-gallery-col { position:relative; }
.pd-gallery-sticky {
  position:sticky;
  top:100px;
  align-self:flex-start;
  display:flex;
  flex-direction:column;
  gap:1rem;
}

.pd-main-image {
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  background-color:var(--bg-card);
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 20px rgba(0,0,0,.4);
  user-select:none;
  transform:translateZ(0);
}

.pd-badge {
  position:absolute;
  top:14px;
  right:14px;
  background:var(--grad);
  color:var(--bg);
  font-size:.62rem;
  font-weight:800;
  padding:.22rem .7rem;
  border-radius:5px;
  letter-spacing:.5px;
  z-index:10;
  box-shadow:0 4px 8px rgba(0,0,0,0.1);
}

.pd-img {
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 0.28s ease-in-out;
  pointer-events:none;
}
.pd-img.is-active {
  opacity:1;
  pointer-events:auto;
}

/* أزرار التنقل (السابق/التالي) */
.pd-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(20,20,20,.8);
  border:1px solid rgba(160, 82, 26, .2);
  color:var(--copper);
  font-size:1rem;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:0.2s;
  z-index:10;
  opacity:0;
  pointer-events:none;
}
.pd-main-image:hover .pd-arrow {
  opacity:1;
  pointer-events:auto;
}
.pd-arrow:hover {
  background:var(--copper);
  color:var(--bg);
  transform:translateY(-50%) scale(1.1);
}
.pd-arrow-prev { right:16px; }
.pd-arrow-next { left:16px; }

/* النقاط (للموبايل) */
.pd-dots {
  position:absolute;
  bottom:16px;
  left:50%;
  transform:translateX(-50%);
  display:none;
  gap:8px;
  z-index:10;
}
.pd-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(245,237,216,.3);
  border:2px solid transparent;
  transition:0.2s;
  cursor:pointer;
}
.pd-dot.active {
  background:var(--copper);
  transform:scale(1.2);
  border-color:rgba(160, 82, 26, .5);
}

/* شريط التصغيرات */
.pd-thumbs {
  display:flex;
  gap:.6rem;
  margin-top:20px;
  overflow-x:auto;
  padding:8px 4px;
  scrollbar-width:thin;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.pd-thumbs::-webkit-scrollbar { display:none; }

.pd-thumb {
  flex:0 0 72px;
  height:72px;
  border-radius:9px;
  border:2px solid var(--border);
  overflow:hidden;
  cursor:pointer;
  padding:0;
  background:var(--bg-card);
  transition:border-color 0.18s ease;
  scroll-snap-align:start;
}
.pd-thumb.active {
  border-color:var(--copper);
}
.pd-thumb img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  pointer-events:none;
  filter:brightness(.82);
  transition:filter 0.2s ease;
}
.pd-thumb.active img,
.pd-thumb:hover img {
  filter:brightness(1);
}
@media (hover:hover) {
  .pd-thumb:hover { border-color:rgba(160, 82, 26, .5); }
}

/* ── Mobile gallery ── */
@media (max-width:768px) {
  /* Show full image — no cropping */
  .pd-main-image {
    aspect-ratio: 1/1;      /* keep square box */
    border-radius: 10px;
    background-color: var(--bg-card);
  }
  .pd-img {
    object-fit: contain;    /* scale down to fit, never crop */
  }

  /* Arrows always visible on touch */
  .pd-arrow {
    opacity: 1;
    pointer-events: auto;
    width: 36px;
    height: 36px;
    font-size: .85rem;
    transition: none;
  }

  /* Dots visible */
  .pd-dots { display: flex; }

  /* Thumbs */
  .pd-thumb      { flex-basis: 62px; height: 62px; }
  .pd-thumb:hover { border-color: var(--border); }
}

@media (max-width:640px) {
  .pd-gallery-sticky { position: static; }
  .pd-layout { gap: 2rem; }
  .pd-thumb  { flex-basis: 55px; height: 55px; }
  .pd-arrow  { width: 32px; height: 32px; font-size: .75rem; }
}

@media (max-width:480px) {
  .pd-thumb { flex-basis: 50px; height: 50px; }
}

/* ===== الجانب الأيمن (المعلومات والنموذج) ===== */
.pd-info-col { display:flex; flex-direction:column; gap:1.4rem; }

.pd-header { display:flex; flex-direction:column; gap:.55rem; }

.pd-meta { display:flex; gap:.55rem; flex-wrap:wrap; }

.pd-sku, .pd-cat {
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.62rem; font-weight:700;
  color:var(--copper);
  background:rgba(160, 82, 26, .07);
  border:1px solid rgba(160, 82, 26, .18);
  padding:.18rem .65rem; border-radius:4px; letter-spacing:.4px;
}

.pd-name { font-size:1.75rem; font-weight:800; color:var(--text); line-height:1.2; }

.pd-price-row { display:flex; align-items:baseline; gap:.4rem; }

.pd-price {
  font-size:2rem; font-weight:900;
  background:var(--grad);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.pd-currency { font-size:.85rem; font-weight:700; color:var(--copper); }

.pd-desc {
  background:var(--bg-raised);
  border-right:3px solid var(--copper);
  border-radius:0 10px 10px 0;
  padding:1.1rem 1.2rem;
}

.pd-desc-label {
  font-size:.72rem; font-weight:700; color:var(--copper);
  margin-bottom:.55rem; letter-spacing:.5px; text-transform:uppercase;
  display:flex; align-items:center; gap:.35rem;
}

.pd-desc p { font-size:.88rem; color:var(--text-muted); line-height:1.75; }

.pd-divider {
  display:flex; align-items:center; gap:1rem;
  color:var(--text-muted); font-size:.72rem; font-weight:700;
  letter-spacing:.8px; text-transform:uppercase;
}
.pd-divider::before, .pd-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.pd-divider span { display:flex; align-items:center; gap:.35rem; white-space:nowrap; color:var(--copper); }

.pd-form {
  display:flex; flex-direction:column; gap:1.1rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:14px; padding:1.5rem;
}

.pd-label { display:block; font-size:.72rem; font-weight:700; color:var(--text-muted); margin-bottom:.4rem; letter-spacing:.3px; }
.req { color:var(--copper); }

.pd-qty-row { display:flex; align-items:center; justify-content:space-between; }
.pd-qty-row .pd-label { margin:0; }

.pd-qty {
  display:flex; align-items:center; gap:.75rem;
  background:var(--bg-raised);
  border:1px solid var(--border);
  border-radius:10px; padding:.4rem .7rem;
}

.pd-qty-btn {
  width:32px; height:32px;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:7px; color:var(--copper);
  font-size:.8rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.pd-qty-btn:hover { background:var(--copper); color:var(--bg); border-color:var(--copper); }

.pd-qty-val { font-size:1.1rem; font-weight:800; min-width:32px; text-align:center; color:var(--text); }

.pd-field { display:flex; flex-direction:column; }

.pd-field input, .pd-field select {
  width:100%; padding:.72rem 1rem;
  background:var(--bg-raised);
  border:1.5px solid var(--border);
  border-radius:9px;
  font-family:'Cairo',sans-serif; font-size:.86rem; color:var(--text);
  direction:rtl;
  transition:border-color .2s, background .2s;
  appearance:none;
}

.pd-field input::placeholder { color:var(--text-muted); }
.pd-field input:focus, .pd-field select:focus {
  outline:none; border-color:var(--copper); background:var(--bg-card);
}
.pd-field input.pd-invalid, .pd-field select.pd-invalid {
  border-color:var(--error);
}

.pd-select-wrap { position:relative; }
.pd-select-wrap select { padding-left:2.2rem; }
.pd-select-arrow { position:absolute; left:.85rem; top:50%; transform:translateY(-50%); font-size:.72rem; color:var(--copper); pointer-events:none; }

.pd-form-row { display:grid; grid-template-columns:1fr 1fr; gap:.9rem; }

.pd-summary {
  background:var(--bg-raised);
  border:1px solid var(--border);
  border-radius:10px; padding:1rem 1.15rem;
  display:flex; flex-direction:column; gap:.1rem;
}

.pd-summary-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:.5rem 0; font-size:.84rem; color:var(--text-muted);
  border-bottom:1px dashed var(--border);
}
.pd-summary-row:last-of-type { border-bottom:none; }
.pd-summary-row i { color:var(--copper); margin-left:.35rem; }

.pd-summary-total {
  display:flex; justify-content:space-between; align-items:center;
  padding:.75rem 0 .2rem;
  border-top:1px solid rgba(160, 82, 26, .25);
  margin-top:.4rem; font-size:1.05rem; font-weight:800; color:var(--copper);
}

.pd-submit { width:100%; padding:.95rem; font-size:.95rem; font-weight:800; letter-spacing:.4px; }

.pd-note {
  font-size:.72rem; color:var(--text-muted);
  text-align:center; display:flex; align-items:center; justify-content:center; gap:.4rem;
}
.pd-note i { color:var(--success); }

.pd-success {
  display:flex; align-items:flex-start; gap:1.5rem;
  background:rgba(39,174,96,.08);
  border:1px solid rgba(39,174,96,.25);
  border-right:4px solid var(--success);
  border-radius:14px; padding:2rem; margin:2rem 0;
}
.pd-success-icon { font-size:2.8rem; color:var(--success); flex-shrink:0; line-height:1; }
.pd-success-body h3 { font-size:1.25rem; font-weight:800; color:var(--text); margin-bottom:.4rem; }
.pd-success-body p  { font-size:.9rem; color:var(--text); margin-bottom:.4rem; }
.pd-success-sub { color:var(--text-muted) !important; font-size:.82rem !important; margin-bottom:1.2rem !important; }

/* ============================================
   FILTERS (products page)
   ============================================ */
.filters-bar { display:flex; gap:1rem; margin-bottom:2rem; flex-wrap:wrap; }

.search-input {
  flex:1; min-width:200px;
  padding:.7rem 1rem;
  background:var(--bg-card); color:var(--text);
  border:1.5px solid var(--border); border-radius:8px;
  font-family:'Cairo',sans-serif; font-size:.86rem;
  direction:rtl;
  transition:border-color .2s;
}
.search-input::placeholder { color:var(--text-muted); }
.search-input:focus { outline:none; border-color:var(--copper); }

.sort-select {
  padding:.7rem 1rem;
  background:var(--bg-card); color:var(--text);
  border:1.5px solid var(--border); border-radius:8px;
  font-family:'Cairo',sans-serif; font-size:.86rem;
  cursor:pointer; direction:rtl;
  transition:border-color .2s;
}
.sort-select:focus { outline:none; border-color:var(--copper); }

/* ============================================
   CART
   ============================================ */
.cart-container { padding:2.5rem 0; min-height:55vh; }

.empty-cart {
  text-align:center; padding:3.5rem 2rem;
  background:var(--bg-card);
  border:1px solid var(--border);
  border-bottom:3px solid var(--copper);
  border-radius:12px;
}
.empty-cart i  { font-size:3.8rem; color:var(--text-muted); margin-bottom:1.1rem; }
.empty-cart h3 { color:var(--text); margin-bottom:.8rem; font-size:1.25rem; }
.empty-cart p  { color:var(--text-muted); margin-bottom:1.5rem; font-size:.86rem; }

.cart-list { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:1.6rem; }

.cart-item {
  display:grid;
  grid-template-columns:70px 2fr 1fr 1fr auto;
  gap:1rem; align-items:center;
  padding:.85rem 0;
  border-bottom:1px solid var(--border);
}
.cart-item:last-child { border-bottom:none; }
.cart-item .item-image img { width:70px; height:70px; object-fit:cover; border-radius:7px; border:1px solid var(--border); display:block; }
.item-name     { font-weight:700; font-size:.82rem; color:var(--text); margin-bottom:.18rem; }
.item-price    { font-size:.75rem; color:var(--text-muted); }
.item-quantity { display:flex; align-items:center; gap:.4rem; }
.item-subtotal { font-weight:800; color:var(--copper); text-align:center; font-size:.86rem; }

.btn-remove {
  background:none; border:none; color:var(--error);
  font-size:1rem; padding:.38rem; border-radius:6px;
  opacity:.7; cursor:pointer;
  transition:background .15s ease, opacity .15s ease;
}
.btn-remove:hover { background:rgba(231,76,60,.1); opacity:1; }

.cart-summary {
  background:var(--bg-card);
  border:1px solid var(--border); border-bottom:3px solid var(--copper);
  border-radius:12px; padding:1.6rem;
  text-align:center; margin:1.6rem 0;
}
.cart-summary h3 { color:var(--copper); font-size:1.4rem; margin-bottom:.35rem; }
.cart-summary p  { color:var(--text-muted); font-size:.8rem; }

.cart-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; margin-top:1.6rem; }

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-container { padding:2.5rem 0; }
.checkout-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:2rem; }

.checkout-form {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:1.5rem; margin-top:1rem;
}

.checkout-form h2 {
  font-size:1.15rem; font-weight:800; color:var(--text);
  display:flex; align-items:center; gap:.5rem;
  border-bottom:1px solid var(--border); padding-bottom:.8rem; margin-bottom:1.2rem;
}

.form-group { margin-bottom:1.25rem; position:relative; }

.form-group.floating-label input,
.form-group.floating-label textarea,
.form-group.floating-label select {
  width:100%; padding:1.3rem 1rem .45rem;
  background:var(--bg-raised);
  border:1.5px solid var(--border); border-radius:8px;
  font-family:'Cairo',sans-serif; font-size:.88rem; color:var(--text);
  direction:rtl;
  transition:border-color .2s, background .2s;
}
.form-group.floating-label textarea { min-height:90px; resize:vertical; }
.form-group.floating-label label {
  position:absolute; top:.7rem; right:1rem;
  font-size:.84rem; color:var(--text-muted);
  pointer-events:none; transition:top .2s, font-size .2s, color .2s;
}
.form-group.floating-label input:focus,
.form-group.floating-label textarea:focus,
.form-group.floating-label select:focus {
  outline:none; border-color:var(--copper); background:var(--bg-card);
}
.form-group.floating-label input:focus + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label {
  top:.15rem; font-size:.65rem; color:var(--copper);
}

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

.order-summary {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:1.6rem; height:fit-content;
}
.cart-item-summary { padding:.8rem 0; border-bottom:1px solid var(--border); font-size:.82rem; color:var(--text); }
.cart-item-summary:last-child { border-bottom:none; }
.item-total { font-weight:700; color:var(--copper); margin-top:.18rem; font-size:.82rem; }
.order-total-section { margin-top:1.6rem; padding-top:1.6rem; border-top:1px solid var(--border); }

.summary-row {
  display:flex; justify-content:space-between;
  padding:.6rem 0; font-size:.86rem;
  border-bottom:1px dashed var(--border);
}
.summary-row:last-child { border-bottom:none; }
.summary-row.total {
  font-size:1.05rem; font-weight:800; color:var(--copper);
  border-top:1px solid rgba(160, 82, 26, .28);
  margin-top:.65rem; padding-top:.65rem;
}

/* ============================================
   ABOUT / CONTACT
   ============================================ */
.about-page, .contact-page { padding:2.5rem 0; }

.page-title {
  font-size:1.7rem; font-weight:800; text-align:center; margin-bottom:1.6rem;
  background:var(--grad);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
}

.about-content {
  background:var(--bg-card);
  border:1px solid var(--border); border-right:3px solid var(--copper);
  border-radius:12px; padding:1.85rem;
  font-size:.9rem; line-height:1.85; color:var(--text);
}
.about-content p { margin-bottom:1.25rem; }

.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:2rem; }

.contact-info {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:1.6rem;
}
.contact-info h3 {
  font-size:1.1rem; font-weight:800; color:var(--text);
  display:flex; align-items:center; gap:.5rem;
  border-bottom:1px solid var(--border); padding-bottom:.8rem; margin-bottom:1.1rem;
}
.contact-info p { font-size:.86rem; color:var(--text); margin-bottom:.8rem; }
.contact-info i { color:var(--copper); width:20px; }

.contact-form { background:var(--bg-card); border:1px solid var(--border); border-radius:12px; padding:1.6rem; }

/* ============================================
   ALERTS & TOASTS
   ============================================ */
.alert {
  padding:1rem 1.1rem; border-radius:8px; margin-bottom:1.25rem;
  display:flex; align-items:center; gap:.8rem; border-right:3px solid;
}
.alert-success { background:rgba(39,174,96,.1);  color:#5adf8e; border-color:var(--success); }
.alert-error   { background:rgba(231,76,60,.1);  color:#f08070; border-color:var(--error);   }
.alert-info    { background:rgba(52,152,219,.1); color:#7bbfe8; border-color:var(--info);    }

.toast {
  position:fixed; bottom:20px; right:20px;
  background:var(--bg-raised);
  border:1px solid var(--border); border-right:3px solid var(--copper);
  padding:.85rem 1.3rem; border-radius:10px;
  box-shadow:var(--shadow); z-index:9999;
  display:flex; align-items:center; gap:.6rem;
  font-size:.84rem; font-weight:600;
  direction:rtl; max-width:285px;
}
.toast.success { border-right-color:var(--success); background:rgba(39,174,96,.12); }
.toast.error   { border-right-color:var(--error);   background:rgba(231,76,60,.12); }

/* ============================================
   UTILITIES
   ============================================ */
.spinner {
  width:36px; height:36px;
  border:3px solid rgba(160, 82, 26, .15);
  border-top-color:var(--copper);
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin:2rem auto;
}

.skeleton {
  background:linear-gradient(90deg, var(--bg-card) 25%, var(--bg-raised) 50%, var(--bg-card) 75%);
  background-size:200% 100%;
  animation:skeleton 1.5s infinite;
}

/* ============================================
   RESPONSIVE — comprehensive breakpoints
   ============================================ */

/* ── Large tablet ── */
@media (max-width:1024px) {
  .pd-layout, .checkout-grid { grid-template-columns:1fr; }
  .product-grid { grid-template-columns:repeat(3,1fr); gap:1rem; }
  .hero-inner { gap:2rem; padding:4rem 20px; }
}

/* ── Tablet ── */
@media (max-width:900px) {
  .pd-layout { grid-template-columns:1fr; gap:2rem; }
  .pd-gallery-sticky { position:static; }
  .pd-name { font-size:1.5rem; }

  .product-grid { grid-template-columns:repeat(3,1fr); gap:.9rem; }

  .footer-content { grid-template-columns:repeat(2,1fr); }

  .section-header { flex-direction:column; align-items:flex-start; gap:.5rem; }
  .section-header .section-title,
  .section-header .section-subtitle { text-align:right; }
}

/* ── Mobile landscape / large phone ── */
@media (max-width:768px) {
  .product-grid { grid-template-columns:repeat(3,1fr); gap:.75rem; }

  .testimonials-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }

  .cart-item { grid-template-columns:60px 1fr auto; }
  .cart-item .item-quantity,
  .cart-item .item-subtotal { display:none; }

  .checkout-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }

  .products-section { padding:2.5rem 0; }
  .categories-section { padding:2.5rem 0; }
  .testimonials-section { padding:2.5rem 0; }
}

/* ── Mobile portrait ── */
@media (max-width:560px) {
  .product-grid {
    grid-template-columns:1fr; /* 1 column on mobile */
    gap:.55rem;
  }

  .product-title { font-size:.78rem; }
  .product-price { font-size:.9rem; }
  .product-info  { padding:.6rem .75rem .7rem; }

  /* On touch: always show the Buy Now button at bottom of image */
  .product-image-overlay {
    transform:translateY(0);
    opacity:1;
    background:linear-gradient(to top, rgba(6,6,6,.88) 0%, transparent 55%);
  }
  .overlay-add-btn { font-size:.68rem; padding:.5rem .75rem; }

  .hero-inner { padding:2.5rem 16px; }
  .hero-title { font-size:1.7rem; }
  .hero-sub   { font-size:.85rem; }
  .btn-lg     { padding:.75rem 1.4rem; font-size:.85rem; }

  .filters-bar { flex-direction:column; gap:.65rem; }
  .search-input, .sort-select { width:100%; }

  .trust-item { flex:1 1 45%; font-size:.68rem; padding:.45rem .35rem; }
  .trust-sep  { display:none; }

  .announce-bar { height:28px; }
  .announce-track span { font-size:.6rem; }

  .logo h1 { font-size:1.45rem; }
}

/* ── Small phone ── */
@media (max-width:400px) {
  .product-grid {
    grid-template-columns:1fr; /* 1 column on mobile */
    gap:.45rem;
  }

  .product-title { font-size:.72rem; }
  .product-info  { padding:.5rem .6rem .6rem; }

  /* Always-visible overlay on tiny screens */
  .product-image-overlay {
    transform:translateY(0);
    opacity:1;
  }

  .hero-title { font-size:1.5rem; }
  .hero-card-float { max-width:100%; }
  .container { padding:0 12px; }
}

/* ── Product detail page mobile ── */
@media (max-width:520px) {
  .pd-form-row { grid-template-columns:1fr; }
  .pd-name  { font-size:1.3rem; }
  .pd-price { font-size:1.65rem; }
  .pd-page  { padding:1rem 14px 4rem; }
}

/* ============================================
   REDUCED MOTION — kill all animations
   ============================================ */
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
  }
}