/* Interactive Product Explorer Hero */
.hero-explorer {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0fdf9 100%);
  padding: 0;
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}

.hero-explorer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 211, 199, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero-explorer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(73, 185, 171, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, 30px) scale(1.1);
  }
}

.hero-explorer-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.hero-explorer-main {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 
    0 10px 40px rgba(73, 185, 171, 0.1),
    0 0 0 1px rgba(139, 211, 199, 0.1);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-explorer-main::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 211, 199, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-explorer-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf9 100%);
  box-shadow: 
    0 8px 30px rgba(73, 185, 171, 0.15),
    0 0 0 1px rgba(139, 211, 199, 0.2);
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  animation: fadeInScale 0.8s ease-out;
  border: 2px solid rgba(139, 211, 199, 0.3);
}

.hero-explorer-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(73, 185, 171, 0.03) 100%);
  pointer-events: none;
  z-index: 1;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1.02) contrast(1.05);
}

.hero-explorer-image:hover .hero-main-img {
  transform: scale(1.08) rotate(1deg);
}

.hero-explorer-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(73, 185, 171, 0.05) 100%);
  pointer-events: none;
}

.hero-badge-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 
    0 3px 10px rgba(0, 0, 0, 0.2),
    0 0 15px rgba(255, 255, 255, 0.5) inset;
  animation: badgePulse 2s infinite, shimmer 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  animation: shine 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

@keyframes shimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.2);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.badge-super {
  background: linear-gradient(135deg, #ff416c, #ff4b2b);
  color: white;
}

.badge-flash {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
}

.badge-mega {
  background: linear-gradient(135deg, #8BD3C7, #49b9ab);
  color: white;
}

.badge-featured {
  background: linear-gradient(135deg, #49b9ab, #8BD3C7);
  color: white;
}

.hero-explorer-content {
  color: #0f172a;
  animation: slideInRight 0.8s ease-out;
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-content-inner {
  max-width: 550px;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: textShine 5s ease-in-out infinite;
  transition: all 0.3s ease;
}

@keyframes textShine {
  0%, 100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.hero-description {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-price-section {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.hero-price-old {
  font-size: 1rem;
  text-decoration: line-through;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.hero-price {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #49b9ab 0%, #8BD3C7 50%, #49b9ab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: priceGlow 3s ease-in-out infinite;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

@keyframes priceGlow {
  0%, 100% {
    background-position: 0% center;
    filter: brightness(1);
  }
  50% {
    background-position: 100% center;
    filter: brightness(1.2);
  }
}

.hero-stock {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: #6b7280;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  background: rgba(73, 185, 171, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(73, 185, 171, 0.2);
}

.hero-stock i {
  color: #49b9ab;
  margin-right: 0.4rem;
  animation: pulse 2s ease-in-out infinite;
  font-size: 0.9rem;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #49b9ab 0%, #379d90 100%);
  color: white;
  box-shadow: 
    0 4px 15px rgba(73, 185, 171, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #379d90 0%, #2d8278 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 25px rgba(73, 185, 171, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  color: white;
}

.btn-hero-secondary {
  background: white;
  color: #49b9ab;
  border: 2px solid #49b9ab;
  position: relative;
  overflow: hidden;
}

.btn-hero-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(73, 185, 171, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-hero-secondary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-hero-secondary:hover {
  background: white;
  transform: translateY(-2px);
  color: #379d90;
  border-color: #379d90;
  box-shadow: 0 4px 15px rgba(73, 185, 171, 0.2);
}

.hero-explorer-thumbnails {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.3s both;
  padding: 0 1rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thumbnail-label {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.thumbnail-label::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #49b9ab, transparent);
  border-radius: 2px;
}

.thumbnail-grid {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.thumbnail-item {
  width: 65px;
  height: 65px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: 
    0 3px 8px rgba(73, 185, 171, 0.12),
    0 0 0 1px rgba(139, 211, 199, 0.1);
  position: relative;
}

.thumbnail-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(73, 185, 171, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(73, 185, 171, 0.3),
    0 0 0 2px rgba(73, 185, 171, 0.2);
}

.thumbnail-item:hover::before {
  opacity: 1;
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

.thumbnail-item.active {
  border-color: #49b9ab;
  box-shadow: 
    0 0 25px rgba(73, 185, 171, 0.6),
    0 0 0 3px rgba(139, 211, 199, 0.3),
    0 8px 20px rgba(73, 185, 171, 0.3);
  transform: scale(1.05);
}

.thumbnail-item.active::after {
  content: '✓';
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #49b9ab, #8BD3C7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(73, 185, 171, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-explorer-wrapper {
    padding: 0.75rem;
  }

  .hero-explorer-main {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .hero-explorer-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 auto;
  }

  .hero-content-inner {
    text-align: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.35rem;
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .hero-price-section {
    justify-content: center;
  }

  .hero-price {
    font-size: 1.5rem;
  }

  .hero-price-old {
    font-size: 0.9rem;
  }

  .hero-stock {
    margin: 0 auto 1rem;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 9px 20px;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
  }

  .thumbnail-item {
    width: 55px;
    height: 55px;
  }

  .thumbnail-grid {
    gap: 0.5rem;
  }
  
  .hero-explorer-thumbnails {
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 0.8rem;
  }

  .hero-price {
    font-size: 1.35rem;
  }

  .thumbnail-item {
    width: 50px;
    height: 50px;
  }
  
  .hero-badge {
    padding: 4px 10px;
    font-size: 0.65rem;
  }
  
  .hero-explorer-main {
    padding: 1rem;
  }
  
  .hero-explorer-image {
    width: 100%;
    max-width: 240px;
    height: auto;
  }
  
  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* Smooth transitions for content changes */
.hero-title,
.hero-description,
.hero-price,
.hero-price-old,
.hero-stock {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-content-updating .hero-title,
.hero-content-updating .hero-description,
.hero-content-updating .hero-price,
.hero-content-updating .hero-price-old,
.hero-content-updating .hero-stock {
  opacity: 0;
  transform: translateY(10px);
}
