* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-soft: #e8f4fd;
  --primary-light: #bde4ff;
  --primary-medium: #7cc7ff;
  --primary-dark: #4a9eff;

  --secondary-soft: #f8e8ff;
  --secondary-light: #e8c5ff;
  --secondary-medium: #d4a5ff;
  --secondary-dark: #b885ff;

  --accent-soft: #e8fff4;
  --accent-light: #b8ffdb;
  --accent-medium: #85ffb8;
  --accent-dark: #52ff95;

  --pink-soft: #ffe8f4;
  --pink-light: #ffb8d6;
  --pink-medium: #ff85b8;
  --pink-dark: #ff5299;

  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--secondary-soft) 50%, var(--pink-soft) 100%);
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: 60px; /* Space for fixed header on mobile */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Smaller padding for mobile */
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bubbles {
  position: relative;
  display: flex;
  width: 100%;
  height: 100vh;
}

.bubbles span {
  position: absolute;
  bottom: -70px;
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(125, 199, 255, 0.3);
  animation: animate calc(15s * var(--i)) linear infinite;
}

.bubbles span:nth-child(even) {
  background: linear-gradient(45deg, var(--pink-light), var(--accent-light));
  box-shadow: 0 0 20px rgba(255, 184, 214, 0.3);
}

.bubbles span:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  top: 10px;
  left: 10px;
  filter: blur(2px);
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 50%;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

.bubbles span:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}
.bubbles span:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}
.bubbles span:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}
.bubbles span:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}
.bubbles span:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}
.bubbles span:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}
.bubbles span:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}
.bubbles span:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}
.bubbles span:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}
.bubbles span:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}
.bubbles span:nth-child(11) {
  left: 90%;
  width: 40px;
  height: 40px;
  animation-delay: 8s;
}
.bubbles span:nth-child(12) {
  left: 5%;
  width: 90px;
  height: 90px;
  animation-delay: 6s;
}
.bubbles span:nth-child(13) {
  left: 15%;
  width: 30px;
  height: 30px;
  animation-delay: 10s;
}
.bubbles span:nth-child(14) {
  left: 60%;
  width: 70px;
  height: 70px;
  animation-delay: 4s;
}
.bubbles span:nth-child(15) {
  left: 30%;
  width: 50px;
  height: 50px;
  animation-delay: 12s;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: linear-gradient(45deg, var(--accent-light), var(--primary-light));
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.shape-2 {
  width: 150px;
  height: 150px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 60%;
  right: 10%;
  animation-delay: 5s;
}
.shape-3 {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 40%;
  right: 30%;
  animation-delay: 10s;
}
.shape-4 {
  width: 120px;
  height: 120px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  bottom: 20%;
  left: 20%;
  animation-delay: 15s;
}
.shape-5 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: 10%;
  right: 20%;
  animation-delay: 8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Header */
.header {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed; /* Fixed header for mobile */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  height: 60px; /* Fixed height for mobile header */
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0; /* Adjust padding */
  width: 100%; /* Take full width of container */
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  font-size: 1.8rem; /* Smaller icon on mobile */
  color: var(--primary-dark);
  filter: drop-shadow(0 0 10px rgba(74, 158, 255, 0.3));
}

.logo h1 {
  font-size: 1.3rem; /* Smaller logo text on mobile */
  font-weight: bold;
  background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: none; /* Hidden by default on mobile */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-btn {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.6rem; /* Smaller padding for mobile */
  border-radius: 12px; /* Smaller border-radius */
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cart-btn i {
  font-size: 1.1rem; /* Smaller icon */
}

.cart-count {
  position: absolute;
  top: -6px; /* Adjusted position */
  right: -6px; /* Adjusted position */
  background: linear-gradient(45deg, var(--pink-medium), var(--secondary-medium));
  color: white;
  border-radius: 50%;
  width: 20px; /* Smaller size */
  height: 20px; /* Smaller size */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem; /* Smaller font */
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 82, 153, 0.4);
}

.account-btn {
  padding: 0.6rem 1rem; /* Smaller padding for mobile */
  border-radius: 12px; /* Smaller border-radius */
  font-size: 0.9rem; /* Smaller font */
}

.account-btn i {
  font-size: 1.1rem; /* Smaller icon */
}

.mobile-menu-toggle {
  display: block; /* Show hamburger on mobile */
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
  z-index: 998; /* Below mobile menu, above content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: flex-end; /* Push menu to the right */
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute; /* Position relative to overlay */
  top: 0;
  right: 0; /* Slide from right */
  width: 70%; /* Take 70% of screen width */
  max-width: 300px; /* Max width for larger tablets */
  height: 100%;
  background: var(--white);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-menu {
  display: flex; /* Always show when overlay is active */
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.mobile-nav-menu a {
  color: var(--text-primary); /* Darker text for readability on white background */
  font-size: 1.2rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
  background: var(--primary-soft);
}

.close-mobile-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-light);
  cursor: pointer;
  z-index: 1001; /* Ensure it's above the menu content */
}

.close-mobile-menu:hover {
  color: var(--pink-dark);
}

/* Hero Section */
.hero {
  padding: 4rem 0; /* Smaller padding for mobile */
  text-align: center;
  position: relative;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem); /* Adjust clamp for smaller screens */
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark), var(--pink-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark), var(--pink-dark));
    -webkit-background-clip: text;
    background-clip: text;
  }
  50% {
    background: linear-gradient(45deg, var(--pink-dark), var(--accent-dark), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.hero-description {
  font-size: 1rem; /* Smaller font size */
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem; /* Smaller padding for mobile buttons */
  border: none;
  border-radius: 50px;
  font-size: 0.9rem; /* Smaller font size */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-medium), var(--secondary-medium));
  color: white;
  box-shadow: 0 8px 25px rgba(125, 199, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(125, 199, 255, 0.4);
}

.btn-secondary {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(125, 199, 255, 0.2);
}

.btn-white {
  background: linear-gradient(45deg, var(--white), var(--primary-soft));
  color: var(--primary-dark);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.4);
}

