:root {
  --primary-color: #ff6600;
  /* ETW Orange */
  --primary-glow: rgba(255, 102, 0, 0.6);
  --bg-dark: #050505;
  --bg-card: #0f0f0f;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --border-color: #222;
  --font-main: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: url('images/site-background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
  /* perspective: 1000px;  <-- Removed to fix fixed positioning context */
}


/* Gaming Background Particles - Site-wide */
.gaming-bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.bg-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(255, 102, 0, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.6), 0 0 40px rgba(255, 102, 0, 0.3);
  animation: bgFloat 20s infinite ease-in-out;
}

/* Distribute particles randomly */
.bg-particle:nth-child(1) {
  left: 5%;
  top: 10%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.bg-particle:nth-child(2) {
  left: 15%;
  top: 80%;
  animation-delay: 2s;
  animation-duration: 22s;
}

.bg-particle:nth-child(3) {
  left: 25%;
  top: 30%;
  animation-delay: 4s;
  animation-duration: 20s;
}

.bg-particle:nth-child(4) {
  left: 40%;
  top: 60%;
  animation-delay: 1s;
  animation-duration: 25s;
}

.bg-particle:nth-child(5) {
  left: 55%;
  top: 20%;
  animation-delay: 3s;
  animation-duration: 19s;
}

.bg-particle:nth-child(6) {
  left: 65%;
  top: 70%;
  animation-delay: 5s;
  animation-duration: 23s;
}

.bg-particle:nth-child(7) {
  left: 75%;
  top: 40%;
  animation-delay: 2.5s;
  animation-duration: 21s;
}

.bg-particle:nth-child(8) {
  left: 85%;
  top: 85%;
  animation-delay: 0.5s;
  animation-duration: 24s;
}

.bg-particle:nth-child(9) {
  left: 92%;
  top: 15%;
  animation-delay: 4.5s;
  animation-duration: 20s;
}

.bg-particle:nth-child(10) {
  left: 10%;
  top: 50%;
  animation-delay: 3.5s;
  animation-duration: 26s;
}

.bg-particle:nth-child(11) {
  left: 50%;
  top: 90%;
  animation-delay: 1.5s;
  animation-duration: 22s;
}

.bg-particle:nth-child(12) {
  left: 80%;
  top: 5%;
  animation-delay: 6s;
  animation-duration: 18s;
}

@keyframes bgFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-30px) translateX(15px) scale(1.2);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-60px) translateX(-10px) scale(0.8);
    opacity: 0.4;
  }

  75% {
    transform: translateY(-30px) translateX(20px) scale(1.1);
    opacity: 0.5;
  }
}

/* Dynamic Backgrounds */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(at 0% 0%, rgba(255, 102, 0, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(255, 102, 0, 0.05) 0px, transparent 50%);
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.08) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(0.9);
  }

  100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Navbar */
.navbar {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.nav-logo {
  height: 75px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.3));
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 450px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: 1rem;
}

#search {
  width: 100%;
  background: #151515;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 12px 12px 42px;
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#search:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #1a1a1a;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 30%, var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-gray);
  font-size: 1.2rem;
  font-weight: 300;
}

/* ETW Banner Slide (inside slider) */
.etw-banner-slide {
  background: #000 !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide-image {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
  animation: bannerFadeIn 1s ease-out;
}

@keyframes bannerFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive banner in slider */
@media (max-width: 768px) {
  .banner-slide-image {
    height: 300px;
  }
}

/* Slider Section */
.slider-section {
  padding: 0 1.5rem 2rem;
}

