/* Steam Irons Section - FIXED Mobile Overlay Issue */
.steam-irons-section {
  padding: 80px 0;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.steam-irons-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* DESKTOP ONLY - MODERATE SPACING */
.steam-irons-title {
  text-align: center;
  margin-bottom: 100px;
  padding-bottom: 0;
  border-bottom: none;
}

.steam-irons-title::after {
  content: '';
  display: block;
  height: 0px;
  width: 100%;
}

.steam-irons-title h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.steam-irons-title p {
  font-size: 1.2rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.steam-irons-spacer {
  height: 0px;
  width: 100%;
  display: block;
}

/* DESKTOP: Slider Layout */
.steam-irons-grid-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 380px;
  margin: 0 auto;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 50px;
  box-sizing: border-box;
}

.steam-irons-grid {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Steam Iron Card - Desktop Slider Layout */
.steam-iron-card {
  width: 555px;
  height: 320px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(41, 129, 249, 0.15);
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  display: block;
}

/* Card Positioning States - Desktop Only */
.steam-iron-card.position-left {
  opacity: 1;
  visibility: visible;
  transform: translate(-105%, -50%) scale(1);
  z-index: 3;
}

.steam-iron-card.position-right {
  opacity: 1;
  visibility: visible;
  transform: translate(3%, -50%) scale(1);
  z-index: 3;
}

.steam-iron-card.position-hidden-right {
  opacity: 0;
  visibility: hidden;
  transform: translate(150%, -50%) scale(0.8);
  z-index: 1;
}

.steam-iron-card.position-hidden-left {
  opacity: 0;
  visibility: hidden;
  transform: translate(-250%, -50%) scale(0.8);
  z-index: 1;
}

/* Image Container */
.steam-iron-card .image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
}

/* Product Image */
.steam-iron-card .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
  display: block;
  border-radius: 20px;
  cursor: pointer;
}

/* Product Title Area */
.steam-iron-card .product-title {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  right: 0;
  height: auto;
  min-height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%) !important;
  color: #ffffff !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  padding: 0 20px 18px 20px;
  border-radius: 0 0 20px 20px;
  z-index: 5;
  margin: 0 !important;
}

.steam-iron-card .product-title h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8) !important;
  width: 100%;
  color: #ffffff !important;
}

/* FIXED: Info Toggle Button - Mobile Compatible */
.steam-iron-card .info-toggle-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 50 !important; /* INCREASED for mobile */
  padding: 0;
  touch-action: manipulation;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  -moz-outline: none !important;
}

.steam-iron-card .info-toggle-btn:focus,
.steam-iron-card .info-toggle-btn:active,
.steam-iron-card .info-toggle-btn:hover,
.steam-iron-card .info-toggle-btn:visited {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  -moz-outline: none !important;
}

.steam-iron-card .info-toggle-btn::before {
  content: '';
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(41, 129, 249, 0.3);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(41, 129, 249, 0.2);
  transition: all 0.3s ease;
  z-index: -1;
}

.steam-iron-card .info-toggle-btn i {
  font-size: 1.8rem;
  color: #2981f9;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.steam-iron-card.description-active .info-toggle-btn::before {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(41, 129, 249, 0.3);
  transform: scale(1.1);
}

.steam-iron-card.description-active .info-toggle-btn i {
  color: #2981f9 !important;
  transform: rotate(45deg);
}

.steam-iron-card:not(.description-active) .info-toggle-btn:hover::before {
  background: #fff;
  border-color: #2981f9;
  transform: scale(1.1);
}

/* FIXED: Description Overlay - Mobile Compatible */
.steam-iron-card .description-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: linear-gradient(135deg, rgba(41, 129, 249, 0.95) 0%, rgba(30, 111, 216, 0.95) 100%) !important;
  color: #fff !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: scale(0.9) !important;
  transition: all 0.4s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 2rem !important;
  z-index: 40 !important; /* BELOW button */
  border-radius: 20px !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* CRITICAL: Active overlay state - MOBILE COMPATIBLE */
.steam-iron-card.description-active .description-overlay {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
  pointer-events: auto !important;
  display: flex !important; /* ENSURE display is flex when active */
}

.steam-iron-card .overlay-content {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  max-width: 400px !important;
  height: auto !important;
  max-height: none !important;
  position: relative !important;
  overflow: visible !important;
  border: none !important;
  margin: 0 !important;
  z-index: auto !important;
  box-sizing: border-box !important;
}

