/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

ul.products li.product .price {
    display: block !important;
    padding: 4px 15px 4px !important;
    margin: 0 !important;
    font-size: initial !important;
}
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&display=swap');

.woocommerce-page,
.woocommerce,
.single-product .summary,
.single-product .variations_form,
.pmt-table,
#buy-now-btn,
.single_add_to_cart_button,
.quantity {
    font-family: 'Noto Sans', sans-serif !important;
}


/* ═══════════════════════════════════════
   PRICE — SINGLE PRODUCT PAGE (CRITICAL FIX)
   ═══════════════════════════════════════ */

/* Make sure price wrapper is always visible */
.single-product .summary .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: baseline !important;
    gap: 14px !important;
    font-family: 'Noto Sans', sans-serif !important;
    margin-bottom: 14px !important;
    flex-wrap: wrap !important;
}

/* Main price amount */
.single-product .summary .price .woocommerce-Price-amount,
.woocommerce div.product p.price .woocommerce-Price-amount,
.woocommerce div.product span.price .woocommerce-Price-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-decoration: none !important;
    font-family: 'Noto Sans', sans-serif !important;
}

/* Sale price inside ins */
.summary .price ins .woocommerce-Price-amount,
.woocommerce-variation-price .price ins .woocommerce-Price-amount,
.woocommerce-variation-price .woocommerce-Price-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    text-decoration: none !important;
    font-family: 'Noto Sans', sans-serif !important;
}

/* Strikethrough original price */
.summary .price del,
.woocommerce-variation-price .price del {
    font-size: 15px !important;
    color: #999999 !important;
    text-decoration: line-through !important;
    text-decoration-color: #999999 !important;
    font-family: 'Noto Sans', sans-serif !important;
}

.summary .price del .woocommerce-Price-amount,
.woocommerce-variation-price .price del .woocommerce-Price-amount {
    color: #999999 !important;
    font-size: 15px !important;
    font-family: 'Noto Sans', sans-serif !important;
    text-decoration: line-through !important;
    text-decoration-color: #999999 !important;
}

/* Variation price — show after selection */
.woocommerce-variation-price {
    display: block !important;
    visibility: visible !important;
    min-height: 20px !important;
}

.woocommerce-variation-price .price {
    display: flex !important;
    visibility: visible !important;
    align-items: baseline !important;
    gap: 14px !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #111111 !important;
}

/* Currency symbol */
.single-product .summary .woocommerce-Price-currencySymbol {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111111 !important;
}


/* ═══════════════════════════════════════
   VARIATION SWATCHES (PILLS)
   ═══════════════════════════════════════ */

/* Hide default select dropdown */
.variations_form .variations select {
    display: none !important;
}

/* Hide label row */
.variations_form .variations th.label,
.variations_form .variations td.label {
    display: none !important;
}

/* Reset table layout */
.variations_form .variations,
.variations_form .variations tbody,
.variations_form .variations tr,
.variations_form .variations td {
    display: block !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Pill container */
.variable-items-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 2px 0 12px !important;
    padding: 0 !important;
}

/* Individual pill */
.variable-items-wrapper .variable-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 64px !important;
    height: 38px !important;
    padding: 0 14px !important;
    border: 1.5px solid #4a7c35 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    color: #4a7c35 !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    line-height: 1 !important;
}

.variable-items-wrapper .variable-item:hover {
    background: #f0f7ec !important;
    border-color: #3a6228 !important;
    color: #3a6228 !important;
}

.variable-items-wrapper .variable-item.selected,
.variable-items-wrapper .variable-item.active {
    background: #4a7c35 !important;
    color: #ffffff !important;
    border-color: #4a7c35 !important;
}

.variable-items-wrapper .variable-item.disabled {
    opacity: 0.4 !important;
    pointer-events: none !important;
}

/* Hide reset link */
.reset_variations {
    display: none !important;
}


/* ═══════════════════════════════════════
   CART FORM & QUANTITY
   ═══════════════════════════════════════ */

.woocommerce .cart,
form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin-top: 8px !important;
}

.woocommerce .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid #cccccc !important;
    border-radius: 5px !important;
    overflow: hidden !important;
    height: 44px !important;
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce .quantity input.qty {
    width: 40px !important;
    height: 44px !important;
    border: none !important;
    border-left: 1px solid #cccccc !important;
    border-right: 1px solid #cccccc !important;
    text-align: center !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #111 !important;
    background: #ffffff !important;
    -moz-appearance: textfield !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.woocommerce .quantity .qty-minus,
.woocommerce .quantity .qty-plus,
button.minus,
button.plus {
    width: 36px !important;
    height: 44px !important;
    border: none !important;
    background: #ffffff !important;
    color: #333333 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    transition: background 0.1s !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: 'Noto Sans', sans-serif !important;
}

.woocommerce .quantity .qty-minus:hover,
.woocommerce .quantity .qty-plus:hover,
button.minus:hover,
button.plus:hover {
    background: #f5f5f5 !important;
}


/* ═══════════════════════════════════════
   ADD TO CART BUTTON
   ═══════════════════════════════════════ */

.single_add_to_cart_button,
button.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button.alt {
    background-color: #4a7c35 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 0 26px !important;
    height: 44px !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
    background-color: #3a6228 !important;
    color: #ffffff !important;
}

.single_add_to_cart_button::after {
    content: "→" !important;
    font-size: 15px !important;
}


/* ═══════════════════════════════════════
   BUY NOW BUTTON
   ═══════════════════════════════════════ */

#buy-now-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 44px !important;
    padding: 0 26px !important;
    border: 1.5px solid #111111 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-family: 'Noto Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

#buy-now-btn:hover {
    background: #111111 !important;
    color: #ffffff !important;
}


/* ═══════════════════════════════════════
   HIDE STOCK / AVAILABILITY TEXT
   ═══════════════════════════════════════ */

.woocommerce-variation-availability,
.stock.in-stock,
.stock.out-of-stock,
p.stock {
    display: none !important;
}


/* ═══════════════════════════════════════
   ELEMENTOR ADD TO CART WIDGET FIX
   ═══════════════════════════════════════ */

:is(.elementor-widget-woocommerce-product-add-to-cart,
.woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
.elementor-widget-wc-add-to-cart,
.woocommerce div.product .elementor-widget-wc-add-to-cart)
form.cart.variations_form .woocommerce-variation-add-to-cart,
:is(.elementor-widget-woocommerce-product-add-to-cart,
.woocommerce div.product .elementor-widget-woocommerce-product-add-to-cart,
.elementor-widget-wc-add-to-cart,
.woocommerce div.product .elementor-widget-wc-add-to-cart)
form.cart:not(.grouped_form):not(.variations_form) {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
/* Fix CLS — reserve space for all images */
ul.products li.product img,
.myslider-slide img,
.wp-post-image,
img {
    width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

/* Reserve slider height before it loads */
.myslider-wrap {
    aspect-ratio: 16 / 6;
    min-height: 200px;
}
