/*
Theme Name: MK Digital Child
Theme URI: https://mkdigital.co.il/
Author: MK Digital
Author URI: https://mkdigital.co.il/
Description: Custom WooCommerce theme developed by MK Digital
Template: mkdigital
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: mkdigital-child
*/

/* Ensure product wrapper has relative positioning */
.product .product-wrapper {
    position: relative !important;
}

/* Wishlist button positioning - Updated z-index to 5 */
.product .wishlist-wrapper {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 5 !important; /* Changed from 992 to 5 */
}

/* Style the wishlist button */
.product .wishlist-wrapper a.ts-add-to-wishlist,
.product .wishlist-wrapper a.ts-remove-from-wishlist {
    display: inline-block !important;
    width: 55px !important;
    height: 55px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50% !important;
    text-align: center !important;
    line-height: 55px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    font-size: 0 !important; /* Hide any text */
}

.product .wishlist-wrapper a.ts-add-to-wishlist:hover,
.product .wishlist-wrapper a.ts-remove-from-wishlist:hover {
    background: #fff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
}

/* Heart icon styling - Font Awesome */
.product .wishlist-wrapper .heart-icon {
    font-size: 24px !important;
    line-height: 55px !important;
    display: inline-block !important;
}

/* Empty heart - black */
.product .wishlist-wrapper a.ts-add-to-wishlist .heart-icon {
    color: #333 !important;
}

/* Filled heart - red */
.product .wishlist-wrapper a.ts-remove-from-wishlist .heart-icon,
.product .wishlist-wrapper a.added .heart-icon {
    color: #e74c3c !important;
}

/* ========================================
   WISHLIST SIDEBAR STYLES
   ======================================== */

/* Wishlist Sidebar Container */
.wishlist-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100dvh;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    direction: rtl;
    border: 2px solid red; /* Debug border */
}

.wishlist-sidebar.open {
    right: 0;
}

/* Sidebar Header */
.wishlist-sidebar-header {
    background: linear-gradient(135deg, #1b8058, #2ecc71);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wishlist-sidebar-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-sidebar-title i {
    font-size: 20px;
}

.wishlist-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: normal;
}

.wishlist-sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.wishlist-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidebar Content */
.wishlist-sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wishlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Empty State */
.wishlist-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.wishlist-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.wishlist-empty p {
    margin: 0;
    font-size: 16px;
}

/* Wishlist Item */
/* .wishlist-item styles moved to wishlist-sidebar.css */

/* All .wishlist-item styles moved to wishlist-sidebar.css */

/* Sidebar Footer */
.wishlist-sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wishlist-view-all-btn,
.wishlist-add-all-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wishlist-view-all-btn {
    background: #3498db;
    color: white;
}

.wishlist-view-all-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.wishlist-add-all-btn {
    background: #f39c12;
    color: white;
}

