/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fdfdfd;
  color: #222;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li a {
  position: relative;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

.menu li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #000;
  transition: width 0.3s ease-in-out;
}

.menu li a:hover::after {
  width: 100%;
}

.menu li a:hover {
  color: #000;
}

.actions button {
  background: #1a1a1a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(#fff, #f5f1f0);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1rem;
  color: #777;
}

.shop-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  font-weight: bold;
  background-color: #1a1a1a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  box-shadow: 0 0 15px #4151b4;
  animation: pulseTilt 2.5s infinite ease-in-out;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Make sure anchor text is white and not inherited */
.shop-btn span {
  color: white;
  position: relative;
}

/* Underline effect only under the text */
.shop-btn span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #4151b4;
  transition: width 0.3s ease-in-out;
}

.shop-btn:hover span::after {
  width: 100%;
}

.shop-btn:hover {
  background-color: black;
  color: white;
}

/* Pulse & Tilt Animation */
@keyframes pulseTilt {
  0%, 100% {
    transform: rotate(0deg) scale(1);
    box-shadow: 0 0 15px #4151b4;
  }
  25% {
    transform: rotate(-2deg) scale(1.02);
    box-shadow: 0 0 18px #4151b4;
  }
  50% {
    transform: rotate(2deg) scale(1.03);
    box-shadow: 0 0 20px #4151b4;
  }
  75% {
    transform: rotate(-1deg) scale(1.01);
    box-shadow: 0 0 17px #4151b4;
  }
}

/* Product Image Gallery */
.hero-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.image-swap {
  width: 160px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.image-swap.reverse-tilt {
  transform: rotate(5deg); /* Opposite tilt for variety */
}

.image-swap.center {
  transform: rotate(0deg) scale(1.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.image-swap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ Ensures full fill and cropped sides */
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
  transition: opacity 0.4s ease;
}

.image-swap .back {
  opacity: 0;
}

.image-swap:hover .front {
  opacity: 0;
}

.image-swap:hover .back {
  opacity: 1;
}

/* Most Loved Section */
.most-loved {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.most-loved h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.most-loved p {
  font-size: 1rem;
  color: #666;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 20px;
  margin-top: 4rem;
}
