/* Modern Homepage Styles */

/* 1. Hero Slider Section */
.homepage-hero-section {
  padding: 24px 0 16px 0;
}

.hero-slider-wrapper {
  background: #ffffff;
  border-radius: var(--border-radius-lg, 16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.slider-item {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8fafc;
}

.slider-link {
  display: block;
  width: 100%;
  text-align: center;
}

.slider-link img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slider-link:hover img {
  transform: scale(1.02);
}

/* 2. Value Propositions Bar */
.value-props-section {
  padding: 16px 0 24px 0;
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.prop-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
  transition: all 0.25s ease;
}

.prop-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.prop-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.bg-blue-soft { background-color: #eff6ff; }
.bg-green-soft { background-color: #f0fdf4; }
.bg-orange-soft { background-color: #fff7ed; }
.bg-purple-soft { background-color: #faf5ff; }
.text-purple { color: #9333ea; }

.prop-info {
  line-height: 1.3;
}

.prop-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.prop-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0;
}

/* 3. Quick Categories Section */
.quick-categories-section {
  padding: 8px 0 24px 0;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.heading-accent {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-radius: 4px;
}

.view-all-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.view-all-link:hover {
  color: #1d4ed8;
  gap: 8px;
}

.quick-cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cat-card-pill {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.cat-card-pill i {
  font-size: 1.2rem;
}

.cat-card-pill:hover {
  background-color: #1e3a8a;
  color: #ffffff;
  transform: translateY(-2px);
  border-color: #1e3a8a;
}

.cat-card-pill:hover i {
  color: #ffffff !important;
}

/* 4. Product Suggestions Section */
.homepage-suggestion-wrapper-container {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  padding: 30px 0 40px 0;
  border-top: 1px solid #e2e8f0;
}

.suggestion-header-box {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.header-flame-icon {
  font-size: 2rem;
  animation: flamePulse 1.5s infinite alternate;
}

@keyframes flamePulse {
  from { transform: scale(1); }
  to { transform: scale(1.15) rotate(5deg); }
}

.suggestion-main-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.homepage-book-suggetion-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* Product Card */
.product-card-wrapper {
  height: 100%;
}

.item-box-container {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.item-box-container:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.card-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.product-img-box {
  padding: 16px 16px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  background-color: #fafbfc;
  overflow: hidden;
}

.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.item-box-container:hover .product-img-box img {
  transform: scale(1.06);
}

.product-info-box {
  padding: 12px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  min-height: 38px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.item-box-container:hover .book-title {
  color: #2563eb;
}

.rating-stars {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
}

.price-group {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price {
  color: #dc2626;
  font-weight: 800;
  font-size: 1.15rem;
  font-family: var(--font-sans);
}

.old-price {
  color: #94a3b8;
  font-size: 0.8rem;
  text-decoration: line-through;
}

/* Responsive Grid */
@media (max-width: 1399px) {
  .homepage-book-suggetion-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .quick-cats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .value-props-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .homepage-book-suggetion-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .homepage-book-suggetion-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .quick-cats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-img-box {
    height: 170px;
    padding: 10px;
  }
  .price {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .value-props-grid {
    grid-template-columns: 1fr;
  }
  .homepage-book-suggetion-container {
    grid-template-columns: 1fr 1fr;
  }
}