.card-product {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    min-height: 300px;
    /* ให้การ์ดมีความสูงขั้นต่ำ */
    height: auto;
    /* ให้ปรับตามเนื้อหา */
    width: 100%;
    /* กินเต็มพื้นที่ column */
}

.swiper-button-next,
.swiper-button-prev {
    /* background-color: rgba(0, 123, 255, 0.8); */
    /* พื้นหลังฟ้าโปร่ง */
    /* border-radius: 50%; */
    /* ทำเป็นวงกลม */
    /* width: 70px; */
    /* height: 70px; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
}

/* เปลี่ยนสีลูกศรด้านใน */
.swiper-button-next::after,
.swiper-button-prev::after {
    color: #fff;
    /* สีลูกศร */
    font-size: 30px;
    /* ขนาดลูกศร */
}




.tour-gallery {
    position: relative;
}

.swiper-wrapper {
    display: flex;
    /* ทำให้ทุก slide เป็น flex item */
    align-items: stretch;
    /* ให้ slide สูงเท่ากัน */
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    height: auto;
    /* ให้ slide ยืดเต็ม parent */
}

.tour-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    /* ให้ card เต็มสูงของ slide */
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: rgba(15, 41, 77, 0.08) 0px 8px 16px 0px;
    cursor: pointer;
}

.tour-card:hover .tour-image img {
    transform: scale(1.1);
}

