/* Add custom CSS styles below */
body {
  background: #ffffff !important;
  position: relative;
  overflow-x: hidden;
}

/* Premium overlay for content section only */
.s-block--slider-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
    rgba(64, 0, 34, 0.93) 0%,
    rgba(64, 0, 34, 0.88) 30%,
    rgba(255, 255, 240, 0.1) 100%);
  z-index: -1;
  border-radius: 12px;
}

/* Restored original header/footer */
.main-nav-container,
.store-footer,
.store-footer__inner {
  background-color: #ffffff !important;
  backdrop-filter: none;
  border: none !important;
}

/* Premium content styling */
.s-slider-container .w-4\/6 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
  padding-top: 50px; /* This moves the content down */
}

.line-clamp-2.description {
  background: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  width: fit-content;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
              inset 0 0 8px rgba(255, 255, 255, 0.1);
  position: relative;
  will-change: transform, box-shadow;
}

.line-clamp-2.description:hover {
  background: linear-gradient(45deg,
    #a0ddf7,
    #a0ddf7) !important;
  border: 1px solid white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(160, 221, 247, 0.25),
              inset 0 2px 6px rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.home-slider__content h2 {
  font-weight: 700;
  font-size: 48px;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 1.5rem;
}

/* Mobile optimization */
@media only screen and (max-width: 768px) {
  .home-slider__content h2 {
    font-size: 32px;
    padding: 0 15px;
  }

  .line-clamp-2.description {
    padding: 12px 20px;
    font-size: 0.95em;
  }
}

/* Z-index management */
.s-block--slider-with-bg {
  position: relative;
  z-index: 1;
  margin: 2rem 0;
  background: transparent !important;
}

.s-slider-block__title-nav {
    display: none !important;
}

.main-nav-container,
.store-footer {
  position: relative;
  z-index: 2;
}

/* Premium Product Effects */
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s ease !important;
  will-change: transform, box-shadow;
}

/* Reduced overlay opacity */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg,
    rgba(160, 221, 247, 0.05) 0%, /* Reduced opacity */
    rgba(255, 255, 255, 0.1) 100%); /* Reduced opacity */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15),
              0 8px 24px rgba(160, 221, 247, 0.15) !important;
}

/* New image container for aspect ratio */
.product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/4; /* Taller aspect ratio (3:4) */
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures proper filling */
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

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

.product-price {
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.product-card:hover .product-price {
  transform: translateX(8px);
  color: #a0ddf7 !important;
}

@keyframes productShine {
  0% { transform: translateX(-100%) rotate(15deg); }
  100% { transform: translateX(200%) rotate(15deg); }
}

.product-card:hover::after {
  content: '';
  position: absolute;
  top: -100%; /* Adjusted for taller images */
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  animation: productShine 1.2s ease;
  z-index: 3;
}

/* Loading Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Product Actions */
.product-actions {
  position: absolute;
  bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 4;
  width: 100%;
  text-align: center;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Accessibility */
.line-clamp-2.description:focus-visible {
  outline: 2px solid #a0ddf7;
  outline-offset: 3px;
}