/* ══════════════════════════════════════
   style.css — infera® Website Styles
══════════════════════════════════════ */

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

:root {
  --bg: #070707;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --nav-h: 62px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --stripe-dark: #0a0a0a;
  --stripe-light: #f5f5f5;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: #070707;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--fg);
  min-height: 100vh;
  position: relative;
  background: #0a0a0a;
  background: radial-gradient(circle at top, #141414 0%, #070707 100%);
  background-size: cover;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  transition: background var(--transition), backdrop-filter var(--transition);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#navbar.scrolled {
  background: rgba(0,0,0,.80);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  text-decoration: none;
  transition: opacity var(--transition);
}
.logo:hover { opacity: .7; }
.logo sup { font-size: 8px; vertical-align: super; }

/* ── NAV LINKS ── */
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  opacity: .75;
  position: relative;
  padding-bottom: 3px;
  display: inline-block;
  transition: opacity var(--transition), transform var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

.nav-links a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.nav-links a:hover::after {
  width: 100%;
  right: auto;
  left: 0;
}

/* ── NAV RIGHT ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-login {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  opacity: .75;
  transition: opacity var(--transition);
}
.btn-login:hover { opacity: 1; }

.btn-try {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-try:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255,255,255,.18);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Halftone dot pattern */
.halftone {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: screen;
}

/* Hero Abstract Jersey BG */
.hero-bg-accent {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0.8;
}
.hero-floating-jersey {
  width: 600px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0,202,101,0.15);
  will-change: transform;
}
@keyframes floatJersey {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ── PARTICLES CANVAS ── */
#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── NEON COUNTDOWN ── */
.neon-countdown {
  margin: 15px 0 25px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px 20px;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.countdown-title {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.countdown-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.time-box span {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #00ca65;
  text-shadow: 0 0 10px rgba(0, 202, 101, 0.4);
  line-height: 1;
}
.time-box small {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}
.colon {
  font-size: 20px;
  font-weight: bold;
  color: rgba(255,255,255,0.2);
  margin-bottom: 12px;
}

/* ── COLOR PICKER ── */
.hero-color-picker {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.picker-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.color-options {
  display: flex;
  gap: 10px;
}
.hero-color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}
.hero-color-btn:hover {
  transform: scale(1.2);
}
.hero-color-btn.active {
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255,255,255,0.5);
}
.glow-sphere {
  position: absolute;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0,202,101,0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Vignette */
.vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, transparent 30%, rgba(0,0,0,0.65) 100%);
}

/* 3D Scene wrapper */
.scene {
  position: relative;
  z-index: 10;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

/* ── HERO CONTENT ── */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 48px 44px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-style: preserve-3d;
  border-radius: 24px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  box-shadow:
    0 2px 4px rgba(0,0,0,.3),
    0 8px 32px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,0.10) inset;
  opacity: 0;
  will-change: transform, opacity;
}
.hero-content.visible {
  opacity: 1;
  animation: fadeInUp 0.8s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fadeInUp {
  from { opacity:0; transform: perspective(1000px) translateY(28px); }
  to   { opacity:1; transform: perspective(1000px) translateY(0); }
}

/* ── BRAND NAME ── */
.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 10px;
  user-select: none;

  background: linear-gradient(160deg, #fff 0%, #bbb 40%, #666 70%, #222 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  transform: translateZ(30px);
}
.hero-content:hover .brand-name {
  filter: drop-shadow(0 6px 24px rgba(255,255,255,.18));
}

#hero-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 18px;
}

.subtitle {
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 13px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-hero:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,255,255,.25);
}
.arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform var(--transition);
}
.btn-hero:hover .arrow {
  transform: translateY(3px);
}

/* ══════════════════════════════════════
   HERO BOTTOM BAR
══════════════════════════════════════ */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 40px 36px 24px;
  display: flex;
  justify-content: center;
}

.store-features {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.s-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.s-feature svg {
  color: #00ca65;
  filter: drop-shadow(0 0 8px rgba(0,202,101,0.4));
}

/* ══════════════════════════════════════
   SHOP SECTION — تيشرتات كرة القدم
══════════════════════════════════════ */
#shop {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 100px 40px 120px;
  background: transparent;
  overflow: hidden;
}

/* خلفية المتجر محذوفة لجعل تدرج الخلفية الرئيسية يظهر */


.shop-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.shop-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.shop-title {
  font-family: 'Cairo', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

.shop-title span {
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.shop-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* ── Filter Tabs ── */
.shop-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}
.filter-btn.active {
  color: #000;
  background: #fff;
  border-color: #fff;
}

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto 60px;
  position: relative;
}

