/* Scriptek - Premium Glassmorphism Theme (v5.0) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

:root {
  --brand: #ff7a00;
  --brand-light: #ffc107;
  --brand-dark: #cc6200;
  --bg: #f8f9fa;
  --bg-alt: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6c757d;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 122, 0, 0.15);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --panel: #ffffff;
  --border: #edf2f7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

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

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   NAVBAR - Glass with Brand Accent
   ============================================================ */
.navbar {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform, backdrop-filter;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.4);
  height: 85px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  width: 96%;
  max-width: 1400px;
  border-radius: 28px;
}

.logo-img {
  height: 55px;
  /* Taller by default as requested */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: #333;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  background: rgba(0, 0, 0, 0.05);
}

/* ============================================================
   HERO SECTION - Full Background Image
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.0) 0%,
      rgba(0, 0, 0, 0.55) 55%,
      rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  animation: fadeIn 0.8s ease forwards;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-text h1 .brand-word {
  color: var(--brand);
  text-shadow: 0 0 30px rgba(255, 122, 0, 0.4);
}

.hero-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 480px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  padding: 1.8rem 2.2rem;
  color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hero-stats-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 122, 0, 0.4);
}

/* ============================================================
   GLASSMORPHISM
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.glass-accent {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-radius: 24px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: transform, backdrop-filter;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.glass-panel:hover {
  transform: translateY(-4px) translateZ(0);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.bg-bottom-premium {
  background: #0a0a0a url('/assets/footer-bg.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

.bg-bottom-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
  z-index: 1;
}

.bg-bottom-premium>* {
  position: relative;
  z-index: 2;
}

/* ============================================================
   TYPOGRAPHY & COLORS
   ============================================================ */
.text-brand {
  color: var(--brand);
}

.bg-brand {
  background-color: var(--brand);
}

.border-brand {
  border-color: var(--brand);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: #111;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 122, 0, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 122, 0, 0.1);
}

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--brand);
  color: var(--brand);
}

.btn-outline:hover {
  background: var(--brand);
  color: white;
}

/* Store page secondary - needs dark text */
.store-filter {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.store-filter:hover {
  background: var(--bg);
  border-color: var(--brand);
}

/* ============================================================
   CARDS
   ============================================================ */
.product-card {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 16px;
  transition: all 0.4s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px rgba(255, 122, 0, 0.08);
}

.product-card img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 14px;
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-hero {
  padding: 40px 0 80px;
  background: linear-gradient(180deg, #f8f5f0 0%, #ffffff 100%);
}

.product-image-main {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 3px solid white;
}

.product-details-card {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: 92px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #faf8f5;
  border-radius: 12px;
  border: 1px solid #f0ebe3;
}

.feature-item i {
  color: var(--brand);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-vrp {
  background: rgba(255, 122, 0, 0.1);
  color: var(--brand);
}

.badge-esx {
  background: rgba(0, 123, 255, 0.1);
  color: #007bff;
}

/* ============================================================
   INPUT FIELDS
   ============================================================ */
.input {
  width: 100%;
  padding: 14px 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: all 0.2s;
  font-family: 'Cairo', sans-serif;
}

.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.2, 0, 0.2, 1) forwards;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

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

/* RTL Helpers */
[dir="rtl"] .me-auto {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .ms-auto {
  margin-right: auto;
  margin-left: 0;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-section {
    min-height: 70vh;
  }

  .product-card {
    margin-bottom: 20px;
  }
}

/* ============================================================
   PREMIUM DASHBOARD & CHECKOUT UI
   ============================================================ */
.dash-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.1rem;
  color: white;
  width: 100%;
  transition: all 0.2s ease;
  font-weight: 600;
  font-family: inherit;
}
.dash-input:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.coupon-card-premium {
  background: #000;
  border: 1px solid rgba(255, 122, 0, 0.3);
  border-radius: 24px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  color: var(--brand);
}
.coupon-card-premium:hover {
  border-color: var(--brand);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 122, 0, 0.15);
}

.multi-select-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  max-height: 180px;
  overflow-y: auto;
}
.multi-select-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.multi-select-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 520px;
  border-radius: 2.5rem;
  overflow: hidden;
}
@media (max-width: 992px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.5;
  cursor: pointer;
}
select option {
  background: #111;
  color: #fff;
}