/* Modern Color Scheme */
:root {
  --primary: #2d3250; /* Deep Navy Blue */
  --secondary: #424769; /* Slate Blue */
  --accent: #f6b17a; /* Warm Orange */
  --text: #2d3250; /* Dark Blue Text */
  --text-light: #7077a1; /* Light Blue Text */
  --background: #f7f7f9; /* Light Gray Background */
  --white: #ffffff;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px rgba(45, 50, 80, 0.1);
  --hover-shadow: 0 8px 15px rgba(45, 50, 80, 0.15);
  --radius: 12px;
  --gold: #c6a87d;
  --cream: #f8f5f0;
  --dark: #1a1a1a;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
}

.category-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header-top {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
}

.main-nav {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 50%;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: var(--white);
  padding: 4rem 10rem;
  height: 400px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

.btn.secondary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
}

/* Featured Products */
.featured {
  padding: 4rem 0;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;

  margin: 0 auto;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--cream);
  width: 100%;
  height: 320px;
  overflow: hidden;
}

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

.product-actions {
  position: absolute;
  bottom: 100px;
  left: 10px;
  display: flex;
  gap: 8px;
}

.product-actions button {
  background: var(--white);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-actions button:hover {
  transform: scale(1.1);
}

.product-info {
  padding: 1rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--dark);
}

.price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
}

.original-price {
  color: var(--text-light);
  text-decoration: line-through;
  font-size: 0.875rem;
}

.rating {
  color: var(--gold);
}

/* Deals Section */
.deals {
  padding: 4rem 0;
  background: var(--light);
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.deal-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

/* Newsletter */
.newsletter {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
}

.newsletter-form button {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 4rem 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-section h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.footer-section h4 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.footer-about {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-light);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

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

.footer-links li {
  margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.newsletter-form {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--gold);
}

.subscribe-btn {
  padding: 0.8rem 1.5rem;
  background: var(--gold);
  border: none;
  border-radius: 4px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 500;
}

.subscribe-btn:hover {
  background: #b69468;
  transform: translateY(-2px);
}

.payment-methods {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  color: var(--text-light);
  font-size: 1.5rem;
}

.payment-methods i {
  transition: color 0.3s ease;
}

.payment-methods i:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--text-light);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: var(--white);
  z-index: 1000;
  padding: 2rem;
  transition: left 0.3s ease;
}

.mobile-menu.active {
  left: 0;
}

.close-menu {
  text-align: right;
  margin-bottom: 2rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  color: var(--text);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }
}

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

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-links {
    justify-content: center;
  }

  .product-image {
    height: 250px; /* Smaller height on mobile */
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer {
    padding: 2rem 1rem 1rem;
  }

  .footer-links {
    text-align: center;
  }

  .payment-methods {
    justify-content: center;
  }
}

/* Category Navigation */
.category-nav {
  background: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0px;
  z-index: 90;
}