/* Button Animations */
.pulse-btn {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(125, 199, 255, 0.3);
  }
  50% {
    box-shadow: 0 8px 25px rgba(125, 199, 255, 0.6);
  }
  100% {
    box-shadow: 0 8px 25px rgba(125, 199, 255, 0.3);
  }
}

.btn-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active .btn-ripple {
  width: 300px;
  height: 300px;
}

.glow-btn {
  position: relative;
}
.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}
.glow-btn:hover .btn-shine {
  left: 100%;
}

/* Features Section */
.features {
  padding: 3rem 0; /* Smaller padding for mobile */
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 2rem; /* Smaller gap */
}

.feature-card {
  text-align: center;
  padding: 1.5rem; /* Smaller padding */
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(125, 199, 255, 0.1);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}
.feature-card:hover::before {
  left: 100%;
}

.feature-icon {
  width: 4rem; /* Smaller icon size */
  height: 4rem; /* Smaller icon size */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem; /* Smaller margin */
  font-size: 1.8rem; /* Smaller font size */
  position: relative;
  transition: all 0.3s ease;
}

.feature-icon.purple {
  background: linear-gradient(45deg, var(--secondary-light), var(--secondary-medium));
  color: var(--secondary-dark);
}
.feature-icon.blue {
  background: linear-gradient(45deg, var(--primary-light), var(--primary-medium));
  color: var(--primary-dark);
}
.feature-icon.green {
  background: linear-gradient(45deg, var(--accent-light), var(--accent-medium));
  color: var(--accent-dark);
}

.icon-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.feature-icon.purple .icon-glow {
  box-shadow: 0 0 30px var(--secondary-medium);
}
.feature-icon.blue .icon-glow {
  box-shadow: 0 0 30px var(--primary-medium);
}
.feature-icon.green .icon-glow {
  box-shadow: 0 0 30px var(--accent-medium);
}
.feature-card:hover .icon-glow {
  opacity: 0.6;
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.3rem; /* Smaller font size */
  margin-bottom: 0.75rem; /* Smaller margin */
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem; /* Smaller font size */
}

