/* ===================================================
   PHÚC TÂM AN - STYLESHEET CHI TIẾT SẢN PHẨM (product.show)
   Thiết kế chuẩn 100% theo giao diện mẫu
   =================================================== */

.product-detail-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px 4% 50px;
}

/* THANH BREADCRUMB */
.detail-breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #556c5d;
    padding: 10px 0 18px;
    margin-bottom: 12px;
}

.detail-breadcrumb-bar a {
    color: #2a5a3a;
    text-decoration: none;
    font-weight: 500;
}

.detail-breadcrumb-bar a:hover {
    color: #064a35;
    text-decoration: underline;
}

.detail-breadcrumb-bar .sep {
    color: #9ab0a0;
}

.detail-breadcrumb-bar .current {
    font-weight: 600;
    color: #1a422b;
}

/* KHUNG 3 KHU VỰC: THUMBNAILS + MAIN IMAGE + INFO + SIDEBAR */
.product-showcase-grid {
    display: grid;
    grid-template-columns: 80px 440px 1fr 270px;
    gap: 20px;
    align-items: start;
    margin-bottom: 40px;
}

/* 1. CỘT THUMBNAILS BÊN TRÁI */
.product-thumbnails-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2ece0;
    background: #ffffff;
    cursor: pointer;
    padding: 3px;
    transition: all 0.2s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.thumb-item:hover {
    border-color: #2a733e;
}

.thumb-item.active {
    border-color: #236836;
    box-shadow: 0 2px 8px rgba(35, 104, 54, 0.25);
}

/* 2. CỘT ẢNH LỚN CHÍNH */
.product-main-image-col {
    background: #ffffff;
    border: 1px solid #e1ebe0;
    border-radius: 16px;
    overflow: hidden;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(18, 55, 30, 0.05);
}

.product-main-image-wrap {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f7faf5;
}

.product-main-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.product-main-image-wrap:hover img {
    transform: scale(1.02);
}

/* 3. CỘT THÔNG TIN TRUNG TÂM */
.product-info-col {
    display: flex;
    flex-direction: column;
    padding: 4px 10px 4px 0;
}

.product-detail-title {
    font-size: 26px;
    font-weight: 800;
    color: #123824;
    margin: 0 0 4px;
    line-height: 1.25;
}

.product-detail-subtitle {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-style: italic;
    font-size: 15px;
    color: #285a3a;
    margin: 0 0 12px;
}

/* ĐÁNH GIÁ */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.rating-stars {
    color: #f5a623;
    font-size: 16px;
    letter-spacing: 1px;
}

.rating-text {
    font-size: 13px;
    font-weight: 600;
    color: #20452e;
}

.rating-count {
    font-size: 12.5px;
    color: #637768;
}

/* GIÁ TIỀN & ƯU ĐÃI */
.product-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.price-current {
    font-size: 28px;
    font-weight: 800;
    color: #cb1a1a;
}

.price-original {
    font-size: 16px;
    color: #829486;
    text-decoration: line-through;
}

.price-discount-badge {
    background: #195b2f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

/* ĐOẠN MÔ TẢ NGẮN */
.product-short-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #384f40;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #dce8dc;
}

/* DANH SÁCH ĐIỂM NỔI BẬT */
.product-features-checklist {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.product-features-checklist li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #1e452c;
    font-weight: 500;
}

.product-features-checklist .check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28733d;
    color: #ffffff;
    font-size: 11px;
    flex-shrink: 0;
}

/* CHỌN SỐ LƯỢNG */
.quantity-control-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.quantity-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #1b422a;
}

.quantity-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c9d8c9;
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
}

.stepper-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #214b30;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.stepper-btn:hover {
    background: #edf4eb;
}

.stepper-input {
    width: 44px;
    height: 34px;
    border: none;
    border-left: 1px solid #e1ece0;
    border-right: 1px solid #e1ece0;
    text-align: center;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #173f27;
    outline: none;
}

/* NÚT HÀNH ĐỘNG MUA HÀNG */
.action-buttons-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-detail-add-cart {
    background: #0f4b2d;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(15, 75, 45, 0.25);
    transition: all 0.2s;
}

.btn-detail-add-cart:hover {
    background: #083720;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 75, 45, 0.35);
}

.btn-detail-buy-now {
    background: #f5be42;
    color: #133923;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(245, 190, 66, 0.3);
    transition: all 0.2s;
}

.btn-detail-buy-now:hover {
    background: #e5b035;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(245, 190, 66, 0.4);
}

