/*
Theme Name: Bee1 Ultra Child — ytzadik
Theme URI: https://studiobee1.com
Description: ytzadik.co.il child of Bee1 Ultra Theme. Carries the site's own CSS and the
 WooCommerce / WPT / bee1-ajax-filters behaviour ported from the previous hello-elementor child.
Author: Studio Bee1
Author URI: https://studiobee1.com
Template: bee1-ultra-theme
Version: 1.6.7
Text Domain: bee1-ultra-child-ytzadik
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Add your custom styles here */



/* Move category description bottom margin/padding */
.tax-product_cat .term-description {
    padding-top: 50px;
    clear: both;
}


/* Fix product tables styling, remove dark blue backgrounds and floating mini-carts */
/* --- PREMIUM ALL-WHITE TALLIT DESIGN SYSTEM --- */

/* 1. Main table wrapper & container styling */
div.wpt-wrap,
div.wpt_table_tag_wrapper,
body.wpt_table_body .wpt-wrap,
table#wpt_table.wpt-table-tag,
table.wpt_table,
.advance_table_wrapper,
.wpt-new-footer-cart,
.wpt_temporary_table_2483 {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    border-radius: 8px !important;
}

/* 2. Table Header styling */
body.wpt_table_body .wpt-wrap .wpt-table-tag thead.wpt-tr-tag.wpt_table_header_row th,
.wpt-wrap .wpt-table-tag.wpt-tbl thead,
table.wpt_table thead tr th,
table#wpt_table thead tr th,
.wpt_table_header_row th {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #08214d !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 16px !important;
    text-align: right !important;
    border-bottom: 2px solid #00a6e0 !important; /* Elegant blue accent line */
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

/* 3. Table Rows & Cells styling */
body.wpt_table_body .wpt-wrap table:not( .has-background ) .wpt-tbody-tag .wpt-td-tag,
div.wpt-wrap .wpt-table-tag.wpt_product_table .wpt-tbody-tag.wpt-tr-tag.wpt_row>.wpt-td-tag,
table.wpt_table tbody tr td,
table#wpt_table tbody tr td {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1e293b !important;
    font-size: 15px !important;
    padding: 16px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
}

/* Hover effect on table rows */
table.wpt_table tbody tr:hover td,
table#wpt_table tbody tr:hover td {
    background-color: #f8fafc !important;
}

/* Product title color */
table.wpt_table tbody tr td.wpt_product_title a,
table#wpt_table tbody tr td.wpt_product_title a,
table.wpt_table tbody tr td a,
table#wpt_table tbody tr td a {
    color: #08214d !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

table.wpt_table tbody tr td.wpt_product_title a:hover,
table#wpt_table tbody tr td.wpt_product_title a:hover {
    color: #00a6e0 !important;
}

/* Price text */
body.wpt_table_body .wpt-wrap span.wpt_product_price .amount,
body.wpt_table_body .wpt-wrap span.wpt_product_price,
table.wpt_table td.wpt_price span,
table#wpt_table td.wpt_price span {
    color: #08214d !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* Checkbox and label text styling */
body.wpt_table_body .wpt-wrap .all_check_header_footer.all_check_header>span,
body.wpt_table_body .wpt-wrap .all_check_header_footer>span,
.all_check_header_footer span,
label.wpt-checkbox-item .wpt-checkbox-label {
    color: #475569 !important;
    font-weight: 600 !important;
}