/* Products Section */
.products {
  padding: 3rem 0; /* Smaller padding */
  background: linear-gradient(135deg, var(--glass) 0%, transparent 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem; /* Smaller margin */
}

.section-title {
  font-size: 2rem; /* Smaller font size */
  margin-bottom: 0.75rem; /* Smaller margin */
  background: linear-gradient(45deg, var(--text-primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1rem; /* Smaller font size */
  color: var(--text-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 1.5rem; /* Smaller gap */
}

.product-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 1.5rem; /* Smaller padding */
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(125, 199, 255, 0.15);
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--primary-soft), var(--secondary-soft));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 25px;
}
.product-card:hover::before {
  opacity: 0.1;
}

.popular-badge {
  position: absolute;
  top: -10px; /* Adjusted position */
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg, var(--pink-medium), var(--secondary-medium));
  color: white;
  padding: 0.4rem 1rem; /* Smaller padding */
  border-radius: 20px; /* Smaller border-radius */
  font-size: 0.8rem; /* Smaller font size */
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(255, 82, 153, 0.3);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.product-image {
  width: 100%;
  height: 8rem; /* Smaller height */
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  border-radius: 15px; /* Smaller border-radius */
  margin-bottom: 1rem; /* Smaller margin */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem; /* Smaller font size */
  color: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}
.product-card:hover .product-image::before {
  left: 100%;
}

.product-title {
  font-size: 1.5rem; /* Smaller font size */
  margin-bottom: 0.5rem; /* Smaller margin */
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 1rem; /* Smaller margin */
  line-height: 1.6;
  font-size: 0.85rem; /* Smaller font size */
  position: relative;
  z-index: 2;
}

.product-price {
  text-align: center;
  margin-bottom: 1rem; /* Smaller margin */
  position: relative;
  z-index: 2;
}

.current-price {
  font-size: 2rem; /* Smaller font size */
  font-weight: bold;
  margin-right: 0.5rem;
  background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.original-price {
  font-size: 1rem; /* Smaller font size */
  color: var(--text-light);
  text-decoration: line-through;
}

.product-duration {
  color: var(--text-secondary);
  font-size: 0.8rem; /* Smaller font size */
  margin-top: 0.25rem; /* Smaller margin */
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem; /* Smaller margin */
  position: relative;
  z-index: 2;
}

.product-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem; /* Smaller margin */
  color: var(--text-secondary);
  font-size: 0.8rem; /* Smaller font size */
  transition: all 0.3s ease;
}

.product-features li:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}
.product-features i {
  color: var(--accent-dark);
  margin-right: 0.5rem;
  filter: drop-shadow(0 0 5px rgba(82, 255, 149, 0.3));
}

.add-to-cart {
  width: 100%;
  background: linear-gradient(45deg, var(--primary-medium), var(--secondary-medium));
  color: white;
  border: none;
  padding: 0.8rem; /* Smaller padding */
  border-radius: 40px; /* Smaller border-radius */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 8px 25px rgba(125, 199, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem; /* Smaller font size */
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(125, 199, 255, 0.4);
}
.add-to-cart:active {
  transform: scale(0.98);
}

/* CTA Section */
.cta {
  padding: 4rem 0; /* Smaller padding */
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light), var(--pink-light));
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-size: 2rem; /* Smaller font size */
  margin-bottom: 1rem; /* Smaller margin */
  color: var(--text-primary);
}

.cta p {
  font-size: 1rem; /* Smaller font size */
  color: var(--text-secondary);
  margin-bottom: 2rem; /* Smaller margin */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0; /* Smaller padding */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 2rem; /* Smaller gap */
  margin-bottom: 1.5rem; /* Smaller margin */
  text-align: center; /* Center text for stacked columns */
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem; /* Smaller margin */
  justify-content: center; /* Center logo on mobile */
}

.footer-logo i {
  font-size: 1.5rem;
  color: var(--primary-dark);
}
.footer-logo h3 {
  background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  font-size: 1.1rem; /* Smaller font size */
  margin-bottom: 0.75rem; /* Smaller margin */
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
}
.footer-section ul li {
  margin-bottom: 0.5rem; /* Smaller margin */
}
.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.1rem 0;
  display: inline-block;
  font-size: 0.9rem; /* Smaller font size */
}
.footer-section ul li a:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.85rem; /* Smaller font size */
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem; /* Smaller padding */
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem; /* Smaller font size */
}

/* Auth Selection Modal (New Banner) */
.auth-selection-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-selection-modal.active {
  opacity: 1;
  visibility: visible;
}

.auth-selection-content {
  background: var(--white);
  padding: 1.5rem; /* Smaller padding for mobile */
  border-radius: 15px; /* Smaller border-radius */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Smaller shadow */
  text-align: center;
  position: relative;
  max-width: 400px; /* Adjusted max-width */
  width: 95%; /* Wider on mobile */
  transform: translateY(-20px);
  opacity: 0;
  animation: slideIn 0.4s forwards ease-out;
}

.auth-selection-modal.active .auth-selection-content {
  animation: slideIn 0.4s forwards ease-out;
}
@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-selection-content h3 {
  font-size: 1.5rem; /* Smaller font size */
  color: var(--text-primary);
  margin-bottom: 0.75rem; /* Smaller margin */
}

