/* ==========================================================================
   Product Widget
   ========================================================================== */
.product-main .product-info.summary {
    border-right: none;
}

#product-sidebar {
    padding: 0 .5rem;
}


/* ==========================================================================
   Product Tabs
   ========================================================================== */
.product-footer .product-page-sections .product-section>.row {
    flex-direction: column;
}

.woocommerce-tabs .tabs>li>a {
    background-color: transparent !important;
    color: var(--price-original-color) !important;
    font-size: 1rem !important;
    padding: 0 !important;
}

.woocommerce-tabs .tab-panels img {
    width: 60% !important;
}

/* ==========================================================================
   Variation Swatches Styling (Match Sample Image 2)
   ========================================================================== */
.variations tbody>tr {
    display: flex;
    flex-direction: column;
}

.variations tbody>tr>th.label>label {
    font-size: 1.5rem;
    text-transform: capitalize;
}

.variations td.value select.k-tech-swatch-done {
    display: none !important;
}

.k-tech-swatches-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.k-tech-swatches-wrapper .k-tech-swatch-btn,
.variations .swatch-wrapper,
.variations .ux-swatch,
.variations .swatch,
.variations .variable-item,
.variations_form .ux-swatch-button {
    border: 1px solid #d0d0d0 !important;
    border-radius: 2px !important;
    padding: 7px 16px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    text-transform: none !important;
    line-height: 1.3 !important;
}

.k-tech-swatches-wrapper .k-tech-swatch-btn:hover {
    border-color: #999999 !important;
    color: #111111 !important;
}

.k-tech-swatches-wrapper .k-tech-swatch-btn.selected,
.variations .swatch-wrapper.selected,
.variations .swatch-wrapper.active,
.variations .ux-swatch.selected,
.variations .ux-swatch.active,
.variations .variable-item.selected,
.variations_form .ux-swatch-button.selected {
    border: 2px solid #111111 !important;
    padding: 6px 15px !important;
    font-weight: 600 !important;
    color: #111111 !important;
    background-color: #ffffff !important;
}

/* ==========================================================================
   Variations Button Layout (50% / 50% / 100% Full Width)
   ========================================================================== */
.variations_button,
.single_variation_wrap .variations_button {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    width: 75% !important;
    box-sizing: border-box !important;
}

.variations_button button {
    border-radius: .5rem !important;
}

/* Thẻ 1 (Số lượng): Nửa hàng 1 (50%) */
.variations_button>*:nth-child(1) {
    flex: 1 1 calc(40% - .5rem) !important;
    max-width: calc(40% - .5rem) !important;
    width: calc(40% - .5rem) !important;
    box-sizing: border-box !important;
}

/* Thẻ 2 (Nút Add to cart / Thêm vào giỏ): Nửa hàng 1 (50%) */
.variations_button>*:nth-child(2) {
    flex: 1 1 calc(60% - .5rem) !important;
    max-width: calc(60% - .5rem) !important;
    width: calc(60% - .5rem) !important;
    box-sizing: border-box !important;
}

/* Thẻ 3 (Nút Mua ngay / Buy now): Trọn hàng 2 (100% Full Width) */
.variations_button>*:nth-child(3) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   Star Box Rating Breakdown Chart (Match Sample Image 100%)
   ========================================================================== */
.k-tech-custom-reviews .star_box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    gap: 24px;
}

.k-tech-custom-reviews .star-box-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 150px;
}

.k-tech-custom-reviews .star-box-score .score-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ff9800;
    line-height: 1;
}

.k-tech-custom-reviews .star-box-score .star-rating-icons {
    color: #ff9800;
    font-size: 1.1rem;
}

.k-tech-custom-reviews .star-box-score .count-text {
    font-size: 0.85rem;
    color: #666666;
}

.k-tech-custom-reviews .star-box-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.k-tech-custom-reviews .star-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.k-tech-custom-reviews .star-num {
    width: 32px;
    font-weight: 600;
    color: #444444;
}

.k-tech-custom-reviews .progress-bar-bg {
    flex: 1;
    height: 10px;
    background-color: #efefef;
    border-radius: 5px;
    overflow: hidden;
}

