/* =======================================================
   COMPONENTS: PRICES & DISCLOSURES
   Глобални стилове за цени, намаления, баджове и вариации
======================================================= */

/* ==========================================================================
   1. ОСНОВНА ЦЕНА (Native WooCommerce Structure)
   ========================================================================== */
.product-page-price.price-on-sale,
p.price.product-page-price {
    display: flex !important; flex-wrap: wrap; align-items: center !important;
    width: 100% !important; line-height: 1 !important; margin: clamp(1.5rem, 3vw, 2rem) 0 !important;
}
.product-page-price.price-on-sale .screen-reader-text,
p.price.product-page-price .screen-reader-text { display: none !important; }

p.price.product-page-price del,
p.price.product-page-price ins { display: inline-flex !important; align-items: center !important; margin: 0 !important; padding: 0 !important; line-height: 1 !important; text-decoration-color: inherit; }

.product-page-price.price-on-sale ins { order: 1; text-decoration: none !important; background: transparent !important; }
.product-page-price.price-on-sale del {
    order: 2; font-size: clamp(1.125rem, 3vw, 1.25rem) !important; color: var(--fiptec-red) !important;
    font-weight: 500 !important; opacity: 1 !important; line-height: 1 !important; margin-bottom: 0 !important;
}
.product-page-price.price-on-sale del .amount { color: var(--fiptec-slate-400) !important; font-weight: 500 !important; }

/* Цена в продуктовите карти (Грид, Upsells, Cross-sells, Mini-cart) - NATIVE HTML */
.product-small .price-wrapper .price,
.ux-mini-cart-cross-sells__list-item .price,
.fiptec-cs-price { 
    display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; margin-bottom: 1 em !important; flex-wrap: wrap !important; 
}

/* За мини-количката е по-добре да е подравнено вляво заради тясното пространство */
.ux-mini-cart-cross-sells__list-item .price { justify-content: flex-start !important; gap: 6px !important; }

.product-small .price-wrapper .screen-reader-text,
.ux-mini-cart-cross-sells__list-item .price .screen-reader-text,
.fiptec-cs-price .screen-reader-text { display: none !important; }

.product-small .price-wrapper del,
.ux-mini-cart-cross-sells__list-item .price del,
.fiptec-cs-price del { order: 2 !important; margin-bottom: 0 !important; display: inline-flex !important; }

/* Цвят и стил на старата цена (задрасканата) за всички изгледи */
.product-small .price-wrapper del,
.product-small .price-wrapper del .amount,
.product-small .price-wrapper del bdi,
.product-small .price-wrapper del .woocommerce-Price-currencySymbol,
.product-small .price-wrapper del .fiptec-secondary-price,
.ux-mini-cart-cross-sells__list-item .price del,
.ux-mini-cart-cross-sells__list-item .price del .amount,
.ux-mini-cart-cross-sells__list-item .price del bdi,
.ux-mini-cart-cross-sells__list-item .price del .woocommerce-Price-currencySymbol,
.ux-mini-cart-cross-sells__list-item .price del .fiptec-secondary-price,
.fiptec-cs-price del,
.fiptec-cs-price del .amount,
.fiptec-cs-price del bdi,
.fiptec-cs-price del .woocommerce-Price-currencySymbol,
.fiptec-cs-price del .fiptec-secondary-price { 
    color: var(--fiptec-slate-400) !important; font-weight: 500 !important; font-size: 12px !important; line-height: 1 !important; text-decoration: line-through !important; 
}

/* Специфични размери за главния грид */
.product-small .price-wrapper del,
.product-small .price-wrapper del .amount,
.product-small .price-wrapper del bdi,
.product-small .price-wrapper del .woocommerce-Price-currencySymbol,
.product-small .price-wrapper del .fiptec-secondary-price {
    font-size: clamp(13px, 2vw, 14px) !important;
}

.product-small .price-wrapper ins,
.ux-mini-cart-cross-sells__list-item .price ins,
.fiptec-cs-price ins { order: 1 !important; text-decoration: none !important; background: transparent !important; display: inline-flex !important; }

/* Цена в Мини Количката, Cross Sells и Финални Суми */
.fiptec-totals-value-final { text-align: right !important; display: flex !important; flex-direction: column !important; align-items: flex-end !important; }
.fiptec-totals-value-final strong, .fiptec-totals-value-final strong .woocommerce-Price-amount, .fiptec-totals-value-final strong .woocommerce-Price-currencySymbol { font-size: 1.875rem !important; font-weight: 900 !important; color: var(--fiptec-red-border) !important; line-height: 1 !important; }
.fiptec-totals-value-final small.includes_tax { font-size: 0.85rem !important; color: var(--fiptec-slate-400) !important; font-weight: 500 !important; margin-top: 8px !important; line-height: 1.3 !important; }
.fiptec-totals-value-final small.includes_tax .woocommerce-Price-amount, .fiptec-totals-value-final small.includes_tax .woocommerce-Price-currencySymbol { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }


