@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --accent-pink: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --bg-secondary: #f8f9fc;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --glow: rgba(99, 102, 241, 0.18);
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
}

[data-theme="dark"] {
  --bg: #0b0f1a;
  --bg-card: #151b2e;
  --bg-secondary: #1a2139;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #1e2d4a;
  --glow: rgba(99, 102, 241, 0.25);
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  overflow-x: hidden;
}

[dir="rtl"] body,
body.rtl {
  font-family: var(--font-ar);
}

/* ===== SPLASH SCREEN ===== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f1a;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.splash-brand {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  perspective: 600px;
  direction: ltr;
  unicode-bidi: bidi-override;
}

.spark-letter {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 900;
  font-family: var(--font-en);
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #e0eaff 25%, #7bb3ff 55%, #3b82f6 80%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  filter: blur(10px);
  animation: letterIgnite 0.5s calc(0.8s + var(--i) * 0.1s) ease-out both;
  text-shadow: none;
  position: relative;
}

.spark-letter::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #93c5fd, #ffffff);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: letterUnderline 0.4s calc(1.4s + var(--i) * 0.1s) ease-out both;
  box-shadow: 0 0 10px rgba(100, 170, 255, 0.7);
}

.spark-icon {
  font-size: clamp(3rem, 10vw, 5.5rem);
  display: inline-block;
  opacity: 0;
  filter: blur(8px) drop-shadow(0 0 20px #60a5fa);
  animation: iconFlash 0.6s 1.4s ease-out both;
  margin-inline-start: 0.1em;
}

@keyframes letterIgnite {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(30px) scale(0.5) rotateX(40deg);
  }
  60% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-8px) scale(1.08) rotateX(0deg);
  }
  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 20px rgba(100, 170, 255, 0.6));
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes letterUnderline {
  from { width: 0; }
  to { width: 80%; }
}

@keyframes iconFlash {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.3) rotate(-20deg);
  }
  50% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 30px #60a5fa);
    transform: scale(1.3) rotate(5deg);
  }
  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 20px rgba(100, 170, 255, 0.6));
    transform: scale(1) rotate(0deg);
    animation: iconPulse 1.5s 2s ease-in-out infinite both;
  }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(100, 170, 255, 0.5)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 35px rgba(100, 170, 255, 0.8)); }
}

.splash-tagline {
  font-size: clamp(0.95rem, 3vw, 1.35rem);
  font-weight: 600;
  color: rgba(180, 210, 255, 0.9);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: taglineIn 0.7s 1.8s ease-out both;
}

@keyframes taglineIn {
  from {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.splash-line {
  display: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== LAST UPDATED BAR ===== */
.last-updated-bar {
  width: 100%;
  text-align: center;
  padding: 4px 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 242, 245, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: background var(--transition), border var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

[data-theme="dark"] .header {
  background: rgba(11, 15, 26, 0.75);
  border-bottom-color: rgba(30, 45, 74, 0.5);
}

[data-theme="dark"] .header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: transform var(--bounce), box-shadow var(--transition);
  position: relative;
  overflow: visible;
  animation: logoSpark 3s ease-in-out infinite;
}

@keyframes logoSpark {
  0%, 100% { box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.7), 0 0 30px rgba(100, 170, 255, 0.35); }
}

.logo:hover .logo-icon {
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.8), 0 0 40px rgba(100, 170, 255, 0.5);
}

.logo-spark {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #93c5fd;
  pointer-events: none;
  opacity: 0;
}

.logo-spark:nth-child(2) {
  animation: sparkFly 2.2s 0s ease-out infinite;
  top: 20%; left: 80%;
}
.logo-spark:nth-child(3) {
  animation: sparkFly 2.5s 0.4s ease-out infinite;
  top: 10%; left: 50%;
  background: #60a5fa;
  width: 3px; height: 3px;
}
.logo-spark:nth-child(4) {
  animation: sparkFly 1.8s 0.7s ease-out infinite;
  top: 30%; left: 90%;
  background: #fff;
  width: 3px; height: 3px;
}
.logo-spark:nth-child(5) {
  animation: sparkFly 2.8s 1.1s ease-out infinite;
  top: 5%; left: 70%;
  background: #3b82f6;
}
.logo-spark:nth-child(6) {
  animation: sparkFly 2s 1.5s ease-out infinite;
  top: 25%; left: 60%;
  background: #bfdbfe;
  width: 3px; height: 3px;
}
.logo-spark:nth-child(7) {
  animation: sparkFly 2.4s 1.8s ease-out infinite;
  top: 15%; left: 85%;
  background: #fff;
  width: 2px; height: 2px;
}

