﻿body {
    background-color: #F7F6F2;
}

.flex-shrink-0.py-4 {
    padding-top: 0 !important;
}

/* =======================
   Banner Section
======================= */
.banner-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  border-bottom: 1px solid #A7A7A7;
  background-color: #F7F6F2;
}

.banner-container {
    width: 100%;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height:auto;
    display:block;
}
.banner-img{
    transition: transform .4s ease;
}

.banner-img:hover{
    transform:scale(1.03);
}
.carousel-control-prev,
.carousel-control-next{
    opacity:0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon{
    filter:drop-shadow(0 0 6px rgba(0,0,0,0.6));
    width: 4rem;
    height: 4rem;
}

.carousel-indicators button{
    width:12px;
    height:12px;
    border-radius:50%;
    background:#fff;
    opacity:.5;
}

.carousel-indicators [data-bs-target] {
    width: 35px;
    height: 5px;
}

.carousel-indicators .active{
    opacity:1;
}

@media (max-width:768px) {
    .banner-img {
        height: 260px;
    }
}

/* =======================
   Sub-logo Section
======================= */
.sub-logo-container {
  background-color: #F7F6F2;
  border-top: 1px solid #A7A7A7;
  border-bottom: 1px solid #A7A7A7;
}

.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%;
  }
}

/* =======================
   Event Section
======================= */
.event-section {
  background: url('../img/event-bg.png') no-repeat center center;
  background-size: cover;
  min-height: 500px;
  overflow: hidden;
  padding: 59px 0;
}

.event-section h4 {
    font-size: 32px;
    font-weight: 600;
}

/* ปุ่มลูกศรซ้าย-ขวา */
.event-nav {
  display: flex;
  gap: 8px;
}

.btn-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 14px;
  background-color: #FEEB3B; /* เหลือง */
  color: #000; /* icon สีดำ */
  padding: 0;
  line-height: 1;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* hover → ดำ */
.btn-arrow:hover {
  background-color: #000;
  color: #fff;
  transform: scale(1.05);
}

/* Slide Layout */
#eventSlide {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
}

/* ส่วนภาพ */
#eventSlide .event-image {
    
}

#eventSlide .event-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  display: block;
}

/* ส่วนรายละเอียด */
#eventSlide .event-detail {
  flex: 1;
  min-width: 300px;
}

.event-detail h2 {
  font-size: 42px;
  color: #000;
  margin-bottom: 15px;
}

.event-detail p {
  font-size: 24px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px !important;
}

.event-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 30px;
}

.event-detail ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 22px;
    color: #333;
}

/* bullet icon กลางๆ */
.event-detail ul li::before {
    content: "\f005"; /* circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
    position: absolute;
    left: 0;
    color: #FFC107;
}

.event-detail a.link-more {
    color: #000;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-detail a.link-more:hover {
    color: #FFC107;    
    text-decoration: none;
}

.event-detail .link-more {
    display: inline-block;
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  #eventSlide {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #eventSlide .event-image {
    width: 100%;
  }

  #eventSlide .event-image img {
    max-width: 90%;
  }

  #eventSlide .event-detail {
    width: 100%;
  }

  .event-detail h2 {
    font-size: 24px;
  }
}

/* =======================
   New Arrival Section
======================= */
.new-arrival-section {
  background-color: #F7F6F2;
}

.new-arrival-section h4 {
    font-size: 32px;
    font-weight: 600;
}

.new-arrival-section h6 {
    font-size: 34px;
}

.new-arrival-section .see-all {
  font-size: 28px;
  font-weight: 500;
}

.new-arrival-section .small {
  font-size: 16px;
  font-weight: 500;
}

.new-arrival-section .fw-bold {
    font-size: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;        /* จำกัด 2 บรรทัด */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card {
  background: transparent;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
  max-width: 373px;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* ลิงก์รูปสินค้า */
.product-img-link {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

/* เอฟเฟกต์ซูมรูป */
.product-img {
  transition: transform 0.3s ease;
  max-height: 450px;
  border-radius: 15px;
}

.product-img-link:hover .product-img {
  transform: scale(1.05);
}

/* เอฟเฟกต์ 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;
}

@media (min-width: 576px) {
  .product-img {
     max-height: 250px;
     border-radius: 15px;
  }

  .product-card {
    text-align: center;
  }

  .product-card .badge-new,
  .product-card .badge-heart {
    width: 40px;
  }
}

@media (min-width: 1400px) {
    .product-img {
      max-height: 380px;
      border-radius: 15px;
    }
    #eventSlide .event-image img {
      max-width: 500px;
    }
}

@media (min-width: 1600px) {
    .product-img {
      max-height: 450px;
      border-radius: 15px;
    }
    #eventSlide .event-image img {
      max-width: 550px;
    }
}