.wishlist-add-all-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.wishlist-add-all-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar Trigger Button */
.wishlist-sidebar-trigger {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1b8058, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(27, 128, 88, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.wishlist-sidebar-trigger:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(27, 128, 88, 0.4);
}

.wishlist-sidebar-trigger i {
    color: white;
    font-size: 24px;
}

.wishlist-trigger-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

.wishlist-trigger-count:empty {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wishlist-sidebar {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    .wishlist-sidebar-header {
        padding: 15px 20px;
    }

    .wishlist-sidebar-title {
        font-size: 16px;
    }

    /* Wishlist mobile styles moved to wishlist-sidebar.css */
}

/* Overlay when sidebar is open */
.wishlist-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wishlist-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation for adding items */
@keyframes wishlist-item-add {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.wishlist-item.new-item {
    animation: wishlist-item-add 0.3s ease;
}

/* Animation for removing items */
@keyframes wishlist-item-remove {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(20px);
    }
}

.wishlist-item.removing {
    animation: wishlist-item-remove 0.3s ease;
}

/* Loading state */
.wishlist-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.wishlist-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   SIDECART STYLES - v0.01
   ======================================== */

/* Sidecart Container */
.sidecart {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100dvh;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.sidecart.open {
    right: 0;
}

/* Sidecart Header */
.sidecart-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidecart-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidecart-title i {
    font-size: 20px;
}

.sidecart-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: normal;
}

.sidecart-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sidecart-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Sidecart Content */
.sidecart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidecart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Empty State */
.sidecart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.sidecart-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}

.sidecart-empty p {
    margin: 0;
    font-size: 16px;
}

/* Sidecart Footer */
.sidecart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.sidecart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.total-label {
    color: #333;
}

.total-amount {
    color: #27ae60;
}

.sidecart-checkout-btn {
    width: 100%;
    padding: 15px 20px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sidecart-checkout-btn:hover {
    background: #229954;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidecart {
        width: 100%;
        right: -100%;
    }
}
.product .wishlist-wrapper a.ts-add-to-wishlist.added .heart-icon,
.product .wishlist-wrapper a.ts-add-to-wishlist .heart-icon.fas {
    color: #ff0000 !important;
}

/* Hover effect */
.product .wishlist-wrapper a.ts-add-to-wishlist:not(.added):hover .heart-icon {
    color: #ff0000 !important;
}

/* Hide the "הסר" text and any other text */
.product .wishlist-wrapper a:after,
.product .wishlist-wrapper a:before {
    display: none !important;
    content: '' !important;
}

/**
 * Archive Products & Widget Products - Match Elementor Styling
 * Make archive and widget products look exactly like Elementor products
 */

/* Archive products styling */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
section.product,
.widget_products li.widget-product-item,
.widget_recent_products li.widget-product-item,
.widget_recently_viewed_products li.widget-product-item,
.widget_top_rated_products li.widget-product-item {
    list-style: none !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
    position: relative !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

/* Product wrapper - unified styling */
.product .product-wrapper,
.widget-product-item .product-wrapper,
.woocommerce ul.products li.product .product-wrapper {
    position: relative !important;
    background: transparent !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hover effects - unified */
.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
section.product:hover,
.widget-product-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: #ddd !important;
    transform: translateY(-2px) !important;
}

/* Thumbnail wrapper - unified */
.product .thumbnail-wrapper,
.widget-product-item .thumbnail-wrapper,
.woocommerce ul.products li.product .thumbnail-wrapper {
    position: relative !important;
    margin-bottom: 15px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    aspect-ratio: 1 / 1 !important;
}

/* Image styling - unified */
.product .thumbnail-wrapper img,
.widget-product-item .thumbnail-wrapper img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.product:hover .thumbnail-wrapper img,
.widget-product-item:hover .thumbnail-wrapper img,
.woocommerce ul.products li.product:hover img {
    transform: scale(1.08) !important;
}

/* Sale badge - unified */
.product .onsale,
.widget-product-item .onsale,
.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: linear-gradient(135deg, #ff4757, #ff3742) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    z-index: 10 !important;
    border-radius: 20px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3) !important;
}

/* Meta wrapper - unified */
.product .meta-wrapper,
.widget-product-item .meta-wrapper {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Product title - unified */
.product .heading-title,
.product .product-name,
.widget-product-item .product-title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    color: #2c3e50 !important;
}

.product .heading-title a,
.product .product-name a,
.widget-product-item .product-title a,
.woocommerce ul.products li.product h2 a,
.woocommerce ul.products li.product h3 a {
    text-decoration: none !important;
    color: inherit !important;
    transition: color 0.3s ease !important;
}

.product .heading-title a:hover,
.product .product-name a:hover,
.widget-product-item .product-title a:hover,
.woocommerce ul.products li.product h2 a:hover,
.woocommerce ul.products li.product h3 a:hover {
    color: #1b8058 !important;
}

/* Price styling - unified */
.product .price-wrapper,
.widget-product-item .price,
.woocommerce ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1b8058 !important;
    margin: 8px 0 !important;
}

.product .price-wrapper .price-unit {
    font-size: 14px !important;
    color: #7f8c8d !important;
    font-weight: 400 !important;
}