/* ==========================================================================
   2. БАЗОВ СТИЛ: A-OPC АКТУАЛНА ЦЕНА (Шрифт, Цвят, Тежест - ВАЖИ НАВСЯКЪДЕ)
   ========================================================================== */
.woocommerce div.product .woocommerce-variation-price .aopc-current-price,
.woocommerce div.product .woocommerce-variation-price .aopc-current-price .woocommerce-Price-amount,
.woocommerce div.product .woocommerce-variation-price .aopc-current-price .woocommerce-Price-currencySymbol,
.woocommerce div.product .woocommerce-variation-price .aopc-current-price bdi,
.woocommerce div.product .woocommerce-variation-price .aopc-current-price .fiptec-secondary-price,
.aopc-current-price,
.aopc-current-price .woocommerce-Price-amount,
.aopc-current-price .woocommerce-Price-currencySymbol,
.aopc-current-price bdi,
.aopc-current-price .fiptec-secondary-price,
.product-small .price-wrapper ins,
.product-small .price-wrapper ins .woocommerce-Price-amount,
.product-small .price-wrapper ins .woocommerce-Price-currencySymbol,
.product-small .price-wrapper ins bdi,
.product-small .price-wrapper > .price > .woocommerce-Price-amount:not(.fiptec-secondary-price),
.product-small .price-wrapper > .price > .woocommerce-Price-amount:not(.fiptec-secondary-price) .woocommerce-Price-currencySymbol,
.product-small .price-wrapper > .price > .woocommerce-Price-amount:not(.fiptec-secondary-price) bdi,
.product-small .price-wrapper ins .fiptec-secondary-price,
.product-small .price-wrapper ins .fiptec-secondary-price .woocommerce-Price-amount,
.product-small .price-wrapper ins .fiptec-secondary-price .woocommerce-Price-currencySymbol,
.product-small .price-wrapper ins .fiptec-secondary-price bdi,
.product-small .price-wrapper > .price > .fiptec-secondary-price,
.product-small .price-wrapper > .price > .fiptec-secondary-price .woocommerce-Price-amount,
.product-small .price-wrapper > .price > .fiptec-secondary-price .woocommerce-Price-currencySymbol,
.product-small .price-wrapper > .price > .fiptec-secondary-price bdi,
.ux-mini-cart-cross-sells__list-item .price ins,
.ux-mini-cart-cross-sells__list-item .price ins .woocommerce-Price-amount,
.ux-mini-cart-cross-sells__list-item .price ins .woocommerce-Price-currencySymbol,
.ux-mini-cart-cross-sells__list-item .price ins bdi,
.ux-mini-cart-cross-sells__list-item .price > .woocommerce-Price-amount:not(.fiptec-secondary-price),
.ux-mini-cart-cross-sells__list-item .price > .woocommerce-Price-amount:not(.fiptec-secondary-price) .woocommerce-Price-currencySymbol,
.ux-mini-cart-cross-sells__list-item .price > .woocommerce-Price-amount:not(.fiptec-secondary-price) bdi,
.ux-mini-cart-cross-sells__list-item .price ins .fiptec-secondary-price,
.ux-mini-cart-cross-sells__list-item .price ins .fiptec-secondary-price .woocommerce-Price-amount,
.ux-mini-cart-cross-sells__list-item .price ins .fiptec-secondary-price .woocommerce-Price-currencySymbol,
.ux-mini-cart-cross-sells__list-item .price ins .fiptec-secondary-price bdi,
.ux-mini-cart-cross-sells__list-item .price > .fiptec-secondary-price,
.ux-mini-cart-cross-sells__list-item .price > .fiptec-secondary-price .woocommerce-Price-amount,
.ux-mini-cart-cross-sells__list-item .price > .fiptec-secondary-price .woocommerce-Price-currencySymbol,
.ux-mini-cart-cross-sells__list-item .price > .fiptec-secondary-price bdi,
.fiptec-cs-price ins,
.fiptec-cs-price ins .woocommerce-Price-amount,
.fiptec-cs-price ins .woocommerce-Price-currencySymbol,
.fiptec-cs-price ins bdi,
.fiptec-cs-price > .woocommerce-Price-amount:not(.fiptec-secondary-price),
.fiptec-cs-price > .woocommerce-Price-amount:not(.fiptec-secondary-price) .woocommerce-Price-currencySymbol,
.fiptec-cs-price > .woocommerce-Price-amount:not(.fiptec-secondary-price) bdi,
.fiptec-cs-price ins .fiptec-secondary-price,
.fiptec-cs-price ins .fiptec-secondary-price .woocommerce-Price-amount,
.fiptec-cs-price ins .fiptec-secondary-price .woocommerce-Price-currencySymbol,
.fiptec-cs-price ins .fiptec-secondary-price bdi,
.fiptec-cs-price > .fiptec-secondary-price,
.fiptec-cs-price > .fiptec-secondary-price .woocommerce-Price-amount,
.fiptec-cs-price > .fiptec-secondary-price .woocommerce-Price-currencySymbol,
.fiptec-cs-price > .fiptec-secondary-price bdi {
    font-family: var(--font-primary) !important;
    font-weight: 900 !important;
    color: var(--fiptec-red) !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

/* Гарантираме, че еврото и левовете застават красиво на един ред */
.woocommerce div.product .woocommerce-variation-price .aopc-price-disclosure .aopc-current-price,
.aopc-price-disclosure .aopc-current-price,
.product-small .price-wrapper ins,
.product-small .price-wrapper > .price > .amount:not(.fiptec-secondary-price),
.ux-mini-cart-cross-sells__list-item .price ins,
.ux-mini-cart-cross-sells__list-item .price > .amount:not(.fiptec-secondary-price),
.fiptec-cs-price ins,
.fiptec-cs-price > .amount:not(.fiptec-secondary-price) {
    display: inline-flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
}


/* ==========================================================================
   3. A-OPC OMNIBUS & DISCLOSURE БАЗОВИ СТИЛОВЕ (ИЗЧИСТЕНИ И БРОНИРАНИ)
   ========================================================================== */
.woocommerce div.product .woocommerce-variation-price .aopc-price-disclosure,
.aopc-price-disclosure { 
    display: flex !important; 
    flex-direction: column !important; 
    gap: 4px !important; 
    margin-bottom: 15px !important; 
    font-family: inherit !important; 
    width: 100% !important; 
}

.woocommerce div.product .woocommerce-variation-price .aopc-current-price,
.aopc-current-price { 
    order: -1 !important; 
    margin-bottom: 4px !important; 
}

/* ОБЩ СТИЛ: И двата реда са Slate-500 и Flex контейнери */
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row,
.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row,
.aopc-regular-row,
.aopc-omnibus-row { 
    font-family: var(--font-primary) !important;
    color: var(--fiptec-slate-500) !important; 
    display: flex !important; 
    align-items: center !important; 
    flex-wrap: wrap !important; 
    gap: 6px !important; 
}

/* ИНДИВИДУАЛНИ РАЗМЕРИ */
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row,
.aopc-regular-row { 
    font-size: 12px !important; 
    order: 0 !important; 
}

.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row,
.aopc-omnibus-row { 
    font-size: 10px !important; 
    order: 1 !important; 
    margin-top: -2px !important; 
}

/* ЕТИКЕТИ (Текстът пред цената - Нормална дебелина) */
.woocommerce div.product .woocommerce-variation-price .aopc-price-label,
.aopc-price-label {
    font-weight: 500 !important;
}

/* ЦЕНИ ОБВИВКА (Удебелени) */
.woocommerce div.product .woocommerce-variation-price .aopc-price-values-wrap,
.aopc-price-values-wrap {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 700 !important;
}

/* ЗАДРАСКАНА ЦЕНА (Експлицитно удебелена и без специфичен цвят) */
.woocommerce div.product .woocommerce-variation-price .aopc-crossed-price,
.aopc-crossed-price { 
    text-decoration: line-through !important; 
    color: inherit !important; 
    font-weight: 700 !important;
}

/* 🚨 ПЪЛНО НУЛИРАНЕ НА НАСЛЕДЕНИ WOOCOMMERCE СТИЛОВЕ С МАКСИМАЛНА СПЕЦИФИЧНОСТ 🚨 */
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row .woocommerce-Price-amount,
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row .woocommerce-Price-currencySymbol,
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row bdi,
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row strong,
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row .fiptec-secondary-price,
.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row .woocommerce-Price-amount,
.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row .woocommerce-Price-currencySymbol,
.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row bdi,
.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row strong,
.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row .fiptec-secondary-price,
.aopc-regular-row .woocommerce-Price-amount,
.aopc-regular-row .woocommerce-Price-currencySymbol,
.aopc-regular-row bdi,
.aopc-regular-row strong,
.aopc-regular-row .fiptec-secondary-price,
.aopc-omnibus-row .woocommerce-Price-amount,
.aopc-omnibus-row .woocommerce-Price-currencySymbol,
.aopc-omnibus-row bdi,
.aopc-omnibus-row strong,
.aopc-omnibus-row .fiptec-secondary-price {
    font-size: inherit !important;
    font-weight: 700 !important;
    color: inherit !important;
    line-height: inherit !important;
    text-decoration: inherit !important;
}

/* БАДЖ ЗА ПРОЦЕНТ (Той трябва да остане цветен и незадраскан) */
.woocommerce div.product .woocommerce-variation-price .aopc-discount-text-badge,
.aopc-discount-text-badge { 
    background-color: var(--fiptec-red) !important; 
    color: var(--fiptec-white) !important; 
    font-weight: 800 !important; 
    padding: 2px 5px !important; 
    border-radius: 4px !important; 
    font-size: 11px !important; 
    line-height: 1 !important; 
    text-decoration: none !important; 
    margin-left: 2px !important; 
}

/* МАРКЕТИНГ БАДЖОВЕ ВЪРХУ СНИМКИТЕ */
.aopc-custom-badges-container { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 8px; }
.aopc-img-badge { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fiptec-white); line-height: 1.2; box-shadow: var(--fiptec-shadow-sm); pointer-events: auto; }
.aopc-hype-img-badge { background-color: var(--fiptec-green); }
.aopc-hype-img-badge i { color: var(--fiptec-yellow); margin-right: 4px; font-size: 13px; }
.aopc-promo-img-badge { background-color: var(--fiptec-red); }
.product-small .aopc-img-badge { font-size: 11px; padding: 4px 8px; }


