/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Tajawal', sans-serif;
  background: #1C0A00;
  color: #F5E6C8;
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* ===== BACKGROUND ===== */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(90,45,5,0.5) 0%, transparent 70%),
              radial-gradient(ellipse 60% 60% at 80% 80%, rgba(60,25,0,0.4) 0%, transparent 60%),
              linear-gradient(160deg, #0d0500 0%, #1C0A00 50%, #2a1200 100%);
  z-index: -1;
}

/* ===== HEADER ===== */
.header {
  text-align: center;
  padding: 12px 70px;
  background: rgba(15,6,0,0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(201,150,42,0.25);
}

.logo {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto 4px;
}

.logoText {
  font-size: 20px;
  font-weight: 800;
  color: #F5E6C8;
  letter-spacing: 1px;
}

/* ===== HEADER LEFT BUTTONS ===== */
.header-left-btns {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10000;
}

.header-cart-btn {
  background: #C9962A;
  color: #1C0A00;
  border: none;
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  box-shadow: 0 2px 10px rgba(201,150,42,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.header-cart-btn:hover { transform: scale(1.06); box-shadow: 0 4px 16px rgba(201,150,42,0.55); }

.header-wa-btn {
  background: #25D366;
  color: #fff;
  border-radius: 20px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  box-shadow: 0 2px 10px rgba(37,211,102,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.header-wa-btn:hover { transform: scale(1.06); box-shadow: 0 4px 16px rgba(37,211,102,0.5); }

@media (max-width: 600px) {
  .header-left-btns { gap: 5px; left: 10px; }
  .header-cart-btn { font-size: 12px; padding: 6px 9px; min-height: 34px; }
  .header-wa-btn { font-size: 11px; padding: 6px 8px; min-height: 34px; }
  .header-wa-btn span.wa-text { display: none; }
}

/* ===== MENU BUTTON ===== */
.menu-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201,150,42,0.1);
  border: 2px solid #C9962A;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10000;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.menu-btn:hover { background: rgba(201,150,42,0.2); }

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #C9962A;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== NAV MENU ===== */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 10px;
  background: rgba(15,6,0,0.98);
  border: 1px solid rgba(201,150,42,0.35);
  border-radius: 12px;
  min-width: 210px;
  overflow: hidden;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: menuFade 0.2s ease;
}

.nav-menu.open { display: block; }

@keyframes menuFade {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-menu a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #F5E6C8;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid rgba(201,150,42,0.15);
  min-height: 50px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:last-child { border-bottom: none; }
.nav-menu a:hover, .nav-menu a:active {
  background: rgba(201,150,42,0.12);
  color: #C9962A;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(100,50,5,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  height: 240px;
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 20px rgba(201,150,42,0.35));
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: #C9962A;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  color: #F5E6C8;
  line-height: 1.05;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 20px rgba(201,150,42,0.2);
}

.hero-tagline {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 700;
  color: #C9962A;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(245,230,200,0.65);
  max-width: 400px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-btn-primary {
  background: #C9962A;
  color: #1C0A00;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(201,150,42,0.3);
}

.hero-btn-primary:hover {
  background: #E8B84B;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,150,42,0.4);
}

.hero-btn-outline {
  background: transparent;
  color: #F5E6C8;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  border: 1px solid rgba(245,230,200,0.3);
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s;
}

.hero-btn-outline:hover {
  border-color: #C9962A;
  color: #C9962A;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,150,42,0.15);
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: #C9962A;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(245,230,200,0.55);
  letter-spacing: 1px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #C9962A;
  font-size: 1.4rem;
  cursor: pointer;
  animation: bounce 2s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  color: #C9962A;
  margin: 2rem 0 1rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(201,150,42,0.3);
}

.flip-hint {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(245,230,200,0.35);
  margin: -0.5rem 0 1rem;
  letter-spacing: 0.5px;
}

/* ===== BESTSELLERS ===== */
.bestsellers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px 14px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.bs-card {
  position: relative;
  background: rgba(30,12,0,0.75);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(201,150,42,0.2);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.bs-card:hover, .bs-card:active {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(201,150,42,0.35);
  border-color: #C9962A;
}

.bs-card img {
  width: 100%;
  height: 65px;
  object-fit: contain;
  border-radius: 8px;
}

.bs-card p {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: #F5E6C8;
}

.bs-card .badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #C9962A;
  color: #1C0A00;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 6px;
}

/* ===== OFFER TIMER ===== */
.offer-timer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(180,60,20,0.12);
  border: 1px solid rgba(220,80,30,0.3);
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  max-width: 500px;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}

.timer-label { font-size: 0.85rem; color: #E8855A; font-weight: 700; }

.timer-blocks { display: flex; align-items: center; gap: 0.3rem; }

.timer-block {
  background: rgba(220,80,30,0.15);
  border: 1px solid rgba(220,80,30,0.4);
  border-radius: 6px;
  padding: 4px 10px;
  text-align: center;
  min-width: 52px;
}

.timer-block span { display: block; font-size: 1.3rem; font-weight: 800; color: #E8855A; line-height: 1.2; }
.timer-block small { font-size: 0.6rem; color: rgba(245,230,200,0.5); }
.timer-sep { font-size: 1.2rem; font-weight: 800; color: #E8855A; line-height: 1; }

/* ===== VIEWERS COUNTER ===== */
.product-viewers,
.offer-viewers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(245,230,200,0.5);
  margin: 3px 0;
  background: rgba(201,150,42,0.06);
  border-radius: 20px;
  padding: 3px 10px;
  border: 1px solid rgba(201,150,42,0.12);
}

.eye-icon { font-size: 13px; }

.viewers-count {
  font-weight: 800;
  color: #C9962A;
  font-size: 12px;
  transition: all 0.4s ease;
}

/* ===== STAR RATING ===== */
.star-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 2px 0;
}

.star-rating .stars {
  color: #F5C842;
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(245,200,66,0.4);
}

.star-rating .rating-num {
  font-size: 11px;
  font-weight: 800;
  color: rgba(245,230,200,0.6);
}

/* ===== MAIN BUY BUTTON ===== */
.buy-main-btn {
  background: linear-gradient(135deg, #C9962A 0%, #E8B84B 100%) !important;
  color: #1C0A00 !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 18px rgba(201,150,42,0.45) !important;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.buy-main-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.buy-main-btn:hover::after { left: 100%; }
.buy-main-btn:hover {
  background: linear-gradient(135deg, #E8B84B 0%, #F5C842 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,150,42,0.55) !important;
}

/* ===== WHATSAPP ORDER BUTTON ===== */


/* ===== BLURRED BACKGROUND ON CARD ===== */
.card-bg-blur,
.offer-card-bg-blur {
  position: absolute;
  inset: -4px; /* bleed to hide blur edge artifacts */
  border-radius: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.25) saturate(1.4);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

/* Content sits above blur (z-index 0) */
.card-face > *:not(.card-bg-blur) {
  position: relative;
  z-index: 1;
}

.offer-card-face > *:not(.offer-card-bg-blur) {
  position: relative;
  z-index: 1;
}

/* ===== OFFERS FLIP SYSTEM ===== */
.offers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  padding: 10px 14px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.offer-card-wrapper {
  perspective: 1000px;
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
  min-height: 420px;
}

.offer-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.offer-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.offer-card-wrapper:nth-child(3) { animation-delay: 0.3s; }

.offer-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.offer-card-inner.flipped {
  transform: rotateY(180deg);
}

.offer-card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.offer-card-inner.flipped .offer-card-front {
  pointer-events: none;
}

.offer-card-inner.flipped .offer-card-back {
  pointer-events: auto;
}

/* FRONT */
.offer-card-front {
  background: rgba(25,10,0,0.85);
  border: 1px solid rgba(220,80,30,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.offer-card-wrapper:hover .offer-card-front {
  box-shadow: 0 0 25px rgba(220,80,30,0.3);
  border-color: rgba(220,80,30,0.6);
}

.offer-card-front img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(40,15,0,0.5);
  padding: 6px;
}

.offer-card-front h3 { font-size: 13px; margin: 4px 0 2px; color: #F5E6C8; font-weight: 700; }

/* BACK */
.offer-card-back {
  background: linear-gradient(150deg, rgba(12,3,0,0.84) 0%, rgba(25,7,2,0.88) 100%);
  border: 1px solid rgba(220,80,30,0.4);
  transform: rotateY(180deg);
  justify-content: center;
  text-align: center;
  pointer-events: none;
  overflow: hidden;
}

.offer-back-name {
  font-size: 14px;
  font-weight: 800;
  color: #E8855A;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(217,64,32,0.2);
}

.offer-back-badge {
  display: inline-block;
  background: rgba(217,64,32,0.2);
  border: 1px solid rgba(217,64,32,0.5);
  color: #E8855A;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.offer-back-desc {
  font-size: 12px;
  color: rgba(245,230,200,0.65);
  line-height: 1.7;
  margin-bottom: 8px;
}

.offer-back-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.offer-back-old {
  font-size: 12px;
  color: rgba(245,230,200,0.35);
  text-decoration: line-through;
}

.offer-back-new {
  font-size: 18px;
  font-weight: 800;
  color: #E8855A;
}

/* ===== OFFER BUTTONS ===== */
.offer-buy-btn {
  display: block;
  width: 100%;
  margin: 3px 0;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, #D94020 0%, #E8855A 100%);
  color: #fff;
  font-weight: 800;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  min-height: 44px;
  touch-action: manipulation;
  box-shadow: 0 4px 15px rgba(217,64,32,0.4);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.offer-buy-btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.offer-buy-btn:hover::after { left: 100%; }
.offer-buy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217,64,32,0.5);
}

.offer-buy-btn:active { transform: scale(0.97); }

.offer-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px;
  border-radius: 9px;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.4);
  color: #25D366;
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
  margin: 2px 0;
  transition: all 0.2s;
}

.offer-wa-btn:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.offer-flip-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 8px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px dashed rgba(220,80,30,0.3);
  background: transparent;
  color: rgba(232,133,90,0.55);
  font-family: 'Tajawal', sans-serif;
  font-size: 11px;
  font-weight: 700;
  min-height: 38px;
  touch-action: manipulation;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.offer-flip-btn:hover {
  border-color: #E8855A;
  color: #E8855A;
  background: rgba(217,64,32,0.07);
}

/* ===== OFFER BADGE ===== */
.offer-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #D94020;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(217,64,32,0.5);
  z-index: 3;
  pointer-events: none;
  line-height: 1.4;
  width: fit-content;
  max-width: fit-content;
}

/* ===== SHARE BUTTON ===== */
.share-btn {
  display: block;
  width: 100%;
  margin: 5px 0 0;
  padding: 7px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(245,230,200,0.15);
  background: transparent;
  color: rgba(245,230,200,0.45);
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  transition: all 0.2s;
  min-height: 36px;
}

.share-btn:hover { border-color: #C9962A; color: #C9962A; background: rgba(201,150,42,0.05); }

/* Offer-specific share btn */
.offer-card-front .share-btn,
.offer-card-back .share-btn {
  border-color: rgba(220,80,30,0.2);
  color: rgba(232,133,90,0.4);
}

.offer-card-front .share-btn:hover,
.offer-card-back .share-btn:hover {
  border-color: #E8855A;
  color: #E8855A;
  background: rgba(217,64,32,0.05);
}

.old-price { font-size: 12px; color: rgba(245,230,200,0.4); text-decoration: line-through; margin: 2px 0; }
.new-price  { font-size: 16px; font-weight: 800; color: #E8855A; margin: 4px 0 8px; }

/* ===== PRODUCTS GRID ===== */
#products-section { padding-bottom: 2rem; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 12px 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== FLIP CARD SYSTEM ===== */
.card-wrapper {
  perspective: 1000px;
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
  min-height: 480px;
}

.card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.card-wrapper:nth-child(5) { animation-delay: 0.5s; }

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.card-inner.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* When flipped: disable front clicks, enable back clicks */
.card-inner.flipped .card-front {
  pointer-events: none;
}

.card-inner.flipped .card-back {
  pointer-events: auto;
}

/* ===== FRONT FACE ===== */
.card-front {
  background: rgba(25,10,0,0.88);
  border: 1px solid rgba(201,150,42,0.18);
  transition: box-shadow 0.3s, border-color 0.3s;
  overflow: hidden; /* clip ribbon + blur only on front face — safe here */
}

.card-wrapper:hover .card-front,
.card-wrapper:focus-within .card-front {
  box-shadow: 0 0 28px rgba(201,150,42,0.22);
  border-color: rgba(201,150,42,0.38);
}

.card-front img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  background: rgba(35,13,0,0.6);
  border-radius: 10px;
  padding: 6px;
}

.img-fallback {
  display: none;
  width: 100%;
  height: 140px;
  background: rgba(35,13,0,0.6);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.card-front h3 { font-size: 13px; margin: 2px 0; color: #F5E6C8; font-weight: 700; }

/* ===== BACK FACE ===== */
.card-back {
  background: linear-gradient(150deg, rgba(12,4,0,0.82) 0%, rgba(22,8,2,0.86) 100%);
  border: 1px solid rgba(201,150,42,0.35);
  transform: rotateY(180deg);
  justify-content: flex-start;
  text-align: center;
  pointer-events: none;
  overflow: hidden;
}

/* صورة الضهر */
.back-img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(35,13,0,0.5);
  padding: 6px;
  flex-shrink: 0;
}

.back-product-name {
  font-size: 14px;
  font-weight: 800;
  color: #C9962A;
  text-align: center;
  padding: 8px 0 8px;
  border-bottom: 1px solid rgba(201,150,42,0.2);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* الأزرار تنزل لأسفل */
.back-btns {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  width: 100%;
}

.back-story-btn {
  border-color: rgba(201,150,42,0.5) !important;
  background: rgba(201,150,42,0.06) !important;
}

.back-notify-row {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(217,64,32,0.2);
}

.back-notify-text {
  font-size: 11px;
  color: rgba(245,230,200,0.45);
  margin-bottom: 6px;
  line-height: 1.6;
}

.notify-btn {
  border-color: #D94020 !important;
  color: #E8855A !important;
  text-decoration: none;
}

.notify-btn:hover { background: #D94020 !important; color: #fff !important; }

/* ===== FLIP BUTTON ===== */
.flip-btn {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 9px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px dashed rgba(201,150,42,0.35);
  background: transparent;
  color: rgba(201,150,42,0.6);
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  font-weight: 700;
  min-height: 40px;
  touch-action: manipulation;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.flip-btn:hover {
  border-color: #C9962A;
  color: #C9962A;
  background: rgba(201,150,42,0.07);
}

/* ===== CAFFEINE BAR ===== */
.bar {
  width: 100%;
  height: 18px;
  background: rgba(245,230,200,0.08);
  border-radius: 14px;
  overflow: hidden;
  margin: 2px 0;
}

.fill {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C0A00;
  font-size: 11px;
  font-weight: 800;
  transition: width 1.5s ease;
}

.low     { background: #7BC67E; box-shadow: 0 0 8px rgba(123,198,126,0.5); }
.medium  { background: #E8B84B; box-shadow: 0 0 8px rgba(232,184,75,0.5); }
.high    { background: #E8855A; box-shadow: 0 0 8px rgba(232,133,90,0.5); }
.extreme { background: #D94020; box-shadow: 0 0 12px rgba(217,64,32,0.6); }

.percent { font-size: 11px; }
small { font-size: 11px; opacity: 0.65; }

/* ===== NEON BUTTON ===== */
.neonBtn {
  display: block;
  margin: 3px 0;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid #C9962A;
  background: transparent;
  color: #C9962A;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;
  width: 100%;
  font-size: 13px;
  min-height: 44px;
  touch-action: manipulation;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.neonBtn:hover  { background: #C9962A; color: #1C0A00; }
.neonBtn:active { transform: scale(0.97); }

.specs-btn {
  border-color: rgba(201,150,42,0.4);
  color: rgba(201,150,42,0.7);
  font-size: 12px;
}

.specs-btn:hover { background: rgba(201,150,42,0.15); color: #C9962A; }

.add-btn { font-weight: 800; }

/* ===== SELECT ===== */
select {
  width: 100%;
  padding: 9px 8px;
  margin: 2px 0;
  border-radius: 8px;
  background: rgba(30,12,0,0.8);
  color: #F5E6C8;
  border: 1px solid rgba(201,150,42,0.35);
  font-family: 'Tajawal', sans-serif;
  font-size: 12px;
  min-height: 40px;
  cursor: pointer;
  transition: border-color 0.2s;
}

select:focus { outline: none; border-color: #C9962A; }
select:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===== PRODUCT BADGES ===== */
.prod-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  font-family: 'Tajawal', sans-serif;
  letter-spacing: 0.2px;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.4;
  width: fit-content;
  max-width: fit-content;
}

.badge-fire    { background: #D94020; color: #fff; box-shadow: 0 1px 6px rgba(217,64,32,0.5); }
.badge-classic { background: #C9962A; color: #1C0A00; box-shadow: 0 1px 6px rgba(201,150,42,0.5); }
.badge-road    { background: #2855A0; color: #fff; box-shadow: 0 1px 6px rgba(40,85,160,0.5); }
.badge-strong  { background: #3A7A3A; color: #fff; box-shadow: 0 1px 6px rgba(58,122,58,0.5); }
.badge-coming  {
  background: #6A3AAA;
  color: #fff;
  box-shadow: 0 1px 6px rgba(106,58,170,0.5);
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 1px 6px rgba(106,58,170,0.5); }
  50%       { box-shadow: 0 1px 12px rgba(106,58,170,0.85), 0 0 0 2px rgba(140,100,210,0.3); }
}

@media (max-width: 600px) {
  .prod-badge { font-size: 8px; padding: 2px 6px; top: 6px; right: 6px; }
}

/* ===== SOLD OUT SYSTEM ===== */
.card-wrapper[data-status="sold-out"] .card-front {
  border-color: rgba(217,64,32,0.25);
}

.card-wrapper[data-status="sold-out"] .add-btn {
  display: none;
}

.sold-out-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(217,64,32,0.18) 0%, rgba(150,30,10,0.22) 100%);
  border: 1px solid rgba(217,64,32,0.5);
  border-radius: 10px;
  padding: 10px 12px;
  color: #E8855A;
  font-weight: 800;
  font-size: 13px;
  margin: 3px 0;
  box-shadow: 0 0 16px rgba(217,64,32,0.15), inset 0 1px 0 rgba(255,255,255,0.04);
  letter-spacing: 0.5px;
}

.sold-out-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 0 4px rgba(217,64,32,0.6));
}

.card-wrapper[data-status="sold-out"] .card-front::after {
  content: "نفذ";
  position: absolute;
  top: 18px;
  left: -22px;
  background: #D94020;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 30px;
  transform: rotate(-45deg);
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(217,64,32,0.4);
  pointer-events: none;
  z-index: 2;
}

/* ===== CART ===== */
#cart-section { padding: 0 14px 2rem; }

.cart {
  background: rgba(20,8,0,0.9);
  padding: 20px 16px;
  width: 92%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(201,150,42,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.cart h3 { text-align: center; color: #C9962A; margin-bottom: 14px; font-size: 1.1rem; font-weight: 800; }

.empty-cart {
  text-align: center;
  color: rgba(245,230,200,0.35);
  font-size: 0.85rem;
  padding: 2rem 0;
  display: none;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(201,150,42,0.1);
}

.item .left  { flex: 1; font-size: 13px; color: #F5E6C8; }
.item .right { color: #C9962A; font-weight: 800; font-size: 13px; white-space: nowrap; }

.qty { display: flex; align-items: center; gap: 4px; }

.qty button {
  background: rgba(201,150,42,0.15);
  border: 1px solid rgba(201,150,42,0.35);
  color: #C9962A;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty button:hover { background: #C9962A; color: #1C0A00; }
.qty span { font-size: 13px; min-width: 20px; text-align: center; color: #F5E6C8; }

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 6px;
  font-size: 1rem;
  color: rgba(245,230,200,0.7);
}

.total-amount { font-size: 1.4rem; font-weight: 800; color: #C9962A; }

/* ===== PROMO CODE ===== */
.promo-row { display: flex; gap: 8px; align-items: center; margin: 14px 0 4px; }
.promo-row input { flex: 1; margin: 0; }

.promoBtn {
  padding: 0 16px;
  height: 50px;
  background: transparent;
  border: 1px solid #C9962A;
  border-radius: 9px;
  color: #C9962A;
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.promoBtn:hover { background: #C9962A; color: #1C0A00; }

#promoMsg      { font-size: 13px; margin: 4px 0; min-height: 18px; text-align: center; }
#discountLine  { color: #7BC67E; font-weight: 700; text-align: center; font-size: 13px; margin: 4px 0; }

/* ===== CHECKOUT BUTTON ===== */
.checkoutBtn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  background: #C9962A;
  color: #1C0A00;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Tajawal', sans-serif;
  cursor: pointer;
  min-height: 50px;
  touch-action: manipulation;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.checkoutBtn:hover  { background: #E8B84B; box-shadow: 0 6px 20px rgba(201,150,42,0.3); }
.checkoutBtn:active { transform: scale(0.98); }

/* ===== INPUTS ===== */
input {
  width: 100%;
  padding: 13px;
  margin: 6px 0;
  border-radius: 9px;
  border: 1px solid rgba(201,150,42,0.25);
  background: rgba(30,12,0,0.7);
  color: #F5E6C8;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  min-height: 50px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus { border-color: #C9962A; box-shadow: 0 0 10px rgba(201,150,42,0.15); }
input::placeholder { color: rgba(245,230,200,0.35); }

/* ===== POPUP ===== */
.popup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.75);
  z-index: 99998;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.popup.active { display: flex; }

.popup-content {
  background: rgba(20,8,0,0.97);
  padding: 28px 22px 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid rgba(201,150,42,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.popup-content h3 { color: #C9962A; margin-bottom: 12px; font-size: 1.1rem; font-weight: 800; }
.popup-content p  { color: rgba(245,230,200,0.75); font-size: 14px; line-height: 1.75; }

.popup-subtitle {
  font-size: 0.8rem !important;
  color: rgba(245,230,200,0.4) !important;
  margin-bottom: 12px;
}

.popup-close {
  position: absolute;
  top: 12px;
  left: 14px;
  background: rgba(201,150,42,0.1);
  border: 1px solid rgba(201,150,42,0.2);
  color: rgba(245,230,200,0.6);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Tajawal', sans-serif;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover { background: rgba(217,64,32,0.2); color: #E8855A; border-color: #D94020; }

/* ===== FLOATING BUTTONS ===== */
.floating-cart {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 56px;
  height: 56px;
  background: #C9962A;
  color: #1C0A00;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(201,150,42,0.5);
  z-index: 9999;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s, box-shadow 0.2s;
  gap: 1px;
}

.floating-cart:hover { transform: scale(1.08); box-shadow: 0 6px 25px rgba(201,150,42,0.6); }
.floating-cart #cartCount { font-size: 11px; line-height: 1; }



/* ===== FLOATING SHARE HUB ===== */
.floating-share-hub {
  position: fixed;
  bottom: 86px;
  left: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
}

.floating-share-main {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #C9962A;
  color: #1C0A00;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(201,150,42,0.5);
  transition: transform 0.3s, background 0.2s;
  z-index: 2;
}

.floating-share-main:hover {
  background: #E8B84B;
  transform: rotate(20deg) scale(1.08);
}

/* الأيقونات مخفية بالأساس */
.floating-share-opt {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.7);
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.2s;
}

/* ألوان كل منصة */
.opt-wa { background: #25D366; transition-delay: 0.15s; }
.opt-fb { background: #1877F2; transition-delay: 0.10s; }
.opt-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); transition-delay: 0.05s; }
.opt-tt { background: #010101; border: 1px solid rgba(255,255,255,0.15); transition-delay: 0.00s; }

/* لما يتفتح */
.floating-share-hub.open .floating-share-opt {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ترتيب delays معكوس عشان الأقرب يظهر أول */

.floating-share-hub.open .floating-share-main {
  background: #E8855A;
  transform: rotate(135deg);
}

.floating-share-opt:hover {
  transform: scale(1.12) !important;
  box-shadow: 0 5px 18px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
  .floating-share-hub { bottom: 74px; left: 16px; }
  .floating-share-main { width: 44px; height: 44px; }
  .floating-share-opt  { width: 40px; height: 40px; }
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 40px;
  background: rgba(10,4,0,0.95);
  padding: 28px 16px;
  text-align: center;
  border-top: 1px solid rgba(201,150,42,0.2);
}

.footer-content h3    { color: #C9962A; font-size: 1.2rem; margin-bottom: 10px; font-weight: 800; }
.footer-note          { font-size: 13px; color: rgba(245,230,200,0.5); margin-bottom: 10px; font-style: italic; }
.footer-content p     { margin: 6px 0; font-size: 13px; color: rgba(245,230,200,0.65); line-height: 1.6; }
.footer-links         { margin: 16px 0 10px; }

.footer-links a {
  display: inline-flex;
  align-items: center;
  margin: 6px 10px;
  color: #C9962A;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 0.75; }
.copy { font-size: 12px; color: rgba(245,230,200,0.3); margin-top: 12px; }

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

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .header   { padding: 10px 50px; }
  .logo     { height: 50px; }
  .logoText { font-size: 17px; }
  .menu-btn { right: 10px; min-width: 40px; min-height: 40px; }

  .hero       { padding: 90px 20px 50px; }
  .hero-logo  { height: 140px; }
  .hero-stats { gap: 1.5rem; }

  .bestsellers {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
  }
  .bs-card img { height: 50px; }
  .bs-card p   { font-size: 9px; }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .card-wrapper,
  .card-inner   { min-height: 380px; }

  .card-face    { padding: 8px 7px; gap: 3px; }
  .card-front img, .img-fallback { height: 85px; }
  .back-img      { height: 85px; }
  .card-front h3 { font-size: 11px; margin: 1px 0; }
  .back-product-name { font-size: 11px; padding: 4px 0; }
  .neonBtn       { font-size: 11px; padding: 7px 6px; min-height: 38px; margin: 1px 0; }
  .buy-main-btn  { font-size: 11px !important; }
  select         { font-size: 11px; padding: 7px 6px; min-height: 36px; margin: 1px 0; }
  .bar           { height: 14px; margin: 1px 0; }
  .flip-btn      { font-size: 10px; min-height: 34px; padding: 6px; }
  .star-rating .stars { font-size: 10px; }
  .star-rating .rating-num { font-size: 10px; }
  .product-viewers, .offer-viewers { font-size: 9px; padding: 2px 8px; }
  small          { font-size: 10px; }

  .offers {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .offer-card-wrapper,
  .offer-card-inner { min-height: 360px; }

  .offer-card-face { padding: 8px 7px; gap: 3px; }
  .offer-card-front img { height: 75px; }
  .offer-card-front h3  { font-size: 10px; margin: 2px 0; }
  .offer-buy-btn { font-size: 11px; min-height: 38px; padding: 7px; }
  .offer-flip-btn { font-size: 10px; min-height: 32px; padding: 5px; }
  .offer-back-new { font-size: 14px; }
  .offer-back-desc { font-size: 10px; line-height: 1.5; }
  .offer-back-name { font-size: 12px; }
  .offer-back-badge { font-size: 10px; padding: 2px 8px; margin-bottom: 4px; }
  .old-price { font-size: 10px; }
  .new-price { font-size: 13px; }

  .offer-timer-bar { padding: 0.6rem 1rem; gap: 0.6rem; }
  .timer-block     { min-width: 44px; padding: 3px 7px; }
  .timer-block span { font-size: 1.1rem; }

  .cart          { width: 95%; padding: 14px 12px; }
  .floating-cart { width: 50px; height: 50px; font-size: 16px; bottom: 16px; left: 16px; }
  .popup-content { padding: 24px 16px 20px; }
}

@media (max-width: 360px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .card-wrapper, .card-inner { min-height: 400px; }
  .card-front img, .img-fallback { height: 85px; }
  .neonBtn { font-size: 10px; min-height: 36px; }
  .bestsellers { grid-template-columns: repeat(2, 1fr); }
  .offers { grid-template-columns: 1fr; }
  .offer-card-wrapper, .offer-card-inner { min-height: 360px; }
}

@media (max-width: 900px) and (orientation: landscape) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