.auth-selection-content p {
  font-size: 1rem; /* Smaller font size */
  color: var(--text-secondary);
  margin-bottom: 1.5rem; /* Smaller margin */
}

.auth-selection-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Smaller gap */
}

.auth-selection-buttons .btn {
  width: 100%;
}

.close-auth-selection-modal {
  position: absolute;
  top: 10px; /* Adjusted position */
  right: 10px; /* Adjusted position */
  background: none;
  border: none;
  font-size: 1.2rem; /* Smaller font size */
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-auth-selection-modal:hover {
  color: var(--pink-dark);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999; /* Below modals, above content */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Auth Page Container (for login, register, dashboard HTML files) */
.auth-page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem; /* Smaller padding for mobile */
  position: relative;
  z-index: 1; /* Ensure it's above animated background */
}

.auth-container {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px; /* Smaller border-radius */
  padding: 1.5rem; /* Smaller padding */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Smaller shadow */
  max-width: 450px; /* Adjusted max-width */
  width: 100%;
  text-align: center;
  position: relative;
}

.auth-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1rem; /* Smaller margin */
}

.auth-tabs {
  display: flex;
  flex-direction: column; /* Stack tabs on mobile */
  gap: 0.5rem; /* Smaller gap */
  margin-bottom: 1.5rem; /* Smaller margin */
}

.auth-tab {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.6rem 1rem; /* Smaller padding */
  border-radius: 40px; /* Smaller border-radius */
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center; /* Center content */
  gap: 0.5rem;
  font-size: 0.9rem; /* Smaller font size */
}

.auth-tab.active {
  background: linear-gradient(45deg, var(--primary-medium), var(--secondary-medium));
  color: white;
  box-shadow: 0 5px 15px rgba(125, 199, 255, 0.3);
}
.auth-tab:hover:not(.active) {
  background: var(--primary-light);
  color: var(--text-primary);
}

.close-auth-modal {
  background: none;
  border: none;
  font-size: 1.5rem; /* Adjusted font size */
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  top: 10px; /* Adjusted position */
  right: 10px; /* Adjusted position */
}

.close-auth-modal:hover {
  color: var(--pink-dark);
}

.auth-content {
  padding: 0.5rem 0; /* Smaller padding */
}
.auth-section {
  display: none;
  animation: fadeIn 0.5s ease-out;
}
.auth-section.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-section h3 {
  font-size: 1.5rem; /* Smaller font size */
  color: var(--text-primary);
  margin-bottom: 1rem; /* Smaller margin */
}

.form-group {
  position: relative;
  margin-bottom: 1rem; /* Smaller margin */
}
.form-group input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem; /* Adjusted padding for smaller inputs */
  border: 1px solid var(--glass-border);
  border-radius: 10px; /* Smaller border-radius */
  background: var(--glass);
  color: var(--text-primary);
  font-size: 0.9rem; /* Smaller font size */
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.form-group input::placeholder {
  color: var(--text-light);
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary-medium);
  box-shadow: 0 0 0 3px rgba(125, 199, 255, 0.2);
}

.form-group i {
  position: absolute;
  left: 0.8rem; /* Adjusted position */
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem; /* Smaller icon size */
}

.form-row {
  display: flex;
  flex-direction: column; /* Stack form rows on mobile */
  gap: 1rem; /* Smaller gap */
  margin-bottom: 1rem; /* Smaller margin */
}

.form-row .form-group {
  margin-bottom: 0;
}

.auth-submit-btn {
  width: 100%;
  margin-top: 0.75rem; /* Smaller margin */
  padding: 0.8rem 1.5rem; /* Smaller padding */
  font-size: 0.9rem; /* Smaller font size */
}

.auth-switch {
  margin-top: 1rem; /* Smaller margin */
  color: var(--text-secondary);
  font-size: 0.85rem; /* Smaller font size */
}

.auth-switch a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.auth-switch a:hover {
  color: var(--secondary-dark);
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem; /* Smaller gap */
  margin-bottom: 1.5rem; /* Smaller margin */
}

.user-avatar {
  width: 60px; /* Smaller size */
  height: 60px; /* Smaller size */
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem; /* Smaller font size */
  color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(125, 199, 255, 0.3);
}

.dashboard-header h3 {
  font-size: 1.5rem; /* Smaller font size */
  margin: 0;
  color: var(--text-primary);
}