.slider-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.slider-wrapper {
  display: flex;
  height: 400px;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

.slide-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: white;
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 1.5rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.slider-btn:hover {
  background: var(--primary-color);
  color: black;
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  opacity: 1;
  background: var(--primary-color);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .slider-wrapper {
    height: 250px;
  }

  .slide-content h2 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}

/* Gaming Banner Section - "Where the Magic Happen" */
.gaming-banner-section {
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.gaming-banner-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(255, 106, 0, 0.2);
  border: 1px solid rgba(255, 106, 0, 0.3);
  animation: bannerPulse 4s ease-in-out infinite;
}

@keyframes bannerPulse {

  0%,
  100% {
    box-shadow:
      0 10px 40px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(255, 106, 0, 0.2);
  }

  50% {
    box-shadow:
      0 15px 50px rgba(0, 0, 0, 0.6),
      0 0 50px rgba(255, 106, 0, 0.4);
  }
}

.gaming-banner-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gaming-banner-img {
  width: 100%;
  height: auto;
  display: block;
  animation: fadeInUp 1s ease-out;
  transition: transform 0.5s ease;
}

.gaming-banner-wrapper:hover .gaming-banner-img {
  transform: scale(1.02);
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.gaming-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(255, 106, 0, 0.1) 0%,
      transparent 60%,
      rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gaming-banner-wrapper:hover .gaming-banner-overlay {
  opacity: 1;
}

/* Floating Particles */
.floating-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 106, 0, 0.6);
  border-radius: 50%;
  animation: floatUp 6s infinite ease-in-out;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 30%;
  animation-delay: 1.5s;
}

.particle:nth-child(3) {
  left: 50%;
  animation-delay: 3s;
}

.particle:nth-child(4) {
  left: 70%;
  animation-delay: 4.5s;
}

.particle:nth-child(5) {
  left: 90%;
  animation-delay: 2s;
}

@keyframes floatUp {

  0%,
  100% {
    transform: translateY(100%) scale(0);
    opacity: 0;
  }

  20% {
    opacity: 1;
    transform: translateY(80%) scale(1);
  }

  80% {
    opacity: 0.8;
    transform: translateY(20%) scale(1);
  }

  100% {
    transform: translateY(-10%) scale(0);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .gaming-banner-section {
    padding: 1.5rem 1rem;
  }

  .gaming-banner-wrapper {
    border-radius: 12px;
  }

  .particle {
    width: 4px;
    height: 4px;
  }
}

/* Filters */
.filters-section {
  padding: 1.5rem 0;
  position: sticky;
  top: 100px;
  z-index: 900;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95), transparent);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.filters-section.scroll-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.filters-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: #111;
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 102, 0, 0.2);
}

.filter-btn.active {
  background: var(--primary-color);
  color: #000;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1.05);
}

/* Filter Dropdown */
.filter-dropdown {
  position: relative;
  display: inline-block;
}

.filter-dropdown .filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s;
}

.filter-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: rgba(17, 17, 17, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

/* Fix: Invisible bridge to prevent dropdown closing when moving mouse over the gap */
.filter-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  /* Covers the gap + margin */
  background: transparent;
  display: block;
}

.filter-dropdown:hover .dropdown-content {
  display: block;
  animation: dropdownFadeIn 0.2s ease;
}

.dropdown-content a {
  display: block;
  padding: 12px 18px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary-color);
  padding-left: 24px;
}

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

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

/* Sidebar Expandable Sections */
.sidebar-section {
  margin-bottom: 8px;
}

.sidebar-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-gray);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  font-weight: 600;
}

.sidebar-section-header:hover {
  background: rgba(255, 102, 0, 0.1);
  color: white;
}

.sidebar-section-header span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-section-header i.section-arrow {
  transition: transform 0.3s;
  font-size: 0.85rem;
}

.sidebar-section.expanded .section-arrow {
  transform: rotate(180deg);
}

.sidebar-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 20px;
}

.sidebar-section.expanded .sidebar-section-content {
  max-height: 500px;
}

.sidebar-sublink {
  display: block;
  padding: 10px 16px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  margin-bottom: 4px;
  transition: all 0.2s;
}

.sidebar-sublink:hover {
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary-color);
  padding-left: 20px;
}

/* Products Grid */
.products-section {
  padding-bottom: 5rem;
  perspective: 1000px;
  /* Moved here for 3D card effects */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

/* 3D Card Effect */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Inner highlight for 3D effect */
.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 40%);
  pointer-events: none;
}