/* ── Product Card ── */
.product-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1),
              box-shadow 0.35s cubic-bezier(.4,0,.2,1),
              border-color 0.35s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.14);
}

/* Badge */
.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge-new     { background: #fff;    color: #000; }
.badge-hot     { background: #e53935; color: #fff; }
.badge-limited { background: #f59e0b; color: #000; }
.badge-sale    { background: #10b981; color: #fff; }

/* Image container */
.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/3.5;
  overflow: hidden;
  background: linear-gradient(145deg, #1c1c1c, #252525);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.55) 100%);
  transition: opacity 0.3s ease;
}

.card-image .jersey-icon {
  font-size: 90px;
  line-height: 1;
  user-select: none;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5));
}

.product-card:hover .jersey-icon {
  transform: scale(1.08) translateY(-4px);
}

/* Card Body */
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-team {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.card-name {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-size {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 3px 9px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.card-price {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.03em;
}

.card-price .old-price {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  text-decoration: line-through;
  margin-right: 6px;
}

.add-to-cart {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.add-to-cart:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: scale(1.1) rotate(10deg);
}

/* Color swatches */
.card-colors {
  display: flex;
  gap: 6px;
  align-items: center;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.color-swatch:hover {
  transform: scale(1.3);
  border-color: rgba(255,255,255,0.5);
}

/* ── STOCK INDICATOR ── */
.card-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 8px;
}
.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00ca65;
  box-shadow: 0 0 8px rgba(0, 202, 101, 0.6);
  animation: pulse-dot 2s infinite;
}
.stock-text {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}
.stock-low .stock-dot {
  background-color: #ff4d4d;
  box-shadow: 0 0 10px rgba(255, 77, 77, 0.8);
  animation: pulse-dot-fast 1s infinite;
}
.stock-low .stock-text {
  color: #ff6b6b;
}

@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pulse-dot-fast {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── View All Button ── */
.shop-view-all {
  display: flex;
  justify-content: center;
}

.btn-view-all {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-view-all::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-view-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,255,255,0.2);
}
.btn-view-all:hover::before { opacity: 1; }

/* ── HAMBURGER MENU ── */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1000;
}
.hamburger-menu span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  #shop { padding: 70px 20px 80px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

@media (max-width: 640px) {
  #navbar { padding: 0 18px; }
  .btn-login { display: none; }
  
  .hamburger-menu { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 900;
    margin: 0;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  .nav-links a {
    font-size: 18px;
    display: block;
    padding: 10px;
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-bottom {
    padding: 0 18px;
    flex-wrap: wrap;
    gap: 12px;
    bottom: 16px;
  }
  .brands { gap: 12px; flex-wrap: wrap; justify-content: center; }
  #hero-title { font-size: 34px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .shop-filters { gap: 8px; }
}

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

/* ══════════════════════════════════════
   JERSEY IMAGE
══════════════════════════════════════ */
.jersey-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), filter 0.35s ease;
}

.product-card:hover .jersey-img {
  transform: scale(1.06) translateY(-4px);
}

/* Motion Blur effect removed for performance */

/* ══════════════════════════════════════
   CART SIDEBAR
══════════════════════════════════════ */
.cart-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  transition: transform var(--transition);
  margin-left: 10px;
}
.cart-btn:hover { transform: scale(1.1); }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: #00ca65;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #111;
  border-right: 1px solid rgba(255,255,255,0.1);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left;
}
.cart-sidebar.active { left: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cart-header h3 { font-size: 18px; color: #fff; }
.cart-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.cart-close:hover { color: #fff; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.empty-cart-msg {
  color: rgba(255,255,255,0.4);
  text-align: center;
  margin-top: 40px;
}
.cart-item {
  display: flex;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px;
  border-radius: 12px;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #1c1c1c, #252525);
  border-radius: 8px;
  padding: 8px;
}
.cart-item-img img {
  width: 100%; height: 100%; object-fit: contain;
}
.cart-item-info {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.cart-item-title { font-size: 14px; font-weight: 700; color: #fff; }
.cart-item-price { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 900; color: #00ca65; }
.cart-item-size { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.cart-item-remove {
  background: transparent; border: none; color: rgba(255,255,255,0.4); font-size: 20px; cursor: pointer;
}
.cart-item-remove:hover { color: #ff4d4d; }

.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
}
.cart-total {
  display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 18px; font-weight: 700; color: #fff;
}
.cart-total #cartTotal { font-family: 'Inter', sans-serif; font-size: 22px; font-weight: 900; }
.checkout-btn { width: 100%; justify-content: center; }

/* ══════════════════════════════════════
   PRODUCT MODAL
══════════════════════════════════════ */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.product-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  margin: auto;
}
.product-modal-overlay.active .product-modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.modal-image-col {
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-left: 1px solid rgba(255,255,255,0.05);
}

.modal-image-wrapper img {
  width: 100%;
  max-width: 350px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.modal-info-col {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-badge {
  display: inline-block;
  background: rgba(0, 202, 101, 0.15);
  color: #00ca65;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  width: fit-content;
}

.modal-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.modal-price {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.modal-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.modal-sizes {
  margin-bottom: 30px;
}

.modal-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.size-options {
  display: flex;
  gap: 10px;
}

.size-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.size-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.size-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.modal-quality {
  margin-bottom: 30px;
}

.quality-options {
  display: flex;
  gap: 10px;
}

.quality-btn {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quality-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.quality-btn.active {
  background: #00ca65;
  color: #000;
  border-color: #00ca65;
  font-weight: 700;
}

.add-to-cart-modal {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .product-modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
  }
  .product-modal-content {
    margin: 20px auto;
    max-height: none;
    overflow: visible;
  }
  .modal-grid { grid-template-columns: 1fr; min-height: auto; }
  .modal-image-col { padding: 20px; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .modal-info-col { padding: 25px 20px; }
  .modal-image-wrapper img { max-width: 200px; }
  .modal-title { font-size: 22px; margin-bottom: 8px; }
  .modal-price { font-size: 20px; margin-bottom: 15px; }
  .modal-desc { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
  .modal-sizes { margin-bottom: 20px; }
  .modal-quality { margin-bottom: 20px; }
  .quality-btn { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
  .add-to-cart-modal { padding: 14px; font-size: 15px; }
}

/* ══════════════════════════════════════
   PAYMENT METHODS & FOOTER
══════════════════════════════════════ */
.payment-methods { padding: 80px 40px; text-align: center; position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,0.03); background: rgba(0,0,0,0.2); }
.payment-header { margin-bottom: 40px; }
.payment-header h3 { font-family: 'Inter', 'Cairo', sans-serif; font-size: 28px; color: #fff; margin-bottom: 10px; }
.payment-header p { font-size: 15px; color: rgba(255,255,255,0.6); }
.payment-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; max-width: 900px; margin: 0 auto; }
.pay-logo { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 16px 24px; border-radius: 16px; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.pay-logo:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.pay-logo span { font-family: 'Inter', 'Cairo', sans-serif; font-size: 16px; font-weight: 700; color: #fff; }

/* ── CHECKOUT MODAL ── */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.checkout-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.checkout-modal-content {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  z-index: 10200;
  margin: auto;
}
.checkout-modal-overlay.active .checkout-modal-content {
  transform: translateY(0);
}

/* Mobile checkout modal optimization */
@media (max-width: 600px) {
  .checkout-modal-overlay {
    align-items: flex-start;
    padding: 10px;
  }
  .checkout-modal-content {
    width: 95%;
    padding: 20px 16px;
    border-radius: 16px;
    max-height: 92vh;
    margin: auto;
  }
  .checkout-title {
    font-size: 20px;
  }
  .checkout-desc {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .payment-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .payment-name {
    font-size: 14px;
  }
  .payment-icon {
    font-size: 20px;
  }
  .login-input {
    padding: 12px;
    font-size: 13px;
  }
  .confirm-checkout-btn {
    padding: 14px;
    font-size: 14px;
  }
}
.checkout-title {
  font-size: 24px;
  color: #fff;
  margin-bottom: 10px;
}
.checkout-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 25px;
  line-height: 1.6;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}
.payment-option {
  cursor: pointer;
}
.payment-option input {
  display: none;
}
.payment-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.payment-option input:checked + .payment-card {
  border-color: #00ca65;
  background: rgba(0, 202, 101, 0.1);
}
.payment-icon {
  font-size: 24px;
}
.payment-name {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}
.confirm-checkout-btn {
  width: 100%;
  justify-content: center;
}

/* ?? LOGIN MODAL ?? */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}
.login-input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}
.login-input:focus {
  border-color: #00ca65;
  background: rgba(0, 202, 101, 0.05);
}
.login-footer {
  font-size: 13px;
}
.login-footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.login-footer a:hover {
  color: #00ca65;
}
