/* ===========================
   HOME PAGE STYLES
   File: static/store/css/home_styles.css
=========================== */

/* ===========================
   Global Layout
=========================== */
.home-wrapper {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

/* ===========================
   Navbar Overlay for Home Page
=========================== */
@media (min-width: 992px) {
  /* Pull content up to show full banner */
  .home-wrapper {
    margin-top: -160px;
  }

  /* Make sure hero banner shows properly */
  .hero-arc {
    position: relative;
    z-index: 1;
  }

  /* Keep navbar on top */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }
}

/* ===========================
   Category Grid
=========================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.2rem;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 1200px;
  justify-items: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 120px));
    gap: 2rem 1.5rem;
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .category-grid {
    gap: 2rem 2rem;
    max-width: 900px;
  }
}

.category-item a {
  text-decoration: none;
  color: inherit;
}

.category-item img {
  width: 100%;
  max-width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e6e2dc;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.category-item:hover img {
  transform: scale(1.05);
  border-color: #4c7c7d;
  box-shadow: 0 4px 10px rgba(76, 124, 125, 0.3);
}

.category-item .fw-semibold {
  font-size: 0.9rem;
  font-weight: 600;
  color: #383634;
}

/* ===========================
   Section Headers
=========================== */
.section-header {
  text-align: center;
  margin: 2rem auto 1.5rem;
  padding: 0 1rem;
}

.section-header h5 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #383634;
}

.section-header h5 i {
  color: #f9b806;
}

@media (min-width: 768px) {
  .section-header h5 {
    font-size: 1.5rem;
  }
}

/* ===========================
   Product Grid
=========================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0 0.75rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    padding: 0 3rem;
    max-width: 1300px;
    margin: 0 auto;
  }
}

.product-grid .product-card-container {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-grid .product-card-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Banners
=========================== */
.custom-banner {
  transition: transform 0.3s ease;
  width: 100%;
  overflow: hidden;
}

.custom-banner:hover {
  transform: translateY(-5px);
}

/* ===========================
   View All Button
=========================== */
.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f9b806;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  padding: 10px 26px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.view-all-btn i {
  margin-left: 8px;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.view-all-btn:hover {
  background-color: #e0a605;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.view-all-btn:hover i {
  transform: translateX(4px);
}

.view-all-btn.expanded i {
  transform: rotate(180deg);
}

.view-all-container {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* ===========================
   Section Padding Helper
=========================== */
.section-pad {
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .section-pad {
    padding: 0 3rem;
  }
}

/* ===========================
   Reviews Section
=========================== */
.reviews-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 0 4rem;
  margin: 3rem 0;
}

.reviews-section .section-header p {
  color: #6c757d;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Review Cards Container */
.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Individual Review Card */
.review-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f9b806, #e0a605);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.review-card:hover::before {
  transform: scaleX(1);
}

/* Hide reviews beyond the first 3 */
.review-card-hidden {
  display: none;
}

/* Animation for newly shown reviews */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card-visible {
  animation: fadeInUp 0.4s ease forwards;
}

/* Review Header */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9b806, #e0a605);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-weight: 600;
  color: #383634;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.review-date {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.star-rating i {
  color: #f9b806;
  font-size: 1rem;
}

.star-rating i.bi-star {
  color: #dee2e6;
}

/* Review Text */
.review-text {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Product Tag */
.product-tag {
  display: inline-flex;
  align-items: center;
  background: #f8f9fa;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #6c757d;
}

.product-tag i {
  margin-right: 0.3rem;
  color: #f9b806;
}

/* Verified Badge */
.verified-badge {
  display: inline-flex;
  align-items: center;
  color: #28a745;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.verified-badge i {
  margin-right: 0.3rem;
}

/* Rating Summary */
.rating-summary {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.overall-rating {
  font-size: 3rem;
  font-weight: 700;
  color: #383634;
  margin-bottom: 0.5rem;
}

.rating-summary .star-rating {
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.total-reviews {
  color: #6c757d;
  font-size: 0.9rem;
}