.logout-btn {
  margin-top: 0.75rem; /* Smaller margin */
  padding: 0.6rem 1.2rem; /* Smaller padding */
  border-radius: 25px; /* Smaller border-radius */
  font-size: 0.8rem; /* Smaller font size */
}

.dashboard-stats {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 1rem; /* Smaller gap */
  margin-bottom: 1.5rem; /* Smaller margin */
}

.stat-card {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 10px; /* Smaller border-radius */
  padding: 1rem; /* Smaller padding */
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-card i {
  font-size: 1.8rem; /* Smaller icon size */
  margin-bottom: 0.25rem; /* Smaller margin */
}
.stat-card h4 {
  font-size: 0.9rem; /* Smaller font size */
  margin-bottom: 0.25rem; /* Smaller margin */
}
.stat-card p {
  font-size: 1.2rem; /* Smaller font size */
  font-weight: bold;
  color: var(--text-primary);
}

.dashboard-sections-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 1rem; /* Smaller gap */
}

.dashboard-card {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 10px; /* Smaller border-radius */
  padding: 1rem; /* Smaller padding */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.dashboard-card h4 {
  font-size: 1.1rem; /* Smaller font size */
  color: var(--text-primary);
  margin-bottom: 0.75rem; /* Smaller margin */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-card h4 i {
  color: var(--primary-dark);
}

.dashboard-list {
  list-style: none;
  max-height: 150px; /* Smaller max-height */
  overflow-y: auto;
  padding-right: 5px; /* For scrollbar */
}

.dashboard-list li {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px; /* Smaller border-radius */
  padding: 0.6rem; /* Smaller padding */
  margin-bottom: 0.4rem; /* Smaller margin */
  font-size: 0.8rem; /* Smaller font size */
  color: var(--text-secondary);
}

.dashboard-list .empty-state {
  text-align: center;
  color: var(--text-light);
  padding: 0.75rem;
  font-style: italic;
}

.view-cart-btn {
  width: 100%;
  margin-top: 0.75rem; /* Smaller margin */
  padding: 0.6rem 1.2rem; /* Smaller padding */
  border-radius: 25px; /* Smaller border-radius */
  font-size: 0.8rem; /* Smaller font size */
}

/* Cart & Checkout Page Specific Styles */
.cart-page-container,
.checkout-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem; /* Smaller padding for mobile */
  position: relative;
  z-index: 1;
}

.cart-header-page {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem; /* Smaller padding */
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px 15px 0 0; /* Smaller border-radius */
  margin-bottom: 0.75rem; /* Smaller margin */
}

.cart-header-page h3 {
  color: var(--text-primary);
  font-size: 1.2rem; /* Smaller font size */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-header-page i {
  color: var(--primary-dark);
}

.back-to-home {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.6rem 1rem; /* Smaller padding */
  border-radius: 40px; /* Smaller border-radius */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem; /* Smaller font size */
}

.back-to-home:hover {
  background: var(--primary-light);
  color: var(--text-primary);
  transform: translateX(-5px);
}

.cart-content-page {
  flex: 1;
  width: 100%;
  max-width: 900px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: none;
  padding: 1rem; /* Smaller padding */
  overflow-y: auto;
  min-height: 250px; /* Adjusted min-height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cart-footer-page {
  width: 100%;
  max-width: 900px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 15px 15px; /* Smaller border-radius */
  padding: 1rem; /* Smaller padding */
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.05); /* Smaller shadow */
}

.cart-summary {
  margin-bottom: 1rem; /* Smaller margin */
  padding-bottom: 1rem; /* Smaller padding */
  border-bottom: 1px solid var(--glass-border);
}

.cart-summary .subtotal,
.cart-summary .shipping,
.cart-summary .cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem; /* Smaller margin */
  font-size: 1rem; /* Smaller font size */
  color: var(--text-secondary);
}

.cart-summary .cart-total {
  font-size: 1.2rem; /* Smaller font size */
  font-weight: bold;
  color: var(--text-primary);
}

.cart-summary .free {
  color: var(--accent-dark);
  font-weight: 600;
}

.checkout-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Smaller gap */
}

.checkout-buttons .btn {
  width: 100%;
}

/* Cart Item Specifics */
.cart-item {
  display: flex;
  flex-direction: column; /* Stack item details on mobile */
  align-items: flex-start;
  gap: 0.75rem; /* Smaller gap */
  padding: 1rem; /* Smaller padding */
  border: 1px solid var(--glass-border);
  border-radius: 15px; /* Smaller border-radius */
  margin-bottom: 0.75rem; /* Smaller margin */
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(125, 199, 255, 0.1);
}