@keyframes sparkFly {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(1);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx, -15px), var(--sy, -25px)) scale(0);
  }
}

.logo-spark:nth-child(2) { --sx: 12px; --sy: -22px; }
.logo-spark:nth-child(3) { --sx: -8px; --sy: -28px; }
.logo-spark:nth-child(4) { --sx: 18px; --sy: -18px; }
.logo-spark:nth-child(5) { --sx: -14px; --sy: -24px; }
.logo-spark:nth-child(6) { --sx: 6px; --sy: -30px; }
.logo-spark:nth-child(7) { --sx: 15px; --sy: -26px; }

#storeName {
  font-family: var(--font-en) !important;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== SPARKLES CANVAS ===== */
#sparklesCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.btn-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-icon:hover {
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow);
}

.btn-icon:hover::before {
  opacity: 1;
}

.btn-icon svg, .btn-icon span {
  position: relative;
  z-index: 1;
}

.btn-icon:active {
  transform: translateY(0) scale(0.95);
}

.lang-toggle {
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 42px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 30%, #a855f7 60%, #06b6d4 100%);
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255, 0.05) 0%, transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.04'%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");
}

.hero-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero-float-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
  background: rgba(255,255,255,0.07);
  animation: float1 8s ease-in-out infinite;
}

.hero-float-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -40px;
  background: rgba(255,255,255,0.05);
  animation: float2 10s ease-in-out infinite;
}

.hero-float-3 {
  width: 120px;
  height: 120px;
  top: 30%;
  left: 15%;
  background: rgba(236, 72, 153, 0.12);
  animation: float3 6s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(20px, -30px) rotate(10deg); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(15px, -20px) scale(1.1); }
  66% { transform: translate(-10px, 10px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  animation: heroTitle 0.8s ease-out both;
}

@keyframes heroTitle {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: heroSub 0.8s 0.2s ease-out both;
}

@keyframes heroSub {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 0.92; transform: translateY(0); }
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  animation: heroBadges 0.8s 0.4s ease-out both;
}

@keyframes heroBadges {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.hero-badge:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ===== EXCHANGE RATE BANNER ===== */
.rate-banner {
  max-width: 1280px;
  margin: 1rem auto 0;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.rate-banner:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 12px var(--glow);
}

.rate-banner svg {
  color: var(--success);
  flex-shrink: 0;
}

.rate-banner .rate-name {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
}

.rate-banner .rate-time {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  margin-inline-start: 0.5rem;
  padding-inline-start: 0.5rem;
  border-inline-start: 1px solid var(--border);
}

@media (max-width: 768px) {
  .rate-banner {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    padding: 0.45rem 1rem;
  }
}

/* ===== CATEGORIES ===== */
.categories-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0.5rem;
}

.categories-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.cat-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--glow);
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.cat-btn:active {
  transform: scale(0.96);
}

/* ===== PRODUCTS GRID ===== */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

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

.product-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.product-card:hover::before {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 2px 20px rgba(245, 158, 11, 0.6); }
}

[dir="rtl"] .product-badge {
  right: auto;
  left: 1rem;
}

.product-image {
  width: 100%;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-card) 100%);
  pointer-events: none;
}

