﻿.flex-shrink-0.py-4 {
    padding-top: 0 !important;
}

.product-grid {
    background-color: #F7F6F2;
}

.product-title {
    border-top: 1px solid #A7A7A7;
    padding-top: 38px;    
}

.product-title h3 {
    font-size: 36px;
}

/* =======================
   Banner Section
======================= */
.banner-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 1px solid #A7A7A7;
  background-color: #F7F6F2;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* =======================
   Sub-logo Section
======================= */
.sub-logo-container {
  
}

.sub-logo-container .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sub-logo-item {
  min-width: 140px;
  height: 130px;
  border-radius: 50%;
  background-color: #F7F6F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sub-logo-item img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.sub-logo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
  .sub-logo-item {
    min-width: 90px;
    height: 90px;
  }
  .sub-logo-item img {
    max-width: 70%;
  }
}

.product-section {
    margin-left: 30px;
    margin-right: 30px;
}

/* เอฟเฟกต์ hover ที่ชื่อสินค้า */
.hover-zoom-title {
  transition: color 0.3s ease;
}

.hover-zoom-title:hover {
  color: #e08b00;
}

/* ป้าย New / หัวใจ */
.badge-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  z-index: 2;
}

.badge-heart {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  z-index: 2;
}

.product-top {
    font-size: 22px;
}

.product-top h6 {
    font-size: 22px;
}

.product-top .form-select {
    font-size: 18px;
}

/* Product Section Layout */
.product-section {

}

.filter-box {
  border: 1px solid #ddd;
  background-color: #fff;
  border-radius: 6px;  
}

.filter-box h5 {
    font-size: 20px;
}

.filter-box .fw-bold {
    font-size: 20px;
}

/* Filter */
.filter-section .form-check-label {
  font-size: 16px;
  color: #A7A7A7;
}        

.filter-section .form-check-input {
  border-color: #9CA3AF;  
}

.filter-section .form-check-input:checked {
  background-color: #515CCE;
  border-color: #515CCE;  
}

.filter-section .form-check {
  margin-bottom: 10px;
}

/* Product Card */
.product-card {
  background: transparent;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
  max-width: 373px;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card .small {
  font-size: 22px;
  font-weight: 500;
}

.product-card h6 {
    font-size: 34px;
}

.product-card .fw-bold {
    font-size: 34px;
}

.product-img {
  max-width: 80%;
  transition: transform 0.3s ease;
}

.badge {
  font-size: 0.75rem;
  padding: 0.4em 0.6em;
  border-radius: 4px;
}

/* =========================
   Pagination Style
========================= */
.paging {
    margin-top: 100px;
}

.pagination {
  gap: 1rem;
  font-size: 24px;
}

.page-label {
  color: #000;
  font-weight: 500;
  font-size: 32px;
}

.pagination .page-item {
  margin: 0 0.1rem;
}

.pagination .page-link {
  border: none;
  color: #000;
  background: transparent;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  transition: all 0.2s ease;
  font-size: 24px;
}

.pagination .page-item.active .page-link {
  background-color: #FFC107; /* สีเหลืองตามภาพ */
  color: #fff;
  font-weight: 600;
}

.pagination .page-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.pagination .page-link i {
  color: #555; /* สีลูกศรเทาเข้ม */
  font-size: 24px;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* เฉพาะ desktop (≥ 992px) */
@media (min-width: 992px) {
    .product-section {
        margin-left: 60px;
        margin-right: 60px;
    }
    .filter-box {
        margin-right: 50px;
    }    
}

/* Responsive */
@media (max-width: 576px) {
  .product-card {
    text-align: center;
  }

  .product-card .badge-new,
  .product-card .badge-heart {
    width: 40px;
  }
}