/* Cart controls - unified */
.product .cart-controls,
.widget-product-item .action-buttons,
.woocommerce ul.products li.product .cart-controls {
    margin-top: auto !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

/* Buttons - unified */
.product .cart-controls .button,
.widget-product-item .action-buttons .button,
.woocommerce ul.products li.product .button {
    background: #1b8058 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
}

.product .cart-controls .button:hover,
.widget-product-item .action-buttons .button:hover,
.woocommerce ul.products li.product .button:hover {
    background: #f8c519 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(248, 197, 25, 0.3) !important;
}

/* Mobile header adjustments - Remove padding and margins */
@media only screen and (max-width: 767px) {
    .ts-header .header-middle div.header-right > div, 
    .ts-header .header-bottom div.header-right > div {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    
    .ts-header .header-middle div.header-right > div:last-child, 
    .ts-header .header-bottom div.header-right > div:last-child {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Header Count Badges - Custom Styling with CORRECT selectors */
.ts-header .shopping-cart-wrapper .cart-number {
    background: #1b8058 !important;
    color: black !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 12px !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    border: solid 2px white !important;
    text-align: center !important;
    position: absolute !important;
    top: -8px !important;
    left: -8px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ts-header .my-wishlist-wrapper .count-number {
    background: #e74c3c !important;
    color: black !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    line-height: 12px !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    border: solid 2px white !important;
    text-align: center !important;
    position: absolute !important;
    top: -8px !important;
    left: -8px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Ensure header icon wrappers have relative positioning for badge positioning */
.ts-header .shopping-cart-wrapper .ic-cart,
.ts-header .my-wishlist-wrapper .tini-wishlist {
    position: relative !important;
}

/* ========================================
   CART PAGE - MOBILE DESIGN (max-width: 991px)
   ======================================== */
@media only screen and (max-width: 991px) {
    /* Quantity input padding fix */
    .shop_table_responsive .quantity input.qty,
    .woocommerce .shop_table_responsive .quantity input.qty {
        padding: 0 !important;
        height: 40px !important;
    }

    /* Promotion Badge - Mobile Styling */
    .promotion-badge {
        display: block !important;
        margin-top: 8px !important;
        font-size: 0.8em !important;
        padding: 3px 6px !important;
        border-radius: 3px !important;
        max-width: fit-content !important;
    }

    /* Promotion Upselling Text - Mobile Styling */
    .promotion-notice {
        font-size: 0.75em !important;
        margin-top: 6px !important;
        display: block !important;
        line-height: 1.4 !important;
    }

    /* Promotion Notice Banner - Mobile */
    .woocommerce-info.promotion-notice {
        padding: 12px 15px !important;
        font-size: 0.85em !important;
        margin-bottom: 15px !important;
    }

    /* Product Savings Notice - Mobile */
    .product-savings-notice {
        font-size: 0.75em !important;
        margin-top: 6px !important;
    }

    /* Cart Savings Summary - Mobile */
    .promotion-savings-summary th,
    .promotion-savings-summary td {
        font-size: 0.9em !important;
        padding: 8px 0 !important;
    }

    .promotion-detail td {
        font-size: 0.8em !important;
        padding: 4px 0 !important;
    }

    /* Cart Table Product Name Column - Mobile */
    .woocommerce-cart-form .shop_table.cart .product-name {
        padding: 10px 5px !important;
    }

    /* Ensure badges don't break layout on small screens */
    .woocommerce-cart-form .shop_table.cart .product-name a {
        display: inline-block !important;
        word-break: break-word !important;
    }
}

/* Mobile - Smaller screens (max-width: 767px) */
@media only screen and (max-width: 767px) {
    /* Quantity field width for mobile */
    .woocommerce table.shop_table_responsive.cart .quantity {
        width: 120px !important;
    }
}

/* ========================================
   CHECKOUT PAGE STYLING
   ======================================== */

/* Force table layout to respect column widths */
.woocommerce-checkout-review-order-table,
table.shop_table.woocommerce-checkout-review-order-table {
    table-layout: fixed !important;
    width: 100% !important;
}

/* Column width distribution - 70% product name, 30% price */
.woocommerce-checkout-review-order-table thead th.product-name,
.woocommerce-checkout-review-order-table tbody td.product-name,
.woocommerce-checkout-review-order-table tfoot th:first-child,
.woocommerce-checkout-review-order-table tfoot td:first-child {
    width: 70% !important;
    max-width: 70% !important;
}

.woocommerce-checkout-review-order-table thead th.product-total,
.woocommerce-checkout-review-order-table tbody td.product-total,
.woocommerce-checkout-review-order-table tfoot th:last-child,
.woocommerce-checkout-review-order-table tfoot td:last-child {
    width: 30% !important;
    max-width: 30% !important;
    text-align: left !important;
}

/* Show promotion badges in checkout variations */
.woocommerce-checkout-review-order-table .product-name dl.variation .promotion-badge {
    display: inline-block !important;
    margin-top: 5px !important;
}

/* Hide empty variation labels on checkout */
.woocommerce-checkout-review-order-table .product-name dl.variation dt.variation- {
    display: none !important;
}

/* Clean up variation display */
.woocommerce-checkout-review-order-table .product-name dl.variation {
    margin: 5px 0 0 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout-review-order-table .product-name dl.variation dd {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout-review-order-table .product-name dl.variation dd p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Product quantity styling */
.woocommerce-checkout-review-order-table .product-quantity {
    color: #666 !important;
    font-weight: 500 !important;
    font-size: 0.9em !important;
}

/* Weighable summary section */
.woocommerce-checkout-review-order-table .weighable-summary th {
    background: #f5f5f5 !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    color: #333 !important;
    border-top: 2px solid #e0e0e0 !important;
}

.woocommerce-checkout-review-order-table .weighable-details td {
    padding: 15px !important;
    background: #fafafa !important;
}

.woocommerce-checkout-review-order-table .weighable-details ul {
    margin: 0 !important;
    padding-right: 20px !important;
    padding-left: 0 !important;
    list-style-position: inside !important;
}

.woocommerce-checkout-review-order-table .weighable-details li {
    font-size: 0.9em !important;
    color: #666 !important;
    margin-bottom: 5px !important;
}

.woocommerce-checkout-review-order-table .weighable-details > td > div {
    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid #e0e0e0 !important;
    color: #333 !important;
}

/* Checkout table mobile responsive */
@media only screen and (max-width: 767px) {
    /* Product name column on checkout */
    .woocommerce-checkout-review-order-table .product-name {
        font-size: 0.9em !important;
        padding: 10px 8px !important;
    }

    /* Product quantity on mobile */
    .woocommerce-checkout-review-order-table .product-quantity {
        display: block !important;
        margin-top: 4px !important;
        font-size: 0.85em !important;
    }

    /* Weighable summary mobile */
    .woocommerce-checkout-review-order-table .weighable-summary th {
        font-size: 0.9em !important;
        padding: 10px !important;
    }

    .woocommerce-checkout-review-order-table .weighable-details td {
        padding: 10px !important;
        font-size: 0.85em !important;
    }

    .woocommerce-checkout-review-order-table .weighable-details ul {
        padding-right: 15px !important;
    }

    .woocommerce-checkout-review-order-table .weighable-details li {
        font-size: 0.85em !important;
    }
}

/* Override parent theme - quantity buttons square size */
@media only screen and (max-width: 991px) {
    .shop_table_responsive .quantity .minus,
    .shop_table_responsive .quantity .plus {
        line-height: 28px !important;
        height: 30px !important;
        width: 30px !important;
    }
}

/* Cart Page - Product Name Layout (Stack title, badge, upselling WITHIN the cell, next to image) */
@media only screen and (max-width: 991px) {
    /* Product name cell - keep it next to image, but use flexbox for internal stacking */
    .woocommerce-cart-form .shop_table.cart .product-name,
    .woocommerce table.shop_table_responsive.cart .product-name {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    /* Product title link - full width within cell, on its own line */
    .woocommerce-cart-form .shop_table.cart .product-name > a,
    .woocommerce table.shop_table_responsive.cart .product-name > a {
        width: 100% !important;
        display: block !important;
        margin-bottom: 6px !important;
        order: 1 !important;
    }

    /* Badge container - block display, under title within cell */
    .woocommerce-cart-form .shop_table.cart .product-name .promotion-badge,
    .woocommerce table.shop_table_responsive.cart .product-name .promotion-badge {
        display: block !important;
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        order: 2 !important;
    }

    /* Remove <br> spacing that might be inline */
    .woocommerce-cart-form .shop_table.cart .product-name br,
    .woocommerce table.shop_table_responsive.cart .product-name br {
        display: none !important;
    }

    /* Upselling notice - block display, under badge within cell */
    .woocommerce-cart-form .shop_table.cart .product-name > div,
    .woocommerce table.shop_table_responsive.cart .product-name > div {
        display: block !important;
        width: 100% !important;
        margin-top: 0 !important;
        margin-bottom: 4px !important;
        order: 3 !important;
    }

    /* Inner promotion notice span */
    .woocommerce-cart-form .shop_table.cart .product-name .promotion-notice,
    .woocommerce table.shop_table_responsive.cart .product-name .promotion-notice {
        display: block !important;
    }

    /* Hide variation badges - we only want the main badge */
    .woocommerce-cart-form .shop_table.cart .product-name dl.variation .promotion-badge,
    .woocommerce table.shop_table_responsive.cart .product-name dl.variation .promotion-badge {
        display: none !important;
    }

    /* Variation info styling - appears last */
    .woocommerce-cart-form .shop_table.cart .product-name dl.variation,
    .woocommerce table.shop_table_responsive.cart .product-name dl.variation {
        margin-top: 4px !important;
        width: 100% !important;
        display: block !important;
        order: 4 !important;
    }
}

/* ========================================
   DESKTOP FOOTER BAR (from functions.php)
   ======================================== */

#desktop-footer-bar {
    display: none;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: min(50%, 600px);
    max-width: 90vw;
    background-color: #1b8058;
    border: 2px solid white;
    padding: 10px 0;
    z-index: 999;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(27, 128, 88, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#desktop-footer-bar .footer-icon {
    flex: 1;
    text-align: center;
    min-width: 0;
}

#desktop-footer-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
    padding: 5px;
    border-radius: 10px;
}

#desktop-footer-bar a:hover,
#desktop-footer-bar a:focus {
    transform: scale(1.1);
    background-color: rgba(255,255,255,.15);
    outline: none;
}

#desktop-footer-bar .icon {
    position: relative;
    display: inline-block;
    font-size: 20px;
    margin-bottom: 2px;
    color: #fff;
}

#desktop-footer-bar .label {
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

#desktop-footer-bar .home-icon::before {
    font-family: themify;
    content: "\e69b";
    color: #fff;
}

#desktop-footer-bar .shop-icon::before {
    font-family: themify;
    content: "\e60d";
    color: #fff;
}

#desktop-footer-bar .sales-icon::before {
    font-family: 'Font Awesome 5 Free';
    content: "\f7e4";
    font-weight: 900;
    color: #fff;
}

#desktop-footer-bar .ic-cart::before {
    content: "\e60e";
    font-family: themify;
    font-size: 20px;
    color: #fff;
}

.footer-icon .cart-number {
    position: absolute;
    top: -8px;
    width: 22px;
    height: 22px;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: rgba(248,197,25,1);
    color: #000;
    font-weight: bold;
    display: inline-block;
    border: solid white;
}

#desktop-footer-bar .cart-number:empty {
    display: none;
}

@media only screen and (min-width: 1024px) {
    #desktop-footer-bar {
        display: flex !important;
    }
}