.product-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 102, 0, 0.1);
  border-color: rgba(255, 102, 0, 0.3);
  z-index: 10;
}

/* Stock Badge on Card */
.card-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
}

.card-stock-badge.in-stock {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.card-stock-badge.out-of-stock {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Disabled Add to Cart Button */
.add-cart-btn:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

.add-cart-btn:disabled:hover {
  background: #444;
  box-shadow: none;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
  transform: translateZ(20px);
  /* 3D pop */
}

.product-card:hover img {
  transform: translateZ(40px) scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  transform: translateZ(10px);
}

.product-info h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-info p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;

  /* Line Clamping */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.order-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}

.order-btn:hover {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.hidden {
  display: none !important;
}

#no-results {
  text-align: center;
  padding: 4rem;
  color: var(--text-gray);
}

#no-results i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

footer {
  text-align: center;
  padding: 2rem;
  color: #444;
  font-size: 0.9rem;
}

/* RESPONSIVE DESIGN */

/* Tablet (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-wrapper {
    height: 300px;
  }
}

/* Mobile (Up to 768px) */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
    position: relative;
    /* Context for absolute logo */
  }

  /* Reset conflicting mobile styles */
  .nav-logo {
    height: 50px;
    /* Clean up old overrides */
  }

  .cart-icon-container {
    /* Reset outdated absolute positioning */
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .slider-wrapper {
    height: 220px;
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .slide-content p {
    font-size: 0.9rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .filters-container {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  /* Modal responsive */
  .modal-content {
    width: 95%;
    padding: 15px;
  }
}

/* Small Mobile (Up to 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .filters-section {
    display: none;
  }

  .nav-logo {
    height: 50px;
  }
}

/* Cart Styles */
.cart-icon-container {
  position: relative;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  margin-left: 20px;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-icon-wrapper {
  position: relative;
  transition: all 0.3s ease;
}

#header-cart-total {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.cart-icon-container:hover {
  transform: none;
  /* Disable full container scale */
  color: white;
  /* Reset default color change */
}

.cart-icon-container:hover #header-cart-total {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.cart-icon-container:hover .cart-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-color);
  color: black;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 50%;
  box-shadow: 0 0 5px var(--primary-glow);
  min-width: 15px;
  text-align: center;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: #111;
  border: 1px solid var(--primary-color);
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  transform: scale(1);
  transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
  transform: scale(0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
}

.close-modal {
  font-size: 2rem;
  cursor: pointer;
  color: #888;
}

.close-modal:hover {
  color: white;
}

.cart-items-container {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #222;
}

.cart-item-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-info p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin: 0;
}

.remove-btn {
  color: #ff4444;
  cursor: pointer;
  margin-left: 10px;
}

.modal-footer {
  border-top: 1px solid #333;
  padding-top: 15px;
}

.cart-total {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: right;
}

.checkout-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: #1ebc57;
}

/* Add to Cart Button */
.add-cart-btn {
  background: var(--primary-color);
  color: black;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-cart-btn:hover {
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* Sidebar & Hamburger (Mobile Only Defaults) */
.hamburger-menu {
  display: none;
  /* Hidden on desktop */
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  margin-right: 15px;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  /* Hidden by default */
  width: 280px;
  height: 100%;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  z-index: 3000;
  transition: left 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  left: 0;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 2500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  height: 40px;
}

.close-sidebar {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-gray);
  transition: color 0.2s;
}

.close-sidebar:hover {
  color: var(--primary-color);
}

.sidebar-nav {
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-gray);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.2s;
  font-weight: 500;
}

.sidebar-link i {
  width: 25px;
  margin-right: 10px;
  color: var(--primary-color);
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 102, 0, 0.1);
  /* Orange Tint */
  color: white;
  border-left: 3px solid var(--primary-color);
}

