@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ex-primary: #5B2A86; /* Tekhelet */
  --ex-primary-hover: #360568; /* Persian Indigo */
  --ex-secondary: rgba(255, 255, 255, 0.15); /* Glass */
  --ex-text: #FFFFFF;
  --ex-text-muted: rgba(255, 255, 255, 0.7);
  --ex-bg: transparent;
  --ex-bg-dark: rgba(0, 0, 0, 0.3);
  --ex-border: rgba(255, 255, 255, 0.2);
  --ex-success: #A5E6BA; /* Celadon */
  --ex-info: #9AC6C5; /* Light Teal */
  --ex-transition: 0.3s ease;
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-bg-hover: rgba(255, 255, 255, 0.2);
  --glass-border: 1px solid rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  --glass-radius: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--ex-text);
  margin: 0;
  padding: 0;
  
  /* Animated Mesh Gradient Background */
  background: linear-gradient(-45deg, #360568, #5B2A86, #7785AC, #9AC6C5);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Reusable Glass Class */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
}

/* =========================================
   Top Banner
   ========================================= */
.top-promo-bar {
  background-color: rgba(54, 5, 104, 0.8);
  backdrop-filter: blur(10px);
  color: #FAFAFA;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: var(--glass-border);
}
.top-promo-bar a {
  color: var(--ex-success);
  font-weight: 600;
  text-decoration: none;
  margin-left: 8px;
}
.top-promo-bar a:hover {
  text-decoration: underline;
}
.top-promo-bar select {
  background: transparent;
  color: #FAFAFA;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  padding: 2px 8px;
}
.top-promo-bar select option {
  color: #000;
}

/* =========================================
   Navbar
   ========================================= */
.ex-navbar {
  padding: 16px 0;
  border-bottom: var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--glass-shadow);
}
.ex-brand {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ex-text);
  text-decoration: none;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.ex-brand:hover {
    color: var(--ex-success);
    text-decoration: none;
}
.ex-nav-links a {
  color: var(--ex-text);
  font-size: 16px;
  font-weight: 500;
  margin: 0 16px;
  text-decoration: none;
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.ex-nav-links a:hover::after,
.ex-nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--ex-success);
  border-radius: 2px;
}
.ex-nav-links a:hover {
    color: var(--ex-success);
}
.ex-search-box {
  background-color: var(--glass-bg);
  border: var(--glass-border);
  border-radius: 20px;
  padding: 8px 12px 8px 20px;
  display: flex;
  align-items: center;
  width: 240px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}
.ex-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: white;
}
.ex-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.ex-search-box i {
  color: white;
  cursor: pointer;
}
.ex-nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 24px;
}
.ex-nav-icons a {
  color: var(--ex-text);
  font-size: 20px;
  text-decoration: none;
  position: relative;
}
.ex-nav-icons a:hover {
    color: var(--ex-success);
}
.ex-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--ex-primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
}

/* =========================================
   Home Page - Hero Section
   ========================================= */
.hero-section {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}
.hero-sidebar {
  width: 217px;
  border-right: var(--glass-border);
  padding-right: 16px;
  padding-top: 20px;
}
.hero-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-sidebar li {
  margin-bottom: 16px;
}
.hero-sidebar a {
  color: var(--ex-text);
  text-decoration: none;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--ex-transition);
}
.hero-sidebar a:hover {
  background: var(--glass-bg);
  color: var(--ex-success);
}
.hero-slider {
  flex: 1;
  padding-top: 20px;
}
.hero-banner {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  position: relative;
  overflow: hidden;
  min-height: 344px;
}
.hero-banner-content {
  z-index: 2;
  max-width: 50%;
}
.hero-apple-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-apple-logo span {
  font-size: 16px;
  font-weight: 400;
}
.hero-banner h2 {
  font-size: 48px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.hero-shop-now {
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid var(--ex-success);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--ex-transition);
}
.hero-shop-now:hover {
  color: var(--ex-success);
  text-decoration: none;
}
.hero-banner-img {
  position: absolute;
  right: -5%;
  top: 5%;
  height: 90%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
}

/* =========================================
   Section Titles
   ========================================= */
.section-tag {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ex-success);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.section-tag-rect {
  width: 20px;
  height: 40px;
  background-color: var(--ex-success);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(165, 230, 186, 0.5);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin: 0;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.section-header-left {
  display: flex;
  align-items: flex-end;
  gap: 80px;
}

/* Flash Sales Countdown */
.countdown {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}
.countdown-item {
  display: flex;
  flex-direction: column;
}
.countdown-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ex-text-muted);
}
.countdown-val {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.countdown-sep {
  color: var(--ex-success);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* Section Nav Arrows */
.section-nav-arrows {
  display: flex;
  gap: 8px;
}
.ex-arrow-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: white;
  transition: var(--ex-transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.ex-arrow-btn:hover {
  background: var(--ex-primary);
  transform: translateY(-2px);
}

/* =========================================
   Product Card
   ========================================= */
.ex-product-card {
  width: 100%;
  position: relative;
  margin-bottom: 24px;
}
.ex-product-img-box {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 16px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
  transition: var(--ex-transition);
  box-shadow: var(--glass-shadow);
}
.ex-product-img-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.4);
}
.ex-product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
  transition: 0.5s ease;
}
.ex-product-img-box:hover img {
    transform: scale(1.05);
}
.ex-discount-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--ex-primary);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}
.ex-new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--ex-success);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 2;
}
.ex-action-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.ex-icon-btn {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: var(--ex-transition);
}
.ex-icon-btn:hover {
  background: var(--ex-primary);
  color: white;
}
.ex-add-to-cart {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  color: white;
  text-align: center;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  border-radius: 0 0 16px 16px;
  transition: bottom 0.3s ease;
  z-index: 3;
}
.ex-product-img-box:hover .ex-add-to-cart {
  bottom: 0;
}
.ex-product-info {
  padding-top: 16px;
}
.ex-product-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.ex-product-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ex-price {
  color: var(--ex-success);
  font-weight: 600;
  font-size: 18px;
}
.ex-price-old {
  color: var(--ex-text-muted);
  text-decoration: line-through;
  font-weight: 400;
  font-size: 14px;
}
.ex-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ex-stars {
  color: #FFD700;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(255,215,0,0.5);
}
.ex-reviews {
  color: var(--ex-text-muted);
  font-size: 14px;
  font-weight: 400;
}