.cart-item-image {
  width: 3.5rem; /* Smaller size */
  height: 3.5rem; /* Smaller size */
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  border-radius: 10px; /* Smaller border-radius */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem; /* Smaller font size */
  color: var(--primary-dark);
}

.cart-item-info {
  flex: 1;
  width: 100%; /* Take full width */
  text-align: left;
}

.cart-item-name {
  font-size: 1rem; /* Smaller font size */
  margin-bottom: 0.25rem; /* Smaller margin */
  color: var(--text-primary);
}

.cart-item-price {
  font-size: 0.9rem; /* Smaller font size */
  color: var(--text-primary);
  font-weight: bold;
}

.cart-item-controls {
  width: 100%;
  display: flex;
  justify-content: space-between; /* Distribute buttons */
  align-items: center;
  margin-top: 0.5rem; /* Smaller margin */
}

.cart-item-controls button {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.5rem; /* Smaller padding */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.8rem; /* Smaller font size */
  width: 30px; /* Fixed width */
  height: 30px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-controls button:hover {
  background: var(--primary-light);
  color: var(--text-primary);
  transform: scale(1.1);
}
.cart-item-controls span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Checkout Page */
.checkout-page {
  display: none; /* Hidden by default */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem; /* Smaller padding */
}

.checkout-container {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 15px; /* Smaller border-radius */
  padding: 1.5rem; /* Smaller padding */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Smaller shadow */
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack columns on mobile */
  gap: 1.5rem; /* Smaller gap */
}

.checkout-header {
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack header elements */
  gap: 0.75rem; /* Smaller gap */
  align-items: center;
  margin-bottom: 1rem; /* Smaller margin */
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem; /* Smaller padding */
  text-align: center;
}

.checkout-header h2 {
  font-size: 1.5rem; /* Smaller font size */
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkout-header h2 i {
  color: var(--primary-dark);
}

.security-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.8rem; /* Smaller font size */
  justify-content: center;
}

.security-badges i {
  font-size: 1rem; /* Smaller icon size */
}

.back-to-cart {
  background: none;
  border: none;
  font-size: 1.2rem; /* Smaller font size */
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.back-to-cart:hover {
  color: var(--pink-dark);
}

.checkout-content {
  display: flex;
  flex-direction: column; /* Stack left and right sections */
  gap: 1.5rem; /* Smaller gap */
  width: 100%;
}

.checkout-left,
.checkout-right {
  flex: 1;
  min-width: auto; /* Allow shrinking on mobile */
}

.order-summary,
.payment-section {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 10px; /* Smaller border-radius */
  padding: 1rem; /* Smaller padding */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.order-summary h3,
.payment-section h3 {
  font-size: 1.2rem; /* Smaller font size */
  color: var(--text-primary);
  margin-bottom: 1rem; /* Smaller margin */
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-summary h3 i,
.payment-section h3 i {
  color: var(--primary-dark);
}

.order-items {
  max-height: 200px; /* Smaller max-height */
  overflow-y: auto;
  margin-bottom: 1rem; /* Smaller margin */
  padding-right: 5px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* Smaller gap */
  padding: 0.6rem 0; /* Smaller padding */
  border-bottom: 1px dashed var(--glass-border);
  font-size: 0.9rem; /* Smaller font size */
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-image {
  width: 2.5rem; /* Smaller size */
  height: 2.5rem; /* Smaller size */
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  border-radius: 8px; /* Smaller border-radius */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem; /* Smaller font size */
  color: var(--primary-dark);
}

.checkout-item-info {
  flex: 1;
}
.checkout-item-name {
  font-weight: 600;
  color: var(--text-primary);
}
.checkout-item-details {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.checkout-item-price {
  font-weight: bold;
  color: var(--text-primary);
}

.order-total {
  padding-top: 1rem; /* Smaller padding */
}
.total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.total-line.final-total {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-top: 0.75rem;
}

.payment-methods {
  display: flex;
  flex-direction: column; /* Stack payment methods */
  gap: 0.75rem; /* Smaller gap */
  margin-bottom: 1rem; /* Smaller margin */
}

.payment-method {
  flex: 1;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px; /* Smaller border-radius */
  padding: 0.8rem; /* Smaller padding */
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem; /* Smaller font size */
}

.payment-method.active {
  background: linear-gradient(45deg, var(--primary-medium), var(--secondary-medium));
  color: white;
  box-shadow: 0 5px 15px rgba(125, 199, 255, 0.3);
}
.payment-method:hover:not(.active) {
  background: var(--primary-light);
  color: var(--text-primary);
}

.customer-info h4 {
  font-size: 1.1rem; /* Smaller font size */
  margin-bottom: 1rem; /* Smaller margin */
}

.payment-buttons .payment-btn {
  padding: 0.8rem 1.5rem; /* Smaller padding */
  font-size: 0.9rem; /* Smaller font size */
}

.security-info {
  display: flex;
  flex-direction: column; /* Stack security items */
  gap: 0.5rem; /* Smaller gap */
  margin-top: 1.5rem; /* Smaller margin */
  font-size: 0.8rem; /* Smaller font size */
  color: var(--text-secondary);
}

.security-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-item i {
  color: var(--accent-dark);
}

/* Desktop adjustments (min-width media queries) */
@media (min-width: 768px) {
  body {
    padding-top: 0; /* Remove padding for fixed header on desktop */
  }

  .container {
    padding: 0 20px; /* Restore larger padding for desktop */
  }

  /* Header */
  .header {
    position: sticky; /* Restore sticky header for desktop */
    height: auto; /* Allow header height to adjust */
  }

  .nav-wrapper {
    padding: 1rem 0;
  }

  .logo i {
    font-size: 2rem; /* Restore desktop icon size */
  }

  .logo h1 {
    font-size: 1.5rem; /* Restore desktop logo size */
  }

  .nav-menu {
    display: flex; /* Show desktop nav menu */
    flex-direction: row;
    gap: 2rem;
  }

  .nav-menu a {
    color: var(--text-secondary); /* Restore desktop link color */
    font-size: 1rem;
    padding: 0.5rem 1rem;
    text-align: left;
  }

  .cart-btn {
    padding: 0.75rem;
    border-radius: 15px;
  }

  .cart-btn i {
    font-size: 1.25rem;
  }

  .cart-count {
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
  }

  .account-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 15px;
    font-size: 1rem;
  }

  .account-btn i {
    font-size: 1.25rem;
  }

  .mobile-menu-toggle {
    display: none; /* Hide hamburger on desktop */
  }

  .mobile-nav-overlay {
    display: none; /* Hide the entire mobile overlay on desktop */
  }

  /* Hero Section */
  .hero {
    padding: 6rem 0; /* Restore desktop padding */
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Restore desktop font size */
  }

  .hero-description {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: row; /* Restore row layout for buttons */
    gap: 1.5rem;
  }

  .btn {
    padding: 1rem 2.5rem; /* Restore desktop button padding */
    font-size: 1rem;
  }

  /* Features Section */
  .features {
    padding: 5rem 0;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Restore desktop grid */
    gap: 3rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .feature-icon {
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }

  .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .feature-card p {
    font-size: 1rem;
  }

  /* Products Section */
  .products {
    padding: 5rem 0;
  }

  .section-header {
    margin-bottom: 4rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .section-header p {
    font-size: 1.25rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Restore desktop grid */
    gap: 2.5rem;
  }

  .product-card {
    padding: 2rem;
  }

  .popular-badge {
    top: -12px;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
  }

  .product-image {
    height: 10rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 4rem;
  }

  .product-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .product-description {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .product-price {
    margin-bottom: 1.5rem;
  }

  .current-price {
    font-size: 2.5rem;
  }

  .original-price {
    font-size: 1.25rem;
  }

  .product-duration {
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }

  .product-features {
    margin-bottom: 2rem;
  }

  .product-features li {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
  }

  .product-features i {
    margin-right: 0.75rem;
  }

  .add-to-cart {
    padding: 1rem;
    border-radius: 50px;
    font-size: 1rem;
  }

  /* CTA Section */
  .cta {
    padding: 5rem 0;
  }

  .cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }

  .cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
  }

  /* Footer */
  .footer {
    padding: 4rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Restore desktop grid */
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left; /* Restore text alignment */
  }

  .footer-logo {
    margin-bottom: 1rem;
    justify-content: flex-start; /* Restore logo alignment */
  }

  .footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .footer-section ul li {
    margin-bottom: 0.75rem;
  }

  .footer-section ul li a {
    padding: 0.25rem 0;
    font-size: 1rem;
  }

  .footer-section p {
    font-size: 1rem;
  }

  .footer-bottom {
    padding-top: 2rem;
    font-size: 1rem;
  }

  /* Auth Selection Modal */
  .auth-selection-content {
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 450px;
  }

  .auth-selection-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .auth-selection-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .auth-selection-buttons {
    gap: 1rem;
  }

  .close-auth-selection-modal {
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
  }

  /* Auth Page Container (login, register, dashboard) */
  .auth-page-container {
    padding: 2rem;
  }

  .auth-container {
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }

  .auth-header {
    margin-bottom: 1.5rem;
  }

  .auth-tabs {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .auth-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
  }

  .auth-section h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group input {
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: 15px;
    font-size: 1rem;
  }

  .form-group i {
    left: 1rem;
    font-size: 1.25rem;
  }

  .form-row {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .auth-submit-btn {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .auth-switch {
    margin-top: 1.5rem;
    font-size: 0.9rem;
  }

  /* Dashboard Styles */
  .dashboard-header {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .user-avatar {
    width: 80px;
    height: 80px;
    font-size: 3rem;
  }

  .dashboard-header h3 {
    font-size: 1.8rem;
  }

  .logout-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
  }

  .dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    border-radius: 15px;
    padding: 1.5rem;
  }

  .stat-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .stat-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .stat-card p {
    font-size: 1.5rem;
  }

  .dashboard-sections-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .dashboard-card {
    border-radius: 15px;
    padding: 1.5rem;
  }

  .dashboard-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .dashboard-list {
    max-height: 200px;
    padding-right: 10px;
  }

  .dashboard-list li {
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .view-cart-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
  }

  /* Cart & Checkout Page Specific Styles */
  .cart-header-page {
    padding: 1.5rem;
    border-radius: 25px 25px 0 0;
    margin-bottom: 1rem;
  }

  .cart-header-page h3 {
    font-size: 1.5rem;
  }

  .back-to-home {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 1rem;
  }

  .cart-content-page {
    padding: 1.5rem;
    min-height: 300px;
  }

  .cart-footer-page {
    padding: 1.5rem;
    border-radius: 0 0 25px 25px;
  }

  .cart-summary {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .cart-summary .subtotal,
  .cart-summary .shipping,
  .cart-summary .cart-total {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
  }

  .cart-summary .cart-total {
    font-size: 1.5rem;
  }

  .checkout-buttons {
    gap: 1rem;
  }

  /* Cart Item Specifics */
  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1rem;
  }

  .cart-item-image {
    width: 4rem;
    height: 4rem;
    border-radius: 10px;
    font-size: 2rem;
  }

  .cart-item-info {
    width: auto;
  }

  .cart-item-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .cart-item-price {
    font-size: 1.125rem;
  }

  .cart-item-controls {
    width: auto;
    justify-content: flex-end;
    margin-top: 0;
  }

  .cart-item-controls button {
    padding: 0.75rem;
    font-size: 1rem;
    width: auto;
    height: auto;
  }

  /* Checkout Page */
  .checkout-container {
    border-radius: 25px;
    padding: 2.5rem;
    gap: 2rem;
    flex-direction: row;
  }

  .checkout-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    flex-direction: row;
    gap: 0;
    text-align: left;
  }

  .checkout-header h2 {
    font-size: 1.8rem;
  }

  .security-badges {
    font-size: 0.9rem;
    justify-content: flex-start;
  }

  .security-badges i {
    font-size: 1.2rem;
  }

  .checkout-content {
    gap: 2rem;
    flex-direction: row;
  }

  .order-summary,
  .payment-section {
    border-radius: 15px;
    padding: 1.5rem;
  }

  .order-summary h3,
  .payment-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .order-items {
    max-height: 300px;
    margin-bottom: 1.5rem;
    padding-right: 10px;
  }

  .checkout-item {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .checkout-item-image {
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    font-size: 1.5rem;
  }

  .checkout-item-details {
    font-size: 0.85rem;
  }

  .order-total {
    padding-top: 1.5rem;
  }

  .total-line {
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }

  .total-line.final-total {
    font-size: 1.4rem;
    margin-top: 1rem;
  }

  .payment-methods {
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-direction: row;
  }

  .payment-method {
    border-radius: 15px;
    padding: 1rem;
    font-size: 1rem;
  }

  .customer-info h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .payment-buttons .payment-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }

  .security-info {
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    flex-direction: row;
    justify-content: space-around;
  }

  .security-item i {
    font-size: 1.2rem;
  }
}
