/* ===================================
   CATEGORY.CSS - Modern Category & Product Layouts
   =================================== */

/* ----- FULL CATEGORY CARDS (for products.html page) ----- */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.category-card {
  text-decoration: none;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(44, 95, 45, 0.15);
  border-color: #2c5f2d;
}

.category-card-inner {
  padding: 0;
}

.category-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Gradient backgrounds for different categories */
.category-image.pain-relief {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-image.hair-care {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-image.skin-care {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-image.soaps {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-image.essential-oils {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.category-image.herbal-tea {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.category-image.bath-salts {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.category-image.wellness {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.category-image.gut-care {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.category-image.tools {
  background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
}

/* Icon styling */
.category-image i {
  font-size: 4rem;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Decorative circles in background */
.category-image::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  top: -50px;
  right: -50px;
}

.category-image::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
}

.category-content {
  padding: 2rem;
}

.category-title {
  color: #2c5f2d;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.category-description {
  color: #6a6a6a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.category-link-text {
  color: #2c5f2d;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.category-card:hover .category-link-text {
  gap: 1rem;
}


/* ----- PREVIEW CATEGORY CARDS (for homepage) ----- */

.preview-category-card {
  text-decoration: none;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.preview-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(44, 95, 45, 0.15);
  border-color: #2c5f2d;
}

.preview-category-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.preview-category-card:hover .preview-category-icon {
  transform: scale(1.1) rotate(5deg);
}

.preview-category-icon i {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  z-index: 1;
}

/* Gradient backgrounds for preview icons */
.preview-category-icon.pain-relief {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.preview-category-icon.hair-care {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.preview-category-icon.skin-care {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.preview-category-icon.soaps {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.preview-category-icon.essential-oils {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.preview-category-icon.herbal-tea {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.preview-category-title {
  color: #2c5f2d;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.preview-category-card:hover .preview-category-title {
  color: #1f4620;
}

.preview-category-desc {
  color: #6a6a6a;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Decorative shine effect */
.preview-category-icon::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  top: 10px;
  left: 10px;
}


/* ----- CATEGORY PAGE HEADER (for individual category pages) ----- */

.category-header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

/* Decorative top border gradient */
.category-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  z-index: 1;
}

.category-header.soaps::before {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

.category-header.pain-relief::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.category-header.hair-care::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.category-header.skin-care::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.category-header.essential-oils::before {
  background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
}

.category-header.herbal-tea::before {
  background: linear-gradient(90deg, #30cfd0 0%, #330867 100%);
}

.category-header.bath-salts::before {
  background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
}

.category-header.wellness::before {
  background: linear-gradient(90deg, #ff9a9e 0%, #fecfef 100%);
}

.category-header.gut-care::before {
  background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%);
}

.category-header.tools::before {
  background: linear-gradient(90deg, #ff6e7f 0%, #bfe9ff 100%);
}

/* Breadcrumb */
.category-header .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #6a6a6a;
  margin-bottom: 1.5rem;
}

.category-header .breadcrumb a {
  color: #2c5f2d;
  text-decoration: none;
  transition: color 0.3s;
}

.category-header .breadcrumb a:hover {
  color: #1f4620;
  text-decoration: underline;
}

.category-header .breadcrumb span {
  color: #2c5f2d;
  font-weight: 500;
}

/* Category Icon */
.category-header .category-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.category-header .category-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-header .category-icon i {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  z-index: 1;
}

/* Category Icon Gradients */
.category-header .category-icon.soaps {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.category-header .category-icon.pain-relief {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-header .category-icon.hair-care {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-header .category-icon.skin-care {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.category-header .category-icon.essential-oils {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.category-header .category-icon.herbal-tea {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.category-header .category-icon.bath-salts {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.category-header .category-icon.wellness {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.category-header .category-icon.gut-care {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.category-header .category-icon.tools {
  background: linear-gradient(135deg, #ff6e7f 0%, #bfe9ff 100%);
}

/* Shine effect on icon */
.category-header .category-icon::before {
  content: '';
  position: absolute;
  width: 50%;
  height: 50%;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  top: 8px;
  left: 8px;
}

.category-header h1 {
  font-size: 2.8rem;
  color: #2c5f2d;
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1.2;
}

.category-header p {
  font-size: 1.15rem;
  color: #6a6a6a;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ----- PRODUCT ITEMS - MODERN CARD LAYOUT ----- */

.products-container {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.products-container .product-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #e8e5e0;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.products-container .product-item:hover {
  border-color: #2c5f2d;
  box-shadow: 0 12px 40px rgba(44, 95, 45, 0.15);
  transform: translateY(-8px);
}

/* Product Image */
.products-container .product-image {
  width: 100%;
  height: 320px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f3f0, #e8e5e0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.products-container .product-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(44, 95, 45, 0.03) 0%, transparent 50%);
  z-index: 1;
}

.products-container .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.products-container .product-item:hover .product-image img {
  transform: scale(1.08);
}

/* Product Details */
.products-container .product-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.products-container .product-name {
  font-size: 1.6rem;
  color: #2c5f2d;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.products-container .product-tagline {
  font-size: 0.95rem;
  color: #8b7355;
  font-style: italic;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.products-container .product-description {
  font-size: 0.95rem;
  color: #6a6a6a;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Price Section */
.products-container .product-price-section {
  border-top: 1px solid #e8e5e0;
  padding-top: 1.2rem;
  margin-top: auto;
}

.products-container .product-price {
  font-size: 1.4rem;
  color: #2c5f2d;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

/* Product Actions */
.products-container .product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.products-container .variant-select {
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border: 2px solid #e8e5e0;
  border-radius: 12px;
  background: white;
  color: #2c5f2d;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.products-container .variant-select:hover,
.products-container .variant-select:focus {
  border-color: #2c5f2d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

.products-container .add-to-cart-btn {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
  background: #2c5f2d;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(44, 95, 45, 0.2);
}

.products-container .add-to-cart-btn:hover {
  background: #1f4620;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 95, 45, 0.35);
}

.products-container .add-to-cart-btn:active {
  transform: translateY(0);
}

/* Quick View Badge (optional enhancement) */
.products-container .product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(44, 95, 45, 0.9);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(10px);
}


/* ----- BACK BUTTON ----- */

.back-to-products {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c5f2d;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border: 2px solid #2c5f2d;
  border-radius: 50px;
  transition: all 0.3s;
  font-weight: 600;
}

.back-to-products:hover {
  background: #2c5f2d;
  color: white;
  transform: translateX(-5px);
}


/* ----- RESPONSIVE DESIGN ----- */

@media (max-width: 1200px) {
  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .preview-categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 1.5rem !important;
  }

  .preview-category-card {
    padding: 1.5rem 1rem;
  }

  .preview-category-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .preview-category-title {
    font-size: 1.1rem;
  }

  .preview-category-desc {
    font-size: 0.85rem;
  }

  .category-header {
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
  }

  .category-header h1 {
    font-size: 2rem;
  }

  .category-header p {
    font-size: 1rem;
  }

  .category-header .category-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .products-container {
    margin-top: 2rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .products-container .product-image {
    height: 280px;
  }

  .products-container .product-details {
    padding: 1.5rem;
  }

  .products-container .product-name {
    font-size: 1.4rem;
  }

  .products-container .product-tagline {
    font-size: 0.9rem;
  }

  .products-container .product-price {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .products-container .product-image {
    height: 240px;
  }

  .products-container .product-details {
    padding: 1.2rem;
  }

  .products-container .product-name {
    font-size: 1.3rem;
  }
}