@media only screen and (max-width: 1200px) {
    #desktop-footer-bar {
        width: 60% !important;
    }
}

@media only screen and (max-width: 1024px) {
    #desktop-footer-bar {
        display: none !important;
    }
}

/* ========================================
   MY ACCOUNT PAGE HEBREW STYLING (from functions.php)
   ======================================== */

.woocommerce-MyAccount-navigation ul li a {
    font-family: Arial, sans-serif !important;
    font-weight: 600 !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    margin-bottom: 5px !important;
    display: block !important;
    transition: all 0.3s ease !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #1b8058 !important;
    color: white !important;
    transform: translateX(-5px) !important;
}

.woocommerce-MyAccount-content h2 {
    color: #1b8058 !important;
    border-bottom: 2px solid #1b8058 !important;
    padding-bottom: 10px !important;
}

.woocommerce-MyAccount-content {
    direction: rtl !important;
    text-align: right !important;
}

.woocommerce-MyAccount-navigation {
    direction: rtl !important;
}

/* ========================================
   MOBILE BOTTOM BAR (group buttons)
   Migrated from Customizer "Additional CSS" (wp-custom-css).
   The Customizer block prints BEFORE the Breeze-combined theme CSS,
   so the theme's generated color file (uploads/mkdigitalchild.css) and
   responsive.css were overriding it. The `body` prefix raises
   specificity above both so these rules win regardless of load order.
   ======================================== */