.k-tech-custom-reviews .progress-bar-fill {
    height: 100%;
    background-color: #ff9800;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.k-tech-custom-reviews .bar-stat-text {
    min-width: 110px;
    color: #d32f2f;
    font-weight: 600;
    font-size: 0.82rem;
}

.k-tech-custom-reviews .bar-stat-text.active-stat {
    color: #ff9800;
}

.k-tech-custom-reviews .star-box-action {
    display: flex;
    align-items: center;
}

.k-tech-custom-reviews .btn-write-review {
    background: #ff0000 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: background 0.2s ease !important;
}

.k-tech-custom-reviews .btn-write-review:hover {
    background: #e00000 !important;
}

/* Review Form Styling */
.review-form-wrapper-modal {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.review-form-wrapper-modal .comment-reply-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.review-form-wrapper-modal .comment-form-rating {
    margin-bottom: 12px;
}

.review-form-wrapper-modal .comment-form-rating select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.review-form-wrapper-modal input[type="submit"] {
    background: #ff0000 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 24px !important;
}

/* ==========================================================================
   Perfume Characteristics Card (Exact Color Palette Match)
   ========================================================================== */
.perfume-specs-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: solid 1px #00000010;
    border-radius: 10px;
    padding: 15px 10px;
}

.perfume-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.perfume-specs-grid.spec-grid-row2 {
    margin-top: 24px;
}

.perfume-specs-card .spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perfume-specs-card .spec-icon {
    color: #a0a0a0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
}

.perfume-specs-card .spec-icon svg {
    width: 22px;
    height: 22px;
}

.perfume-specs-card .spec-label {
    font-size: 13px;
    color: #444444;
    font-weight: 500;
    margin-bottom: 12px;
}

.perfume-specs-card .spec-bar-bg {
    width: 100%;
    height: 9px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 0.375rem;
}

.perfume-specs-card .spec-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.4s ease;
}

/* Exact Color Palette */
.perfume-specs-card .color-winter {
    background-color: #78d6f0;
}

/* Đông */
.perfume-specs-card .color-spring {
    background-color: #9fe584;
}

/* Xuân */
.perfume-specs-card .color-summer {
    background-color: #fc958a;
}

/* Hè */
.perfume-specs-card .color-autumn {
    background-color: #f9be6e;
}

/* Thu */
.perfume-specs-card .color-day {
    background-color: #fcf487;
}

/* Ngày */
.perfume-specs-card .color-night {
    background-color: #447ba3;
}

/* Đêm */

.perfume-specs-card .spec-val-text {
    font-size: 14px;
    font-weight: 700;
    color: #222222;
    margin-top: 2px;
}




/* ==========================================================================
   MIN-WIDTH (Mobile First - Ưu tiên từ thấp đến cao)
   ========================================================================== */

@media (min-width: 375px) {
    /* Mobile L */
}

@media (min-width: 430px) {
    /* Mobile XL */
}

@media (min-width: 768px) {
    /* Tablet */
}

@media (min-width: 820px) {
    /* Tablet L */
}

@media (min-width: 1024px) {
    /* Laptop / iPad Pro */
}

@media (min-width: 1280px) {
    /* Desktop */
}

@media (min-width: 1920px) {
    /* Large Desktop */
}

/* ==========================================================================
   MAX-WIDTH (Desktop First - Ưu tiên từ cao xuống thấp)
   ========================================================================== */

@media (max-width: 1920px) {
    /* Max Large Desktop */
}

@media (max-width: 1280px) {
    /* Max Desktop */
}

@media (max-width: 1024px) {
    /* Max Laptop / iPad Pro */
}

@media (max-width: 820px) {
    /* Max Tablet L */
}

@media (max-width: 768px) {
    .k-tech-custom-reviews .star_box {
        flex-direction: column;
        align-items: stretch;
    }

    .k-tech-custom-reviews .star-box-action {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .perfume-specs-card {
        padding: 16px 12px;
    }

    .perfume-specs-grid {
        gap: 8px;
    }

    .perfume-specs-card .spec-label {
        font-size: 12px;
    }

    .perfume-specs-card .spec-val-text {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    /* Max Mobile XL */
}

@media (max-width: 375px) {
    /* Max Mobile L */
}