/* 4. Quantity Selector Styling (plus/minus) */
body.wpt_table_body .wpt-wrap .qib-button-wrapper .minus.qib-button, 
body.wpt_table_body .wpt-wrap .qib-button-wrapper .plus.qib-button {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

body.wpt_table_body .wpt-wrap .qib-button-wrapper .minus.qib-button:hover, 
body.wpt_table_body .wpt-wrap .qib-button-wrapper .plus.qib-button:hover {
    background: #cbd5e1 !important;
    color: #0f172a !important;
}

body.wpt_table_body .wpt-wrap .qib-button-wrapper input.qty {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    height: 32px !important;
    font-weight: 600 !important;
}

/* 5. Add to Cart Buttons styling (Vibrant Sky Blue matching header) */
body.wpt_table_body .wpt-wrap .wpt-table-tag .wpt-tbody-tag .wpt-tr-tag a.button.add_to_cart_button,
body.wpt_table_body .wpt-wrap .wpt-table-tag .wpt-tbody-tag .wpt-tr-tag .button.single_add_to_cart_button,
body.wpt_table_body .wpt-wrap .wpt_action .wpt_woo_add_cart_button,
a.button.wpt_woo_add_cart_button,
.wpt_woo_add_cart_button,
.add_to_cart_all_selected {
    background-color: #00a6e0 !important;
    background: #00a6e0 !important;
    color: #ffffff !important;
    border: 1px solid #00a6e0 !important;
    border-radius: 30px !important;
    padding: 8px 18px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(0, 166, 224, 0.15) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

body.wpt_table_body .wpt-wrap .wpt-table-tag .wpt-tbody-tag .wpt-tr-tag a.button.add_to_cart_button:hover,
body.wpt_table_body .wpt-wrap .wpt-table-tag .wpt-tbody-tag .wpt-tr-tag .button.single_add_to_cart_button:hover,
body.wpt_table_body .wpt-wrap .wpt_action .wpt_woo_add_cart_button:hover,
a.button.wpt_woo_add_cart_button:hover,
.wpt_woo_add_cart_button:hover,
.add_to_cart_all_selected:hover {
    background-color: #0082b2 !important;
    background: #0082b2 !important;
    color: #ffffff !important;
    border-color: #0082b2 !important;
    box-shadow: 0 4px 8px rgba(0, 130, 178, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* Custom styles for disabled/sold out button */
body.wpt_table_body .wpt-wrap .wpt-table-tag .wpt-tbody-tag .wpt-tr-tag .wpt_woo_add_cart_button.disabled {
    background-color: #cbd5e1 !important;
    background: #cbd5e1 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Hide check/uncheck background */
.all_check_header_footer {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    padding: 10px 16px !important;
}

/* 6. Hide messy WPT floating footer cart and icons globally */
.wpt-footer-cart-wrapper,
.wpt_footer_cart,
#wpt_footer_cart,
.wpt-cart-icon-wrapper,
div[class*="wpt_footer_cart"],
.wpt-new-footer-cart {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 7. Mobile Responsive Stacked Card Layout (max-width: 768px) */
@media (max-width: 768px) {
    /* Force table elements to display as block cards */
    .wpt-wrap table#wpt_table,
    .wpt-wrap table#wpt_table thead,
    .wpt-wrap table#wpt_table tbody,
    .wpt-wrap table#wpt_table tr,
    .wpt-wrap table#wpt_table td,
    table.wpt_table,
    table.wpt_table thead,
    table.wpt_table tbody,
    table.wpt_table tr,
    table.wpt_table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hide table header on mobile */
    .wpt-wrap table#wpt_table thead,
    table.wpt_table thead {
        display: none !important;
    }

    /* Each row becomes an elegant white card */
    .wpt-wrap table#wpt_table tbody tr,
    table.wpt_table tbody tr {
        background-color: #ffffff !important;
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 12px !important;
        padding: 16px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        text-align: right !important;
    }

    /* Remove padding and borders from individual cells */
    .wpt-wrap table#wpt_table tbody tr td,
    table.wpt_table tbody tr td {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        text-align: right !important;
        display: block !important;
        width: 100% !important;
    }

    /* Tying type title style */
    .wpt-wrap table#wpt_table tbody tr td.wpt_product_title,
    table.wpt_table tbody tr td.wpt_product_title {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #08214d !important;
        line-height: 1.4 !important;
        margin-bottom: 2px !important;
    }

    /* Price styling with Hebrew prefix */
    .wpt-wrap table#wpt_table tbody tr td.wpt_price,
    table.wpt_table tbody tr td.wpt_price {
        font-size: 15px !important;
        color: #475569 !important;
        margin-bottom: 6px !important;
    }

    .wpt-wrap table#wpt_table tbody tr td.wpt_price::before,
    table.wpt_table tbody tr td.wpt_price::before {
        content: "מחיר: " !important;
        font-weight: 600 !important;
        color: #64748b !important;
    }

    /* Action cell (Quantity + Button) layout */
    .wpt-wrap table#wpt_table tbody tr td.wpt_action,
    table.wpt_table tbody tr td.wpt_action {
        display: flex !important;
        flex-direction: row !important; /* Flow right-to-left in RTL */
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        border-top: 1px dashed #f1f5f9 !important;
        padding-top: 12px !important;
        margin-top: 4px !important;
    }

    /* Style and size quantity selector to fit neatly on mobile */
    .wpt-wrap table#wpt_table tbody tr td.wpt_action .qib-button-wrapper,
    .wpt-wrap table#wpt_table tbody tr td.wpt_action div.quantity,
    table.wpt_table tbody tr td.wpt_action .qib-button-wrapper,
    table.wpt_table tbody tr td.wpt_action div.quantity {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    /* Add to cart button takes up remaining space and is styled nicely */
    .wpt-wrap table#wpt_table tbody tr td.wpt_action a.button.wpt_woo_add_cart_button,
    .wpt-wrap table#wpt_table tbody tr td.wpt_action .wpt_woo_add_cart_button,
    table.wpt_table tbody tr td.wpt_action a.button.wpt_woo_add_cart_button,
    table.wpt_table tbody tr td.wpt_action .wpt_woo_add_cart_button {
        flex: 1 !important;
        text-align: center !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        display: inline-block !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   Ported from the Customizer "Additional CSS" of the old hello-elementor child
   (custom_css post 13561). Theme mods and custom_css are stored PER THEME, so
   this CSS would have silently disappeared on the theme switch — it lives in
   the child stylesheet now, where it is versioned with the rest of the theme.
   Ported 2026-09-09.
   ========================================================================== */

body,
.elementor-widget-woocommerce-cart .woocommerce,
.elementor-widget-woocommerce-checkout-page {
    font-family: 'Assistant' !important;
}

#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a {
    font-size: 150%;
    padding-left: 5px;
    border-radius: 0 15px 15px 0;
    border: 1px solid white;
}

.single-product div#footer_link_wrapper .bee1-whatsapp-link {
    background: transparent !important;
}

div#footer_link_wrapper {
    width: auto;
    bottom: 30px !important;
    right: 30px !important;
}

@media (min-width: 320px) and (max-width: 737px) {
    div#footer_link_wrapper div#linkopener img {
        width: 65px !important;
    }
}


/* ==========================================================================
   Tying selector + Woo Product Table cleanup — 2026-09-09
   ========================================================================== */

/* --- 1. the tying radio inside the add-to-cart form ---------------------- */

.wapf-field-container .wapf-field-label label,
.wapf .wapf-field-label label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.wapf-field-description {
    font-size: 14px;
    line-height: 1.6;
    color: #5b6470;
    margin-bottom: 10px;
}

.wapf-radios {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 767px) {
    .wapf-radios {
        grid-template-columns: 1fr;
    }
}

.wapf-radios .wapf-checkable {
    margin: 0;
}

.wapf-radios .wapf-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.wapf-radios .wapf-input-label:hover {
    border-color: #00BBFD;
    background: #f6fcff;
}

.wapf-radios .wapf-checked .wapf-input-label,
.wapf-radios .wapf-input-label:focus-within {
    border-color: #00BBFD;
    background: #f2faff;
    box-shadow: inset 0 0 0 1px #00BBFD;
}

.wapf-radios input[type="radio"] {
    accent-color: #00BBFD;
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}

/* the "(+35₪)" hint should read as a price, not as body copy */
.wapf-radios .wapf-pricing-hint,
.wapf .wapf-pricing-hint {
    margin-inline-start: auto;
    font-weight: 700;
    font-size: 14px;
    color: #0a7f9c;
    white-space: nowrap;
}

/* --- 2. hide the duplicate tying table on products that now have the radio */

.bee1-has-tying-field .elementor-widget-wpt-table,
.bee1-has-tying-field .wpt-elementor-wrapper-2483 {
    display: none !important;
}

/* The heading above the table introduced it, so the whole block goes together.
   Targeted by the container's own Elementor id (deterministic in every browser);
   the :has() rule is a fallback if that container is ever rebuilt with a new id. */
.bee1-has-tying-field .elementor-element-tying_container_6a16e855b9634,
.bee1-has-tying-field .elementor-element:has(.wpt-elementor-wrapper-2483) {
    display: none !important;
}

/* --- 3. Woo Product Table: it is still used inside the tying popup -------- */

/* "סמן הכל / בטל סימון" and the bulk button are dead controls here: the table is
   configured with wpt_no_checked_table, so there are no row checkboxes to select,
   and a shopper picks exactly one tying anyway. */
.all_check_header_footer,
.all_check_header,
.all_check_footer,
.wpt_check_universal,
label[for^="wpt_check_uncheck_button"],
a.add_to_cart_all_selected,
a.add2c_selected {
    display: none !important;
}

/* the table shipped with a navy "blue_table" skin that matched nothing else on the site */
.wpt_product_table.blue_table thead th,
.wpt-table-tag.blue_table thead th {
    background: #f4f7f9 !important;
    color: #1d2530 !important;
    border-bottom: 2px solid #00BBFD !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.wpt_product_table.blue_table td,
.wpt-table-tag.blue_table td {
    font-size: 15px !important;
    border-color: #edf1f4 !important;
}

.wpt_product_table .wpt_product_title a {
    color: #1d2530 !important;
    font-weight: 600;
}

.wpt_product_table .button,
.wpt_product_table .add_to_cart_button {
    background: #00BBFD !important;
    border-color: #00BBFD !important;
    color: #fff !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

.wpt_product_table .button:hover,
.wpt_product_table .add_to_cart_button:hover {
    background: #0a7f9c !important;
    border-color: #0a7f9c !important;
}

/* --- 4. the tying popup: white sheet, cyan only as an accent ------------- */

.elementor-popup-modal .dialog-message .ultraaddons-product-table,
.elementor-popup-modal .wpt_product_table_wrapper {
    background: #fff;
    border-radius: 12px;
}


/* ==========================================================================
   Elementor views own their own spacing — the theme wrapper contributes none.
   Paired with the `full-width-content` body class added in functions.php.
   ========================================================================== */

.full-width-content .site-content,
.full-width-content .content-area,
.full-width-content .site-main,
.full-width-content .inside-article {
    padding: 0;
    margin: 0;
    max-width: none;
}

.full-width-content .container.grid-container,
.full-width-content .site-content .grid-container {
    max-width: 100%;
    width: 100%;
}

.full-width-content .entry-header,
.full-width-content .page-header {
    display: none;
}


/* ==========================================================================
   Product gallery: thumbnails as a vertical strip beside the main image — 2026-09-10
   WooCommerce's flexslider puts the thumbs in a row UNDER the image, which pushes the
   whole product summary below the first screen. In RTL a flex row places the first
   child (the image) on the right and the thumbs on the left, exactly as asked. The
   gallery is capped so image + title + price + add-to-cart fit one desktop viewport.
   ========================================================================== */

.single-product .woocommerce-product-gallery {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    max-height: min(70vh, 640px);
    width: 100% !important;
    float: none !important;
    margin-bottom: 0 !important;
}

.single-product .woocommerce-product-gallery .flex-viewport,
.single-product .woocommerce-product-gallery__wrapper {
    flex: 1 1 auto;
    min-width: 0;
    max-height: min(70vh, 640px);
    border-radius: 14px;
    overflow: hidden;
    background: #F3F7FA;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img.wp-post-image {
    width: 100% !important;
    height: auto;
    max-height: min(70vh, 640px);
    object-fit: contain;
}

.single-product ol.flex-control-thumbs {
    flex: 0 0 76px;
    display: flex !important;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    max-height: min(70vh, 640px);
    overflow-y: auto;
    scrollbar-width: none;
}
.single-product ol.flex-control-thumbs::-webkit-scrollbar { display: none; }

.single-product ol.flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product ol.flex-control-thumbs li img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    opacity: .75;
    cursor: pointer;
    transition: opacity .15s, border-color .15s;
}
.single-product ol.flex-control-thumbs li img:hover,
.single-product ol.flex-control-thumbs li img.flex-active {
    opacity: 1;
    border-color: #00BBFD;
}

/* the zoom trigger sits on the image, keep it there */
.single-product .woocommerce-product-gallery__trigger { z-index: 5; }

/* phones: image on top, thumbs as a swipeable row underneath */
@media (max-width: 767px) {
    .single-product .woocommerce-product-gallery { flex-direction: column; max-height: none; }
    .single-product .woocommerce-product-gallery .flex-viewport,
    .single-product .woocommerce-product-gallery__wrapper { max-height: 62vh; }
    .single-product ol.flex-control-thumbs { flex: none; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .single-product ol.flex-control-thumbs li { width: 64px !important; flex: 0 0 64px; }
}
