/* Flipkart.com Style Homepage - Consistent Color Theme */

:root {
  --flipkart-blue: #2874f0;
  --flipkart-blue-dark: #1e5fc4;
  --flipkart-blue-light: #4a90e2;
  --flipkart-orange: #fb641b;
  --flipkart-orange-dark: #e55a0f;
  --flipkart-gray: #f1f3f6;
  --flipkart-text: #212121;
  --flipkart-text-light: #878787;
  --flipkart-border: #e0e0e0;
}

.flipkart-homepage {
  background: #fff;
  min-height: 100vh;
  padding-bottom: 40px;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: visible;
}

.flipkart-homepage > .modern-hero-banner {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* Hero Section - Flipkart Style */
.flipkart-hero-section {
  background: #fff;
  padding: 20px 0;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero-carousel-full {
  background: #fff;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr 280px;
  gap: 15px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-wrapper-full {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
}

.hero-carousel-full {
  width: 100%;
  background: #fff !important;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(211, 152, 152, 0.1);
  position: relative;
  z-index: 1;
}

.hero-carousel-full .carousel,
.hero-carousel-full .carousel-inner,
.hero-carousel-full .carousel-item {
  background: #fff !important;
}

/* Left Sidebar */
.hero-sidebar {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sidebar-menu {
  padding: 10px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: #212121;
  font-size: 14px;
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}

.sidebar-item:hover {
  background: var(--flipkart-gray);
  border-left-color: var(--flipkart-blue);
  color: var(--flipkart-blue);
}

.sidebar-item i:first-child {
  margin-right: 12px;
  font-size: 18px;
  color: var(--flipkart-text-light);
  width: 20px;
  text-align: center;
}

.sidebar-item:hover i:first-child {
  color: var(--flipkart-blue);
}

.sidebar-item span {
  flex: 1;
}

.sidebar-item i:last-child {
  color: var(--flipkart-text-light);
  font-size: 12px;
}

/* Main Carousel */
.hero-carousel {
  background: #fff !important;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  background: #fff !important;
}

.carousel-image {
  height: 280px;
  object-fit: cover;
  width: 100%;
}

.carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev {
  left: 15px;
}

.carousel-control-next {
  right: 15px;
}

/* Right Sidebar */
.hero-rightbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rightbar-offer {
  background: linear-gradient(135deg, var(--flipkart-blue) 0%, var(--flipkart-blue-dark) 100%);
  border-radius: 4px;
  padding: 20px;
  color: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.rightbar-offer:nth-child(2) {
  background: linear-gradient(135deg, var(--flipkart-orange) 0%, var(--flipkart-orange-dark) 100%);
}

.offer-header h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.offer-content p {
  font-size: 14px;
  margin: 0 0 15px 0;
  opacity: 0.9;
}

.offer-link {
  display: inline-block;
  background: #ffffff;
  color: var(--flipkart-blue);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.offer-link:hover {
  transform: scale(1.05);
  color: var(--flipkart-blue);
}

.rightbar-offer:nth-child(2) .offer-link {
  color: var(--flipkart-orange);
}

.rightbar-offer:nth-child(2) .offer-link:hover {
  color: var(--flipkart-orange);
}

/* Product Sections */
.flipkart-product-section {
  background: #fff !important;
  padding: 25px 0;
  margin-bottom: 0;
}

.section-header-flipkart {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px 20px 15px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title-flipkart {
  font-size: 24px;
  font-weight: 600;
  color: var(--flipkart-text);
  margin: 0;
}

.view-all-btn {
  color: var(--flipkart-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.view-all-btn:hover {
  color: var(--flipkart-blue-dark);
}

.timer-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-label {
  font-size: 14px;
  color: var(--flipkart-text-light);
}

.timer {
  font-size: 16px;
  font-weight: 600;
  color: var(--flipkart-blue);
  background: var(--flipkart-gray);
  padding: 5px 12px;
  border-radius: 4px;
}

/* Products Scroll Container */
.products-scroll-container {
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0 15px;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.products-scroll-container::-webkit-scrollbar {
  display: none;
}

.products-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.products-scroll-container::-webkit-scrollbar-track {
  background: var(--flipkart-gray);
  border-radius: 3px;
}

.products-scroll-container::-webkit-scrollbar-thumb {
  background: var(--flipkart-blue);
  border-radius: 3px;
}

.products-scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--flipkart-blue-dark);
}

.products-scroll-wrapper {
  display: flex;
  gap: 15px;
  min-width: max-content;
  padding-bottom: 10px;
  animation: scroll-horizontal 60s linear infinite;
  will-change: transform;
}

/* Auto-scroll animation for product sections */
@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}

/* Duplicate content for seamless loop */
.products-scroll-wrapper::after {
  content: '';
  display: none;
}

/* Pause animation on hover */
.products-scroll-container:hover .products-scroll-wrapper {
  animation-play-state: paused;
  cursor: grab;
}

.products-scroll-container:active .products-scroll-wrapper {
  cursor: grabbing;
}

/* Product Cards */
.flipkart-product-card {
  min-width: 200px;
  max-width: 200px;
  background: #fff;
  border: 1px solid var(--flipkart-border);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.flipkart-product-card:hover {
  box-shadow: 0 4px 12px rgba(40, 116, 240, 0.15);
  transform: translateY(-2px);
  border-color: var(--flipkart-blue);
}

.product-link-flipkart {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image-wrapper-flipkart {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.product-image-flipkart {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.discount-badge-flipkart {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--flipkart-blue);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
}

.product-info-flipkart {
  padding: 12px;
}

.product-name-flipkart {
  font-size: 14px;
  font-weight: 500;
  color: var(--flipkart-text);
  margin: 0 0 8px 0;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-rating-flipkart {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.rating-stars {
  color: #ffc107;
  font-size: 12px;
}

.rating-count {
  font-size: 12px;
  color: var(--flipkart-text-light);
}

.product-price-flipkart {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-size: 18px;
  font-weight: 600;
  color: var(--flipkart-text);
}

.price-original {
  font-size: 14px;
  color: var(--flipkart-text-light);
  text-decoration: line-through;
}

.deals-section-flipkart {
  background: #fff !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-wrapper {
    grid-template-columns: 200px 1fr 250px;
  }
}

@media (max-width: 992px) {
  .hero-wrapper {
    grid-template-columns: 180px 1fr 200px;
  }

  .hero-rightbar {
    display: none;
  }

  .hero-wrapper {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-sidebar {
    display: none;
  }

  .carousel-image {
    height: 200px;
  }

  .hero-carousel-full .carousel-image {
    height: 200px;
  }

  .flipkart-product-card {
    min-width: 160px;
    max-width: 160px;
  }

  .product-image-wrapper-flipkart {
    height: 160px;
  }

  .section-title-flipkart {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .flipkart-product-card {
    min-width: 140px;
    max-width: 140px;
  }

  .product-image-wrapper-flipkart {
    height: 140px;
  }

  .product-name-flipkart {
    font-size: 12px;
    height: 32px;
  }

  .price-current {
    font-size: 16px;
  }
}