.steam-iron-card .overlay-content h4 {
  margin: 0 0 1rem 0 !important;
  font-size: 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  color: #fff !important;
}

.steam-iron-card .overlay-content p {
  margin: 0 0 1.4rem 0 !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  opacity: 0.95 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  color: #fff !important;
}

.steam-iron-card .quote-btn {
  background: #fff !important;
  color: #2981f9 !important;
  border: none !important;
  padding: 12px 28px !important;
  border-radius: 10px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  touch-action: manipulation !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

.steam-iron-card .quote-btn:focus,
.steam-iron-card .quote-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

.steam-iron-card .quote-btn:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-2px) !important;
}

/* Hover Effects - Desktop */
.steam-iron-card:hover {
  transform: translate(-105%, -50%) scale(1.02) translateY(-8px);
  box-shadow: 0 15px 35px rgba(41, 129, 249, 0.25);
}

.steam-iron-card.position-right:hover {
  transform: translate(3%, -50%) scale(1.02) translateY(-8px);
}

.steam-iron-card:hover .product-image {
  transform: scale(1.05);
}

/* Navigation Arrows - Desktop Only */
.steam-irons-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(41, 129, 249, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
  color: #2981f9;
  font-size: 1.2rem;
  box-shadow: 0 3px 10px rgba(41, 129, 249, 0.2);
}

.steam-irons-nav:hover {
  background: #2981f9;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 5px 15px rgba(41, 129, 249, 0.3);
}

.steam-irons-nav.prev {
  left: -25px;
}

.steam-irons-nav.next {
  right: -25px;
}