/* 4. CỘT SIDEBAR BÊN PHẢI (CAM KẾT & QUẢNG CÁO) */
.product-sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* CARD CAM KẾT */
.detail-commitment-card {
    background: linear-gradient(180deg, #f7faf3 0%, #edf5eb 100%);
    border: 1px solid #dbe6d6;
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(32, 70, 40, 0.04);
}

.commitment-header {
    font-size: 14.5px;
    font-weight: 700;
    color: #174828;
    margin: 0 0 14px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0ebdc;
}

.commitment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #1d462c;
}

.commitment-item .check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2d7741;
    color: #ffffff;
    font-size: 12px;
    flex-shrink: 0;
}

.commitment-footer-note {
    font-size: 11px;
    color: #6d8272;
    text-align: center;
    margin: 14px 0 0;
    font-style: italic;
}

/* CARD BANNER KHUYẾN MÃI BÊN PHẢI */
.detail-promo-sidebar {
    background: linear-gradient(145deg, #0d3b22 0%, #175432 100%);
    border-radius: 16px;
    padding: 22px 18px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(13, 59, 34, 0.25);
}

.detail-promo-sidebar .title-script {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-style: italic;
    font-size: 21px;
    color: #f7cb43;
    margin: 0 0 4px;
    font-weight: 700;
}

.detail-promo-sidebar .title-sub {
    font-size: 12.5px;
    color: #d6e8dc;
    margin: 0 0 14px;
    font-style: italic;
}

.detail-promo-sidebar .promo-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e9c65c;
    color: #103621;
    font-weight: 700;
    font-size: 11.5px;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s;
    margin-bottom: 12px;
}

.detail-promo-sidebar .promo-link-btn:hover {
    transform: translateY(-2px);
    background: #f2d57c;
}

.detail-promo-sidebar .teacup-img {
    font-size: 38px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

/* ===================================================
   KHU VỰC TABS CHI TIẾT SẢN PHẨM PHÍA DƯỚI
   =================================================== */
.product-tabs-section {
    background: #ffffff;
    border: 1px solid #e1eae0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(18, 55, 30, 0.04);
}

.detail-tabs-header {
    display: flex;
    background: #f5f8f2;
    border-bottom: 1px solid #dfe9dc;
    padding: 6px 8px 0;
    gap: 6px;
    overflow-x: auto;
}

.tab-nav-btn {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #4b6353;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-nav-btn:hover {
    color: #174929;
    background: rgba(255, 255, 255, 0.5);
}

.tab-nav-btn.active {
    background: #ffffff;
    color: #124024;
    border-color: #dfe9dc;
    position: relative;
    font-weight: 700;
}

.tab-nav-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
}

.tab-content-panel {
    padding: 30px;
    display: none;
    font-size: 14px;
    line-height: 1.7;
    color: #2c4a37;
}

.tab-content-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NỘI DUNG MÔ TẢ & BẢNG THÔNG SỐ */
.tab-content-panel h3 {
    font-family: "Be Vietnam Pro", Arial, sans-serif;
    font-size: 20px;
    color: #113f26;
    margin: 0 0 12px;
}

.tab-content-panel p {
    margin: 0 0 14px;
    color: #3f5847;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table tr {
    border-bottom: 1px solid #e8efe6;
}

.specs-table td {
    padding: 10px 14px;
    font-size: 13.5px;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #173f27;
    width: 220px;
    background: #f7faf4;
}

.brewing-guide-list {
    margin: 14px 0;
    padding-left: 20px;
}

.brewing-guide-list li {
    margin-bottom: 8px;
    color: #274733;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .product-showcase-grid {
        grid-template-columns: 75px 360px 1fr 240px;
        gap: 16px;
    }

    .product-main-image-wrap {
        height: 420px;
    }
}

@media (max-width: 992px) {
    .product-showcase-grid {
        grid-template-columns: 75px 1fr 1fr;
    }

    .product-sidebar-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 10px;
    }

    .product-main-image-wrap {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .product-showcase-grid {
        grid-template-columns: 1fr;
    }

    .product-thumbnails-col {
        flex-direction: row;
        order: 2;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .thumb-item {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .product-main-image-col {
        order: 1;
    }

    .product-main-image-wrap {
        height: 320px;
    }

    .product-info-col {
        order: 3;
        padding-right: 0;
    }

    .product-sidebar-col {
        order: 4;
        grid-template-columns: 1fr;
    }

    .action-buttons-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-detail-add-cart, .btn-detail-buy-now {
        justify-content: center;
    }

    .tab-content-panel {
        padding: 20px 16px;
    }
}
