:root {
  --trust-blue: #2563eb;
  --excite-red: #ff3b30;
  --excite-gold: #ffd60a;
  --dark-bg: #112240; /* Changed from black to deep navy slate */
  --light-bg: #f8fafc;
  --light-text: #f1f1f1;
  --dark-text: #2d3748;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body background and text color */
body {
  background-color: var(--light-bg);
  color: var(--dark-text);
  background-image: url('https://www.transparenttextures.com/patterns/subtle-zebra-3d.png');
  font-family: 'Poppins', sans-serif; /* Modern, clean font */
}

/* Header styling */
#main-header {
  background: #ffffff; /* White background */
  padding: 10px 0; /* Adjusted padding */
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); /* Softer shadow for depth */
  border-bottom: 1px solid #f0f0f0; /* Lighter bottom border */
}

.header-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif; /* Use a more elegant font */
  font-size: 2rem; /* Increase size */
  font-weight: 700;
  color: var(--excite-gold);
  letter-spacing: -1px;
}

.logo img {
  height: 55px;
  vertical-align: middle;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav a {
    color: var(--dark-text); /* Dark text for white background */
    text-decoration: none;
    font-size: 1.1rem; /* Increased font size */
    font-weight: 600; /* Bolder font */
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
    background-color: transparent !important;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--trust-blue);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--trust-blue) !important;
    transform: none !important; /* Remove previous transform */
}

/* New hover effect for a more soulful feel */
nav a:hover,
nav a.active {
    color: var(--trust-blue) !important; /* Trust-blue for hover/active state */
    transform: translateY(-2px) !important;
    background-color: transparent !important;
}

/* Updated Header Search */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}
.header-search input {
  background-color: #f5f7fa; /* Light grey for contrast */
  border: 1px solid #e0e6ed;
  border-radius: 25px; /* Slightly more rounded */
  padding: 10px 45px 10px 20px; /* Increased padding for a better feel */
  color: #303133;
  width: 280px; /* Slightly wider */
  font-weight: 500;
  transition: all 0.3s ease; /* Smooth transitions */
  font-family: 'Poppins', sans-serif; /* Ensure consistent font */
}

.header-search input:focus {
  border-color: var(--trust-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: none;
  background-color: #fff; /* White background on focus */
}

.header-search button {
  position: absolute;
  right: 12px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 30px;
  height: 30px;
  color: #909399; /* Softer icon color */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.header-search button:hover {
  color: var(--trust-blue);
}

.header-search input::placeholder {
    color: #94a3b8;
}

.header-search button {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
}

.suggestion-item {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
  color: #333;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.suggestion-item img {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  border-radius: 4px;
}

/* Main Content Styles */
main {
    padding-top: 20px;
}

/* Hero Banner Carousel */
.hero-banner {
    width: 100%;
    position: relative;
    margin-bottom: 40px;
}

.hero-glider .glider-slide {
    background-color: #000; /* Black background for a cinematic feel */
    line-height: 0; /* Remove potential whitespace */
    /* The fixed height properties that caused the pixelation have been removed. */
}

.hero-glider img {
    width: 100%;
    height: auto; /* Let image height adjust automatically to maintain aspect ratio */
    display: block; /* Ensures proper rendering */
    object-fit: unset; /* No longer needed */
}

.hero-banner .glider-prev,
.hero-banner .glider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--dark-text);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 24px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.hero-banner .glider-prev:hover,
.hero-banner .glider-next:hover {
    background-color: #fff;
}

.hero-banner .glider-prev {
    left: 20px;
}

.hero-banner .glider-next {
    right: 20px;
}

.hero-banner .hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-banner .glider-dot {
  background-color: rgba(255, 255, 255, 0.6);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.hero-banner .glider-dot.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Remove old hero styles */
.hero, .sale-banner, .offer-banner {
    display: none;
}

/* Products Section */
.products {
  background: url('https://www.patterndesigns.com/en/design/18817/Frozen-Symbols-Repeat') repeat;
}

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

/* Restored Product Card Styles */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 0; /* Remove padding for full-width image */
}
.product-image {
  border-radius: 0;
  margin-bottom: 0;
}
.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--trust-blue);
  margin: 8px 0;
}