.category-list {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0 1rem;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.category-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.category-list li {
  padding: 1rem 1.5rem;
  white-space: nowrap;
}

.category-list a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.category-list li.active a {
  color: var(--gold);
}

.category-list li.active a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* Category Sections */
.category-section {
  padding: 3rem 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.category-header h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin: 0;
  font-weight: 600;
}

.view-all {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.view-all:hover {
  transform: translateX(5px);
}

/* Enhanced Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.product-card {
  background: linear-gradient(145deg, var(--white), #f8f9fa);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--gold);
}

.product-image {
  position: relative;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
}

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

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 2;
}

.product-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  transition: bottom 0.3s ease;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.product-actions button {
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--dark);
}

.product-actions button:hover {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}

.product-info {
  padding: 1.25rem;
}

.product-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.price {
  font-weight: 600;
  color: var(--gold);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.original-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.rating {
  color: var(--gold);
  font-size: 0.875rem;
}

/* Category-specific styling */
#electronics {
  background: linear-gradient(135deg, var(--background) 0%, #ffffff 100%);
}

#fashion {
  background: linear-gradient(225deg, var(--background) 0%, #ffffff 100%);
}

#home {
  background: linear-gradient(135deg, var(--background) 0%, #ffffff 100%);
}

#sports {
  background: linear-gradient(225deg, var(--background) 0%, #ffffff 100%);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .category-nav {
    top: 0px;
    font-size: 16px;
  }
  .category-list {
    justify-content: left;
  }
  .category-list li {
    padding: 0.75rem 0.5rem;
  }

  .category-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .product-info h3 {
    font-size: 0.875rem;
  }

  .price {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .product-actions button {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
  }

  .product-tag {
    font-size: 0.625rem;
    padding: 0.2rem 0.5rem;
  }
  .product-card {
    max-width: 100%;
  }

  .product-image {
    height: 200px;
  }

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

/* Animation for product cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.5s ease forwards;
}

/* Smooth scrolling for category navigation */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
.product-image img {
  transition: opacity 0.3s ease;
}

.product-image img.loaded {
  opacity: 1;
}

/* Improved focus states */
button:focus,
a:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Loading states */
.skeleton-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Products Grid  */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
  justify-items: center;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .product-card {
    max-width: 250px;
  }

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

@media (max-width: 768px) {
  .product-card {
    max-width: 220px;
  }

  .product-image {
    height: 180px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Hero Slider Styles */
.hero-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  color: white;
  text-align: left;
  margin-top: 150px;
}

.slide-content h1 {
  font-size: 3rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.3s;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.5s;
}

.slide.active .slide-content h1,
.slide.active .slide-content p {
  opacity: 1;
  transform: translateY(0);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--gold);
  color: var(--white);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease 0.7s;
}

.slide.active .cta-button {
  opacity: 1;
  transform: translateY(0);
}

.cta-button:hover {
  background: #b69468;
  transform: translateY(-2px);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}

.slider-btn:hover {
  background: var(--gold);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: var(--gold);
}

@media (max-width: 768px) {
  .hero-slider {
    height: 400px;
  }

  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 300px;
  }

  .slide-content h1 {
    font-size: 1.5rem;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }
}

/* Premium search bar design */
.search-bar {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 800px;
  height: 50px;
  margin: 0 10px;
  border-radius: 16px;
  overflow: visible;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  z-index: 1001;
}

.search-bar:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.search-dropdown {
  /* min-width: 120px; */
  padding: 0 20px;
  background: #f9fafb;
  border: none;
  border-right: 2px solid #e5e7eb;
  border-radius: 14px 0 0 14px;
  color: #374151;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}

.search-dropdown:hover {
  background-color: #f3f4f6;
  color: #1f2937;
}

.search-input {
  flex: 1;
  padding: 0 25px;
  border: none;
  font-size: 16px;
  color: #1f2937;
  letter-spacing: 0.3px;
  font-weight: 400;
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.search-input:focus {
  outline: none;
}

.search-submit {
  width: 60px;
  margin: 5px;
  background: linear-gradient(145deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.search-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #60a5fa, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-submit:hover::before {
  opacity: 1;
}

.search-submit i {
  color: white;
  font-size: 18px;
  transition: transform 0.3s ease;
  z-index: 1;
}

.search-submit:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Focus state */
.search-bar:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Updated search suggestions with dropdown effect */
#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  opacity: 0;

  transform: translateY(-10px);
  transition: all 0.3s ease;
}

#search-suggestions.active {
  display: block;
  opacity: 1;

  transform: translateY(0);
}

.suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-weight: 400;
}

.suggestion-item:hover {
  background: #f9fafb;
  color: #3b82f6;
  padding-left: 25px;
}

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

/* Ensure search bar container allows for dropdown */
.search-bar {
  position: relative;
  z-index: 1001;
}

/* When search is focused */
.search-bar:focus-within {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Lazy Loading Styles */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img.loaded {
  opacity: 1;
}

/* Optional loading placeholder */
img[data-src]:not(.loaded) {
  background: #f0f0f0;
  min-height: 100px; /* Adjust based on your needs */
}