.product-image img {
  max-width: 85px;
  max-height: 85px;
  object-fit: contain;
  transition: transform var(--bounce);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.product-card:hover .product-image img {
  transform: scale(1.15) rotate(-2deg);
}

.product-image .placeholder-icon {
  width: 64px;
  height: 64px;
  color: var(--text-muted);
  opacity: 0.5;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-price .currency {
  font-size: 0.85rem;
  font-weight: 600;
}

.product-price .local-price {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Modal price summary */
.modal-price-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  text-align: center;
}

.modal-price-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.modal-price-local {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.modal-price-usd {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-duration {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  font-family: inherit;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  flex: 1;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--glow);
}

.unavailable-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: var(--radius);
}

.unavailable-text {
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* ===== PAYMENT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 5;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.modal-close {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.modal-close:hover {
  background: #ef4444;
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.payment-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.payment-option:hover {
  border-color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 4px 15px var(--glow);
}

.payment-option:hover::before {
  opacity: 1;
}

[dir="rtl"] .payment-option:hover {
  transform: translateX(-4px);
}

.payment-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.payment-icon.paypal { background: linear-gradient(135deg, #003087, #0070ba); color: white; }
.payment-icon.stripe { background: linear-gradient(135deg, #635bff, #8b5cf6); color: white; }
.payment-icon.whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); color: white; }
.payment-icon.crypto { background: linear-gradient(135deg, #f7931a, #e2761b); color: white; }

.payment-info {
  position: relative;
  z-index: 1;
}

.payment-info h4 {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.payment-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.payment-option.disabled {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(1);
  border-color: var(--border);
  background: var(--bg-secondary);
}

.payment-option.disabled:hover {
  transform: none;
  border-color: var(--border);
  background: var(--bg-secondary);
  box-shadow: none;
}

.payment-option.disabled .payment-icon {
  background: var(--text-muted) !important;
}

.payment-card.disabled {
  opacity: 0.3;
  filter: grayscale(1);
  pointer-events: none;
}

.payment-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

.payment-card.disabled .payment-card-icon {
  background: var(--text-muted) !important;
}

.payment-disabled-label {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
}

/* Selected payment option */
.payment-option.selected {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.06);
  position: relative;
}
.payment-option.selected::after {
  content: '✓';
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  width: 22px; height: 22px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.rtl .payment-option.selected::after { right: auto; left: 0.8rem; }

/* Proof of payment section */
.proof-divider {
  height: 1px;
  background: var(--border);
  margin: 1.2rem 0;
}
.proof-status {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 0.8rem;
}
.proof-box {
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(6,182,212,0.06));
  border: 1px dashed var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  text-align: center;
}
.proof-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.proof-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.proof-wa-btn {
  display: inline-flex;
  align-items: center; gap: 0.5rem;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.proof-wa-btn:hover {
  background: #1da851;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}

/* USDT Network Tabs */
.usdt-network-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}
.usdt-net-btn,
.crypto-copy-btn {
  pointer-events: auto;
  cursor: pointer;
}
.usdt-net-btn {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}
.usdt-net-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}
.usdt-net-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.usdt-addr-item {
  display: none;
}
.usdt-addr-item.active {
  display: block;
}
.crypto-usdt-section {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

/* Crypto modal */
.crypto-addresses {
  margin-top: 1rem;
}

.crypto-address-item {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}

.crypto-address-item:hover {
  background: var(--bg);
}

.crypto-address-item label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}

.crypto-copy-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.crypto-copy-row input {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8rem;
  font-family: monospace;
  transition: border-color var(--transition);
}

.crypto-copy-row input:focus {
  outline: none;
  border-color: var(--primary);
}

.crypto-copy-row button {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
}

.crypto-copy-row button:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  transform: translateY(-1px);
}

.crypto-copy-row button:active {
  transform: scale(0.95);
}

/* ===== PAYMENT INFO SECTION ===== */
.payment-section {
  background: var(--bg-secondary);
  padding: 5rem 1.5rem;
  transition: background var(--transition);
  position: relative;
}

.payment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-pink), transparent);
  opacity: 0.3;
}

.payment-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.payment-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.payment-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.payment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.payment-card:hover::before {
  opacity: 1;
}

.payment-card-icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: transform var(--bounce);
}

.payment-card:hover .payment-card-icon {
  transform: scale(1.1);
}

.payment-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.payment-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  transition: background var(--transition), border var(--transition);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.footer-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate-in {
  animation: fadeInUp 0.6s ease both;
  opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .product-card::before {
    border-radius: var(--radius-sm);
  }

  .product-image {
    height: 130px;
    padding: 1.25rem;
  }

  .product-image img {
    max-width: 55px;
    max-height: 55px;
  }

  .product-info {
    padding: 0.85rem;
  }

  .product-category {
    font-size: 0.65rem;
    margin-bottom: 0.3rem;
  }

  .product-name {
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }

  .product-desc {
    display: none;
  }

  .product-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.65rem;
    margin-bottom: 0.65rem;
  }

  .product-price {
    font-size: 1.15rem;
  }

  .product-duration {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  .btn-primary {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
  }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  .logo span {
    font-size: 0.95rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
  }

  .payment-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .payment-card {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-sm);
  }

  .payment-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 0.85rem;
  }

  .payment-card h3 {
    font-size: 0.95rem;
  }

  .payment-card p {
    font-size: 0.78rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .categories-bar {
    gap: 0.4rem;
    padding: 0 0.25rem;
  }

  .cat-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }

  .search-bar {
    padding: 0.4rem 1rem;
  }

  /* Modal full-screen on mobile */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
    animation: slideUp 0.4s ease both;
  }

  @keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }

  .payment-option {
    padding: 0.9rem 1rem;
  }

  .payment-icon {
    width: 44px;
    height: 44px;
  }

  .footer-links {
    gap: 0.5rem;
  }

  .footer-link {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  .hero-float-1 { width: 180px; height: 180px; }
  .hero-float-2 { width: 120px; height: 120px; }
  .hero-float-3 { width: 80px; height: 80px; }
}

@media (max-width: 380px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .product-desc {
    display: block;
  }

  .product-image {
    height: 160px;
    padding: 1.5rem;
  }

  .product-image img {
    max-width: 70px;
    max-height: 70px;
  }

  .product-info {
    padding: 1.1rem;
  }

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

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== LOADING / SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== SEARCH BAR ===== */
.search-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  transition: all var(--transition);
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--glow);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.search-bar .search-icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition);
}