/* Purchase Controls */
.purchase-options {
  margin-top: 16px;
}
.purchase-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.purchase-type, .quantity-input {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.quantity-control {
  display: flex;
}
.quantity-btn {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: var(--trust-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.pagination a {
  padding: 8px 16px;
  margin: 0 5px;
  background: var(--trust-blue);
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}

/* Features */
.features {
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--trust-blue);
  border-radius: 10px;
}

.feature-icon {
  font-size: 2rem;
  color: var(--excite-gold);
  margin-bottom: 10px;
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.category-showcase-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--dark-bg);
  color: var(--light-text);
  min-height: 250px;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: transform 0.4s ease;
}

.category-showcase-card:hover .category-image {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 2;
}

.category-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
}

.category-info h3 {
  color: #ffffff;
  font-size: 1.8rem;
}

.category-info p {
  color: #f1f1f1;
}

/* Featured Products */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.featured-product-card {
  border: 1px solid var(--excite-gold);
  border-radius: 10px;
  padding: 0;
  text-align: center;
  overflow: hidden;
}

/* Enhanced How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: #f8fafc;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

/* Dashed connector line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 2px;
    background-image: linear-gradient(to right, var(--trust-blue) 50%, transparent 50%);
    background-size: 20px 2px;
    z-index: 1;
}

.step-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.step-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.step-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Enhanced Customer Reviews Section */
.customer-reviews {
  background-color: #ffffff;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: var(--light-bg);
}

.review-stars {
  color: var(--excite-gold);
  margin-bottom: 10px;
}

/* About */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-content {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--trust-blue);
}

.contact-submit-btn {
  background: var(--excite-red);
  color: #fff;
}

/* Enhanced Footer */
#main-footer {
    background-color: #112240;
    color: #cbd5e1;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--trust-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    line-height: 2.2;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.contact-info p {
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-bottom-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 30px;
    color: #777;
    font-style: italic;
}

/* Success and Error Messages */
.message {
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: 500;
    position: relative;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 5px solid #28a745;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #dc3545;
}

.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 5px solid #17a2b8;
}

/* Empty Cart Message */
.empty-cart {
    text-align: center;
    padding: 30px;
    color: #8892b0;
}

.empty-cart a {
    color: #64ffda;
    text-decoration: none;
    font-weight: bold;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .hamburger {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(17, 34, 64, 0.95);
        max-height: 0;
        overflow: hidden;
    }
    
    nav.active {
        max-height: 200px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }
    
    nav ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-container {
        flex-direction: column;
    }
    
    .order-summary,
    .checkout-form {
        width: 100%;
        margin-right: 0;
    }
    
    .hero {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .confirmation-details {
        flex-direction: column;
    }
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #fff 10%, transparent 60%);
    border-radius: 50%;
    opacity: 0.1;
}

.arrow-right {
    display: inline-block;
    margin-left: 8px;
}

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  background: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 20px;
}

.feature {
  max-width: 300px;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin: 10px;
}

.feature h3 {
  color: var(--excite-gold);
}

.feature p {
    color: #666;
    font-size: 16px;
}

/* Improve confirmation details */
.confirmation-header svg {
    margin-bottom: 20px;
} 

/* Override: remove navigation link hover/active backgrounds and effects */
header nav a:hover,
header nav a.active {
    background-color: transparent !important;
    color: var(--light-text) !important;
    transform: none !important;
}

header nav a::before,
header nav a::after {
    display: none !important;
} 

/* Sale Banner Styling */
.sale-banner {
    display: inline-block;
    background-color: var(--trust-blue);
    color: var(--button-text);
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: 1rem;
} 

/* New Arrivals */
.new-arrivals {
  padding: 60px 20px;
  background: var(--light-bg);
}

.new-arrivals h2 {
  text-align: center;
  color: var(--excite-red);
  font-size: 2rem;
  margin-bottom: 30px;
}

/* Best Sellers */
.best-sellers {
  padding: 60px 20px;
  background: var(--dark-bg);
  color: var(--light-text);
}

.best-sellers h2 {
  text-align: center;
  color: var(--excite-gold);
  font-size: 2rem;
  margin-bottom: 30px;
}

