/* Reset and Base Styles */
/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fefefa;
} */

/* Decreased container margins */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;  /* Reduced from 15px to 10px */
}

/* Hero Section */
.hero {
  position: relative;
  height: 45vh;
  min-height: 600px;
  overflow: hidden;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg,
      rgba(17, 28, 60, 0.85) 0%,
      rgba(45, 58, 107, 0.78) 50%,
      rgba(17, 28, 60, 0.9) 100%),
    url('../../images/sl1.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  isolation: isolate;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
  font-weight: 300;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 10px 30px rgba(255, 82, 82, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 15px 40px rgba(255, 82, 82, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #ff5252 0%, #ff4040 100%);
}

.cta-button:active {
  transform: translateY(-2px) scale(1.02);
}

/* Floating elements for visual interest */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.floating-element:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 85%;
  animation-delay: 1s;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '';
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.6);
  display: block;
  margin: 0 auto;
  border-radius: 1px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}



/* Category Navigation */
.categories {
  padding: 40px 0;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
}

.category-item {
  font-size: 1.5rem;
  padding: 10px 20px;
  background-color: #f8f9fa;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.category-item:hover,
.category-item.active {
  background-color: #111c3c;
  color: white;
}

/* Products Section */
.products-section {
  padding: 10px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 3rem;
  color: #111c3c;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #ff6b6b;
  margin: 10px auto 0;
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Product Card - Optimized Size */
.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
  height: 155px;  /* Reduced from 200px */
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 10px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 10px; /* Reduced from 20px */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px; /* Added gap for better spacing */
}

.product-title {
  font-size: 1.5rem;
  /* Same as before */
  font-weight: 600;
  color: #111c3c;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-vendor {
  color: #666;
  font-size: 1.4rem;
  /* Same as before */
  margin: 0;
  line-height: 1.2;
}

.product-price {
  font-weight: 600;
  color: #ff6b6b;
  font-size: 1.4rem;
  /* Same as before */
  margin: 0;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 3px;
  /* Reduced from 8px */
  margin-top: 12px;
  /* Reduced from 15px */
  flex-direction: row;
  justify-content: space-between;
}

/* Regular product card buttons */
.product-card .product-actions .btn {
  padding: 8px 10px;
  /* Reduced from 8px 12px */
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.4rem;
  /* Same as before */
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.product-card .product-actions .btn-primary {
  background-color: #111c3c;
  color: white;
}

.product-card .product-actions .btn-primary:hover {
  background-color: #0d1530;
  transform: translateY(-1px);
}

.product-card .product-actions .btn-secondary {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #e9ecef;
}

.product-card .product-actions .btn-secondary:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

/* Trending Products Section */
.trending-products {
  background-color: #f8f9fa;
  padding: 25px 0;
  /* Reduced from 30px */
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  /* Reduced from 200px */
  gap: 20px;
  /* Reduced from 25px */
}

/* Trending product specific button styles */
.trending-products .product-card {
  background: white;
}

.trending-products {
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Reduced from 8px */
  margin-top: 10px;
  /* Reduced from 15px */
}

.trending-products .product-actions .btn {
  padding: 8px 6px;
  /* Reduced from 10px 15px */
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.3rem;
  /* Same as before */
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  width: 100%;
  line-height: 1.2;
  flex: 1;
  width: fit-content;
}

.trending-products .product-actions .btn-primary {
  background-color: #111c3c;
  color: white;

}

.trending-products .product-actions .btn-primary:hover {
  background-color: #0d1530;
  transform: translateY(-1px);
}

.trending-products .product-actions .btn-secondary {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #e9ecef;
}

.trending-products .product-actions .btn-secondary:hover {
  background-color: #e9ecef;
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .product-image {
    height: 140px;
  }

  .product-info {
    padding: 12px;
    gap: 4px;
  }

  .product-actions {
    margin-top: 10px;
    gap: 5px;
  }

  .product-card .product-actions .btn {
    padding: 6px 8px;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
  }

  .product-image {
    height: 120px;
  }

  .product-info {
    padding: 10px;
  }

  .product-title {
    font-size: 1.4rem;
  }

  .product-vendor,
  .product-price {
    font-size: 1.3rem;
  }
}



/* Ads Section */
.ad-container {
  margin: 30px 0;
  text-align: center;
}

.ad-banner {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Category Title */
.category-title {
  font-size: 2.5rem;
  color: #111c3c;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 700;
}

/* View More Button */
.view-more-container {
  text-align: center;
  margin-top: 30px;
}

.btn-view-more {
  display: inline-block;
  background-color: #111c3c;
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-view-more:hover {
  background-color: #0d1530;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* No Products Message */
.no-products {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 40px 0;
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .container {
    padding: 0 15px;
    /* Slightly more padding on smaller screens */
  }
}

@media (max-width: 992px) {
  .hero {
    height: 75vh;
    min-height: 500px;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .floating-element {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
    min-height: 450px;
  }

  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .cta-button {
    padding: 14px 35px;
    font-size: 1rem;
  }

  .category-list {
    gap: 10px;
  }

  .category-item {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }

  .trending-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .container {
    padding: 0 12px;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 65vh;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-content {
    padding: 0 15px;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .trending-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .product-info {
    padding: 15px;
  }

  /* Stack buttons vertically on mobile for all product cards */
  .product-actions {
    flex-direction: column;
    gap: 8px;
  }

  .product-actions .btn {
    width: 100%;
    text-align: center;
  }

  .container {
    padding: 0 10px;
  }
}

/* Extra small devices */
@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .trending-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .container {
    padding: 0 8px;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

  .hero-content,
  .floating-element,
  .scroll-indicator,
  .cta-button::before,
  .product-card,
  .btn {
    animation: none;
    transition: none;
  }

  .cta-button:hover,
  .product-card:hover,
  .btn:hover {
    transform: none;
  }
}