.sidebar-divider {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #555;
  margin: 15px 0 10px 10px;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Responsive Overrides for Sidebar */
@media (max-width: 768px) {
  .nav-container {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    grid-template-areas:
      "menu logo cart"
      "search search search";
    align-items: center;
    gap: 15px 0;
    padding: 1rem 1.5rem;
  }

  .hamburger-menu {
    grid-area: menu;
    display: flex;
    justify-content: flex-start;
    order: unset;
    /* Reset order */
  }

  .nav-logo-link {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    order: unset;
  }

  .nav-logo {
    position: static;
    transform: none;
    height: 50px;
  }

  .cart-icon-container {
    grid-area: cart;
    display: flex;
    justify-content: flex-end;
    margin: 0;
    order: unset;
    /* Ensure no absolute shifting */
    top: auto;
    right: auto;
    position: relative;
    /* Restored for badge context */
  }

  #header-cart-total {
    display: none;
  }

  .search-container {
    grid-area: search;
    width: 100%;
    margin-top: 0;
    order: unset;
  }
}

/* Side Banners Layout */
.page-layout {
  display: block;
  /* Standard block layout */
  position: relative;
  width: 100%;
  max-width: 100%;
}

.central-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* Strictly centered */
  position: relative;
  z-index: 10;
}

.side-banner {
  width: 280px;
  min-height: 600px;
  /* Increased from 400px */
  height: auto;
  max-height: 85vh;
  /* Increased from 70vh */
  padding: 30px 10px;

  position: fixed;
  top: 180px;
  /* Increased top space */

  /* Glass / Card Style */
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;

  /* Floating Shadow */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 102, 0, 0.1);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 50;

  /* Floating Animation */
  animation: floatBanner 6s ease-in-out infinite;
}

.side-banner.left-banner {
  left: calc(50% - 900px);
  /* Center(50%) - HalfContent(600) - Banner(280) - Gap(20) */
  border-right: 2px solid var(--primary-color);
  animation-delay: 0s;
}

.side-banner.right-banner {
  right: calc(50% - 900px);
  border-left: 2px solid var(--primary-color);
  animation-delay: 3s;
  /* Offset float */
}


/* Hover Effect */
.side-banner:hover {
  border-color: var(--primary-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 102, 0, 0.2);
  transform: translateY(-5px);
}

/* Hot Deal Product Card in Banner */
.hot-deal-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInBanner 0.5s ease forwards;
}

.hot-deal-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
  transform: scale(1.02);
}

.hot-deal-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 8px;
}

.hot-deal-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.3;
}

.hot-deal-card p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 10px;
  line-height: 1.4;
}

.hot-deal-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.hot-deal-btn {
  width: 100%;
  background: var(--primary-color);
  color: #000;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.hot-deal-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.4);
}

@keyframes fadeInBanner {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

@keyframes floatBanner {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Responsiveness for Banners */
/* Hide banners if screen is too narrow to fit 1200px content + 2x280px banners + margins */
/* 1200 + 560 + 40 = 1800px minimum width */
@media (max-width: 1800px) {
  .side-banner {
    display: none;
  }

  .central-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
  }
}

/* Product Card Link */
.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card-link:hover {
  color: inherit;
}

/* Product Detail Page */
.product-detail-page {
  padding: 2rem 0 5rem;
  min-height: 70vh;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-gray);
  text-decoration: none;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary-color);
}

.product-detail-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-media {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.product-main-image-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.product-main-image-container img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s ease-in-out;
}

/* Gallery Thumbs */
.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.product-gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.product-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.gallery-thumb:hover {
  border-color: rgba(255, 102, 0, 0.5);
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--primary-color);
  background: rgba(255, 102, 0, 0.1);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.product-detail-info h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.product-category-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.product-brand {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.product-description {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 102, 0, 0.15);
  border-radius: 16px;
  flex-wrap: wrap;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
}