.view-all {
  display: block;
  margin: 20px auto;
  background: var(--trust-blue);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .product-grid,
  .category-grid,
  .featured-grid,
  .reviews-grid,
  .steps-container,
  .about-container,
  .contact-content {
    grid-template-columns: 1fr;
  }
} 

/* Enhanced Trust & Features Section */
.trust-features {
    padding: 80px 0;
    background-color: #f8fafc; /* Light, clean background */
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.trust-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    margin-bottom: 25px;
    color: var(--trust-blue);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-text);
}

.feature-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
} 

/* Enhanced Category Showcase */
.category-showcase {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-showcase-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.category-showcase-card:hover::before {
    transform: scaleX(1);
}

.category-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.category-showcase-card:hover .category-emoji {
    transform: scale(1.2) rotate(5deg);
}

.category-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.category-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.category-shop-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-shop-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .category-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .category-showcase-card {
        padding: 1.5rem;
    }
    
    .category-emoji {
        font-size: 2.5rem;
    }
    
    .category-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .category-showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .category-showcase-card {
        padding: 1.25rem;
    }
    
    .category-emoji {
        font-size: 2rem;
    }
}

/* Color Themes from Logo */
.category-card--style-1 { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.category-card--style-2 { background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%); }
.category-card--style-3 { background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%); color: #333; }
.category-card--style-4 { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }
.category-card--style-5 { background: linear-gradient(135deg, #ff4e50 0%, #f9d423 100%); }
.category-card--style-6 { background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%); }

/* DEFINITIVE FIX for Enhanced Featured Products Section */
.featured-products {
    padding: 80px 0 !important;
    background-color: #ffffff !important; /* Force white background */
    background-image: none !important; /* Remove stubborn background image */
    color: var(--dark-text) !important; /* Ensure dark text on light bg */
}

.featured-products::before {
    display: none !important; /* Remove pseudo-element overlay */
}

.featured-products .section-header h2,
.featured-products .section-header p {
    color: var(--dark-text) !important;
}

.featured-product-card .product-card {
    background: #fff !important;
    border-color: #e2e8f0 !important;
}

.featured-product-card .product-name {
    color: var(--dark-text) !important;
}

.featured-product-card .product-price {
    color: var(--trust-blue) !important;
}

.featured-product-card .view-product-btn {
    background: var(--trust-blue) !important;
    color: #fff !important;
}
.featured-product-card .view-product-btn:hover {
    background-color: var(--dark-text) !important;
}
/* End of fix */

/* Premium "Our Products" Section */
#products-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

/* Enhanced Category Filters */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.category-btn {
    padding: 12px 25px;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    transition: all 0.3s ease;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--trust-blue);
    color: var(--trust-blue);
}

.category-btn.active {
    background: var(--trust-blue);
    color: white;
    border-color: var(--trust-blue);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

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

.product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-card .product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden; /* Keep this to round the image corners */
}

.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge, .out-of-stock-badge {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    left: 15px;
    background: var(--excite-gold);
    color: var(--dark-text);
}

.out-of-stock-badge {
    right: 15px;
    background-color: #ef4444;
    color: white;
}

.product-card .product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card .product-description {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.product-card .price-display {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--trust-blue);
    margin-bottom: 12px;
}

.product-card .stock-info {
    padding: 8px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    font-weight: 500;
    color: #475569;
    margin-bottom: 15px;
    text-align: center;
}

.product-card .purchase-options {
    margin-top: auto;
}

.product-card .purchase-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.product-card .purchase-type {
    flex-grow: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.product-card .quantity-control {
    display: flex;
}

.product-card .quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-left: none;
    border-right: none;
}

.product-card .quantity-btn {
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    padding: 0 12px;
}

.product-card .add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--trust-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.product-card.out-of-stock .add-to-cart-btn {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* Product Modal (for shorts-style view) */
.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.modal-product-view {
    width: 100%;
    max-width: 420px; /* Shorts-style narrow view */
    height: 90vh;
    max-height: 800px;
    background: #111;
    border-radius: 20px;
    overflow-y: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.modal-product-view::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.product-video-card {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
}

.product-video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
} 

/* Review Modal */
.review-form-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
}

.review-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2.5rem;
    cursor: pointer;
    margin-bottom: 20px;
}

.star {
    color: #ccc;
    transition: color 0.2s ease;
}

