:root {
  --warm-dark: #3a3226;
  --gold: #c4a86f;
  --dusty-rose: #d8b4a0;
  --beige: #f5f0e6;
  --text-light: #f8f8f8;
}

.shop-section {
  position: relative;
  padding: 6rem 1.5rem;
  background: var(--beige);
  min-height: 100vh;
  overflow: hidden;
}

.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Shop Header */
.shop-header {
  text-align: center;
  margin-bottom: 4rem;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--warm-dark);
  margin-bottom: 1.5rem;
  font-family: "Dancing Script", cursive;
  line-height: 1.2;
}

.shop-header p {
  color: var(--warm-dark);
  opacity: 0.8;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Categories Grid - Modified for 2 cards per row */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.category-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.category-card:nth-child(1) {
  animation: fadeInUp 0.8s ease forwards 0.4s;
}
.category-card:nth-child(2) {
  animation: fadeInUp 0.8s ease forwards 0.6s;
}
.category-card:nth-child(3) {
  animation: fadeInUp 0.8s ease forwards 0.8s;
}
.category-card:nth-child(4) {
  animation: fadeInUp 0.8s ease forwards 1s;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.category-image {
  height: 500px; /* Increased height for better image display */
  overflow: hidden;
  position: relative;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures images fill the container */
  object-position: center; /* Centers the image */
  transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(58, 50, 38, 0.8) 0%,
    transparent 100%
  );
  padding: 2rem 1.5rem 1rem;
}

.category-overlay h2 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-family: "Playfair Display", serif;
}

.category-content {
  padding: 1.5rem;
}

.category-content p {
  color: var(--warm-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--warm-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.category-btn:hover {
  background: var(--warm-dark);
  color: var(--beige);
}

.category-btn i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.category-btn:hover i {
  transform: translateX(3px);
}

/* Decorative Elements */
.shop-watercolor {
  position: absolute;
  top: 50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%23d8b4a0" opacity="0.08" d="M45,5c25,15,40,50,60,80s45,65,70,70s45-30,20-80S90,10,45,5z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  animation: float 12s ease-in-out infinite;
}

.shop-flourish {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path fill="%23c4a86f" opacity="0.1" d="M30,30c10,5,25-5,40,15s35,45,60,30s35-40,15-60S60,10,30,30z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(10px, 10px) rotate(2deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .shop-section {
    padding: 4rem 1rem;
  }

  .categories-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

  .shop-header h1 {
    font-size: 3rem;
  }

  .shop-watercolor,
  .shop-flourish {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 576px) {
  .shop-header h1 {
    font-size: 2.5rem;
  }

  .shop-header p {
    font-size: 1rem;
  }

  .category-image {
    height: 250px;
  }
}

/* Motion Sensitivity Preference */
@media (prefers-reduced-motion) {
  .shop-header,
  .category-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .category-card:hover {
    transform: none;
  }

  .category-image img {
    transition: none;
  }

  .shop-watercolor,
  .shop-flourish {
    animation: none;
  }
}