/* ==========================================================================
   4. КОНТЕКСТ 1: КАТАЛОГ / МАГАЗИН (ГРИД) - Центрирано, По-малко
   ========================================================================== */
.product-small .aopc-current-price,
.product-small .price-wrapper ins,
.product-small .price-wrapper > .price > .amount:not(.fiptec-secondary-price) {
    font-size: clamp(1.15rem, 3vw, 1.35rem) !important;
    justify-content: center !important;
    text-align: center !important;
}

.product-small .aopc-price-disclosure {
    align-items: center !important;
    margin-bottom: 15px !important;
}

.product-small .aopc-regular-row,
.product-small .aopc-omnibus-row {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 3px !important; 
    margin-top: 6px !important;
}
.product-small .aopc-price-values-wrap {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}


/* ==========================================================================
   5. КОНТЕКСТ 2: ИНДИВИДУАЛЕН ПРОДУКТ & ВАРИАЦИИ - Вляво, Огромно
   ========================================================================== */
.product-page-price .aopc-current-price,
.woocommerce div.product .woocommerce-variation-price .aopc-current-price {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.product-page-price .aopc-price-disclosure,
.woocommerce div.product .woocommerce-variation-price .aopc-price-disclosure {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
}

.product-page-price .aopc-regular-row,
.product-page-price .aopc-omnibus-row,
.woocommerce div.product .woocommerce-variation-price .aopc-regular-row,
.woocommerce div.product .woocommerce-variation-price .aopc-omnibus-row {
    justify-content: flex-start !important;
    text-align: left !important;
}

.product-page-price.price-on-sale, 
p.price.product-page-price {
    justify-content: flex-start !important; 
}


/* ==========================================================================
   6. КОНТЕКСТ 3: CROSS SELLS (Mini-Cart & Cart Slider)
   ========================================================================== */
.ux-mini-cart-cross-sells__list-item .price ins,
.ux-mini-cart-cross-sells__list-item .price > .amount:not(.fiptec-secondary-price) {
    font-size: 14px !important; 
    justify-content: flex-start !important;
}

.fiptec-cs-price ins,
.fiptec-cs-price > .amount:not(.fiptec-secondary-price) {
    font-size: 1rem !important; 
    justify-content: center !important;
}

/* ==========================================================================
   7. СКРИВАНЕ НА RANGE ЦЕНАТА (ОТ-ДО) ПРИ ПРОДУКТИ С ВАРИАЦИИ
   ========================================================================== */
.product-type-variable .product-price-container,
.product-type-variable .product-info > .price-wrapper,
.product-type-variable .product-page-price:not(.aopc-current-price) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}