/* CozyWear Luxury E-commerce Styles */
:root {
  --royal-purple: #7b3ff2;
  --royal-purple-dark: #5a2bb0;
  --royal-purple-light: #9d72f7;
  --black: #121212;
  --dark-gray: #2d2d2d;
  --medium-gray: #6c6c6c;
  --light-gray: #e0e0e0;
  --white: #ffffff;
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --light-text: #333333;
  --dark-text: #f0f0f0;
}

/* Light theme variables */
[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #333333;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --input-bg: #ffffff;
  --button-bg: #7b3ff2;
  --button-text: #ffffff;
  --footer-bg: #f8f9fa;
}

/* Dark theme variables */
[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #f0f0f0;
  --header-bg: #1e1e1e;
  --card-bg: #1e1e1e;
  --border-color: #333333;
  --input-bg: #2d2d2d;
  --button-bg: #7b3ff2;
  --button-text: #ffffff;
  --footer-bg: #1e1e1e;
}

/* Ensure all text elements inherit the theme text color */
body,
h1, h2, h3, h4, h5, h6,
p, span, div, a,
button, label, li {
  color: var(--text-color);
}

/* Ensure form elements are visible in both themes */
input, textarea, select {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--royal-purple);
  box-shadow: 0 0 0 2px rgba(123, 63, 242, 0.2);
}

/* Ensure table text is visible in both themes */
table th, table td {
  color: var(--text-color);
  background-color: var(--card-bg);
}

table th {
  background-color: var(--header-bg);
}

/* Ensure list items are visible */
ul li, ol li {
  color: var(--text-color);
}

/* Ensure footer text is visible in both themes */
footer, .footer-column h3, .footer-column ul li a {
  color: var(--text-color);
}

/* Login page specific dark theme fixes */
[data-theme="dark"] .login-card {
  background-color: var(--card-bg);
  color: var(--text-color);
}

[data-theme="dark"] .alert-error {
  background-color: #3b1d1d;
  border-color: #7a2d2d;
  color: #f8b4b4;
}

[data-theme="dark"] .alert-success {
  background-color: #1d3b1d;
  border-color: #2d7a2d;
  color: #b4f8b4;
}

/* Ensure buttons are visible in both themes */
.btn {
  background-color: var(--button-bg);
  color: var(--button-text);
}

.btn-outline {
  background-color: transparent;
  color: var(--button-bg);
  border: 1px solid var(--button-bg);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: rgba(123, 63, 242, 0.2);
}

/* Ensure form inputs are properly styled in dark mode */
[data-theme="dark"] .input-with-icon input {
  background-color: var(--input-bg);
  color: var(--text-color);
  border-color: var(--border-color);
}

[data-theme="dark"] .input-with-icon input:focus {
  background-color: #333333;
  border-color: var(--royal-purple);
}

/* Ensure login form elements are visible in dark mode */
[data-theme="dark"] .form-group label {
  color: var(--text-color);
}

[data-theme="dark"] .input-with-icon i {
  color: var(--royal-purple);
}

/* Ensure alternative login options are visible */
[data-theme="dark"] .alternative-login .btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .alternative-login .btn:hover {
  background-color: #333333;
}

/* Ensure signup link is visible */
[data-theme="dark"] .signup-link {
  color: var(--text-color);
}

[data-theme="dark"] .signup-link a {
  color: var(--royal-purple);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Mobile Header (Hidden by default on desktop) */
.mobile-header {
  display: none;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 1em;
  color: var(--text-color);
}

a {
  color: var(--royal-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--royal-purple-dark);
}

strong {
  font-weight: 600;
}

small {
  font-size: 0.875em;
}

.theme-toggle {
  cursor: pointer;
  margin-left: 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

/* Desktop Header */
.desktop-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative !important; /* Changed from fixed to relative to prevent spacing issues */
  top: auto !important;
  width: 100%;
  z-index: 1000;
  margin: 0 !important;
  padding: 0 !important;
}

/* Mobile Header */
.mobile-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--royal-purple);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--royal-purple);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active navigation state */
.nav-links a.active {
  color: var(--royal-purple);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
  background-color: var(--royal-purple);
}

