:root {
  --primary: #001f3f; /* Navy Blue */
  --secondary: #8b0000; /* Royal Red */
  --text: #333;
  --background: #ffffff;
  --card-bg: #f8f9fa;
  --header-bg: rgba(255, 255, 255, 0.95);
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
  --accent: #6c5ce7;
}

.dark-mode {
  --primary: #bb86fc;
  --secondary: #ff79c6;
  --text: #f5f5f5;
  --background: #121212;
  --card-bg: #1e1e1e;
  --header-bg: rgba(30, 30, 30, 0.95);
  --border: #333;
  --shadow: rgba(0, 0, 0, 0.4);
  --accent: #bd93f9;
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  color-scheme: light dark;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3rem);
}

p,
a,
span,
li {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

body.menu-open {
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header Styles */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.9)
  );
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(138, 43, 226, 0.2);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.1);
}

.logo:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.95)
  );
  box-shadow: 0 8px 25px rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.3);
}

.logo .logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: all 0.3s ease;
  border-radius: 8px;
}

.logo:hover .logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.dark-mode .logo {
  background: linear-gradient(
    135deg,
    rgba(30, 30, 30, 0.9),
    rgba(45, 45, 45, 0.7)
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.dark-mode .logo:hover {
  background: linear-gradient(
    135deg,
    rgba(45, 45, 45, 0.95),
    rgba(60, 60, 60, 0.8)
  );
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.dark-mode .header-icons {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .header-icons .icon-btn,
.dark-mode .header-icons .theme-toggle {
  background: rgba(45, 45, 45, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-mode .header-icons .icon-btn:hover,
.dark-mode .header-icons .theme-toggle:hover {
  background: rgba(60, 60, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

nav[aria-label="Primary"] {
  display: contents;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Theme-based navigation colors */
.dark-mode .nav-links a {
  color: #ffffff;
}

.dark-mode .nav-links a:hover {
  color: var(--primary);
}

.dark-mode .nav-links a::after {
  background-color: var(--primary);
}

.header-icons {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Prevent icons from shrinking */
}

.header-icons .icon-btn,
.header-icons .theme-toggle {
  margin-left: 15px;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

#searchInput {
  display: none; /* Hide by default on smaller screens */
  width: 150px;
}

.search-container {
  display: none; /* Hide search container on mobile by default */
}

.search-icon-btn {
  display: block; /* Always show search icon */
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
  padding: 10px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .header-top {
    position: relative;
    padding: 12px 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1000;
    padding: 8px;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(138, 43, 226, 0.3);
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(138, 43, 226, 0.4);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 20px;
    box-sizing: border-box;
    z-index: 999;
    border-right: 1px solid var(--border);
  }

  .nav-links.active {
    left: 0;
    opacity: 1;
  }

  .nav-links li {
    margin: 20px 0;
    width: 100%;
    text-align: center;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    display: block;
    padding: 15px 20px;
    font-size: 24px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 8px;
    font-weight: 500;
  }

  .nav-links a:hover {
    background-color: var(--card-bg);
    color: var(--primary);
    transform: translateY(-2px);
    border: 1px solid var(--primary);
  }

  /* Ensure mobile nav links are visible in both modes */
  .dark-mode .nav-links a {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .dark-mode .nav-links a:hover {
    background-color: var(--card-bg);
    color: var(--primary);
    border: 1px solid var(--primary);
  }

  .nav-links a::after {
    display: none;
  }

  /* Mobile menu theme colors */
  .dark-mode .nav-links {
    background-color: var(--background);
  }

  .dark-mode .nav-links a {
    color: #ffffff;
  }

  .dark-mode .nav-links a:hover {
    background-color: var(--card-bg);
    color: var(--primary);
  }

  /* Hide desktop menu items when mobile menu is active */
  body.menu-open .header-icons {
    position: relative;
    z-index: 1001;
  }

  /* Improve mobile header layout */
  .logo {
    font-size: 22px;
    flex: 1;
    min-width: 0;
    order: 1;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.85)
    );
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(138, 43, 226, 0.25);
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.15);
  }

  .logo .logo-img {
    height: 32px;
    border-radius: 6px;
  }

  .logo:hover {
    transform: translateY(-1px);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.9)
    );
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.3);
  }

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

  .header-icons {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 8px;
    border-radius: 20px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header-icons .icon-btn,
  .header-icons .theme-toggle {
    margin-left: 0;
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    color: var(--text);
  }

  .header-icons .icon-btn:hover,
  .header-icons .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(138, 43, 226, 0.4);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  /* Mobile menu close button */
  .nav-links::before {
    content: "×";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    color: var(--text);
    cursor: pointer;
    z-index: 1001;
  }

  /* Dark mode mobile header icons */
  .dark-mode .header-icons .icon-btn,
  .dark-mode .header-icons .theme-toggle {
    background: rgba(45, 45, 45, 0.9);
    border: 2px solid rgba(187, 134, 252, 0.4);
    color: #ffffff;
  }

  .dark-mode .header-icons .icon-btn:hover,
  .dark-mode .header-icons .theme-toggle:hover {
    background: rgba(60, 60, 60, 0.95);
    border-color: rgba(187, 134, 252, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  /* Dark mode mobile menu button */
  .dark-mode .mobile-menu-btn {
    background: rgba(45, 45, 45, 0.9);
    border: 2px solid rgba(187, 134, 252, 0.4);
    color: #ffffff;
  }

  .dark-mode .mobile-menu-btn:hover {
    background: rgba(60, 60, 60, 0.95);
    border-color: rgba(187, 134, 252, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-bottom: 50px;
  overflow: hidden;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 400%; /* 4 slides */
  height: 100%;
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
}

.slide {
  width: 25%; /* 100% / 4 */
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 10px;
  position: relative;
  z-index: 15;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  transform: scale(1);
}

.dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Hero Banner Section */
.hero-banner-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-bottom: 50px;
  overflow: hidden;
  background-color: var(--background);
}

.hero-banner-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-banner-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness for hero banner */
@media (max-width: 768px) {
  .hero-banner-section {
    height: 60vh;
    min-height: 400px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .hero-banner-section {
    height: 50vh;
    min-height: 350px;
    margin-bottom: 20px;
  }
}

/* Hero Image Section */
.hero-image-section {
  width: 100%;
  margin-bottom: 50px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Mobile responsiveness for hero image */
@media (max-width: 768px) {
  .hero-image-section {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .hero-image-section {
    margin-bottom: 20px;
  }
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  z-index: 10;
  cursor: pointer;
  border: none;
  margin-bottom: 20px;
}
@media (max-width: 430px) {
  .btn {
    padding: 8px 18px;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-radius: 20px;
  }
}

.btn:hover {
  transform: translateY(-3px);
  background-color: var(--accent);
}

/* Categories */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(1.75rem, 3vw, 2rem);
  position: relative;
  font-family: "Playfair Display", serif;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
  gap: 30px;
  margin-bottom: 60px;
  box-sizing: border-box;
}

/* Featured Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive product grid */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}
@media (min-width: 600px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 430px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Make all images responsive */
img,
.product-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Adjust text and button spacing for touch */
a,
button {
  padding: 12px 20px;
  font-size: 1rem;
}

/* Hide or simplify sidebars on small screens */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main-content {
    width: 100%;
  }
}

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
}

.product-card {
  background-color: #ffffff; /* White background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-img {
  position: relative;
  overflow: hidden;
  padding-bottom: 75%; /* 4:3 aspect ratio */
}

.product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
}

/* Desktop hover behavior (≥1024px) */
@media (min-width: 1024px) {
  .product-card:hover .product-img img {
    transform: scale(1.1);
  }
}

/* Tablet behavior (768px–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-card:hover .product-img img {
    transform: scale(1.1);
  }
}

/* Mobile tap behavior (<768px) */
@media (max-width: 767px) {
  .product-card.tapped .product-img img {
    transform: scale(1.1);
  }
}

/* Ensure images stay in position during magnification */
.product-img img {
  transform-origin: center center;
}

/* Hover zoom for men fashion */
.hover-zoom .product-img {
  overflow: hidden;
}

.hover-zoom .product-img .normal-img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hover-zoom .product-img .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-zoom:hover .product-img .normal-img {
  opacity: 0;
}

.hover-zoom:hover .product-img .hover-img {
  opacity: 1;
  transform: scale(1.5);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-content {
  padding: 20px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: var(--primary);
  font-size: 20px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 16px;
  margin-right: 5px;
}

.add-to-cart {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
  font-weight: 500;
}

.add-to-cart:hover {
  background-color: var(--accent);
}

.add-to-cart.added {
  background-color: var(--secondary);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart .fa-check {
  color: white;
  animation: checkPulse 0.6s ease-in-out;
}

.add-to-cart .fa-spinner {
  color: white;
  animation: spin 1s linear infinite;
}

@keyframes checkPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dark mode support for add-to-cart */
.dark-mode .add-to-cart.added {
  background-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dark-mode .add-to-cart-success {
  background: var(--secondary) !important;
  color: var(--text) !important;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 60px 0;
  text-align: center;
  color: white;
  margin-bottom: 60px;
}

.newsletter h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  min-width: 250px;
  margin: 0 0 10px 0;
}

.newsletter-form button {
  padding: 15px 30px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.newsletter-form button:hover {
  background-color: #ff5252;
}

.subscribe-status {
  margin-top: 10px;
  color: var(--secondary);
  font-weight: 500;
  height: 20px;
}

.comment-section {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.comment {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
}

.comment-text {
  font-style: italic;
  margin-bottom: 10px;
  color: var(--text);
}

.comment-author {
  font-weight: bold;
  text-align: right;
  color: var(--primary);
}

.stars {
  color: #ffc107;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--card-bg);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-links i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.phone-link {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
  cursor: pointer;
}

.phone-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
  background-color: var(--accent);
}

.social-icon-text {
  font-weight: bold;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: #777;
}

.back-btn {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 20px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background-color: var(--accent);
}

.back-btn i {
  margin-right: 10px;
}

/* Back to Top Button - Centered with transparent background */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(138, 43, 226, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(138, 43, 226, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.5);
  transform: translateX(-50%) scale(1.1);
}

/* Combined Message Button - Left side below AI chat */
.message-button-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999; /* Just below AI chat */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message-main-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.message-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.message-main-btn:active {
  transform: scale(0.95);
}

.message-options {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.message-options.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.message-option {
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  min-width: 120px;
  border: 2px solid transparent;
}

.message-option:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-option {
  border-color: #25d366;
  color: #25d366;
}

.whatsapp-option:hover {
  background: #25d366;
  color: white;
}

.call-option {
  border-color: var(--secondary);
  color: var(--secondary);
}

.call-option:hover {
  background: var(--secondary);
  color: white;
}

.message-option i {
  font-size: 18px;
}

/* Mobile adjustments for floating buttons */
@media (max-width: 768px) {
  .message-button-container {
    bottom: 20px;
    left: 15px;
  }

  .message-main-btn {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .message-option {
    min-width: 110px;
    padding: 10px 14px;
    font-size: 13px;
  }

  .message-option i {
    font-size: 16px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .message-button-container {
    bottom: 20px;
    left: 10px;
  }

  .message-main-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .message-option {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .message-option i {
    font-size: 14px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Combined Message Button */
.message-button-container {
  position: fixed;
  bottom: 80px; /* Moved a little higher above AI bot */
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.message-main-btn {
  background: rgba(138, 43, 226, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(138, 43, 226, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.message-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.message-main-btn:active {
  transform: scale(0.95);
}

.message-options {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  margin-left: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.message-options.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.message-option {
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  min-width: 120px;
  border: 2px solid transparent;
}

.message-option:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-option {
  border-color: #25d366;
  color: #25d366;
}

.whatsapp-option:hover {
  background: #25d366;
  color: white;
}

.call-option {
  border-color: var(--secondary);
  color: var(--secondary);
}

.call-option:hover {
  background: var(--secondary);
  color: white;
}

.message-option i {
  font-size: 18px;
}

/* Theme Toggle Enhancements */
.theme-toggle {
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(138, 43, 226, 0.3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
  transition: all 0.3s ease;
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.theme-toggle:active i {
  transform: rotate(180deg) scale(1.1);
}

/* Theme indicator ring */
.theme-toggle::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.theme-toggle:hover::before {
  border-color: var(--primary);
}

/* Dark mode theme toggle */
.dark-mode .theme-toggle {
  background: rgba(45, 45, 45, 0.9);
  border: 2px solid rgba(187, 134, 252, 0.4);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .theme-toggle:hover {
  background: rgba(60, 60, 60, 0.95);
  border-color: rgba(187, 134, 252, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .theme-toggle i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.dark-mode .theme-toggle::before {
  border-color: var(--primary);
}

/* Theme toggle tooltip */
.theme-toggle {
  position: relative;
}

.theme-toggle::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.theme-toggle:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-links li {
    margin-left: 20px;
  }

  .header-icons {
    /* Adjustments for tablet size if needed */
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .header-top {
    padding: 8px 10px;
    gap: 4px;
  }

  .logo {
    font-size: 16px;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.9)
    );
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
    min-width: 0;
    flex: 1;
  }

  .logo .logo-img {
    height: 24px;
    border-radius: 4px;
  }

  .logo span {
    font-size: 14px;
    letter-spacing: -0.8px;
  }

  .header-icons {
    gap: 8px;
    padding: 4px 6px;
    border-radius: 16px;
  }

  .header-icons .icon-btn,
  .header-icons .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .mobile-menu-btn {
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .hero {
    height: 50vh;
    min-height: 350px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .hero p {
    font-size: clamp(0.8rem, 5vw, 1rem);
  }

  .categories,
  .products {
    gap: 15px;
  }

  .category-card,
  .product-card {
    border-radius: 8px;
  }

  .product-img img {
    height: 200px;
  }

  .product-content {
    padding: 12px;
  }

  .product-title {
    font-size: 15px;
  }

  .price {
    font-size: 18px;
  }

  .newsletter {
    padding: 30px 0;
  }

  .newsletter h2 {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .newsletter-form input,
  .newsletter-form button {
    padding: 10px 14px;
    font-size: 14px;
  }

  .footer-content {
    gap: 25px;
  }

  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .floating-action-buttons {
    bottom: 90px;
    right: 10px;
  }

  .floating-action-buttons a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Modal improvements for very small screens */
  .modal-content {
    width: 98%;
    padding: 15px;
    margin: 10px auto;
  }

  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }

  /* Cart improvements */
  .cart-preview {
    width: 98%;
    right: 1%;
    padding: 12px;
  }

  /* Touch targets for very small screens */
  .add-to-cart,
  .btn,
  button {
    min-height: 40px;
    padding: 8px 12px;
  }

  /* Improve text readability */
  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .comment-text {
    font-size: 13px;
    line-height: 1.4;
  }

  .comment-author {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 12px 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo {
    font-size: 24px; /* Better mobile size */
    flex: 1;
    min-width: 0;
    order: 1;
    gap: 10px;
  }

  .logo .logo-img {
    height: 36px; /* Slightly smaller logo image */
  }

  .mobile-menu-btn {
    display: block;
    z-index: 101;
    order: 3; /* Change order to place it after icons */
    padding: 8px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 20px 0; /* Better spacing */
    width: 100%;
    text-align: center;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 24px; /* Better readable size */
    padding: 15px 20px;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background-color: var(--card-bg);
    transform: translateY(-2px);
  }

  .header-icons {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .header-icons .icon-btn,
  .header-icons .theme-toggle {
    margin-left: 0;
    width: 40px;
    height: 40px;
  }

  .search-container {
    display: none;
  }

  .icon-btn {
    margin-left: 0;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    max-width: 350px;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 10px 12px;
    gap: 6px;
  }

  .logo {
    font-size: 20px;
    flex: 1;
    min-width: 0;
    gap: 8px;
  }

  .logo .logo-img {
    height: 32px;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 15px;
  }

  .hero p {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 20px;
  }

  .categories,
  .products {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .category-card,
  .product-card {
    margin: 0 auto;
    max-width: 100%;
  }

  .product-img img {
    height: 250px;
    object-fit: cover;
  }

  .product-content {
    padding: 15px;
  }

  .product-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .product-price {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .add-to-cart {
    width: 100%;
    padding: 10px 16px;
    justify-content: center;
    font-size: 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 0 15px;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
    gap: 15px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  /* Improve nav icons on mobile */
  .header-icons {
    margin-left: 0;
    gap: 10px;
  }

  .header-icons .icon-btn,
  .header-icons .theme-toggle {
    margin-left: 0;
    font-size: 16px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-btn {
    margin-left: 0;
    padding: 6px;
    width: 35px;
    height: 35px;
  }

  /* Ensure all mobile menu links are visible */
  .nav-links li {
    margin: 15px 0;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-links a {
    font-size: 20px;
    padding: 12px 16px;
    max-width: 250px;
    border-radius: 6px;
  }

  /* Mobile cart improvements */
  .cart-preview {
    width: 95%;
    max-width: 320px;
    top: 60px;
    right: 2.5%;
    padding: 15px;
  }

  .cart-preview.active {
    right: 2.5%;
  }

  .cart-item {
    padding: 12px 0;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  /* Mobile modal improvements */
  .modal-content {
    width: 95%;
    max-width: 380px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
  }

  /* Newsletter mobile improvements */
  .newsletter {
    padding: 40px 0;
  }

  .newsletter h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

  .newsletter p {
    font-size: clamp(0.85rem, 4vw, 1rem);
    margin-bottom: 20px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* Floating buttons mobile positioning */
  .floating-action-buttons {
    bottom: -15px;
    right: 15px;
    gap: 12px;
  }

  .floating-action-buttons a {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  /* Back to top button mobile */
  .back-to-top {
    bottom: 20px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  /* Touch-friendly improvements */
  button,
  .btn,
  .add-to-cart,
  .icon-btn,
  .theme-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve readability on small screens */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .comment-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comment {
    padding: 15px;
    border-radius: 8px;
  }

  .comment-text {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .comment-author {
    font-size: 13px;
    text-align: left;
  }
}

/* Sports equipment card adjustments */
.sports-page .product-card .product-img {
  padding-bottom: 100%; /* 1:1 aspect ratio for a square box */
}

.sports-page .product-card .product-img img {
  object-fit: contain; /* Ensures the entire image is visible */
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  margin-bottom: 50px;
  overflow: hidden;
  padding-top: 80px; /* Add padding to account for fixed header */
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%; /* 4 slides */
  height: 100%;
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateX(0);
}

.slide {
  width: 25%; /* 100% / 4 */
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 15;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff !important;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero p {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 30px;
  color: #ffffff !important;
  line-height: 1.4;
}

/* Dark mode hero text - ensure visibility */
.dark-mode .hero h1,
.dark-mode .hero p {
  color: #ffffff;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  transition: transform 0.3s ease, background-color 0.3s ease;
  position: relative;
  z-index: 10;
  cursor: pointer;
  border: none;
  min-height: 44px;
  min-width: 44px;
}

.btn:hover {
  transform: translateY(-3px);
  background-color: var(--accent);
}

/* Categories */
.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(1.75rem, 3vw, 2rem);
  position: relative;
  font-family: "Playfair Display", serif;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  width: 100%;
  box-sizing: border-box;
}

/* Enhanced responsive grids */
@media (max-width: 1024px) {
  .categories {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .categories {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .categories {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.category-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
}

.category-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  max-width: 100%;
  height: auto;
}

.category-content {
  padding: 20px;
  text-align: center;
}

.category-content h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

/* Product Sections */
.product-section {
  margin-bottom: 60px;
}

.section-heading {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--primary);
}

/* Featured Products */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Enhanced responsive grids */
@media (max-width: 1024px) {
  .categories {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .categories {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .categories {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-img {
  position: relative;
  overflow: hidden;
  padding-bottom: 75%; /* 4:3 aspect ratio */
}

.product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
  box-sizing: border-box;
  box-sizing: border-box;
}

/* Desktop hover magnification */
.product-card:hover .product-img img {
  transform: scale(1.15);
}

/* Mobile tap magnification */
.product-img img.magnified {
  transform: scale(1.15);
}

/* Ensure images stay in position during magnification */
.product-img img {
  transform-origin: center center;
}

/* Hover zoom for men fashion */
.hover-zoom .product-img {
  overflow: hidden;
}

.hover-zoom .product-img .normal-img {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hover-zoom .product-img .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hover-zoom:hover .product-img .normal-img {
  opacity: 0;
}

.hover-zoom:hover .product-img .hover-img {
  opacity: 1;
  transform: scale(1.5);
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--secondary);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.product-content {
  padding: 20px;
}

.product-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: var(--primary);
  font-size: 20px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 16px;
  margin-right: 5px;
}

.add-to-cart {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 44px;
  min-width: 44px;
}

.add-to-cart:active {
  transform: scale(0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.add-to-cart:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.add-to-cart.added {
  background-color: var(--secondary);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart .fa-check {
  color: white;
  animation: checkPulse 0.6s ease-in-out;
}

.add-to-cart .fa-spinner {
  color: white;
  animation: spin 1s linear infinite;
}

@keyframes checkPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dark mode support for add-to-cart */
.dark-mode .add-to-cart.added {
  background-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.dark-mode .add-to-cart-success {
  background: var(--secondary) !important;
  color: var(--text) !important;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(to right, var(--primary), var(--accent));
  padding: 60px 0;
  text-align: center;
  color: white;
  margin-bottom: 60px;
}

.newsletter h2 {
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin-bottom: 20px;
  font-family: "Playfair Display", serif;
}

.newsletter p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  min-width: 250px;
  margin: 0 0 10px 0;
}

.newsletter-form button {
  padding: 15px 30px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.newsletter-form button:hover {
  background-color: #ff5252;
}

.subscribe-status {
  margin-top: 10px;
  color: var(--secondary);
  font-weight: 500;
  height: 20px;
}

.comment-section {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

.comment {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
}

.comment-text {
  font-style: italic;
  margin-bottom: 10px;
  color: var(--text);
}

.comment-author {
  font-weight: bold;
  text-align: right;
  color: var(--primary);
}

.stars {
  color: #ffc107;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--card-bg);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-links i {
  margin-right: 10px;
  color: var(--primary);
  width: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.phone-link {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
  cursor: pointer;
}

.phone-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.social-links {
  display: flex;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-5px);
  background-color: var(--accent);
}

.social-icon-text {
  font-weight: bold;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: #777;
}

.back-btn {
  display: inline-block;
  margin: 20px 0;
  padding: 10px 20px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.back-btn:hover {
  background-color: var(--accent);
}

.back-btn i {
  margin-right: 10px;
}

/* Back to Top Button - Centered with transparent background */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(138, 43, 226, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(138, 43, 226, 0.3);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

.back-to-top:hover {
  background-color: rgba(138, 43, 226, 0.2);
  border-color: rgba(138, 43, 226, 0.5);
  transform: translateX(-50%) scale(1.1);
}

/* Combined Message Button - Left side below AI chat */
.message-button-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999; /* Just below AI chat */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.message-main-btn {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.message-main-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.message-main-btn:active {
  transform: scale(0.95);
}

.message-options {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.message-options.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.message-option {
  background: white;
  color: #333;
  padding: 12px 16px;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  min-width: 120px;
  border: 2px solid transparent;
}

.message-option:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-option {
  border-color: #25d366;
  color: #25d366;
}

.whatsapp-option:hover {
  background: #25d366;
  color: white;
}

.call-option {
  border-color: var(--secondary);
  color: var(--secondary);
}

.call-option:hover {
  background: var(--secondary);
  color: white;
}

.message-option i {
  font-size: 18px;
}

/* Theme Toggle Enhancements */
.theme-toggle {
  transition: all 0.3s ease;
  border-radius: 50%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(138, 43, 226, 0.3);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle i {
  transition: all 0.3s ease;
  font-size: 16px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.theme-toggle:active i {
  transform: rotate(180deg) scale(1.1);
}

/* Theme indicator ring */
.theme-toggle::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.theme-toggle:hover::before {
  border-color: var(--primary);
}

/* Dark mode theme toggle */
.dark-mode .theme-toggle {
  background: rgba(45, 45, 45, 0.9);
  border: 2px solid rgba(187, 134, 252, 0.4);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-mode .theme-toggle:hover {
  background: rgba(60, 60, 60, 0.95);
  border-color: rgba(187, 134, 252, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dark-mode .theme-toggle i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.dark-mode .theme-toggle::before {
  border-color: var(--primary);
}

/* Theme toggle tooltip */
.theme-toggle {
  position: relative;
}

.theme-toggle::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.theme-toggle:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-links li {
    margin-left: 20px;
  }

  .header-icons {
    /* Adjustments for tablet size if needed */
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 8px;
  }

  .header-top {
    padding: 8px 10px;
    gap: 4px;
  }

  .logo {
    font-size: 16px;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 255, 255, 0.9)
    );
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.2);
    min-width: 0;
    flex: 1;
  }

  .logo .logo-img {
    height: 24px;
    border-radius: 4px;
  }

  .logo span {
    font-size: 14px;
    letter-spacing: -0.8px;
  }

  .header-icons {
    gap: 8px;
    padding: 4px 6px;
    border-radius: 16px;
  }

  .header-icons .icon-btn,
  .header-icons .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .mobile-menu-btn {
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .hero {
    height: 50vh;
    min-height: 350px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    font-weight: 700;
    color: #000000;
  }

  .hero p {
    font-size: clamp(1rem, 6vw, 1.2rem);
    color: #000000;
  }

  .categories,
  .products {
    gap: 15px;
  }

  .category-card,
  .product-card {
    border-radius: 8px;
  }

  .product-img img {
    height: 200px;
  }

  .product-content {
    padding: 12px;
  }

  .product-title {
    font-size: 15px;
  }

  .price {
    font-size: 18px;
  }

  .newsletter {
    padding: 30px 0;
  }

  .newsletter h2 {
    font-size: clamp(1.3rem, 7vw, 1.8rem);
  }

  .newsletter-form input,
  .newsletter-form button {
    padding: 10px 14px;
    font-size: 14px;
  }

  .footer-content {
    gap: 25px;
  }

  .footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .footer-links li {
    margin-bottom: 8px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .floating-action-buttons {
    bottom: 90px;
    right: 10px;
  }

  .floating-action-buttons a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Modal improvements for very small screens */
  .modal-content {
    width: 98%;
    padding: 15px;
    margin: 10px auto;
  }

  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 24px;
  }

  /* Cart improvements */
  .cart-preview {
    width: 98%;
    right: 1%;
    padding: 12px;
  }

  /* Touch targets for very small screens */
  .add-to-cart,
  .btn,
  button {
    min-height: 40px;
    padding: 8px 12px;
  }

  /* Improve text readability */
  .section-title {
    font-size: clamp(1.3rem, 6vw, 1.8rem);
  }

  .comment-text {
    font-size: 13px;
    line-height: 1.4;
  }

  .comment-author {
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 12px 16px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo {
    font-size: 24px; /* Better mobile size */
    flex: 1;
    min-width: 0;
    order: 1;
    gap: 10px;
  }

  .logo .logo-img {
    height: 36px; /* Slightly smaller logo image */
  }

  .mobile-menu-btn {
    display: block;
    z-index: 101;
    order: 3; /* Change order to place it after icons */
    padding: 8px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 100;
    padding: 20px;
    box-sizing: border-box;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 20px 0; /* Better spacing */
    width: 100%;
    text-align: center;
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 24px; /* Better readable size */
    padding: 15px 20px;
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background-color: var(--card-bg);
    transform: translateY(-2px);
  }

  .header-icons {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .header-icons .icon-btn,
  .header-icons .theme-toggle {
    margin-left: 0;
    width: 40px;
    height: 40px;
  }

  .search-container {
    display: none;
  }

  .icon-btn {
    margin-left: 0;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    max-width: 350px;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .header-top {
    padding: 10px 12px;
    gap: 6px;
  }

  .logo {
    font-size: 20px;
    flex: 1;
    min-width: 0;
    gap: 8px;
  }

  .logo .logo-img {
    height: 32px;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
  }

  .hero p {
    font-size: clamp(1.1rem, 5vw, 1.3rem);
    margin-bottom: 20px;
    color: #000000;
  }

  .categories,
  .products {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .category-card,
  .product-card {
    margin: 0 auto;
    max-width: 100%;
  }

  .product-img img {
    height: 250px;
    object-fit: cover;
  }

  .product-content {
    padding: 15px;
  }

  .product-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .product-price {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .add-to-cart {
    width: 100%;
    padding: 10px 16px;
    justify-content: center;
    font-size: 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 0 15px;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
    gap: 15px;
  }

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  /* Improve nav icons on mobile */
  .header-icons {
    margin-left: 0;
    gap: 10px;
  }

  .header-icons .icon-btn,
  .header-icons .theme-toggle {
    margin-left: 0;
    font-size: 16px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-btn {
    margin-left: 0;
    padding: 6px;
    width: 35px;
    height: 35px;
  }

  /* Ensure all mobile menu links are visible */
  .nav-links li {
    margin: 15px 0;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav-links a {
    font-size: 20px;
    padding: 12px 16px;
    max-width: 250px;
    border-radius: 6px;
  }

  /* Mobile cart improvements */
  .cart-preview {
    width: 95%;
    max-width: 320px;
    top: 60px;
    right: 2.5%;
    padding: 15px;
  }

  .cart-preview.active {
    right: 2.5%;
  }

  .cart-item {
    padding: 12px 0;
  }

  .cart-item img {
    width: 60px;
    height: 60px;
  }

  /* Mobile modal improvements */
  .modal-content {
    width: 95%;
    max-width: 380px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
  }

  /* Newsletter mobile improvements */
  .newsletter {
    padding: 40px 0;
  }

  .newsletter h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

  .newsletter p {
    font-size: clamp(0.85rem, 4vw, 1rem);
    margin-bottom: 20px;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* Floating buttons mobile positioning */
  .floating-action-buttons {
    bottom: -15px;
    right: 15px;
    gap: 12px;
  }

  .floating-action-buttons a {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  /* Back to top button mobile */
  .back-to-top {
    bottom: 20px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  /* Touch-friendly improvements */
  button,
  .btn,
  .add-to-cart,
  .icon-btn,
  .theme-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve readability on small screens */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .comment-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .comment {
    padding: 15px;
    border-radius: 8px;
  }

  .comment-text {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .comment-author {
    font-size: 13px;
    text-align: left;
  }
}

.cart-preview {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 300px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px var(--shadow);
  padding: 20px;
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  border: 1px solid var(--border);
}

.cart-preview.active {
  right: 20px;
}

.cart-preview h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  font-weight: 600;
}

.cart-preview .cart-items {
  max-height: 200px;
  overflow-y: auto;
  margin: 15px 0;
}

.cart-preview .cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin: 15px 0;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: var(--primary);
}

.cart-preview .cart-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cart-preview .view-cart-btn {
  flex: 1;
  padding: 10px 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.cart-preview .view-cart-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.cart-preview .checkout-btn {
  flex: 1;
  padding: 10px 15px;
  background: var(--secondary);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.cart-preview .checkout-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cart-preview {
    width: 95%;
    max-width: 350px;
    top: 70px;
    right: -100%;
    padding: 20px;
    border-radius: 12px;
  }

  .cart-preview.active {
    right: 2.5%;
  }

  .cart-preview h3 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
  }

  .cart-preview .cart-items {
    max-height: 250px;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
  }

  .cart-preview .cart-total {
    font-size: 18px;
    padding: 15px 0;
    margin: 15px 0;
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid var(--border);
  }

  .cart-preview .cart-buttons {
    gap: 12px;
    margin-top: 20px;
  }

  .cart-preview .view-cart-btn,
  .cart-preview .checkout-btn {
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    min-height: 50px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .cart-preview .view-cart-btn:hover,
  .cart-preview .checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .cart-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid var(--border);
  }

  .cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
  }

  .cart-item-details h4 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .cart-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
  }
}

.cart-preview h3 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cart-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  font-size: 14px;
  margin-bottom: 5px;
}

.cart-item-price {
  font-weight: bold;
  color: var(--primary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin: 15px 0;
}

.view-cart-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--primary);
  color: white;
  padding: 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.view-cart-btn:hover {
  background-color: var(--accent);
}

.cart-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 10px;
}

.checkout-btn {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.checkout-btn:hover {
  background-color: #ff5252;
}

/* Detailed Cart Modal */
.cart-modal {
  max-width: 800px !important;
  width: 90% !important;
  padding: 30px !important;
  max-height: 90vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Checkout Modal */
.checkout-modal {
  max-width: 900px !important;
  width: 95% !important;
  padding: 20px !important;
  max-height: 90vh;
  overflow-y: auto;
}

/* Mobile Checkout Modal */
@media (max-width: 768px) {
  .checkout-modal {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  .checkout-modal .modal-content {
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 20px 20px 100px 20px !important; /* Extra bottom padding for fixed buttons */
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  .checkout-modal h2 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

  .checkout-summary {
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: var(--card-bg) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
  }

  .checkout-items {
    max-height: 40vh !important;
    overflow-y: auto !important;
    margin: 15px 0 !important;
    padding: 10px !important;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    background: var(--background) !important;
  }

  .checkout-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px !important;
    margin-bottom: 8px !important;
    border-radius: 6px !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
  }

  .checkout-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 4px !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
  }

  .checkout-item div:first-child {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .checkout-item h4 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
  }

  .checkout-item p {
    font-size: 12px !important;
    color: var(--text) !important;
    opacity: 0.8 !important;
  }

  .checkout-total {
    font-size: 18px !important;
    font-weight: bold !important;
    color: var(--primary) !important;
    border-top: 2px solid var(--primary) !important;
    padding-top: 15px !important;
    margin-top: 15px !important;
    text-align: center !important;
  }

  .payment-options {
    flex: 1 !important;
    margin-bottom: 20px !important;
    padding: 15px !important;
    background: var(--card-bg) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    overflow-y: auto !important;
  }

  .payment-options h3 {
    font-size: 16px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

  .payment-method {
    padding: 15px !important;
    margin-bottom: 12px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border) !important;
    background: var(--background) !important;
    transition: all 0.2s ease !important;
  }

  .payment-method:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  .payment-method img {
    width: 50px !important;
    height: 50px !important;
    margin-right: 15px !important;
    border-radius: 6px !important;
  }

  .payment-details h4 {
    font-size: 16px !important;
    margin: 0 0 8px 0 !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
  }

  .payment-details p {
    margin: 4px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    word-break: break-all !important;
  }

  .copyable {
    background: var(--background) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 1px solid var(--border) !important;
    font-weight: bold !important;
    color: var(--text) !important;
    font-size: 12px !important;
    word-break: break-all !important;
  }

  .copy-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
  }

  .copy-btn:hover {
    background: var(--accent) !important;
  }

  .checkout-actions {
    display: flex !important;
    gap: 15px !important;
    margin-top: 20px !important;
    padding: 15px !important;
    border-top: 1px solid var(--border) !important;
    position: fixed !important;
    bottom: -15px !important;
    left: 0 !important;
    right: 0 !important;
    background: var(--card-bg) !important;
    border-radius: 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 1001 !important;
  }

  .checkout-actions .btn {
    flex: 1 !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    min-height: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
  }

  .whatsapp-btn {
    background: #25d366 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
  }

  .whatsapp-btn:hover {
    background: #128c7e !important;
    transform: translateY(-2px) !important;
  }

  .checkout-actions .btn:not(.whatsapp-btn) {
    background: var(--secondary) !important;
    color: white !important;
    font-weight: 600 !important;
    border: 2px solid var(--secondary) !important;
  }

  .checkout-actions .btn:not(.whatsapp-btn):hover {
    background: #ff5252 !important;
    border-color: #ff5252 !important;
    transform: translateY(-2px) !important;
  }

  .whatsapp-btn {
    background: #25d366 !important;
    color: white !important;
    border: 2px solid #25d366 !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .whatsapp-btn:hover {
    background: #128c7e !important;
    border-color: #128c7e !important;
    transform: translateY(-2px) !important;
  }

  .whatsapp-btn i {
    font-size: 16px !important;
  }

  /* Close button for mobile checkout */
  .checkout-modal .close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1001 !important;
  }
}

@media (max-width: 480px) {
  .checkout-modal {
    width: 100% !important;
    padding: 8px !important;
    margin: 3px;
  }

  .checkout-summary {
    margin-bottom: 10px;
  }

  .checkout-actions {
    gap: 10px;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 10px 15px !important;
  }

  .checkout-actions .btn {
    flex: 1 !important;
    padding: 12px 8px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    min-height: 44px !important;
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .whatsapp-btn {
    min-width: 120px;
  }

  .payment-options {
    margin-bottom: 15px;
  }

  .payment-method {
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 6px;
  }

  .payment-method img {
    margin-right: 10px;
    width: 32px;
    height: 32px;
  }

  .payment-details h4 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .payment-details p {
    font-size: 12px;
    gap: 5px;
    margin: 3px 0;
  }
}

.checkout-summary {
  margin-bottom: 30px;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
}

.checkout-items {
  margin: 15px 0;
}

.checkout-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

.checkout-total {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
  border-top: 2px solid var(--border);
  padding-top: 15px;
  margin-top: 15px;
}

.payment-options {
  margin-bottom: 25px;
}

.payment-method {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-bottom: 12px;
  background-color: var(--card-bg);
  border-radius: 10px;
  border: 2px solid var(--border);
  transition: border-color 0.3s ease;
}

.payment-method:hover {
  border-color: var(--primary);
}

.payment-method img {
  margin-right: 15px;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.payment-details h4 {
  margin: 0 0 8px 0;
  color: var(--primary);
  font-size: 16px;
}

.payment-details p {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.copyable {
  font-weight: bold;
  color: var(--text);
  background-color: var(--background);
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.copy-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.copy-btn:hover {
  background-color: var(--accent);
}

.checkout-actions {
  text-align: center;
  margin-top: 15px;
}

.checkout-actions .btn {
  padding: 10px 16px;
  font-size: 14px;
  min-width: 120px;
  margin: 3px;
  border-radius: 6px;
}

.checkout-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 15px;
}

.whatsapp-btn {
  background-color: #25d366 !important;
  color: white !important;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.whatsapp-btn:hover {
  background-color: #128c7e !important;
}

.whatsapp-btn i {
  font-size: 16px;
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* General button styling */
.button-row button {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  min-width: 180px;
  transition: all 0.2s ease;
}

/* Colors */
.payment,
.whatsapp {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
}

.payment {
  background: #b366ff;
}

.payment:hover {
  background: #a055ff;
  transform: translateY(-2px);
}

.whatsapp {
  background: #25d366;
}

.whatsapp:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

/* Mobile view */
@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
    gap: 12px;
  }
  .button-row button {
    width: 100%;
  }
}

.detailed-cart-items {
  max-height: 50vh;
  overflow-y: auto;
  margin: 20px 0;
  padding-right: 10px;
  flex: 1;
  min-height: 200px;
}

/* Mobile cart improvements */
@media (max-width: 768px) {
  .cart-modal {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }

  .cart-modal .modal-content {
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .cart-modal h2 {
    font-size: 20px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

  .detailed-cart-items {
    flex: 1 !important;
    max-height: calc(100vh - 300px) !important;
    min-height: 200px !important;
    overflow-y: auto !important;
    padding: 10px !important;
    margin: 15px 0 !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: var(--background) !important;
  }

  .detailed-cart-item {
    display: flex !important;
    align-items: center !important;
    padding: 15px !important;
    margin-bottom: 10px !important;
    border-radius: 8px !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  }

  .detailed-cart-item img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 6px !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
  }

  .detailed-cart-item-info {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .detailed-cart-item-info h4 {
    font-size: 14px !important;
    margin-bottom: 4px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
  }

  .item-details {
    font-size: 12px !important;
    color: var(--text) !important;
    opacity: 0.8 !important;
    margin-bottom: 8px !important;
  }

  .item-quantity {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 8px !important;
  }

  .quantity-btn {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    border: 1px solid var(--border) !important;
    background: var(--background) !important;
    color: var(--text) !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
  }

  .quantity-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
  }

  .quantity-display {
    min-width: 40px !important;
    text-align: center !important;
    font-weight: bold !important;
    font-size: 14px !important;
  }

  .item-total {
    text-align: right !important;
    font-weight: bold !important;
    color: var(--primary) !important;
    font-size: 14px !important;
  }

  .remove-item {
    background: #ff4757 !important;
    color: white !important;
    border: none !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
  }

  .remove-item:hover {
    background: #ff3742 !important;
  }

  .cart-summary {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
  }

  .cart-summary > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
  }

  .cart-summary .total {
    font-size: 16px !important;
    font-weight: bold !important;
    color: var(--primary) !important;
    border-top: 2px solid var(--primary) !important;
    padding-top: 10px !important;
    margin-top: 10px !important;
  }

  .cart-actions {
    display: flex !important;
    gap: 15px !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid var(--border) !important;
  }

  .cart-actions button {
    flex: 1 !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    min-height: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
  }

  .cart-actions .btn {
    background: var(--primary) !important;
    color: white !important;
  }

  .cart-actions .checkout-btn {
    background: var(--secondary) !important;
    color: white !important;
  }

  .cart-actions button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  }

  /* Close button positioning for mobile */
  .cart-modal .close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1001 !important;
  }
}

.detailed-cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.detailed-cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}

.detailed-cart-item-info h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.item-details {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 5px;
}

.item-color {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.quantity-btn {
  background: none;
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.quantity-display {
  width: 40px;
  text-align: center;
}

.cart-summary {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  margin: 20px 0;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.cart-summary .total {
  font-size: 20px;
  font-weight: bold;
  border-top: 2px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.cart-actions button {
  flex: 1;
  padding: 15px;
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .category-card:hover,
  .product-card:hover,
  .social-links a:hover,
  .btn:hover {
    transform: none !important;
  }
}

/* Countdown Timer */
.countdown-section {
  background-color: var(--accent);
  color: white;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 50px;
}

.emergency-offer {
  background: linear-gradient(45deg, #4169e1, #1e40af, #1e3a8a);
  animation: emergency-pulse 1s infinite alternate;
  border: 3px solid #ffff00;
  box-shadow: 0 0 20px rgba(65, 105, 225, 0.5);
}

@keyframes emergency-pulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.02);
  }
}

.countdown-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}

.emergency-title {
  font-family: "Impact", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: bold;
  color: #ff0000;
  text-shadow: 2px 2px 4px rgba(17, 223, 27, 0.921);
  animation: blink 0.8s infinite;
  letter-spacing: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

.emergency-text {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  animation: blink 1s infinite;
  margin: 10px 0;
}

.countdown-timer {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.countdown-timer div {
  text-align: center;
}

.countdown-timer span {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
}

.emergency-btn {
  background: linear-gradient(45deg, #f6e205fb, #00d9fffe);
  color: #1500ffdb;
  font-weight: bold;
  font-size: 1.2rem;
  border: 2px solid #ffffff;
  animation: btn-blink 1.2s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes btn-blink {
  0%,
  50% {
    opacity: 1;
    transform: scale(1);
  }
  51%,
  100% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Offer Modal */
.modal {
  position: fixed;
  z-index: 101;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--card-bg);
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 5px 20px var(--shadow);
}

.close-btn {
  color: var(--text);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: var(--primary);
}

.offer-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.offer-item {
  text-align: center;
  background: var(--card-bg);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.offer-item:hover {
  transform: translateY(-5px);
}

.offer-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.offer-item h4 {
  margin: 10px 0 5px;
  color: var(--primary);
  font-size: 1.1rem;
}

.offer-item p {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.offer-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.offer-price .old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.offer-price .new-price {
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.1rem;
}

.add-to-cart-offer {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-top: 10px;
  transition: background-color 0.3s ease;
  width: 100%;
}

.add-to-cart-offer:hover {
  background-color: var(--accent);
}

.add-to-cart-offer.added {
  background-color: var(--secondary);
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Account Modal */
#accountModal .modal-content {
  max-width: 400px;
}

#loginForm,
#signupForm {
  display: flex;
  flex-direction: column;
}

#loginForm h2,
#signupForm h2 {
  text-align: center;
  margin-bottom: 20px;
}

#loginForm input,
#signupForm input {
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

#loginForm p,
#signupForm p {
  text-align: center;
  margin-top: 15px;
}

.user-profile {
  width: 30px;
  height: 30px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  margin-left: 10px;
}

.sign-out-btn {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin-left: 10px;
}

.sign-out-btn:hover {
  background-color: #ff5252;
}
#userProfileModal h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Floating Buttons */
.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-5px);
}

.call-btn {
  background-color: rgba(0, 123, 255, 0.8);
  bottom: 140px;
  animation: bounce 1.5s infinite;
}

.whatsapp-btn {
  background-color: rgba(37, 211, 102, 0.8);
  bottom: 50px;
  animation: bounce 1.5s infinite 0.2s;
}

.back-to-top-btn {
  bottom: 20px;
}

/* Prevent background scroll when menu is open */
body.menu-open {
  overflow: hidden;
}


/* Delivery Banner */
.delivery-banner {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 44px;
  display: flex;
  align-items: center;
}

.delivery-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: moveContent 15s linear infinite;
}

.delivery-car {
  font-size: 24px;
  margin-right: 10px;
  animation: bounce 0.8s infinite alternate;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.delivery-text {
  font-weight: 900;
  font-size: 16px;
  color: #f1c40f;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Animation for moving the content */
@keyframes moveContent {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

/* Animation for bouncing the car */
@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-3px);
  }
}

/* Top banner moves slightly faster */
.top-banner .delivery-content {
  animation: moveContent 15s linear infinite;
}

/* Bottom banner moves slightly slower for visual interest */
.bottom-banner .delivery-content {
  animation: moveContent 18s linear infinite;
}

/* Pause animation on hover */
.delivery-banner:hover .delivery-content {
  animation-play-state: paused;
}

/* Fill hover effects for buttons */
.message-main-btn:hover {
  background-color: var(--primary);
  transition: background-color 0.3s ease;
}

.message-option:hover {
  background-color: var(--primary);
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.floating-btn:hover {
  background-color: var(--accent);
  transition: background-color 0.3s ease;
}

.call-btn:hover {
  background-color: var(--accent);
  transition: background-color 0.3s ease;
}

.whatsapp-btn:hover {
  background-color: var(--accent);
  transition: background-color 0.3s ease;
}

.back-to-top:hover {
  background-color: var(--accent);
  /* Image Lightbox Styles */
  .image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .image-modal-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
  }

  .image-modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
  }

  .image-modal-content,
  .image-modal-caption {
    animation-name: zoom;
    animation-duration: 0.6s;
  }

  @keyframes zoom {
    from {
      transform: scale(0);
    }
    to {
      transform: scale(1);
    }
  }

  .image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
  }

  .image-modal-close:hover,
  .image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
  }

  /* Responsive adjustments */
  @media only screen and (max-width: 768px) {
    .image-modal-content {
      max-width: 95%;
      max-height: 70vh;
    }

    .image-modal-caption {
      width: 90%;
    }
  }
  transition: background-color 0.3s ease;
}