/* Indicators - Desktop Only */
.steam-irons-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.steam-irons-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(41, 129, 249, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.steam-irons-indicator.active {
  background: #2981f9;
  transform: scale(1.2);
}

/* RESPONSIVE DESIGN - FIXED MOBILE OVERLAY */

/* Large Desktop */
@media (min-width: 1441px) {
  .steam-irons-title {
    margin-bottom: 100px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
  
  .steam-irons-title::after {
    height: 0px !important;
  }
  
  .steam-irons-spacer {
    height: 0px !important;
  }
  
  .steam-irons-grid-container {
    margin-top: 0 !important;
  }
}

/* Standard Desktop */
@media (min-width: 1025px) and (max-width: 1440px) {
  .steam-irons-title {
    margin-bottom: 90px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
  }
  
  .steam-irons-title::after {
    height: 0px !important;
  }
  
  .steam-irons-spacer {
    height: 0px !important;
  }
  
  .steam-irons-grid-container {
    margin-top: 0 !important;
  }
}

/* Tablets - FIXED OVERLAY */
@media (max-width: 1024px) {
  .steam-irons-section {
    padding: 70px 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .steam-irons-title {
    margin-bottom: 440px !important;
    padding-bottom: 70px !important;
    border-bottom: 50px solid transparent !important;
  }
  
  .steam-irons-title::after {
    height: 100px !important;
  }
  
  .steam-irons-spacer {
    height: 150px !important;
  }
  
  .steam-irons-title h2 {
    font-size: 2.2rem;
  }
  
  .steam-irons-title p {
    font-size: 1.1rem;
  }
  
  .steam-irons-container {
    max-width: 100%;
    padding: 0 25px;
  }
  
  .steam-irons-grid-container {
    position: static !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 0 !important;
    max-width: 100% !important;
    margin: 80px auto 0 auto !important;
    justify-items: center;
    align-items: start;
    width: 100%;
    box-sizing: border-box;
  }
  
  .steam-irons-grid {
    display: contents !important;
  }
  
  .steam-iron-card {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: 100% !important;
    max-width: 380px !important;
    height: 240px !important;
    justify-self: center !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
  }
  
  /* FIXED: Mobile button sizing */
  .steam-iron-card .info-toggle-btn {
    width: 2.2rem !important;
    height: 2.2rem !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 50 !important; /* ABOVE overlay */
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .steam-iron-card .info-toggle-btn::before {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }
  
  .steam-iron-card .info-toggle-btn i {
    font-size: 1.7rem !important;
  }
  
  /* FIXED: Mobile overlay sizing */
  .steam-iron-card .description-overlay {
    padding: 1.5rem !important;
    z-index: 40 !important; /* BELOW button */
  }
  
  .steam-iron-card .overlay-content {
    max-width: 320px !important;
  }
  
  .steam-iron-card .overlay-content h4 {
    font-size: 1.2rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
  }
  
  .steam-iron-card .overlay-content p {
    font-size: 0.9rem !important;
    margin-bottom: 1.2rem !important;
    line-height: 1.4 !important;
  }
  
  .steam-iron-card .quote-btn {
    padding: 10px 24px !important;
    font-size: 0.9rem !important;
  }
  
  .steam-irons-nav,
  .steam-irons-indicators {
    display: none !important;
  }
}

/* Mobile - FIXED OVERLAY */
@media (max-width: 768px) {
  .steam-irons-title {
    margin-bottom: 420px !important;
    padding-bottom: 60px !important;
  }
  
  .steam-irons-grid-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    margin-top: 60px !important;
  }
  
  .steam-iron-card {
    max-width: 100% !important;
    width: 100% !important;
    height: 280px !important;
  }
  
  /* FIXED: Mobile button sizing */
  .steam-iron-card .info-toggle-btn {
    width: 2rem !important;
    height: 2rem !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 50 !important; /* ABOVE overlay */
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .steam-iron-card .info-toggle-btn::before {
    width: 1rem !important;
    height: 1rem !important;
  }
  
  .steam-iron-card .info-toggle-btn i {
    font-size: 1.5rem !important;
  }
  
  /* FIXED: Mobile overlay sizing */
  .steam-iron-card .description-overlay {
    padding: 1.2rem !important;
    z-index: 40 !important; /* BELOW button */
  }
  
  .steam-iron-card .overlay-content {
    max-width: 280px !important;
  }
  
  .steam-iron-card .overlay-content h4 {
    font-size: 1.1rem !important;
    margin-bottom: 0.7rem !important;
    line-height: 1.2 !important;
  }
  
  .steam-iron-card .overlay-content p {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
  }
  
  .steam-iron-card .quote-btn {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
  }
}

/* Phones - FIXED OVERLAY */
@media (max-width: 480px) {
  .steam-irons-title {
    margin-bottom: 400px !important;
    padding-bottom: 50px !important;
  }
  
  .steam-irons-grid-container {
    margin-top: 50px !important;
  }
  
  /* FIXED: Phone button sizing */
  .steam-iron-card .info-toggle-btn {
    width: 1.8rem !important;
    height: 1.8rem !important;
    z-index: 50 !important; /* ABOVE overlay */
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .steam-iron-card .info-toggle-btn::before {
    width: 0.9rem !important;
    height: 0.9rem !important;
  }
  
  .steam-iron-card .info-toggle-btn i {
    font-size: 1.4rem !important;
  }
  
  /* FIXED: Phone overlay sizing */
  .steam-iron-card .description-overlay {
    padding: 1rem !important;
    z-index: 40 !important; /* BELOW button */
  }
  
  .steam-iron-card .overlay-content {
    max-width: 250px !important;
  }
  
  .steam-iron-card .overlay-content h4 {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.2 !important;
  }
  
  .steam-iron-card .overlay-content p {
    font-size: 0.8rem !important;
    margin-bottom: 0.9rem !important;
    line-height: 1.3 !important;
  }
  
  .steam-iron-card .quote-btn {
    padding: 7px 18px !important;
    font-size: 0.8rem !important;
  }
}

/* Small Phones - FIXED OVERLAY */
@media (max-width: 360px) {
  .steam-irons-title {
    margin-bottom: 380px !important;
    padding-bottom: 40px !important;
  }
  
  .steam-irons-grid-container {
    margin-top: 40px !important;
  }
  
  /* FIXED: Small phone button sizing */
  .steam-iron-card .info-toggle-btn {
    width: 1.6rem !important;
    height: 1.6rem !important;
    z-index: 50 !important; /* ABOVE overlay */
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .steam-iron-card .info-toggle-btn::before {
    width: 0.8rem !important;
    height: 0.8rem !important;
  }
  
  .steam-iron-card .info-toggle-btn i {
    font-size: 1.3rem !important;
  }
  
  /* FIXED: Small phone overlay sizing */
  .steam-iron-card .description-overlay {
    padding: 0.8rem !important;
    z-index: 40 !important; /* BELOW button */
  }
  
  .steam-iron-card .overlay-content {
    max-width: 220px !important;
  }
  
  .steam-iron-card .overlay-content h4 {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2 !important;
  }
  
  .steam-iron-card .overlay-content p {
    font-size: 0.75rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3 !important;
  }
  
  .steam-iron-card .quote-btn {
    padding: 6px 16px !important;
    font-size: 0.75rem !important;
  }
}
