/* ================= NEW CATEGORY CARDS ================= */
.category-card-new {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card-new:hover .category-image img {
  transform: scale(1.05);
}

.category-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-content h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.category-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.explore-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.explore-link:hover {
  color: #007bff;
}

.explore-link.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.coming-soon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, 0.9);
}

.coming-soon img {
  width: auto;
  height: auto;
  max-width: 80%;
  object-fit: contain;
}

/* ================= OLD CATEGORY CARDS (KEEP FOR REFERENCE) ================= */
.category-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #6610f2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.category-icon {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 1rem;
}

.category-card h5 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.category-card p {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ================= HIDDEN PRODUCTS ================= */
.hidden-product {
  display: none;
}

/* ================= RESPONSIVE CATEGORIES ================= */

/* Tablet */
@media (max-width: 991px) {
  .category-image {
    height: 200px;
  }
  
  .category-content {
    padding: 15px;
  }
  
  .category-content h5 {
    font-size: 1rem;
  }
  
  .category-content p {
    font-size: 0.85rem;
  }
  
  .explore-link {
    font-size: 0.85rem;
  }
}

/* Mobile Landscape */
@media (max-width: 767px) {
  .category-image {
    height: 180px;
  }
  
  .category-content {
    padding: 12px;
  }
  
  .category-content h5 {
    font-size: 0.95rem;
  }
  
  .category-content p {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }
  
  .explore-link {
    font-size: 0.8rem;
  }
}

/* Mobile Portrait */
@media (max-width: 575px) {
  .category-image {
    height: 160px;
  }
  
  .category-content {
    padding: 10px;
  }
  
  .category-content h5 {
    font-size: 0.9rem;
  }
  
  .category-content p {
    font-size: 0.75rem;
  }
  
  .explore-link {
    font-size: 0.75rem;
  }
  
  .coming-soon {
    height: 160px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .category-card-new {
    aspect-ratio: 1/1;
    height: auto;
    margin-bottom: 15px;
  }
  
  .category-image {
    height: 60%;
    min-height: 180px;
  }
  
  .category-content {
    height: 40%;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .category-content h5 {
    font-size: 0.9rem;
    line-height: 1.2;
  }
  
  .category-content p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .explore-link {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .coming-soon {
    height: 60%;
    min-height: 180px;
  }
  
  /* Enhanced category card layout for small screens */
  .row.g-4 {
    gap: 10px !important;
  }
  
  .col-lg-4, .col-md-6 {
    margin-bottom: 10px;
  }
  
  /* Better touch targets */
  .explore-link {
    display: inline-block;
    min-height: 32px;
    padding: 6px 12px;
    text-align: center;
  }
}
