/* ================= MODERN VARIABLES ================= */
:root {
  --primary: #3917e4;
  --primary-grad: linear-gradient(135deg, #3917e4 0%,#3917e4 100%);
  --accent: #f43f5e;
  --dark: #0f172a;
  --light: #f8fafc;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 50px -10px rgba(79, 70, 229, 0.3);
  /* Added for new navbar */
  --highlight: #4f46e5; /* Using the primary color for the main nav background */
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #f3f4f6;
  color: var(--dark);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ================= BLUE/WHITE NAVBAR (New Model) ================= */
.navbar {
  /* Applying the main-nav style to the existing .navbar class */
  background: #3917e4; /* Blue background */
  padding: 12px 0;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: fixed; /* Changed from sticky to fixed to match original structure */
  top: 0;
  width: 100%;
  z-index: 1000;
  /* Removed glass effects */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

/* This is the class for the scroll effect, which is handled in the JS */
.navbar.scrolled {
  background: #3917e4; /* Slightly darker blue on scroll */
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff !important;
}

.navbar .nav-link {
    font-weight: 600;
    color: #fff !important;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.logo-icon {
    font-size: 1.8rem;
}


/* Updated Search Bar Modern to fit the new theme */
.search-input-group {
  /* Kept white background for contrast with blue nav bar */
  background: #fff;
  border-radius: 50px;
  padding: 5px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-soft);
  transition: 0.3s;
}

.search-input-group input {
  border: none;
  outline: none;
  width: 250px;
}

/* ================= DYNAMIC HERO SECTION ================= */
.hero-section {
  /* Increased top padding to account for non-glass, solid navbar */
  padding: 10rem 0 5rem; 
  position: relative;
  overflow: hidden;
}

/* Moving background blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
  opacity: 0.6;
  animation: float 10s infinite ease-in-out;
}
.blob-1 { width: 400px; height: 400px; background: #c7d2fe; top: -100px; right: -100px; animation-delay: 0s; }
.blob-2 { width: 300px; height: 300px; background: #fbcfe8; bottom: 0; left: -50px; animation-delay: 2s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 40px); }
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #1e293b, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-btn {
  padding: 15px 40px;
  background: var(--dark);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ================= INFINITE MARQUEE (MOVING STYLE) ================= */
.marquee-container {
  background: var(--primary);
  color: white;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  transform: rotate(-1deg);
  margin: 2rem 0;
  width: 105%;
  left: -2.5%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= 3D PRODUCT CARDS (SCRIPTED MODEL) ================= */
.section-title {
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.product-card-wrap {
  perspective: 1000px; /* Essential for 3D effect */
  height: 100%;
  display: block;
}

.product-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.1s ease-out, box-shadow 0.3s ease; 
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-img-box {
  background: #f8fafc;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
  padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; 
  padding: 15px;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.1);
}

.product-cat {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--dark);
}

.price-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.add-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

/* ================= CATEGORY CIRCLES ================= */
.cat-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  margin: 0 auto 10px;
  border: 2px solid transparent;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  transition: 0.3s;
}

.cat-item:hover .cat-circle {
  border-color: var(--primary);
  transform: translateY(-5px);
}

/* ================= INFO STRIP GLASSED ================= */
.info-strip-modern {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 20px;
  padding: 3rem;
  color: white;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ================= RESPONSIVE STYLES ================= */

/* Base container padding for mobile */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* Adjustments for the Hero Section */
.hero-section {
  padding: 8rem 0 3rem; /* Reduced top padding for mobile */
  text-align: center;
}

.hero-title {
  font-size: 2.5rem; /* Smaller title on mobile */
}

/* Hide background blobs on small screens for performance and clarity */
.blob {
  display: none;
}

/* Marquee width correction for small screens */
.marquee-container {
  width: 100%;
  left: 0;
  margin: 1.5rem 0;
}

/* General section padding */
section {
  padding: 3rem 0;
}

/* Adjust section title size for mobile */
.section-title {
  font-size: 1.8rem;
  text-align: center;
}

/* ================= MEDIA QUERIES ================= */

/* Max Width 991.98px (Less than Desktop/Large Tablet) */
@media (max-width: 991.98px) {
  /* Hide the desktop search bar on smaller screens - relies on Bootstrap structure */
  .navbar .search-input-group {
    display: none;
  }
}

/* Max Width 767.98px (Mobile & Small Tablet) */
@media (max-width: 767.98px) {
  /* Hero Section */
  .hero-btn {
    width: 100%;
    text-align: center;
  }
  
  /* Info Strip */
  .info-strip-modern {
    padding: 2rem 1.5rem;
    text-align: center;
  }
}

/* Max Width 575.98px (Extra Small Devices/Phones) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.5rem;
  }

  /* Category Circles */
  .cat-circle {
    width: 90px;
    height: 90px;
  }
  .cat-name {
    font-size: 0.8rem;
  }
}

/* Min Width 768px (Tablet and larger screens - Restoring desktop look) */
@media (min-width: 768px) {
  .hero-section {
    padding: 10rem 0 5rem; /* Restore original padding */
  }
  .hero-title {
    font-size: 3.5rem;
  }
  .section-title {
    text-align: left; /* Align section titles back to the left */
  }
  .blob {
    display: block; /* Show blobs on tablets/desktops */
  }
  .hero-btn {
    width: auto;
  }
}

/* Min Width 992px (Larger desktop screens - Restore full title and search) */
@media (min-width: 992px) {
  .hero-title {
    font-size: 4.5rem; /* Restore original title size */
  }
  .navbar .search-input-group {
    display: flex; /* Show desktop search bar */
  }
}