.tour-image {
    flex: 0 0 auto;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tour-location {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.tour-info {
    flex: 1 1 auto;
    /* ยืดเต็มความสูงที่เหลือ */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* ดัน price ลงล่าง */
    padding: 0.5rem 0.75rem;
}

.tour-title {
    font-weight: 600;
    font-size: 16px;
    flex: 0 0 auto;
    min-height: 44px;
    /* ชื่อไม่ยืด */
}

.tour-price {
    flex: 0 0 auto;
    /* ราคาชิดล่าง */
    text-align: right;
    margin-top: auto;
}

.tour-discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff4d4f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.tour-best-offer {
    position: absolute;
    top: 35px;
    left: -5px;
    background: #1800ad;
    color: #ffde59;
    padding: 3px 6px;
    font-size: 16px;
    z-index: 10;
}

.tour-rating .star {
    color: #ffc107;
    margin-right: 2px;
}


.custom-nav {
    background-color: #fff !important;
    box-shadow: 0 4px 8px 0 rgba(3, 42, 80, .08) !important;
    cursor: pointer !important;
    height: 40px !important;
    line-height: 40px !important;
    opacity: .9 !important;
    padding: 0 !important;
    position: absolute !important;
    text-align: center !important;
    top: 50% !important;
    width: 32px !important;
    z-index: 1 !important;
}

.custom-nav>.swiper-navigation-icon {
    height: 16px;
}

.swiper-button-prev.custom-nav {
    left: 0px;
    cursor: pointer !important;
    border-radius: 0 50% 50% 0 !important;

}

.swiper-button-next.custom-nav {
    right: 0px;
    cursor: pointer !important;
    border-radius: 50% 0 0 50% !important;
}

.custom-nav span {
    font-size: 16px;
    color: #333;
}

.coupon-swiper {
    width: 100%;
    padding: 20px 0 0 0;
}

.coupon-slide {
    display: flex;
    /* slide ต้องเป็น flex เพื่อให้ยืดเท่ากัน */
}


.coupon-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0px 4px 10px rgba(3, 18, 26, 0.15);
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
    flex: 1;
    height: 100% !important;
}

.coupon-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.coupon-icon {
    width: 24px;
    height: 24px;
    background: #00aaff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.coupon-title {
    font-weight: bold;
    font-size: 14px;
}

.coupon-sub {
    font-size: 12px;
    color: #777;
}

.coupon-discount {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    color: #FF5722;
}

.coupon-footer {
    /* margin-top: auto;
    display: flex;
    padding-top: 10px;
    gap: 8px; */
}

.coupon-footer>.coupon-cut {
    background: radial-gradient(10px at right, #0000 97%, #FFFFFF) right / 51% 100% no-repeat, radial-gradient(10px at left, #0000 97%, #FFFFFF) left / 51% 100% no-repeat;
    background-color: rgba(3, 18, 26, 0.07);
    margin-top: -0.5px;
    margin-bottom: -0.5px;
    height: 20px;
    border-top-color: rgba(255, 255, 255, 1.00);
    margin-right: -16px;
    margin-left: -16px;
    display: flex;
    align-items: center;
    flex-direction: row;
    padding-left: 12px;
    padding-right: 12px;

}

.coupon-footer>.coupon-cut>.coupon-line-cut {
    border-top: 1px dashed #ddd;
    width: 100%;
}

.coupon-code-group {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    flex-direction: row;
    gap: 8px;
}

.coupon-brand {
    font-size: 13px;
    color: #555;
    font-weight: bold;
}

.coupon-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background-color: #f3f4f6;
    border-radius: 8px;
    font-weight: 600;
    flex: 1;
}

.coupon-code i {
    color: #777;
}

.coupon-footer button {
    background-color: rgb(209, 240, 255);
    border-radius: 999px;
    color: rgba(2, 69, 144, 1.00);
    font-weight: 600;
}

.coupon-footer button:hover {
    background-color: rgb(145, 214, 253);
    border-radius: 999px;
    color: rgba(2, 69, 144, 1.00);
}

.custom-nav-coupon {
    background-color: rgba(255, 255, 255, 1.00) !important;
    box-shadow: rgba(3, 18, 26, 0.2) 0px 8px 16px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    height: 40px !important;
    line-height: 40px !important;
    opacity: .9 !important;
    padding: 0 !important;
    position: absolute !important;
    text-align: center !important;
    top: 50% !important;
    width: 40px !important;
    z-index: 1 !important;

    border-bottom-color: rgba(0, 0, 0, 0.00);
    border-left-color: rgba(0, 0, 0, 0.00);
    border-right-color: rgba(0, 0, 0, 0.00);
    border-top-color: rgba(0, 0, 0, 0.00);
}


.custom-nav-coupon>.swiper-navigation-icon {
    height: 16px;
}

.swiper-button-prev.custom-nav-coupon {
    left: 0px;
    cursor: pointer !important;
    /* border-radius: 0 50% 50% 0 !important; */

}

.swiper-button-next.custom-nav-coupon {
    right: 0px;
    cursor: pointer !important;
    /* border-radius: 50% 0 0 50% !important; */
}

.custom-nav-coupon span {
    font-size: 16px;
    color: #333;
}



/* Google Review */
.reviews-container {
    /* max-width: 800px; */
    margin: 0 auto;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
    border-radius: 12px;
    padding: 20px 20px 20px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.product-header {}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.rating-overview {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-score {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.stars-display {
    display: flex;
    gap: 2px;
}

.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #ccc; /* สีดาวว่าง */
    position: relative;
}

.star.full {
    color: #ffa500; /* ดาวเต็มสีทอง */
}

.star.half::before {
    content: '★';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;       /* ครึ่งซ้าย */
    overflow: hidden;
    color: #ffa500;   /* สีทองครึ่งซ้าย */
}


.star.empty {
    color: #ddd;
}

.review-count {
    color: #666;
    font-size: 13px;
}

.google-button {
    background: #4285f4;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.google-button:hover {
    background: #3367d6;
}

/* Swiper Styles */
.reviews-swiper {
    /* overflow: visible; */
    padding-bottom: 40px;
}

.swiper-slide {
    height: auto;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.reviewer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.reviewer-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.review-time {
    font-size: 12px;
    color: #888;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.review-stars .star {
    width: 16px;
    height: 16px;
    color: #ffa500;
}

.review-text {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 0px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 992px) {
    .review-text {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Custom Navigation Buttons */
.review-button.swiper-button-next,
.review-button.swiper-button-prev {
    background: rgba(255, 255, 255, 0.9) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    color: #666 !important;
    margin-top: -20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s !important;
}

.review-button.swiper-button-next>.swiper-navigation-icon,
.review-button.swiper-button-prev>.swiper-navigation-icon {
    height: 20px;
    color: #667eea;
}

.review-button.swiper-button-next:hover,
.review-button.swiper-button-prev:hover {
    background: white !important;
    color: #333 !important;
}

.review-button.swiper-button-next::after,
.review-button.swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold !important;
}

/* Custom Pagination */
/* .review-pagination.swiper-pagination-bullet {
    width: 8px !important;
    height: 8px !important;
    background: #ccc !important;
    opacity: 1 !important;
    transition: all 0.2s !important;
}*/

.review-pagination.swiper-pagination-bullet-active {
    background: #4285f4 !important;
    transform: scale(1.2) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-container {
        padding: 15px !important;
    }

    /* .review-button.swiper-button-next,
    .review-button.swiper-button-prev {
        display: none !important;
    } */
}

/* End Google Review */



/* best seller */
.best-seller-banner {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, #1839b0 0%, #303fb0 60%, #e6f3f4 100%);
  padding: 6px 12px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: white;
  font-size: 14px;
}

.best-seller-banner .icon i {
  margin-right: 6px;
  font-size: 23px;
  color: #D9C27D;
}

.best-seller-banner .title {
  font-weight: bold;
}

.best-seller-banner .title em {
  font-style: italic;
  color: #D9C27D; /* สีเหลืองทองอ่อนเหมือนในภาพ */
}

.best-seller-banner .subtitle {
  font-size: 12px;
  color: #d6e0ff;
  margin-left: 6px;
}
/* End BestSeller */