/* =========================================
   Buttons
   ========================================= */
.btn-ex-primary {
  background: linear-gradient(135deg, var(--ex-primary), var(--ex-primary-hover));
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ex-transition);
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(54, 5, 104, 0.4);
}
.btn-ex-primary:hover {
  background: linear-gradient(135deg, var(--ex-primary-hover), var(--ex-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(54, 5, 104, 0.6);
  color: white;
  text-decoration: none;
}

/* =========================================
   Category Boxes
   ========================================= */
.category-box {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  transition: var(--ex-transition);
  color: white;
  text-decoration: none;
  height: 145px;
  box-shadow: var(--glass-shadow);
}
.category-box i {
  font-size: 36px;
  color: white;
  transition: var(--ex-transition);
}
.category-box span {
  font-size: 16px;
  font-weight: 500;
}
.category-box:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.category-box:hover i {
    transform: scale(1.1);
    color: var(--ex-success);
}

/* =========================================
   JBL Promo Banner
   ========================================= */
.promo-banner {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(165,230,186,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}
.promo-content {
  z-index: 2;
  max-width: 50%;
}
.promo-tag {
  color: var(--ex-success);
  font-weight: 600;
  margin-bottom: 32px;
  text-shadow: 0 0 10px rgba(165,230,186,0.3);
}
.promo-content h2 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 32px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.promo-timer {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}
.promo-circle {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.promo-circle strong {
  font-size: 16px;
  line-height: 1;
}
.promo-circle span {
  font-size: 11px;
}
.btn-ex-success {
  background-color: var(--ex-success);
  color: #1a1a1a;
  border: none;
  padding: 16px 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(165, 230, 186, 0.4);
  transition: var(--ex-transition);
}
.btn-ex-success:hover {
    background-color: white;
    transform: translateY(-2px);
}
.promo-img-wrapper {
  position: relative;
  z-index: 2;
}
.promo-img-wrapper img {
  max-height: 330px;
  filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.5));
}

/* =========================================
   New Arrivals Bento Grid
   ========================================= */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  height: 600px;
}
.bento-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  color: white;
  box-shadow: var(--glass-shadow);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: 0.5s ease;
}
.bento-item:hover img {
    opacity: 1;
    transform: scale(1.05);
}
.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 32px;
  width: 100%;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  z-index: 2;
}
.bento-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.bento-content p {
  font-size: 14px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.8);
  max-width: 250px;
}
.bento-link {
  color: white;
  text-decoration: underline;
  font-weight: 500;
}
.bento-link:hover { color: var(--ex-success); }
.bento-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
}
.bento-right-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* =========================================
   Features
   ========================================= */
.features-section {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin: 100px 0;
}
.feature-box {
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  width: 260px;
  transition: var(--ex-transition);
}
.feature-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}
.feature-icon-outer {
  width: 80px;
  height: 80px;
  background-color: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}
.feature-icon-inner {
  width: 58px;
  height: 58px;
  background-color: var(--ex-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 24px;
}
.feature-box h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}
.feature-box p {
  font-size: 14px;
  color: var(--ex-text-muted);
}

/* =========================================
   Footer
   ========================================= */
.ex-footer {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: var(--glass-border);
  color: #FAFAFA;
  padding: 80px 0 24px;
  margin-top: auto;
}
.ex-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.ex-footer h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  color: white;
}
.ex-footer p, .ex-footer a {
  color: var(--ex-text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  text-decoration: none;
  display: block;
  transition: var(--ex-transition);
}
.ex-footer a:hover {
  color: var(--ex-success);
  padding-left: 5px;
}
.ex-subscribe-box {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  margin-top: 16px;
  transition: var(--ex-transition);
}
.ex-subscribe-box:focus-within {
    border-color: var(--ex-success);
    background: rgba(255,255,255,0.1);
}
.ex-subscribe-box input {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  width: 100%;
}
.ex-subscribe-box i {
  color: white;
  cursor: pointer;
}
.ex-subscribe-box i:hover { color: var(--ex-success); }
.ex-app-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ex-app-links img {
  height: 40px;
  border-radius: 4px;
}
.ex-qr {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.9);
}
.ex-social-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}
.ex-social-links a {
  font-size: 20px;
  color: white;
  background: rgba(255,255,255,0.1);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--ex-transition);
}
.ex-social-links a:hover {
    background: var(--ex-primary);
    transform: translateY(-3px);
}
.ex-copyright {
  text-align: center;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 14px;
}

/* Utilities */
.mb-80 { margin-bottom: 80px; }
.ex-divider {
  border-top: var(--glass-border);
  margin: 60px 0;
}

/* =========================================
   Mobile Responsive Media Queries
   ========================================= */
@media (max-width: 991px) {
  .ex-navbar .container {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  .hero-section {
    flex-direction: column;
    gap: 20px;
  }
  .hero-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: var(--glass-border);
    padding-bottom: 20px;
  }
  .hero-slider {
    padding-left: 0 !important;
  }
  .ex-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-header-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .section-title {
    font-size: 24px;
  }
}