.search-bar:focus-within .search-icon {
  color: var(--primary);
}

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.no-results p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== REQUIREMENTS FORM MODAL ===== */
.requirements-modal {
  max-width: 480px;
}

.req-product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.req-product-info img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.req-product-info .req-prod-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.req-product-info .req-prod-price {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

.req-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.req-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.req-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.req-form input,
.req-form textarea {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  font-family: inherit;
}

.req-form input:focus,
.req-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.req-form .req-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.25rem;
}

.req-form .btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.95rem;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-detail-modal {
  max-width: 640px;
  padding: 0;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 90vh;
}

.product-detail-modal > .modal-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  z-index: 20;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  backdrop-filter: blur(6px);
  margin: 0.75rem 0.75rem -38px 0;
}

[dir="rtl"] .product-detail-modal > .modal-close {
  float: left;
  margin: 0.75rem 0 -38px 0.75rem;
}

.product-detail-modal > .modal-close:hover {
  background: #ef4444;
}

.pd-hero {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pd-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

.pd-hero img {
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
  animation: pdImageIn 0.5s ease-out;
}

@keyframes pdImageIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.pd-hero .placeholder-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  opacity: 0.4;
}

.pd-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

[dir="rtl"] .pd-badges {
  left: auto;
  right: 1rem;
}

.pd-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.pd-badge.featured {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}

.pd-badge.available {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.pd-badge.unavailable {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.pd-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.pd-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.pd-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.pd-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.pd-features {
  margin-bottom: 1.25rem;
}

.pd-features-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pd-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pd-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pd-features-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.pd-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.pd-price {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pd-price .currency {
  font-size: 0.9rem;
  font-weight: 600;
}

.pd-price .local-price {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  -webkit-text-fill-color: var(--text-muted);
  margin-top: 0.1rem;
}

.pd-duration {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.pd-duration svg {
  flex-shrink: 0;
}

.pd-actions {
  display: flex;
  gap: 0.75rem;
}

.pd-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
}

/* ===== REVIEWS STYLES ===== */
.product-rating {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
}

.star-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
}

.star-rating-input input {
  display: none;
}

.star-rating-input label {
  cursor: pointer;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d1d5db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform 0.2s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f59e0b' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3e%3c/svg%3e");
}

.star-rating-input label:hover {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .product-detail-modal {
    max-width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  .pd-hero {
    height: 200px;
  }

  .pd-hero img {
    max-width: 110px;
    max-height: 110px;
  }

  .pd-body {
    padding: 1.25rem;
  }

  .pd-name {
    font-size: 1.3rem;
  }

  .pd-price {
    font-size: 1.5rem;
  }
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 300;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

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

/* ===== SCROLLBAR (Webkit) ===== */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

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