
/* ==========================================
   BTY | Bilingual Quote System
   WooCommerce + XTRA Theme
   Version 2.0
========================================== */

:root {
    --bty-primary: #ee0000;
    --bty-primary-hover: #c90000;
    --bty-success: #159e50;
    --bty-success-hover: #107d3f;
    --bty-dark: #202020;
    --bty-text: #505050;
    --bty-muted: #777777;
    --bty-border: #e8e8e8;
    --bty-bg: #ffffff;
    --bty-light: #f7f7f7;
    --bty-radius: 12px;
}

/* ==========================================
   1. HIDE PRODUCT PAGE BANNER
========================================== */

.single-product .page_cover {
    display: none !important;
}

/* ==========================================
   2. HIDE WOOCOMMERCE PRICES
========================================== */

.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol,
.price_slider_wrapper,
.widget_price_filter,
.cart_totals,
.order-total,
.woocommerce-variation-price,
.woocommerce-variation .price,
.cz-sticky-add-to-cart .price {
    display: none !important;
}

/* ==========================================
   3. HIDE SHOPPING ELEMENTS
========================================== */

.cz-sticky-add-to-cart,
.codevz-product-live-cart,
.codevz-added-to-cart-notif,
.xtra-add-to-wishlist,
.xtra-add-to-compare,
.xtra-product-quick-view {
    display: none !important;
}

/* ==========================================
   4. PRODUCT QUOTE BUTTONS
========================================== */