@media only screen and (max-width: 767px) {

    body #ts-mobile-button-bottom {
        background-color: #1b8057;
        border-radius: 40px 40px 0 0;
        box-shadow: 0 -3px 4px rgba(0, 0, 0, 0.1);
        padding: 5px;
    }

    body #ts-mobile-button-bottom a,
    body #ts-mobile-button-bottom a:hover {
        text-decoration: none;
        color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 12px;
    }

    body #ts-mobile-button-bottom a span {
        margin-top: 5px;
        display: inline-block;
        white-space: nowrap;
        font-size: 12px;
    }

    body #ts-mobile-button-bottom .mobile-button-home,
    body #ts-mobile-button-bottom .mobile-button-shop,
    body #ts-mobile-button-bottom .my-account-wrapper,
    body #ts-mobile-button-bottom .my-wishlist-wrapper,
    body #ts-mobile-button-bottom .spacer {
        width: 20%;
        display: flex;
        justify-content: flex-end;
        position: relative;
        z-index: 1;
        flex-direction: column;
    }

    /* Floating cart circle in the middle of the bar */
    body #ts-mobile-button-bottom .shopping-cart-wrapper {
        position: relative;
        background-color: #1b8057;
        border-radius: 50%;
        padding: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border: 10px solid white;
        color: white;
        margin-top: -30px;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        top: -20px;
    }

    body #ts-mobile-button-bottom .shopping-cart-wrapper .ic-cart {
        display: block;
        width: 32px;
        height: 32px;
        background: url('/wp-content/uploads/2024/06/carticon-01.svg') no-repeat center center;
        background-size: contain;
    }

    body #ts-mobile-button-bottom .shopping-cart-wrapper img.custom-cart-image {
        display: none;
    }

    body #ts-mobile-button-bottom .shopping-cart-wrapper span {
        display: inline-block;
        white-space: nowrap;
        font-size: 12px;
    }

    /* "כל המוצרים" icon (themify user/account glyph kept from original design) */
    body #ts-mobile-button-bottom .my-account-wrapper > a:before {
        content: "\e602";
        font-family: themify;
        font-size: 20px;
        line-height: 20px;
        font-weight: 400;
        display: block !important;
        margin: 0;
    }

    body #ts-mobile-button-bottom .my-account-wrapper span {
        line-height: 20px;
    }

    /* "מבצעים" icon — FA5 solid glyphs only render at weight 900;
       responsive.css forces 400, hence the !important */
    body #ts-mobile-button-bottom .mobile-button-shop > a:before {
        font-family: 'Font Awesome 5 Free' !important;
        content: "\f7e4" !important;
        font-weight: 900 !important;
    }

    /* Count badges */
    body #ts-mobile-button-bottom .shopping-cart-wrapper .cart-number,
    body #ts-mobile-button-bottom .tini-wishlist .count-number {
        font-weight: 600;
        width: 20px;
        height: 20px;
        line-height: 12px;
        font-size: 8px;
    }

    body #ts-mobile-button-bottom .tini-wishlist .count-number {
        top: -5px;
    }
}

/* Footer "לחווית קניה בלתי נשכחת" app store badges (Elementor widgets 99c8a6c, 440167c) */
footer .elementor .elementor-element.elementor-element-99c8a6c img,
footer .elementor .elementor-element.elementor-element-440167c img {
    width: auto;
    height: 44px;
    max-width: 100%;
}

@media (max-width: 767px) {
    footer .elementor .elementor-element.elementor-element-99c8a6c img,
    footer .elementor .elementor-element.elementor-element-440167c img {
        height: 38px;
    }
}
