/* ==============================
   Pasmira Cables — Bundles Page
   Modern Redesign (Production Ready)
   ============================== */

/* ---------- THEME VARIABLES ---------- */
:root {
  --navy: #06131c;
  --bg: #0a1722;
  --bg-gradient: radial-gradient(circle at top left, #0d2b3a, #07121c 70%);
  --card: #0d1f2c;
  --glass: rgba(255, 255, 255, 0.05);
  --white: #ffffff;
  --muted: #9fb7d6;
  --accent: #00d2ff;
  --accent-2: #ffd65a;
  --error: #ff5c5c;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  --transition: 0.3s ease;
  --ff-sans: "Inter", "Segoe UI", Roboto, sans-serif;
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-sans);
  background: var(--bg-gradient);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---------- NAVBAR ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background: rgba(6, 19, 28, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.brand .logo img {
  width: 40px;
  height: 40px;
}
.brand-text {
  line-height: 1.1;
}
.brand-title {
  font-weight: 600;
  font-size: 18px;
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- NAV LINKS ---------- */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--accent);
}

/* ---------- NAV SEARCH ---------- */
.nav-search {
  position: relative;
  max-width: 420px;
  width: 100%;
}
.nav-search input {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: none;
  outline: none;
  background: var(--card);
  color: var(--white);
  font-size: 14px;
}
.nav-search input::placeholder {
  color: var(--muted);
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
  z-index: 999;
  display: none;
}
.search-row {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: background var(--transition);
}
.search-row:hover {
  background: rgba(255, 255, 255, 0.08);
}
.search-row.empty {
  color: var(--muted);
  text-align: center;
}

/* ---------- NAV RIGHT ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition);
}
.icon-btn:hover {
  transform: scale(1.1);
}
.badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--accent-2);
  color: #000;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
}

/* ---------- HEADER ---------- */
.section-header {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}
.section-header h2 {
  font-size: 2rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- PRODUCT GRID ---------- */
.product-container {
  width: 100%;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 5%;
  animation: fadeIn 0.4s ease both;
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}
.card-media {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.product-card:hover .card-media img {
  transform: scale(1.08);
}
.product-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-info h4 {
  font-size: 1rem;
  font-weight: 600;
}
.product-price {
  color: var(--accent-2);
  font-weight: 700;
}
.product-info small {
  color: var(--muted);
  font-size: 13px;
}
.btn-buy {
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}
.btn-buy:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ---------- CART MODAL (for structure only) ---------- */
.cart-modal {
  position: fixed;
  top: 0;
  right: -400px;
  width: 340px;
  height: 100%;
  background: var(--card);
  border-left: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: right var(--transition);
  z-index: 1001;
  display: flex;
  flex-direction: column;
}
.cart-modal.open {
  right: 0;
}
.cart-header,
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 15px 0;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  background: rgba(255,255,255,0.03);
  padding: 8px;
  border-radius: var(--radius);
}
.cart-name {
  font-size: 14px;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-weight: 600;
}
.cart-footer strong {
  font-size: 16px;
}
.close-cart {
  background: none;
  border: none;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 60px;
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.3);
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer a {
  color: var(--accent);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .nav-search {
    max-width: 340px;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    padding: 0 4%;
  }
}

@media (max-width: 768px) {
  .nav-center {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
  .section-header h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 500px) {
  .product-info h4 {
    font-size: 0.95rem;
  }
  .product-price {
    font-size: 0.9rem;
  }
  .btn-buy {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
}
.nav .brand {
  margin-right: 40px; /* pushes links further from logo */
}
/* ---------- HERO SECTION (Animated Parallax) ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  background: url('../assets/hero-bundles.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  /* This pseudo-element handles the zoom animation */
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: heroZoom 18s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

/* Text container */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slow background zoom animation */
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-3px);
}
/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 65vh;
  background: url('../assets/bundle-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  animation: heroZoom 18s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 2rem;
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1.2s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  color: var(--accent-2);
  text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-3px);
}
/* ---------- SEARCH RESULTS DROPDOWN ---------- */
.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  max-height: 320px;
  background: var(--card);
  border-radius: 0.75rem;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 50;
  display: none;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-item:hover {
  background: rgba(255,255,255,0.08);
}

.search-item img {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.search-item span {
  color: var(--white);
  font-weight: 500;
  flex-grow: 1;
}

.search-item small {
  color: var(--accent);
}

.no-results {
  padding: 0.75rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 26px; /* spacing between individual links */
  align-items: center;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float img {
  width: 35px;
  height: 35px;
}