/**
 * WooCommerce & Single Product Styles
 * @package Vimicro
 */

/* ==========================================================================
   PAGE BACKGROUND & LAYOUT
   ========================================================================== */
.single-product-page,
.single-product-page * {
    font-family: "Arial", "Helvetica Neue", Helvetica, sans-serif;
}

.single-product-page {
    background-color: #F9F9F9 !important;
    padding-bottom: 70px;
}

.single-product-page .product-detail {
    background: transparent;
}

/* ==========================================================================
   1. BREADCRUMBS
   ========================================================================== */
.single-product-page .breadcrumb-wrapper {
    padding: 18px 0;
    background: transparent;
}

.vimicro-breadcrumbs {
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.5;
}

.vimicro-breadcrumbs .breadcrumb-link {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.vimicro-breadcrumbs .breadcrumb-link:hover {
    color: #0b6b2b;
}

.vimicro-breadcrumbs .breadcrumb-sep {
    margin: 0 6px;
    color: #a0aec0;
}

.vimicro-breadcrumbs .breadcrumb-current--product {
    color: #0b6b2b;
    font-weight: 700;
}

/* ==========================================================================
   2. HEADER CART ICON & BADGE
   ========================================================================== */
.site-header .header-actions,
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-header .header-actions .header-cart-toggle,
.header-cart-toggle {
    position: relative;
    background: #005a2b;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 90, 43, 0.2);
    transition: transform 0.2s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .header-actions .header-cart-toggle:hover,
.header-cart-toggle:hover {
    background: #00421f;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 90, 43, 0.3);
}

.site-header .header-actions .header-cart-toggle svg,
.header-cart-toggle svg {
    width: 20px;
    height: 20px;
}

.site-header .header-actions .header-cart-count,
.header-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3b30;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .site-header .header-actions .header-cart-toggle,
    .header-cart-toggle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .site-header .header-actions .header-cart-toggle svg,
    .header-cart-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================================================
   3. PRODUCT DETAIL TOP ROW (2 COLUMNS GRID)
   ========================================================================== */
.product-detail .product-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 40px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .product-detail .product-top-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   4. LEFT COLUMN: GALLERY CARD
   ========================================================================== */
.product-gallery-col {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: center;
}

.product-gallery__main-image {
    position: relative;
    width: 100%;
    height: 380px;
    max-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px 0;
    padding: 0 35px;
    overflow: hidden;
}

#galleryMainImg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1e293b;
    z-index: 5;
    padding: 0;
    outline: none;
    transition: all 0.2s ease;
}

.gallery-arrow:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.gallery-arrow--prev {
    left: 4px;
}

.gallery-arrow--next {
    right: 4px;
}

.gallery-arrow svg {
    stroke: #1e293b;
}

.product-gallery__thumbs {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding: 0;
    width: 100%;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    flex: 0 0 70px;
    border-radius: 10px;
    border: 1.5px solid #eaedf1;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    outline: none;
}

.gallery-thumb.is-active {
    border: 2px solid #005a2b;
    box-shadow: none;
}

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

.gallery-thumb-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   5. RIGHT COLUMN: PRODUCT SUMMARY CARD
   ========================================================================== */
.product-summary-col {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-summary-col .product-title {
    color: #005a2b;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 14px 0;
    letter-spacing: normal;
}

.product-summary-col .product-short-desc {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 16px;
}

.product-attribute-row {
    margin-bottom: 16px;
    font-size: 15px;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-attribute-label {
    font-weight: 700;
    color: #1a202c;
}

.product-attribute-value {
    font-weight: 600;
    color: #2d3748;
}

/* ==========================================================================
   6. PRICE & DISCOUNT BADGE
   ========================================================================== */
.product-price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.product-price-current {
    color: #d32f2f;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.product-price-original {
    color: #888;
    font-size: 16px;
    text-decoration: line-through;
    font-weight: 500;
}

.product-price-badge {
    background: #b71c1c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.4;
}

.product-summary-divider {
    height: 1px;
    background: #edf2f7;
    margin: 18px 0;
}

/* ==========================================================================
   7. SOCIAL SHARE
   ========================================================================== */
.product-social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.product-share-title {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.product-share-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    text-decoration: none;
}

.social-share-btn svg {
    display: block;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.social-share-btn:hover {
    transform: translateY(-3px) scale(1.08);
}

.social-share-btn:hover svg {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   8. ACTION BUTTONS (CTA GROUP)
   ========================================================================== */
.product-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.btn-cta-advisory {
    background: #0b6b2b;
    color: #fff !important;
    border-radius: 8px;
    height: 46px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    box-shadow: 0 2px 8px rgba(11, 107, 43, 0.2);
}

.btn-cta-advisory:hover {
    background: #085020;
    transform: translateY(-1px);
}

.product-cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-cta-cart {
    background: #fff;
    border: 1.5px solid #2d6a4f;
    color: #2d6a4f;
    border-radius: 8px;
    height: 46px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cta-cart:hover {
    background: #f0fdf4;
    border-color: #0b6b2b;
    color: #0b6b2b;
}

.btn-cta-buy {
    background: #0b6b2b;
    border: 1.5px solid #0b6b2b;
    color: #fff;
    border-radius: 8px;
    height: 46px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cta-buy:hover {
    background: #1b4332;
    border-color: #1b4332;
    color: #fff;
}

/* ==========================================================================
   9. WOOCOMMERCE TOAST POPUP NOTICES (TOP-RIGHT CORNER)
   ========================================================================== */
.woocommerce-notices-wrapper {
    position: fixed !important;
    top: 95px !important;
    right: 25px !important;
    z-index: 999999 !important;
    max-width: 460px !important;
    width: calc(100vw - 40px) !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

@media (max-width: 600px) {
    .woocommerce-notices-wrapper {
        top: 75px !important;
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        max-width: none !important;
    }
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    pointer-events: auto !important;
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px 36px 16px 16px !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 16px 36px -8px rgba(0, 42, 18, 0.16), 0 4px 14px rgba(0, 0, 0, 0.05) !important;
    animation: toastSlideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease !important;
    max-height: 200px !important;
    overflow: hidden !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

/* Toast Icon Wrap */
.toast-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon-wrap.is-success {
    background: #eefbf2;
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.18);
}

.toast-icon-wrap.is-error {
    background: #fef2f2;
    color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.18);
}

.toast-icon-wrap.is-info {
    background: #eff6ff;
    color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.18);
}

/* Toast Body */
.toast-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.toast-text {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.45;
    word-break: break-word;
}

/* Toast Action Button */
.toast-actions {
    flex-shrink: 0;
}

.woocommerce-message .button.wc-forward,
.toast-actions .button.wc-forward {
    background: linear-gradient(135deg, #005a2b, #008137) !important;
    color: #ffffff !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    margin: 0 !important;
    float: none !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 8px rgba(0, 90, 43, 0.25) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

.woocommerce-message .button.wc-forward:hover,
.toast-actions .button.wc-forward:hover {
    background: linear-gradient(135deg, #00421f, #005a2b) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 12px rgba(0, 90, 43, 0.35) !important;
}

/* Toast Close Button */
.toast-close-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    border: none !important;
    color: #64748b !important;
    font-size: 14px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.toast-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: scale(1.1) !important;
}

/* Countdown Progress Bar */
.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2BBD6A, #005a2b);
    border-radius: 0 0 14px 14px;
    width: 100%;
    animation: toastProgressBar 4.5s linear forwards;
}

@keyframes toastProgressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Animations */
@keyframes toastSlideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.woocommerce-message.is-toast-dismissing,
.woocommerce-info.is-toast-dismissing,
.woocommerce-error.is-toast-dismissing {
    opacity: 0 !important;
    transform: translateX(60px) scale(0.9) !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
}

/* ==========================================================================
   10. PRODUCT BOTTOM CONTENT: BOXES & STICKY TOC
   ========================================================================== */
.product-bottom-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: start;
    margin-top: 36px;
}

@media (max-width: 991px) {
    .product-bottom-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-bottom-sidebar {
        order: -1;
    }
}

.product-bottom-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Content Box */
.product-content-box {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    padding: 26px 28px;
}

/* Section Title with Green Left Bar */
.product-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #005a2b;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    line-height: 1.35;
}

.product-section-title__bar {
    width: 4px;
    height: 22px;
    background: #00ad4b;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Ingredients Grid */
.product-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 14px;
}

.ingredient-card {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 16px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.ingredient-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #005a2b;
}

.ingredient-card__val {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}

/* Usage Note & Table */
.product-usage-note {
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
    font-weight: 500;
}

.product-usage-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Tables inside Product Content Boxes */
.product-content-box table,
.product-entry-content table,
.product-usage-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    margin: 16px 0;
}

.product-content-box table th,
.product-entry-content table th,
.product-usage-table th {
    background: #23783a;
    color: #ffffff;
    padding: 13px 14px;
    font-weight: 700;
    text-align: left;
    border: 1px solid #23783a;
}

.product-content-box table td,
.product-entry-content table td,
.product-usage-table td {
    padding: 13px 14px;
    border: 1px solid #e9edf2;
    color: #27364b;
    line-height: 1.5;
}

.product-content-box table tbody tr:hover,
.product-entry-content table tbody tr:hover,
.product-usage-table tbody tr:hover {
    background: #f8fafc;
}

/* Benefits & Descriptions */
.product-benefits-content,
.product-entry-content {
    font-size: 14px;
    color: #334155;
    line-height: 1.75;
}

.product-benefits-content ul,
.product-entry-content ul {
    padding-left: 20px;
    list-style-type: disc;
    margin: 0;
}

.product-benefits-content li,
.product-entry-content li {
    margin-bottom: 8px;
}

/* ==========================================================================
   STICKY TOC SIDEBAR & CARD
   ========================================================================== */
.product-bottom-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 120px !important;
    align-self: flex-start !important;
    height: -moz-fit-content !important;
    height: fit-content !important;
    z-index: 100 !important;
}

@media (max-width: 991px) {
    .product-bottom-sidebar {
        position: static !important;
        order: -1;
    }
}

.product-toc-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100%;
}

.product-toc-card__header {
    background: #23783a;
    padding: 14px 18px;
}

.product-toc-card__header h3 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.product-toc-card__nav ul {
    list-style: none;
    padding: 12px 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-toc-card__nav a {
    display: block;
    padding: 9px 14px;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-toc-card__nav a:hover {
    color: #00ad4b;
    background: #f0fdf4;
}

.product-toc-card__nav a.is-active {
    background: #eefbf2;
    color: #005a2b;
    font-weight: 700;
}

/* ==========================================================================
   11. CUSTOMER REVIEWS SECTION (ĐÁNH GIÁ CỦA KHÁCH HÀNG)
   ========================================================================== */
.product-reviews-section {
    margin-top: 48px;
}

/* Reviews Cards Grid */
.product-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 26px;
}

@media (max-width: 991px) {
    .product-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.review-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    padding: 22px 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.review-card__user {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.review-card__author {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.review-card__date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

.review-card__badge {
    background: #eefbf2;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.review-card__stars {
    color: #d1d5db;
    font-size: 14px;
    letter-spacing: 2px;
    display: flex;
}

.review-card__stars .star-icon.filled {
    color: #f59e0b;
}

.review-card__content {
    font-size: 13.5px;
    color: #334155;
    line-height: 1.6;
}

/* Reviews Bottom Area (Form + Statistics 2 Columns) */
.product-reviews-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin-top: 16px;
}

@media (max-width: 860px) {
    .product-reviews-bottom {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Review Columns General Layout */
.product-review-form-box,
.product-review-stats-box {
    display: flex;
    flex-direction: column;
}

.review-column-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    min-height: 46px;
    margin-bottom: 12px;
    gap: 12px;
}

.review-column-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.review-column-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.review-stats-total-badge {
    font-size: 13px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.review-stats-total-badge strong {
    font-weight: 700;
    color: #0f172a;
}

/* Left Column: Form Card */
.product-review-form-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-review-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.review-rating-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.review-rating-picker .rating-label {
    font-size: 13.5px;
    color: #475569;
    font-weight: 500;
}

.star-rating-select {
    display: inline-flex;
    gap: 3px;
}

.star-rating-select .star-btn {
    font-size: 18px;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
    user-select: none;
}

.star-rating-select .star-btn.active {
    color: #f59e0b;
}

.star-rating-select .star-btn:hover {
    transform: scale(1.15);
}

.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

@media (max-width: 520px) {
    .review-form-row {
        grid-template-columns: 1fr;
    }
}

.review-input,
.review-textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #1e293b;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-input:focus,
.review-textarea:focus {
    border-color: #0b6b2b;
    box-shadow: 0 0 0 3px rgba(11, 107, 43, 0.1);
}

.review-textarea {
    resize: vertical;
    min-height: 70px;
    margin-bottom: 10px;
}

.review-form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
}

.btn-submit-review {
    background: #005a2b;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 9px 22px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-submit-review:hover {
    background: #00421f;
    transform: translateY(-1px);
}

/* Right Column: Rating Statistics Card */
.review-stats-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stats-card__main {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    padding: 10px 0;
}

@media (max-width: 520px) {
    .review-stats-card__main {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 6px 0;
    }
}

.review-stats-score-col {
    flex-shrink: 0;
    min-width: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.review-stats-score-val {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.score-main {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.5px;
}

.score-max {
    font-size: 17px;
    font-weight: 600;
    color: #94a3b8;
    font-style: italic;
}

.review-stats-stars {
    margin: 6px 0 4px 0;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.review-stats-stars .star-icon {
    color: #e2e8f0;
    font-size: 15px;
}

.review-stats-stars .star-icon.filled {
    color: #f59e0b;
}

.review-stats-satisfaction {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}

.review-stats-bars-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
}

.rating-bar-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    width: 26px;
    font-weight: 600;
    color: #475569;
    font-size: 12.5px;
}

.rating-bar-label .star-symbol {
    color: #f59e0b;
    font-size: 12px;
}

.rating-bar-track {
    flex: 1;
    height: 7px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #f59e0b;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.rating-bar-count {
    width: 20px;
    text-align: right;
    font-weight: 500;
    color: #64748b;
    font-size: 12px;
}

.review-stats-card__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px dashed #e2e8f0;
    font-size: 12px;
    color: #16a34a;
    font-weight: 500;
}

/* Empty Reviews State */
.product-reviews-grid.is-empty {
    display: block;
}

.product-reviews-empty {
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-reviews-empty svg {
    margin-bottom: 4px;
}

.product-reviews-empty p {
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    margin: 0;
}

.product-reviews-empty span {
    font-size: 13px;
    color: #94a3b8;
}

/* Form Alert Messages */
.review-form-message {
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    margin-bottom: 14px;
    font-weight: 500;
}

.review-form-message.is-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.review-form-message.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

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