:root {
    --mf-green: #005b4f;
    --mf-green-hover: #00483f;
    --mf-text: #1f1f1f;
    --mf-border: #dcdcdc;
    --mf-radius: 10px;
    --mf-light: #ffffff;
    --mf-muted: #6f6f6f;
    --mf-bg-soft: #f7f7f7;
}

body {
    color: var(--mf-text);
}

/* ========================================
   GUMB
======================================== */

.mf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--mf-green);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    border: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
}

.mf-btn:hover,
.mf-btn:focus {
    background: var(--mf-green-hover);
    color: #fff;
    outline: none;
}

/* ========================================
   FORMA PROIZVODA
======================================== */

.mf-order-form {
    margin-top: 16px;
    width: 100%;
}

/* ========================================
   RADIO VARIJACIJE PROIZVODA
======================================== */

.mf-variation-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.mf-variation-option {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.mf-variation-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mf-variation-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--mf-border);
    border-radius: 999px;
    background: #fff;
    color: var(--mf-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

.mf-variation-option:hover .mf-variation-pill {
    border-color: var(--mf-green);
}

.mf-variation-radio:checked + .mf-variation-pill {
    background: #005b4f;
    border-color: #005b4f;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ========================================
   SAŽETAK VARIJACIJE
======================================== */

.mf-variation-summary {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--mf-bg-soft);
    border: 1px solid #ececec;
    border-radius: 10px;
}

.mf-variation-summary-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--mf-text);
    margin-bottom: 4px;
}

.mf-variation-summary-description {
    font-size: 13px;
    line-height: 1.45;
    color: var(--mf-muted);
}

.mf-variation-summary-price {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--mf-green);
}

/* ========================================
   KOLIČINA + GUMB
======================================== */

.mf-order-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.mf-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 124px;
    max-width: 124px;
    height: 56px;
}

.mf-qty-btn {
    width: 38px;
    height: 56px;
    border: 0;
    background: #fff;
    color: var(--mf-text);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mf-qty-btn:hover {
    background: #e9f5f3;
}

.mf-qty-btn:active,
.mf-qty-btn:focus {
    background: #005b4f !important;
    color: #fff !important;
    outline: none;
    box-shadow: none;
}

.mf-qty-input {
    width: 48px;
    height: 56px;
    border: 0;
    border-left: 1px solid #ededed;
    border-right: 1px solid #ededed;
    background: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    box-sizing: border-box;
    padding: 0;
    appearance: textfield;
    -moz-appearance: textfield;
    font-family: inherit;
}

.mf-qty-input::-webkit-outer-spin-button,
.mf-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mf-qty-input:focus {
    outline: none;
    box-shadow: 0 0 0 1px #005b4f;
    border-color: #005b4f;
}

.mf-order-btn {
    flex: 1 1 auto;
    min-width: 0;
}

.mf-out-of-stock {
    display: inline-block;
    margin-top: 14px;
    color: #777;
    font-size: 14px;
}

/* ========================================
   KARTICE PROIZVODA
======================================== */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .mf-order-form,
.woocommerce-page ul.products li.product .mf-order-form {
    width: 100%;
    margin-top: auto;
}

/* ========================================
   CHECKOUT PRIVACY
======================================== */

.woocommerce-privacy-policy-text,
.wc-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text,
.woocommerce-checkout-payment .woocommerce-privacy-policy-text,
.e-checkout__container .woocommerce-privacy-policy-text,
.e-checkout__container .wc-privacy-policy-text {
    display: none !important;
}

.mf-checkout-privacy-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #4b4b4b;
}

.mf-checkout-privacy-text a {
    color: #005b4f;
    text-decoration: underline;
}

.mf-checkout-privacy-text a:hover {
    color: #00483f;
}

/* ========================================
   CHECKOUT LOKACIJA SELECT
======================================== */

#billing_company_field {
    display: block !important;
}

#billing_company_field label {
    display: block;
    margin-bottom: 8px;
}

#billing_company_field select {
    width: 100%;
}

/* ========================================
   DATUM PREUZIMANJA
======================================== */

.mf-pickup-date-row input {
    width: 100%;
}

.mf-pickup-date-help {
    margin: 8px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #6b6b6b;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {
    .mf-variation-pill {
        min-height: 36px;
        font-size: 13px;
        padding: 0 12px;
    }

    .mf-variation-summary-label {
        font-size: 13px;
    }

    .mf-variation-summary-description {
        font-size: 12px;
    }

    .mf-variation-summary-price {
        font-size: 14px;
    }

    .mf-order-actions {
        gap: 10px;
    }

    .mf-qty-wrap {
        flex: 0 0 112px;
        max-width: 112px;
        height: 50px;
    }

    .mf-qty-btn {
        width: 34px;
        height: 50px;
        font-size: 20px;
    }

    .mf-qty-input {
        width: 44px;
        height: 50px;
        font-size: 16px;
    }

    .mf-btn {
        min-height: 50px;
        font-size: 15px;
        padding: 0 18px;
    }
}
/* Elementor Pro checkout: sakrij default hidden company field */
#billing_company_field {
    display: none !important;
}

/* Prikaži naš custom select */
#billing_company_field_custom {
    display: block !important;
}

#billing_company_field_custom label {
    display: block;
    margin-bottom: 8px;
}

#billing_company_field_custom select {
    width: 100%;
}/* Makni cijeli shipping blok */
.woocommerce-shipping-fields,
#ship-to-different-address,
.woocommerce-shipping-totals,
.shipping,
.e-checkout__shipping {
    display: none !important;
}