.product-stock {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-stock.in-stock {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.product-stock.out-of-stock {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.product-warranty {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(139, 69, 19, 0.2);
  color: #d35400;
  border: 1px solid rgba(211, 84, 0, 0.3);
}

.product-detail-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.product-detail-actions .add-cart-btn,
.product-detail-actions .order-btn {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Responsive Product Detail */
@media (max-width: 900px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-image img {
    max-height: 300px;
  }

  .product-detail-info h1 {
    font-size: 1.6rem;
  }

  .product-detail-price {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .product-detail-container {
    padding: 1.5rem;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions .add-cart-btn,
  .product-detail-actions .order-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reviews and Location Section */
.reviews-location-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  background: linear-gradient(to top, #000, rgba(20, 20, 20, 0.8));
}

.reviews-location-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #fff;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
}

/* Reviews */
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s;
  position: relative;
}

.review-card:hover {
  transform: translateX(10px);
  border-color: rgba(255, 102, 0, 0.3);
}

.google-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.google-badge i {
  background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 14px;
}

.review-header {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.reviewer-avatar {
  width: 45px;
  height: 45px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.2rem;
}

.reviewer-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: #fff;
}

.stars {
  color: #ffb400;
  font-size: 0.8rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  font-style: italic;
}

/* Map */
.map-wrapper {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
}

.location-address {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  padding-left: 10px;
}

.location-address i {
  color: var(--primary-color);
  margin-right: 8px;
}

/* Responsive for Reviews & Location */
@media (max-width: 900px) {
  .reviews-location-section .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .map-wrapper {
    height: 300px;
  }
}

/* Category Scroll Sections */
.category-scroll-section {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.category-scroll-section .section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-scroll-section .section-title i {
  color: var(--primary-color);
  font-size: 1.4rem;
}

/* Horizontal Product Scroll Section */
.horizontal-products-section {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(to bottom, #111, #000);
}

.horizontal-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for horizontal section - HIDDEN as per request */
.horizontal-scroll-container::-webkit-scrollbar {
  display: none;
}

.horizontal-scroll-container {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  cursor: grab;
  /* Indicate draggable */
}

.horizontal-scroll-container.active {
  cursor: grabbing;
}

.horizontal-card {
  min-width: 260px;
  max-width: 260px;
  background: rgba(30, 30, 30, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.horizontal-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  background: rgba(40, 40, 40, 0.8);
}

.horizontal-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

.horizontal-card h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.horizontal-card .price {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: auto;
}

/* Live Search Dropdown */
.search-container {
  position: relative;
  /* Ensure absolute child aligns */
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  /* Hidden by default */
}

.search-dropdown.active {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: rgba(255, 102, 0, 0.1);
}

.search-item-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-item-info {
  flex: 1;
}

.search-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 2px;
}

.search-item-price {
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

/* Scrollbar for dropdown */
.search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-dropdown::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

/* --- Admin Panel Scroll Fixes --- */
.table-container {
  overflow-y: auto;
  overflow-x: auto;
  max-height: calc(100vh - 200px);
  /* Restrict height to prompt scrolling */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Ensure main content scrolls if needed (Admin Panel Only) */
.admin-container .main-content {
  overflow-y: auto;
  height: 100vh;
}

/* --- Advanced Cart Styles --- */

/* Glassmorphism Modal Content */
.glass-modal {
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.modal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-size: 1.5rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.cart-badge-modal {
  background: var(--primary-color);
  color: #000;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
}

.clear-cart-btn {
  background: transparent;
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: #ff6b6b;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
  margin-right: 15px;
}

.clear-cart-btn:hover {
  background: rgba(255, 100, 100, 0.1);
  border-color: #ff6b6b;
}

.close-modal {
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* Cart Items Container */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Cart Item Row */
.cart-item {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px;
  transition: transform 0.2s, background 0.2s;
  gap: 15px;
}

.cart-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
  color: #fff;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #aaa;
}

/* Quantity Controls */
.qty-control {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 2px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
}

.qty-btn:hover {
  color: var(--primary-color);
}

.qty-value {
  width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Remove Button */
.remove-btn {
  color: #666;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s;
}

.remove-btn:hover {
  color: #ff4d4d;
}

/* Footer & Actions */
.modal-footer {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.total-amount {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.2s, transform 0.1s;
}

.action-btn:active {
  transform: scale(0.98);
}

.primary-btn {
  background: var(--primary-color);
  color: #000;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.primary-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px rgba(255, 102, 0, 0.4);
}