/**
 * Home page specific styles
 */

/* Hero Section Styles */
.hero-section {
  position  : relative;
  height    : 650px;
  background: linear-gradient(135deg, #c9d6e8 0%, #e8f0fe 50%, #f8f9fa 100%);
}

.hero-section h1 {
  position      : absolute;
  top           : 20%;
  left          : 50%;
  transform     : translate(-50%, -50%);
  color         : white;
  font-size     : 3rem;
  z-index       : 2;
  text-shadow   : 2px 2px 4px rgba(0, 0, 0, 0.5);
  display       : none;
  /* Hidden by default */
  font-weight   : 800;
  letter-spacing: 2px;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .hero-section {
    background: url("../images/bath_towel/bathtowel_3.jpg") no-repeat center center/cover;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero-section {
    background     : linear-gradient(135deg, #F9F8BC 0%, #efeeae 50%, #ffffff 100%);
    display        : flex;
    align-items    : center;
    justify-content: center;
  }

  .hero-section .overlay {
    display: none;
  }

  .hero-section h1 {
    display  : block;
    /* Show only on mobile */
    position : relative;
    top      : auto;
    left     : auto;
    transform: none;
    color    : white;
    text-shadow:
      0 0 10px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(0, 0, 0, 0.2),
      0 4px 8px rgba(0, 0, 0, 0.4);
    font-size     : 3.5rem;
    font-weight   : 900;
    letter-spacing: 3px;
    text-align    : center;
    animation     : pulseGlow 3s ease-in-out infinite;
    text-transform: uppercase;
    font-family   : 'Arial Black', Arial, sans-serif;
  }
}

/* Enhanced pulse glow animation for mobile */
@keyframes pulseGlow {
  0% {
    text-shadow:
      0 0 10px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(0, 0, 0, 0.2),
      0 4px 8px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }

  50% {
    text-shadow:
      0 0 15px rgba(0, 0, 0, 0.6),
      0 0 25px rgba(0, 0, 0, 0.4),
      0 0 35px rgba(0, 0, 0, 0.3),
      0 6px 12px rgba(0, 0, 0, 0.5),
      0 0 60px rgba(255, 255, 255, 0.6),
      0 0 80px rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
  }

  100% {
    text-shadow:
      0 0 10px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(0, 0, 0, 0.3),
      0 0 30px rgba(0, 0, 0, 0.2),
      0 4px 8px rgba(0, 0, 0, 0.4),
      0 0 40px rgba(255, 255, 255, 0.3);
    transform: scale(1);
  }
}

/* Remove icons from mobile text */
@media (max-width: 768px) {

  .hero-section h1::before,
  .hero-section h1::after {
    display: none;
  }
}

/* Banner Section Styles */
.banner-section {
  position: relative;
}

.banner-section .banner-image {
  display: block;
  /* Show by default */
}

.banner-section .banner-content {
  position    : absolute;
  top         : 50%;
  left        : 0;
  transform   : translateY(-50%);
  padding-left: 3rem;
}

.banner-section .mobile-content {
  display   : none;
  /* Hidden by default */
  text-align: center;
  padding   : 2rem;
  background: linear-gradient(135deg, #c9d6e8 0%, #e8f0fe 50%, #f8f9fa 100%);
}

/* Banner responsive styles for mobile */
@media (max-width: 768px) {
  .banner-section .banner-image {
    display: none;
    /* Hide image on mobile */
  }

  .banner-section .banner-content {
    display: none;
    /* Hide desktop content on mobile */
  }

  .banner-section .mobile-content {
    display: block;
    /* Show mobile content */
  }
}

/* New Products Section Styles */
.new-products .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.new-products .card:hover {
  transform : translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* New Products mobile styles - show only first card */
@media (max-width: 768px) {
  .new-products .col-lg-3:nth-child(n+2) {
    display: none;
  }

  .new-products .col-lg-3:first-child {
    flex     : 0 0 100%;
    max-width: 100%;
  }

  .new-products .card {
    max-width: 300px;
    margin   : 0 auto;
  }
}

/* Product Carousel Section */
.product-carousel-section {
  padding   : 60px 0;
  background: white;
}

.section-title {
  font-size    : 2.5rem;
  font-weight  : 700;
  color        : #333;
  margin-bottom: 3rem;
  position     : relative;
}

.section-title::after {
  content      : '';
  position     : absolute;
  bottom       : -10px;
  left         : 50%;
  transform    : translateX(-50%);
  width        : 60px;
  height       : 3px;
  background   : linear-gradient(45deg, #007bff, #0056b3);
  border-radius: 2px;
}

.product-carousel {
  overflow     : hidden;
  border-radius: 15px;
  box-shadow   : 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
  height       : 400px;
  object-fit   : cover;
  border-radius: 15px;
}

.carousel-caption {
  background   : linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  border-radius: 0 0 15px 15px;
  padding      : 30px 20px 20px;
}

.carousel-caption h5 {
  font-size    : 1.8rem;
  font-weight  : 600;
  margin-bottom: 10px;
}

.carousel-caption p {
  font-size    : 1.1rem;
  margin-bottom: 15px;
}

/* Custom carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width           : 40px;
  height          : 40px;
  top             : 40%;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius   : 50%;
  opacity         : 0.8;
  transition      : opacity 0.3s ease;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: transparent;
  border-radius   : 0;
  padding         : 0;
  width           : 20px;
  height          : 20px;
}

.carousel-control-prev {
  left: -50px;
  /* Between first and second card */
}

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

/* Responsive carousel controls */
@media (max-width: 768px) {
  .carousel-control-prev {
    left: -30px;
    /* Closer to edge on mobile */
  }

  .carousel-control-next {
    right: -30px;
    /* Closer to edge on mobile */
  }

  /* Mobile carousel - one card per slide */
  .carousel-inner .col-sm-6,
  .carousel-inner .col-md-4 {
    flex     : 0 0 100%;
    max-width: 100%;
    display  : none;
    /* Hide all cards by default */
  }

  .carousel-inner .col-sm-6:first-child,
  .carousel-inner .col-md-4:first-child {
    display: block;
    /* Show only first card */
  }

  .carousel-inner .row {
    justify-content: center;
  }

  .carousel-inner .card {
    max-width: 300px;
    margin   : 0 auto;
  }
}

/* Category Sections */
.category-section {
  padding: 80px 0;
}

.category-section:nth-child(even) {
  background: #f8f9fa;
}

.category-title {
  font-size    : 2.8rem;
  font-weight  : 700;
  color        : #333;
  margin-bottom: 2rem;
  text-align   : center;
}

.category-title.text-pink {
  color: #e91e63;
}

.category-title.text-blue {
  color: #2196f3;
}

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

.product-card {
  background   : white;
  border-radius: 15px;
  overflow     : hidden;
  box-shadow   : 0 5px 20px rgba(0, 0, 0, 0.1);
  transition   : all 0.3s ease;
  border       : none;
}

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

.product-card img {
  height    : 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-card .card-body {
  padding   : 25px;
  text-align: center;
}

.product-card .card-title {
  font-size    : 1.3rem;
  font-weight  : 600;
  color        : #333;
  margin-bottom: 10px;
}

.product-card .card-text {
  color        : #666;
  font-size    : 0.95rem;
  margin-bottom: 20px;
  line-height  : 1.6;
}

.product-price {
  font-size    : 1.4rem;
  font-weight  : 700;
  color        : #e91e63;
  margin-bottom: 15px;
}

.btn-product {
  background    : linear-gradient(45deg, #e91e63, #c2185b);
  color         : white;
  border        : none;
  padding       : 10px 25px;
  border-radius : 20px;
  font-weight   : 600;
  transition    : all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-product:hover {
  background: linear-gradient(45deg, #c2185b, #ad1457);
  transform : translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .category-title {
    font-size: 2.2rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap                  : 20px;
  }

  .carousel-item img {
    height: 300px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width : 40px;
    height: 40px;
  }

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

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

@media (max-width: 576px) {
  .hero-section {
    padding   : 40px 0 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
  }

  .hero-section h1 {
    font-size     : 2.8rem;
    font-weight   : 900;
    letter-spacing: 2px;
    line-height   : 1.2;
    padding       : 0 20px;
    text-shadow   :
      0 0 8px rgba(0, 0, 0, 0.5),
      0 0 16px rgba(0, 0, 0, 0.3),
      0 0 24px rgba(0, 0, 0, 0.2),
      0 3px 6px rgba(0, 0, 0, 0.4);
  }

  .hero-title {
    font-size: 2rem;
  }

  .category-section {
    padding: 50px 0;
  }

  .product-card .card-body {
    padding: 20px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero-section h1 {
    font-size     : 2.4rem;
    font-weight   : 800;
    letter-spacing: 1.5px;
    text-shadow   :
      0 0 6px rgba(0, 0, 0, 0.5),
      0 0 12px rgba(0, 0, 0, 0.3),
      0 0 18px rgba(0, 0, 0, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.4);
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .hero-section h1 {
    font-size     : 2rem;
    font-weight   : 800;
    letter-spacing: 1px;
    text-shadow   :
      0 0 5px rgba(0, 0, 0, 0.5),
      0 0 10px rgba(0, 0, 0, 0.3),
      0 0 15px rgba(0, 0, 0, 0.2),
      0 2px 4px rgba(0, 0, 0, 0.4);
  }
}

/* Hover effect for Order Now buttons in carousel sections */
#carouselWomen .btn-dark:hover,
#carouselMen .btn-dark:hover {
  background-color: white !important;
  color           : #333 !important;
  border-color    : #333 !important;
  transition      : all 0.3s ease;
}

#carouselWomen .btn-dark,
#carouselMen .btn-dark {
  transition: all 0.3s ease;
}

/* Hover effect for Add to cart buttons in New Products section */
.new-products .btn-outline-dark {
  background-color: #333 !important;
  color           : white !important;
  border-color    : #333 !important;
  transition      : all 0.3s ease;
  min-width       : 110px;
  /* Fixed minimum width to prevent layout shift */
  text-align      : center;
}

.new-products .btn-outline-dark:hover {
  background-color: white !important;
  color           : #333 !important;
  border-color    : #333 !important;
  transition      : all 0.3s ease;
}