.header-actions {
  display: flex;
  align-items: center;
}

.search-bar {
  position: relative;
  margin-right: 1.5rem;
}

.search-bar input {
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.search-bar input:focus {
  border-color: var(--royal-purple);
  box-shadow: 0 0 0 2px rgba(123, 63, 242, 0.2);
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  margin: 0 1rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--royal-purple);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Added Wishlist Icon Styles */
.wishlist-icon {
  position: relative;
  cursor: pointer;
  margin: 0 1rem;
}

.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--royal-purple);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Added Profile Icon Styles */
.profile-icon {
  position: relative;
  cursor: pointer;
  margin: 0 1rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

.profile-icon:hover .profile-dropdown {
  display: block;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  display: none;
  z-index: 1000;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.profile-dropdown a:last-child {
  border-bottom: none;
}

.profile-dropdown a:hover {
  background-color: rgba(123, 63, 242, 0.1);
}

.profile-dropdown a i {
  margin-right: 0.5rem;
  width: 20px;
  text-align: center;
}

/* Notification Bell Styles */
.notification-bell {
  position: relative;
  cursor: pointer;
  margin: 0 1rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

.notification-bell:hover .notification-dropdown {
  display: block;
}

.notification-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 300px;
  display: none;
  z-index: 1000;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.notification-header h4 {
  margin: 0;
}

.mark-all-read {
  background: none;
  border: none;
  color: var(--royal-purple);
  cursor: pointer;
  font-size: 0.9rem;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.no-notifications {
  padding: 2rem;
  text-align: center;
  color: var(--medium-gray);
}

.user-actions a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.user-actions a:hover {
  color: var(--royal-purple);
}

/* Header Styles */
header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Mobile Header Styles */
.mobile-header {
  display: none;
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.mobile-logo .logo {
  text-decoration: none;
}

.mobile-logo .logo-img {
  height: 35px;
  width: auto;
}

.mobile-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-search-icon, .mobile-menu-icon, .theme-toggle {
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-wishlist-icon {
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
}

.mobile-wishlist-icon .wishlist-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--royal-purple);
  color: white;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-search-bar {
  display: none;
  padding: 0 1rem 1rem;
}

.mobile-search-bar form {
  position: relative;
}

.mobile-search-bar input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.mobile-search-bar input:focus {
  border-color: var(--royal-purple);
  box-shadow: 0 0 0 2px rgba(123, 63, 242, 0.2);
}

.mobile-search-bar button {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--medium-gray);
  cursor: pointer;
}

.mobile-nav-menu {
  display: none;
  background-color: var(--header-bg);
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-menu ul li {
  margin: 0.5rem 0;
}

.mobile-nav-menu ul li a {
  display: block;
  padding: 0.5rem;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.mobile-nav-menu ul li a:hover {
  background-color: rgba(123, 63, 242, 0.1);
}

.mobile-nav-menu ul li a.active {
  color: var(--royal-purple);
  font-weight: 600;
  background-color: rgba(123, 63, 242, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--royal-purple);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--royal-purple);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.search-bar {
  position: relative;
  margin-right: 1.5rem;
}

.search-bar input {
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.search-bar input:focus {
  border-color: var(--royal-purple);
  box-shadow: 0 0 0 2px rgba(123, 63, 242, 0.2);
}

.search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--medium-gray);
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--royal-purple);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.user-actions a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.user-actions a:hover {
  color: var(--royal-purple);
}

/* Hero Section with Slider */
.hero {
  background-size: cover;
  background-position: center;
  height: 69vh; /* Changed from 70vh to match hero-slide height */
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Fill the entire hero section */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-slide.active {
  opacity: 1;
}

/* Background images for each slide with darker overlay */
.hero-slide:nth-child(1) {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/1.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-slide:nth-child(2) {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/2.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-content {
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  z-index: 2;
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 20px; /* Add space above buttons */
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--royal-purple);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--royal-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: var(--royal-purple);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Slider Navigation Dots */
.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

.dot:hover {
  background-color: var(--royal-purple-light);
}

/* Responsive fixes for hero section */
@media (max-width: 768px) {
  .hero {
    height: 60vh; /* Reduced from 80vh */
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .hero-slide {
    height: 100%; /* Fixed from 69% to match hero height */
  }
  
  .hero-content {
    bottom: 15%;
    padding: 0 15px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn {
    width: 80%;
    padding: 0.7rem 1.5rem;
  }
  
  .slider-nav {
    bottom: 10px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
  
  /* Ensure proper stacking on mobile */
  .desktop-header {
    display: none !important;
  }
  
  .mobile-header {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 30px !important;
  }
  
  .home-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .hero-slide {
    height: 100%; /* Fixed from 69% to match hero height */
  }
  
  .hero-content {
    bottom: 10%;
    padding: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .btn {
    width: 90%;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .slider-nav {
    bottom: 10px;
  }
  
  /* Ensure proper stacking on small mobile */
  .desktop-header {
    display: none !important;
  }
  
  .mobile-header {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 20px !important;
  }
  
  .home-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

/* Categories Section */
.categories {
  padding: 5rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--royal-purple);
  border-radius: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.category-info {
  padding: 1.5rem;
  text-align: center;
}

.category-info h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.category-info p {
  color: var(--medium-gray);
  font-size: 0.9rem;
}

/* Featured Products */
.featured-products {
  padding: 5rem 5%;
  background-color: var(--bg-color);
  max-width: 1400px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--royal-purple);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.product-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-info .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--royal-purple);
  margin-bottom: 1rem;
}

.product-info .original-price {
  text-decoration: line-through;
  color: var(--medium-gray);
  margin-left: 0.5rem;
  font-size: 1rem;
}

.rating {
  color: var(--warning);
  margin-bottom: 1rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--royal-purple);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: var(--royal-purple-dark);
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 4rem 5% 2rem;
  z-index: 10;
  position: relative;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--royal-purple);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--royal-purple);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--dark-gray);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--royal-purple);
  transform: translateY(-3px);
}

.newsletter-form {
  margin-top: 1rem;
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.newsletter-form button {
  background-color: var(--royal-purple);
  color: var(--white);
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--royal-purple-dark);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-gray);
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop-header {
    display: none;
  }
  
  .mobile-header {
    display: block;
  }
  
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-links {
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-links li {
    margin: 0.5rem;
  }
  
  .header-actions {
    margin-top: 1rem;
    flex-direction: column;
    width: 100%;
  }
  
  .search-bar {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .search-bar input {
    width: 100%;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.5rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Global responsive adjustments */
  .container {
    padding: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.6rem;
  }
  
  .mobile-app-nav {
    padding: 0.2rem 0;
  }
  
  /* Add padding to main content to account for fixed mobile header */
  main {
    padding-top: 67px !important; /* Height of mobile navbar (35px logo + 32px padding) */
    margin-top: 0 !important;
    padding-bottom: 20px !important;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000 url('images/bgtext.png') center center no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 15px;
}

.loading-logo-video {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 10px;
}



.loading-text {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 20px;
  text-shadow: 0 0 10px rgba(123, 63, 242, 0.8);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive styles for loading screen */
@media (max-width: 768px) {
  .loading-logo-video {
    width: 150px;
    height: 150px;
  }
  
  .loading-content {
    padding: 20px;
  }
  
  .loading-text {
    font-size: 1.5rem;
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .loading-logo-video {
    width: 120px;
    height: 120px;
  }
  
  .loading-content {
    padding: 15px;
  }
  
  .loading-text {
    font-size: 1.2rem;
    margin-top: 10px;
  }
}

/* Auto-hide loading screen after 5 seconds as fallback */
.loading-screen {
  animation: fadeOut 0.5s ease-in-out 5s forwards;
  pointer-events: none; /* Ensure it doesn't block interaction */
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    z-index: -1; /* Move behind other elements */
  }
}

/* Additional fallback: Hide loading screen after 10 seconds */
@media (max-width: 768px) {
  .loading-screen {
    animation: fadeOut 0.5s ease-in-out 10s forwards;
  }
}

/* Global responsive styles for all pages */
@media (max-width: 768px) {
  /* Show mobile header on mobile devices */
  .mobile-header {
    display: block;
  }
  
  /* Hide desktop header on mobile devices */
  .desktop-header {
    display: none;
  }
  
  /* Adjust mobile header for better appearance */
  .mobile-navbar {
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-search-bar {
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-nav-menu {
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-nav-menu ul li a {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-nav-menu ul li:last-child a {
    border-bottom: none;
  }
  /* Adjust font sizes for better readability on mobile */
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Adjust padding and margins for mobile */
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .categories, .featured-products {
    padding: 2rem 1rem;
  }
  
  /* Make tables scrollable on mobile */
  .table-responsive {
    overflow-x: auto;
  }
  
  /* Adjust grid layouts for mobile */
  .product-grid, .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Adjust footer for mobile */
  footer {
    padding: 2rem 1rem 1rem;
  }
  
  .copyright {
    text-align: center;
    font-size: 0.8rem;
  }
  
  /* Show mobile app navigation on mobile */
  .mobile-app-nav {
    display: flex;
  }
  
  /* Add extra padding to main content to accommodate both fixed navs */
  main {
    padding-bottom: 40px !important; /* Reduced from 80px */
    padding-top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block !important;
    width: 100% !important;
  }
  
  /* Home page specific styles */
  .home-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Ensure hero section connects directly to header */
  .home-container .hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 90vh !important;
  }

  /* Desktop Header */
  .desktop-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative !important; /* Changed from fixed to relative to prevent spacing issues */
    top: auto !important;
    width: 100%;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Mobile Header */
  .mobile-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative !important; /* Changed from fixed to relative to prevent spacing issues */
    top: auto !important;
    width: 100%;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Responsive fixes for hero section */
  @media (max-width: 768px) {
    .hero {
      height: 80vh;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .hero-content {
      bottom: 15%;
      padding: 0 15px;
    }
    
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .hero-content p {
      font-size: 1rem;
    }
    
    .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    
    .btn {
      width: 80%;
      padding: 0.7rem 1.5rem;
    }
    
    .slider-nav {
      bottom: 10px;
    }
    
    .dot {
      width: 10px;
      height: 10px;
    }
    
    /* Ensure proper stacking on mobile */
    .desktop-header {
      display: none !important;
    }
    
    .mobile-header {
      display: block !important;
      position: relative !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    main {
      padding-top: 0 !important;
      margin-top: 0 !important;
      padding-bottom: 30px !important;
    }
    
    .home-container {
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      width: 100% !important;
    }
}

@media (max-width: 480px) {
  /* Show mobile header on mobile devices */
  .mobile-header {
    display: block;
  }
  
  /* Hide desktop header on mobile devices */
  .desktop-header {
    display: none;
  }
  
  /* Adjust mobile header for better appearance */
  .mobile-navbar {
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-search-bar {
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-nav-menu {
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-nav-menu ul li a {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-nav-menu ul li:last-child a {
    border-bottom: none;
  }
  /* Adjust font sizes for better readability on mobile */
  body {
    font-size: 14px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  /* Ensure images are responsive */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Adjust padding and margins for mobile */
  .section-title {
    margin-bottom: 1.5rem;
  }
  
  .categories, .featured-products {
    padding: 2rem 1rem;
  }
  
  /* Make tables scrollable on mobile */
  .table-responsive {
    overflow-x: auto;
  }
  
  /* Adjust grid layouts for mobile */
  .product-grid, .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Adjust footer for mobile */
  footer {
    padding: 2rem 1rem 1rem;
  }
  
  .copyright {
    text-align: center;
    font-size: 0.8rem;
  }
  
  /* Show mobile app navigation on mobile */
  .mobile-app-nav {
    display: flex;
  }
  
  /* Add extra padding to main content to accommodate both fixed navs */
  main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 20px !important; /* Reduced from 80px */
  }
  
  /* Home page specific styles */
  .home-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
  }

  /* Ensure hero section connects directly to header */
  .home-container .hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 90vh !important;
  }

  /* Desktop Header */
  .desktop-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative !important; /* Changed from fixed to relative to prevent spacing issues */
    top: auto !important;
    width: 100%;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Mobile Header */
  .mobile-header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative !important; /* Changed from fixed to relative to prevent spacing issues */
    top: auto !important;
    width: 100%;
    z-index: 1000;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Responsive fixes for hero section */
  @media (max-width: 768px) {
    .hero {
      height: 60vh;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .hero-slide {
      height: 69%;
    }
    
    .hero-content {
      bottom: 15%;
      padding: 0 15px;
    }
    
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .hero-content p {
      font-size: 1rem;
    }
    
    .hero-buttons {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
    
    .btn {
      width: 80%;
      padding: 0.7rem 1.5rem;
    }
    
    .slider-nav {
      bottom: 10px;
    }
    
    .dot {
      width: 10px;
      height: 10px;
    }
    
    /* Ensure proper stacking on mobile */
    .desktop-header {
      display: none !important;
    }
    
    .mobile-header {
      display: block !important;
      position: relative !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    main {
      padding-top: 0 !important;
      margin-top: 0 !important;
      padding-bottom: 30px !important;
    }
    
    .home-container {
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      width: 100% !important;
    }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .hero-slide {
    height: 100%;
  }
  
  .hero-content {
    bottom: 10%;
    padding: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .btn {
    width: 90%;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .slider-nav {
    bottom: 10px;
  }
  
  /* Ensure proper stacking on small mobile */
  .desktop-header {
    display: none !important;
  }
  
  .mobile-header {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 20px !important;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
    
    .btn {
      width: 80%;
      padding: 0.7rem 1.5rem;
    }
    
    .slider-nav {
      bottom: 10px;
    }
    
    .dot {
      width: 10px;
      height: 10px;
    }
    
    /* Ensure proper stacking on mobile */
    .desktop-header {
      display: none !important;
    }
    
    .mobile-header {
      display: block !important;
      position: relative !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    main {
      padding-top: 0 !important;
      margin-top: 0 !important;
      padding-bottom: 30px !important;
    }
    
    .home-container {
      max-width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      width: 100% !important;
    }
}

@media (max-width: 480px) {
  .hero {
    height: 50vh;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .hero-slide {
    height: 100%;
  }
  
  .hero-content {
    bottom: 10%;
    padding: 0 10px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .btn {
    width: 90%;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .slider-nav {
    bottom: 10px;
  }
  
  /* Ensure proper stacking on small mobile */
  .desktop-header {
    display: none !important;
  }
  
  .mobile-header {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  main {
    padding-top: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 20px !important;
  }
  
  .home-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

/* Ensure proper base styles */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow-x: hidden !important;
}

body {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  overflow-x: hidden !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
  position: relative !important;
}

.hero-content h1 {
  font-size: 1.5rem;
}

.hero-content p {
  font-size: 0.9rem;
}

.btn {
  width: 90%;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.slider-nav {
  bottom: 10px;
}

/* Ensure proper stacking on small mobile */
.desktop-header {
  display: none !important;
}

.mobile-header {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 0 !important;
}

main {
  padding-top: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 80px !important;
}

.home-container {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Ensure footer is visible on mobile */
footer {
  position: relative;
  z-index: 10;
}

/* Form Styles */
.form-container {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--royal-purple);
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 63, 242, 0.2);
}

.form-group .checkbox {
  display: flex;
  align-items: center;
}

.form-group .checkbox input {
  width: auto;
  margin-right: 0.5rem;
}

.error-message {
  color: var(--danger);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.success-message {
  color: var(--success);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* Mobile App Navigation */
.mobile-app-nav {
  display: none; /* Hidden by default on desktop */
  background-color: var(--header-bg);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-app-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.7rem;
  height: 100%;
  flex: 1;
  transition: all 0.3s ease;
  position: relative;
  padding-top: 5px;
}

.mobile-app-nav .nav-item i {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
  transition: transform 0.2s ease;
}

.mobile-app-nav .nav-item:hover i {
  transform: scale(1.1);
}

.mobile-app-nav .nav-item.active {
  color: var(--royal-purple);
  font-weight: 600;
}

.mobile-app-nav .nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--royal-purple);
  border-radius: 0 0 3px 3px;
}

/* Add a subtle hover effect */
.mobile-app-nav .nav-item:not(.active):hover {
  background-color: rgba(123, 63, 242, 0.05);
}

/* Enhanced mobile app look */
@media (max-width: 768px) {
  .mobile-app-nav {
    display: flex;
    height: 65px;
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
  }
  
  [data-theme="dark"] .mobile-app-nav {
    background: linear-gradient(to top, rgba(30,30,30,0.95), rgba(30,30,30,0.98));
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .mobile-app-nav .nav-item {
    padding-top: 8px;
  }
  
  .mobile-app-nav .nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }
  
  .mobile-app-nav .nav-item span {
    font-size: 0.75rem;
  }
  
  .mobile-app-nav .nav-item.active {
    color: var(--royal-purple);
    font-weight: 600;
  }
  
  .mobile-app-nav .nav-item.active i {
    transform: scale(1.1);
  }
  
  .mobile-app-nav .nav-item.active::after {
    width: 35px;
    height: 4px;
  }
}

/* Cart Styles */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.cart-table th {
  background-color: var(--header-bg);
  font-weight: 600;
  color: var(--text-color);
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.quantity-control {
  display: flex;
  align-items: center;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  background-color: var(--light-gray);
  border: none;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.quantity-control button:hover {
  background-color: var(--medium-gray);
  color: var(--white);
}

.quantity-control input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  margin: 0 0.5rem;
  padding: 0.2rem;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.remove-item {
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.remove-item:hover {
  transform: scale(1.1);
}

.cart-summary {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.cart-summary h3 {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.total-row {
  font-weight: 700;
  font-size: 1.2rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.checkout-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--royal-purple);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 4px 6px rgba(123, 63, 242, 0.3);
}

.checkout-btn:hover {
  background-color: var(--royal-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(123, 63, 242, 0.4);
}

/* Professional Form Styles */
.form-container {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--royal-purple);
  outline: none;
  box-shadow: 0 0 0 2px rgba(123, 63, 242, 0.2);
}

.form-group .checkbox {
  display: flex;
  align-items: center;
}

.form-group .checkbox input {
  width: auto;
  margin-right: 0.5rem;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.3s ease;
}

.notification.success {
  background-color: var(--success);
}

.notification.error {
  background-color: var(--danger);
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Hide desktop header on mobile */
  .desktop-header {
    display: none;
  }
  
  /* Show mobile header on mobile */
  .mobile-header {
    display: block;
  }
  
  /* Mobile navbar */
  .mobile-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .mobile-logo .logo-img {
    height: 30px;
  }
  
  .mobile-icons {
    display: flex;
    gap: 1rem;
  }
  
  .mobile-icons i {
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  /* Mobile search bar */
  .mobile-search-bar {
    display: none;
    padding: 1rem;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-search-bar .search-form {
    display: flex;
  }
  
  .mobile-search-bar input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
  }
  
  .mobile-search-bar button {
    padding: 0.5rem 1rem;
    background-color: var(--royal-purple);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
  }
  
  /* Mobile navigation menu */
  .mobile-nav-menu {
    display: none;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-nav-menu ul li {
    border-bottom: 1px solid var(--border-color);
  }
  
  .mobile-nav-menu ul li:last-child {
    border-bottom: none;
  }
  
  .mobile-nav-menu ul li a {
    display: block;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
  }
  
  .mobile-nav-menu ul li a:hover,
  .mobile-nav-menu ul li a.active {
    background-color: var(--royal-purple);
    color: white;
  }
  
  /* Hero section */
  .hero {
    height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hero-buttons .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Categories */
  .category-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .category-card {
    flex-direction: column;
  }
  
  .category-img {
    width: 100%;
    height: 200px;
  }
  
  /* Products */
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  .product-card {
    margin-bottom: 1rem;
  }
  
  .product-img {
    height: 180px;
  }
  
  .product-info h3 {
    font-size: 1rem;
  }
  
  .price {
    font-size: 1rem;
  }
  
  .original-price {
    font-size: 0.8rem;
  }
  
  /* Product detail page */
  .product-detail-container {
    flex-direction: column;
  }
  
  .product-images {
    width: 100%;
  }
  
  .thumbnail-images {
    justify-content: center;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  /* Quantity selector */
  .quantity-selector {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .quantity-selector input {
    width: 50px;
  }
  
  /* Cart */
  .cart-table {
    display: block;
    overflow-x: auto;
  }
  
  .cart-table th,
  .cart-table td {
    padding: 0.5rem;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-column {
    width: 100%;
  }
  
  /* General adjustments */
  .container {
    padding: 0 1rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .hero {
    height: 300px;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .product-img {
    height: 250px;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .cart-summary {
    padding: 1rem;
  }
  
  .form-container {
    padding: 1rem;
  }
}

/* Home page specific styles */
.home-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Ensure hero section connects directly to header */
.home-container .hero {
  margin-top: 0;
  padding-top: 0;
}

/* Shop Page Styles */
.shop-container {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 5%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.product-info h3 a {
  color: var(--text-color);
  text-decoration: none;
}

.product-info h3 a:hover {
  color: var(--royal-purple);
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--royal-purple);
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quantity-input {
  width: 50px;
  padding: 0.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.qty-btn {
  width: 30px;
  height: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-color);
}

.qty-btn:hover {
  background-color: rgba(123, 63, 242, 0.1);
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.add-to-cart {
  flex: 1;
  padding: 0.8rem;
  background-color: var(--royal-purple);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-to-cart:hover {
  background-color: var(--royal-purple-dark);
}

.product-availability {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.in-stock {
  color: var(--success);
  font-weight: 500;
}

.out-of-stock {
  color: var(--danger);
  font-weight: 500;
}

.low-stock-badge,
.out-of-stock-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--warning);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 1;
}

.out-of-stock-badge {
  background-color: var(--danger);
}

/* Responsive fixes for shop page */
@media (max-width: 768px) {
  .shop-container {
    padding: 0 3%;
    margin: 1rem auto;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .product-image {
    height: 200px;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-info h3 {
    font-size: 1.1rem;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
  
  .quantity-input {
    width: 45px;
    padding: 0.4rem;
  }
  
  .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
  }
  
  .add-to-cart {
    padding: 0.7rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .shop-container {
    padding: 0 2%;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-image {
    height: 250px;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-info h3 {
    font-size: 1rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
}

/* Add these responsive improvements for better mobile experience */

/* Extra small devices (phones, 320px and up) */
@media (max-width: 320px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card {
    border-radius: 8px;
  }
  
  .product-img {
    height: 200px;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-info h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }
  
  .product-price {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }
  
  .add-to-cart {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

/* Small devices (phones, 480px and up) */
@media (min-width: 321px) and (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .product-img {
    height: 220px;
  }
  
  .product-info h3 {
    font-size: 1.1rem;
  }
  
  .product-price {
    font-size: 1.1rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 481px) and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .product-img {
    height: 200px;
  }
}

/* Large devices (desktops, 769px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.8rem;
  }
}

/* Extra large devices (large desktops, 1025px and up) */
@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }
}

/* Improved product card hover effect for touch devices */
@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
  .add-to-cart {
    min-height: 44px; /* Minimum touch target size */
  }
  
  .product-info h3 a {
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Improve spacing for mobile product details */
  .product-detail-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .product-images {
    width: 100%;
  }
  
  .product-info {
    width: 100%;
  }
}

/* Product detail page improvements */
@media (max-width: 480px) {
  .product-detail-container {
    padding: 0 2%;
  }
  
  .thumbnail-images {
    gap: 0.5rem;
  }
  
  .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .product-price {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .original-price {
    margin-left: 0;
  }
  
  .product-options {
    gap: 1rem;
  }
  
  .size-options,
  .color-options {
    gap: 0.5rem;
  }
  
  .size-option,
  .color-option {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Cart page responsive improvements */
@media (max-width: 768px) {
  .cart-content {
    flex-direction: column;
  }
  
  .cart-items {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .cart-summary {
    width: 100%;
  }
  
  .cart-table {
    display: block;
  }
  
  .cart-table thead {
    display: none;
  }
  
  .cart-table tbody {
    display: block;
  }
  
  .cart-table tr {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
  }
  
  .cart-table td {
    display: block;
    text-align: right;
    padding: 0.5rem 0;
    border: none;
  }
  
  .cart-table td:before {
    content: attr(data-label) ": ";
    float: left;
    font-weight: bold;
    color: var(--text-color);
  }
  
  .cart-product {
    flex-direction: column;
    text-align: center;
  }
  
  .cart-product img {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
  }
  
  .quantity-control {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cart-table tr {
    padding: 0.8rem;
  }
  
  .cart-product img {
    width: 80px;
    height: 80px;
  }
  
  .summary-row {
    font-size: 0.9rem;
  }
  
  .total-row {
    font-size: 1.1rem;
  }
}

  
  .quantity-selector {
    flex-direction: row;
    gap: 0.3rem;
  }
  
  .quantity-input {
    width: 40px;
    padding: 0.3rem;
    font-size: 0.9rem;
  }
  
  .qty-btn {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .add-to-cart {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
}

/* Footer Styles */
footer {
  background-color: var(--dark-gray);
  color: var(--light-gray);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: var(--light-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--royal-purple-light);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--royal-purple);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
  max-width: 300px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: var(--light-gray);
}

.newsletter-form button {
  padding: 0.8rem 1rem;
  background-color: var(--royal-purple);
  color: var(--white);
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--royal-purple-dark);
}

.copyright {
  text-align: center;
  padding: 1.5rem 0 1rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* Mobile App Navigation */
.mobile-app-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none; /* Hidden by default on desktop */
  justify-content: space-around;
  align-items: center;
  background-color: var(--header-bg);
  border-top: 1px solid var(--border-color);
  padding: 0.5rem 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.8rem;
  transition: color 0.3s ease;
}

.nav-item i {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.nav-item:hover,
.nav-item.active {
  color: var(--royal-purple);
}

/* Responsive fixes for footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 3%;
  }
  
  .newsletter-form {
    max-width: 100%;
  }
  
  .mobile-app-nav {
    display: flex; /* Show on mobile devices */
    padding: 0.3rem 0;
  }
  
  .nav-item {
    font-size: 0.7rem;
  }
  
  .nav-item i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 1.5rem 0 0.5rem;
  }
  
  .footer-content {
    padding: 0 2%;
    gap: 1rem;
  }
  
  .footer-column h3 {
    font-size: 1.1rem;
  }
  
  .copyright {
    padding: 1rem 0 0.5rem;
    font-size: 0.8rem;
  }
  
  .mobile-app-nav {
    padding: 0.2rem 0;
  }
}

/* Add padding to main content to account for fixed mobile header */
@media (max-width: 768px) {
  main {
    padding-top: 67px !important; /* Height of mobile navbar (35px logo + 32px padding) */
    margin-top: 0 !important;
    padding-bottom: 20px !important;
  }
}