.woocommerce a.bty-quote-btn,
.woocommerce a.button.bty-quote-btn,
.woocommerce a.button.add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.single-product .summary .single_add_to_cart_button {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 45px;
    padding: 12px 22px !important;

    background: var(--bty-primary) !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 8px !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    text-align: center !important;
    text-decoration: none !important;

    box-shadow: none !important;
    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.woocommerce a.bty-quote-btn:hover,
.woocommerce a.button.bty-quote-btn:hover,
.woocommerce a.button.add_to_cart_button:hover,
.woocommerce .single_add_to_cart_button:hover,
.single-product .summary .single_add_to_cart_button:hover {

    background: var(--bty-primary-hover) !important;
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow: 0 5px 15px rgba(238,0,0,0.12) !important;
}

/* Variable product forms */

.single-product form.cart {
    margin-top: 20px;
}

.single-product form.cart .quantity input.qty {
    min-height: 45px;
    border-radius: 8px;
    text-align: center;
}

.single-product .variations select {
    width: 100%;
    border: 1px solid var(--bty-border);
    border-radius: 8px;
    padding: 10px;
}

/* Product cards */

.woocommerce ul.products li.product .bty-quote-btn {
    max-width: 100%;
    margin-top: 12px !important;
}

/* ==========================================
   5. QUOTE PAGE CONTAINER
========================================== */

.bty-quote,
.bty-quote * {
    box-sizing: border-box;
}

.bty-quote {

    width: 100%;
    max-width: 1100px;

    margin: 35px auto;
    padding: 24px;

    background: var(--bty-bg);
    color: var(--bty-dark);

    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

/* RTL */

.bty-quote[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* LTR */

.bty-quote[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* ==========================================
   6. HEADING
========================================== */

.bty-quote-heading {
    margin-bottom: 12px;
}

.bty-quote h2 {

    margin: 0 0 10px;

    color: var(--bty-dark);

    font-size: clamp(23px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.4;
}

.bty-quote-intro {

    margin: 0 0 25px;

    color: var(--bty-text);

    font-size: 15px;
    line-height: 1.9;
}

/* ==========================================
   7. PRODUCT LIST
========================================== */

.bty-quote-items {

    display: grid;
    gap: 14px;

    width: 100%;
    margin: 25px 0;
}

/* ==========================================
   8. PRODUCT CARD
========================================== */

.bty-quote-item {

    display: grid;

    grid-template-columns:
        100px
        minmax(0, 1fr)
        120px
        65px;

    align-items: center;
    gap: 18px;

    width: 100%;
    min-width: 0;

    padding: 18px;

    background: #ffffff;

    border: 1px solid var(--bty-border);
    border-radius: var(--bty-radius);

    box-shadow: 0 2px 10px rgba(0,0,0,0.025);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.bty-quote-item:hover {
    border-color: #dddddd;
    box-shadow: 0 6px 22px rgba(0,0,0,0.05);
}

/* ==========================================
   9. PRODUCT IMAGE
========================================== */

.bty-quote-image {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100px;
    height: 100px;

    border-radius: 10px;

    background: #fafafa;
    overflow: hidden;
}

.bty-quote-image img {

    display: block;

    width: 90px !important;
    height: 90px !important;

    max-width: 100% !important;

    object-fit: contain;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    box-shadow: none !important;
}

/* ==========================================
   10. PRODUCT INFORMATION
========================================== */

.bty-quote-info {

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    gap: 6px;
}

.bty-quote[dir="rtl"] .bty-quote-info {
    align-items: flex-start;
    text-align: right;
}

.bty-quote[dir="ltr"] .bty-quote-info {
    text-align: left;
}

.bty-quote-name {

    display: block;

    color: var(--bty-dark) !important;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.7;

    text-decoration: none !important;

    transition: color 0.2s ease;
}

.bty-quote-name:hover {
    color: var(--bty-primary) !important;
}

.bty-quote-info small {

    display: block;

    color: var(--bty-muted);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.bty-quote-specs {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ==========================================
   11. QUANTITY FIELD
========================================== */

.bty-quote-qty {

    display: flex;
    flex-direction: column;

    gap: 7px;

    width: 100%;

    color: var(--bty-text);

    font-size: 13px;
    font-weight: 600;
}

.bty-quote-qty input {

    display: block;

    width: 100% !important;
    min-width: 0 !important;
    height: 45px !important;

    margin: 0 !important;
    padding: 8px 10px !important;

    background: #ffffff !important;
    color: var(--bty-dark) !important;

    border: 1px solid #dddddd !important;
    border-radius: 8px !important;

    font-size: 15px !important;
    font-weight: 600 !important;

    text-align: center !important;

    box-shadow: none !important;
    outline: none;

    transition: border-color 0.2s ease;
}

.bty-quote-qty input:focus {
    border-color: var(--bty-primary) !important;
}

/* ==========================================
   12. REMOVE BUTTON
========================================== */

.bty-quote-remove {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 4px;

    color: var(--bty-primary) !important;

    font-size: 13px;
    font-weight: 700;

    text-align: center;
    text-decoration: none !important;

    transition: color 0.2s ease;
}

.bty-quote-remove:hover {
    color: var(--bty-primary-hover) !important;
}

/* ==========================================
   13. QUOTE SUMMARY
========================================== */

.bty-quote-summary {

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 18px 0;
    padding: 17px 20px;

    background: var(--bty-light);

    border: 1px solid var(--bty-border);
    border-radius: 10px;

    color: var(--bty-dark);
    font-size: 15px;
    font-weight: 600;
}

.bty-quote-summary strong {

    color: var(--bty-primary);

    font-size: 21px;
    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

/* ==========================================
   14. NOTES
========================================== */

.bty-quote-hint {

    margin: 14px 0;

    color: var(--bty-muted);

    font-size: 13px;
    font-weight: 400;
    line-height: 1.9;
}

/* ==========================================
   15. BUTTONS
========================================== */

.bty-quote .bty-quote-whatsapp,
.bty-quote .bty-quote-secondary {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 48px;

    padding: 13px 24px !important;

    border-radius: 9px !important;

    font-family: inherit;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;

    text-align: center !important;
    text-decoration: none !important;

    cursor: pointer;

    box-shadow: none !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

/* ==========================================
   16. SEND QUOTE BUTTON
========================================== */

.bty-quote .bty-quote-whatsapp {

    background: var(--bty-success) !important;
    color: #ffffff !important;

    border: 1px solid var(--bty-success) !important;
}

.bty-quote .bty-quote-whatsapp:hover {

    background: var(--bty-success-hover) !important;
    color: #ffffff !important;

    border-color: var(--bty-success-hover) !important;

    transform: translateY(-2px);
}

/* ==========================================
   17. SECONDARY BUTTON
========================================== */

.bty-quote .bty-quote-secondary {

    background: #f5f5f5 !important;
    color: var(--bty-dark) !important;

    border: 1px solid #dedede !important;
}

.bty-quote .bty-quote-secondary:hover {

    background: #eaeaea !important;
    color: var(--bty-dark) !important;

    transform: translateY(-2px);
}

/* ==========================================
   18. UPDATE BUTTON
========================================== */

.bty-quote .bty-update-btn {
    margin: 10px 0 20px !important;
}

/* ==========================================
   19. ACTIONS
========================================== */

.bty-quote-actions {

    display: flex;
    align-items: stretch;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 15px;
    padding-top: 20px;

    border-top: 1px solid var(--bty-border);
}

.bty-quote-actions .bty-quote-whatsapp {
    flex: 1 1 240px;
}

.bty-quote-actions .bty-quote-secondary {
    flex: 0 1 auto;
}

/* ==========================================
   20. EMPTY QUOTE
========================================== */

.bty-quote-empty {

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 15px;

    padding: 35px 25px;

    background: var(--bty-light);

    border: 1px dashed #dedede;
    border-radius: 12px;
}

.bty-quote-empty p {
    margin: 0;
    color: var(--bty-text);
    line-height: 1.8;
}

/* ==========================================
   21. HEADER QUOTE LINK
========================================== */

.bty-quote-nav {

    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: var(--bty-primary) !important;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none !important;

    transition: color 0.25s ease;
}

.bty-quote-nav:hover {
    color: var(--bty-primary-hover) !important;
}

.bty-quote-nav span {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 25px;
    height: 25px;

    padding: 3px 5px;

    background: #fff0f0;
    color: var(--bty-primary);

    border-radius: 6px;

    font-size: 12px;
}

/* ==========================================
   22. TABLET
========================================== */

@media (max-width: 900px) {

    .bty-quote {
        padding: 18px;
    }

    .bty-quote-item {

        grid-template-columns:
            85px
            minmax(0, 1fr)
            100px
            55px;

        gap: 12px;
        padding: 14px;
    }

    .bty-quote-image {
        width: 85px;
        height: 85px;
    }

    .bty-quote-image img {
        width: 78px !important;
        height: 78px !important;
    }
}

/* ==========================================
   23. MOBILE
========================================== */

@media (max-width: 650px) {

    .bty-quote {

        margin: 18px auto;
        padding: 12px;
    }

    .bty-quote h2 {
        font-size: 22px;
    }

    .bty-quote-intro {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .bty-quote-items {
        gap: 12px;
        margin: 18px 0;
    }

    .bty-quote-item {

        grid-template-columns:
            76px
            minmax(0, 1fr);

        gap: 12px;

        padding: 14px;

        border-radius: 10px;
    }

    .bty-quote-image {

        width: 76px;
        height: 76px;

        grid-column: 1;
        grid-row: 1;
    }

    .bty-quote-image img {

        width: 70px !important;
        height: 70px !important;
    }

    .bty-quote-info {

        grid-column: 2;
        grid-row: 1;

        min-width: 0;
    }

    .bty-quote-name {
        font-size: 14px;
        line-height: 1.6;
    }

    .bty-quote-info small {
        font-size: 12px;
    }

    .bty-quote-qty {

        grid-column: 1 / 2;
        grid-row: 2;

        align-self: end;
    }

    .bty-quote-qty input {
        height: 42px !important;
    }

    .bty-quote-remove {

        grid-column: 2 / 3;
        grid-row: 2;

        justify-self: end;
        align-self: end;

        min-height: 42px;
    }

    .bty-quote-summary {
        padding: 14px;
        font-size: 14px;
    }

    .bty-quote-summary strong {
        font-size: 18px;
    }

    .bty-quote-actions {
        flex-direction: column;
    }

    .bty-quote-actions .bty-quote-whatsapp,
    .bty-quote-actions .bty-quote-secondary {

        width: 100% !important;
        flex: 0 0 auto;
    }

    .bty-quote .bty-update-btn {
        width: 100% !important;
    }

    .single-product .summary
    .single_add_to_cart_button {

        width: 100% !important;
    }

    .woocommerce ul.products li.product
    .bty-quote-btn {

        width: 100% !important;

        padding: 10px 12px !important;

        font-size: 13px !important;
    }
}

/* ==========================================
   24. REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .bty-quote *,
    .bty-quote-btn {

        transition: none !important;
        animation: none !important;
    }
}