.star:hover,
.star.selected {
    color: var(--excite-gold);
}

.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: var(--trust-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
} 

/* Enhanced Cart Button Styles */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    font-size: 0.95rem;
}

.cart-btn:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.cart-icon {
    font-size: 1.2rem;
}

.cart-text {
    font-weight: 600;
}

.cart-count {
    background: #dc2626;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    position: absolute;
    top: -5px;
    right: -5px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.cart-count.updated {
    animation: cartPulse 0.6s ease-out;
}

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    /* Header layout fixes */
    .header-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Cart button mobile */
    .cart-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: auto;
        border-radius: 20px;
        position: relative;
    }
    
    .cart-text {
        display: none;
    }
    
    .cart-icon {
        font-size: 1.4rem;
    }
    
    /* Profile button mobile */
    .profile-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: auto;
        border-radius: 20px;
        position: relative;
    }
    
    .profile-text {
        display: none;
    }
    
    .profile-icon {
        font-size: 1.4rem;
    }
    
    /* Cart count mobile positioning */
    .cart-count {
        position: absolute !important;
        top: -8px !important;
        right: -8px !important;
        width: 20px !important;
        height: 20px !important;
        font-size: 0.7rem !important;
        border: 2px solid white !important;
    }
    
    /* Search container mobile */
    .search-container {
        min-width: auto;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    /* Header controls responsive */
    .header-controls {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        flex-shrink: 0;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Hide search on very small screens */
    @media (max-width: 480px) {
        .nav-left {
            display: none;
        }
        
        .cart-btn, .profile-btn {
            padding: 0.5rem 0.75rem !important;
        }
        
        .cart-icon, .profile-icon {
            font-size: 1.3rem !important;
        }
    }
} 

/* Enhanced Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    min-width: 300px;
}

.search-container:focus-within {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.search-icon {
    font-size: 1.1rem;
    color: #64748b;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-icon:hover {
    color: #667eea;
    transform: scale(1.1);
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Mobile responsive search */
@media (max-width: 768px) {
    .search-container {
        min-width: 200px;
        padding: 0.4rem 0.8rem;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
} 

/* Why Choose DiwaliMart Section - Enhanced UI */
.why-choose-us {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23667eea" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-choose-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-choose-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-choose-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

.why-choose-card:hover::before {
    transform: scaleX(1);
}

.why-choose-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.why-choose-card:hover .icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.why-choose-content {
    text-align: center;
}

.why-choose-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.why-choose-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .why-choose-us {
        padding: 3rem 0;
    }
    
    .why-choose-container {
        padding: 0 1rem;
    }
    
    .why-choose-header h2 {
        font-size: 2rem;
    }
    
    .why-choose-header p {
        font-size: 1.1rem;
    }
    
    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .why-choose-card {
        padding: 1.5rem;
    }
    
    .icon-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .why-choose-content h3 {
        font-size: 1.2rem;
    }
    
    .why-choose-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .why-choose-header h2 {
        font-size: 1.8rem;
    }
    
    .why-choose-card {
        padding: 1.25rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
} 

/* Profile Button Styles */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.profile-icon {
    font-size: 1.2rem;
}

.profile-text {
    font-size: 0.9rem;
}

/* User Authentication Modal */
.user-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.user-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.user-modal-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.user-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #666;
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
}

.auth-tab-btn:hover:not(.active) {
    background: #e9ecef;
    color: #333;
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    color: rgba(255, 255, 255, 0.8);
}

/* User Profile */
.user-profile {
    text-align: center;
}

.profile-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.profile-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-details h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.2rem;
}

.profile-details p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-action-btn {
    padding: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #333;
}

.profile-action-btn:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: #FF6B35;
    transform: translateY(-1px);
}

#logout-btn:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-text {
        display: none;
    }
    
    .profile-btn {
        padding: 0.75rem;
        margin-right: 0.5rem;
    }
    
    .user-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .profile-actions {
        gap: 0.75rem;
    }
} 

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.toast-error {
    background: linear-gradient(135deg, #f44336, #da190b);
}

.toast-info {
    background: linear-gradient(135deg, #2196F3, #0b7dda);
}

.toast-close {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.toast-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .toast {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
} 