/**
 * Wells-Exact Premium Product Styling (v2.0)
 * Matches Wells Vietnam layout precisely
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --wells-coral: #ff6b6b;
    --wells-navy: #1a365d;
    --wells-highlight: #e74c3c;
    --wells-text: #333;
    --wells-muted: #666;
    --wells-border: #e5e7eb;
    --wells-bg: #f8fafc;
}

/* ===== GLOBAL PRODUCT PAGE ===== */
.product-page {
    font-family: 'Inter', -apple-system, sans-serif !important;
}

/* ===== GALLERY - VERTICAL THUMBS LEFT ===== */
.product-page .product-gallery-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px;
}

.product-page .flex-control-thumbs {
    order: -1 !important;
    width: 80px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.product-page .flex-control-thumbs li {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.product-page .flex-control-thumbs img {
    border: 2px solid transparent;
    border-radius: 8px;
    opacity: 0.6;
    cursor: pointer;
    transition: all 0.2s;
}

.product-page .flex-control-thumbs .flex-active img,
.product-page .flex-control-thumbs img:hover {
    border-color: var(--wells-navy);
    opacity: 1;
}

.product-page .woocommerce-product-gallery__image {
    flex: 1;
}

/* ===== PRODUCT TITLE ===== */
.product-page .product_title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: var(--wells-navy) !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

/* ===== RATING ===== */
.product-page .star-rating {
    margin-bottom: 15px !important;
}

/* ===== PRICE ===== */
.product-page .price {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: var(--wells-coral) !important;
    margin-bottom: 25px !important;
}

.product-page .price del {
    font-size: 1rem !important;
    color: #999 !important;
    font-weight: 400 !important;
}

/* ===== WELLS FEATURE BOX ===== */
.wells-feature-box {
    background: #fff;
    border: 1px solid var(--wells-border);
    border-radius: 2px;
    padding: 25px;
    margin: 25px 0;
}

.wells-feature-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wells-navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wells-fire-icon {
    font-size: 1.3rem;
}

.wells-feature-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wells-feature-list li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--wells-text);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wells-diamond {
    color: var(--wells-coral);
    font-size: 0.7rem;
    margin-top: 5px;
    flex-shrink: 0;
}

.wells-highlight {
    color: var(--wells-highlight) !important;
    font-weight: 600 !important;
}

/* ===== CTA SECTION (Callback + Buy) ===== */
.wells-cta-section {
    margin-top: 30px;
}

.wells-callback-trigger {
    display: block;
    background: var(--wells-navy);
    color: #fff !important;
    text-align: center;
    padding: 18px 20px;
    border-radius: 10px;
    text-decoration: none !important;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.wells-callback-trigger:hover {
    background: #0f2744;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.wells-callback-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.wells-callback-sub {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
    margin-top: 5px;
}

.wells-purchase-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wells-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--wells-border);
    border-radius: 8px;
    overflow: hidden;
}

.wells-qty-btn {
    width: 40px;
    height: 45px;
    background: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.wells-qty-btn:hover {
    background: var(--wells-bg);
}

.wells-qty-input {
    width: 50px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--wells-border);
    border-right: 1px solid var(--wells-border);
    font-size: 1rem;
    font-weight: 600;
}

.wells-buy-now-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background: var(--wells-coral) !important;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.35);
}

.wells-buy-now-btn:hover {
    background: #ff5252 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.45);
}

/* ===== MODAL ===== */
.wells-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wells-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    position: relative;
    text-align: center;
}

.wells-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.wells-modal-box h3 {
    color: var(--wells-navy);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.wells-modal-box p {
    color: var(--wells-muted);
    margin-bottom: 25px;
}

#wells-callback-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border: 1px solid var(--wells-border);
    border-radius: 8px;
    font-size: 1rem;
}

#wells-callback-form button {
    width: 100%;
    padding: 16px;
    background: var(--wells-coral);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

#wells-callback-form button:hover {
    background: #ff5252;
}

/* ===== HIDE DEFAULT WOO ADD TO CART (We use custom) ===== */
.wells-cta-section~.cart,
.product-page form.cart {
    display: none !important;
}

/* ===== TABS ===== */
.product-page .woocommerce-tabs {
    margin-top: 50px;
}

.product-page .woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--wells-border) !important;
    background: transparent !important;
    padding: 0 !important;
}

.product-page .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.product-page .woocommerce-tabs ul.tabs li a {
    padding: 15px 25px !important;
    color: var(--wells-muted) !important;
    font-weight: 600 !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px !important;
}

.product-page .woocommerce-tabs ul.tabs li.active a {
    color: var(--wells-navy) !important;
    border-bottom-color: var(--wells-navy) !important;
}

/* ===== MOBILE ===== */
@media (max-width: 849px) {
    .product-page .product-gallery-wrapper {
        flex-direction: column !important;
    }

    .product-page .flex-control-thumbs {
        order: 1 !important;
        width: 100% !important;
        flex-direction: row !important;
        overflow-x: auto;
    }

    .product-page .flex-control-thumbs li {
        width: 70px !important;
        flex-shrink: 0;
    }

    .product-page .product_title {
        font-size: 1.4rem !important;
    }

    .wells-purchase-row {
        flex-direction: column;
    }

    .wells-qty-wrap {
        width: 100%;
        justify-content: center;
    }

    .wells-buy-now-btn {
        width: 100%;
    }
}