/*
 Theme Name:    Electro Child
 Theme URI:     https://themeforest.net/item/electro-electronics-store-woocommerce-theme/15720624
 Description:   This is the child theme of Electro
 Author:        MadrasThemes
 Author URI:    https://madrasthemes.com/
 Template:      electro
 Version:       3.5.5
 License:       GNU General Public License v2 or later
 License URI:   http://www.gnu.org/licenses/gpl-2.0.html
 Tags:          light, dark, two-columns, right-sidebar, responsive-layout
 Text Domain:   electro-child
*/
@font-face {
    font-family: "Triumvirate";
    src: url('https://test.genelec.ba/wp-content/uploads/2025/02/TriumvirateCGInseratItalic.otf') format('opentype');
    font-display: swap;
}

/* --- 1. GENERALNA PODEŠAVANJA BOJA --- */
ins {
    color: #ff0000;
    text-decoration: none;
}

.woocommerce-loop-product__title {
    font-size: 12px;
    font-weight: 450;
    color: #000;
}

/* --- 2. GLAVNI STIL ZA CIJENE (Katalog + Widgeti + Loop) --- */
/* Spojeno sve na jedno mjesto da se ne ponavlja */
.owl-item > .product .price, 
.products > .product .price,
ul.product_list_widget .electro-price,
.single-product.full-width .price,
.product-item__footer .price {
    font-family: "Triumvirate", sans-serif;
    color: #000000;
    font-weight: 500;
    font-size: 18px; /* Default size */
    
    /* Tvoj Text Shadow */
    text-shadow: transparent 0px 0px 1em, rgb(255 255 255) 0px -0.04em 0px,
        rgb(255 255 255) 0.04em 0px 0px, rgb(255 255 255) 0px 0.04em 0px,
        rgb(255 255 255) -0.034em -0.024em 0px,
        rgb(255 255 255) -0.03em -0.04em 0px,
        rgb(255 255 255) -0.01em -0.04em 0px,
        rgb(255 255 255) 0.052em -0.04em 0px,
        rgb(255 255 255) 0.04em -0.04em 0px, rgb(255 255 255) 0.02em -0.04em 0px,
        rgb(255 255 255) 0.047em -0.025em 0px,
        rgb(255 255 255) -0.045em 0.016em 0px,
        rgb(255 255 255) -0.039em 0.038em 0px,
        rgb(255 255 255) -0.052em 0.04em 0px,
        rgb(255 255 255) -0.042em 0.04em 0px,
        rgb(255 255 255) 0.031em 0.028em 0px,
        rgb(255 255 255) 0.029em 0.04em 0px, rgb(0 0 0 / 20%) 0.05em 0px 0.05em,
        rgb(0 0 0 / 20%) 0px 0.05em 0.05em,
        rgb(0 0 0 / 20%) 0.05em 0.05em 0.05em;
}

/* Specifične veličine */
/*.single-product.full-width .price { font-size: 36px; }
ul.product_list_widget .electro-price { font-size: 24px; margin-top: .1em !important; }*/

/* Nova cijena (INS) - Crvena */
.owl-item > .product .price ins, 
.products > .product .price ins,
.single-product.full-width .price ins,
ul.product_list_widget .electro-price ins {
    color: #ff0000 !important;
    text-decoration: none;
    font-size: inherit; /* Nasljeđuje veličinu roditelja */
    background: transparent !important;
    display: block !important; /* Osigurava novi red */
    line-height: 1 !important;
    margin-top: 0 !important;
}

/* Stara cijena (DEL) - Siva, manja, bez sjene */
.owl-item > .product .price del, 
.products > .product .price del,
.single-product.full-width .price del {
    color: #000 !important;
    font-size: 13px !important; /* Fiksno manja */
    text-decoration: line-through;
    text-shadow: none !important;
    opacity: 0.7;
    display: block !important; /* Osigurava novi red */
    line-height: 1 !important;
    margin-bottom: 2px !important;
}

/* --- 3. FIX ZA PORAVNANJE DUGMETA I VISINU CIJENE (ELECTRO TEMA) --- */

/* Kontejner u kojem stoje cijena i dugme */
.product-loop-footer,
.price-add-to-cart {
    display: flex !important;
    align-items: center !important; /* Vertikalno centriranje */
    justify-content: space-between !important; /* Cijena lijevo, dugme desno */
    flex-wrap: nowrap !important;
}

/* Sama cijena - Fiksiramo visinu da dugme ne skače */
ul.products li.product .price,
.owl-item > .product .price {
    display: flex !important;
    flex-direction: column !important; /* Jedna ispod druge */
    justify-content: center !important; /* Centriraj u rezervisanom prostoru */
    align-items: flex-start !important;
    
    /* KLJUČNO ZA SKAKANJE: */
    min-height: 55px !important; 
    
    line-height: 1.1 !important;
    margin-bottom: 0 !important;
    padding-right: 10px;
}

/* Dugme za korpu */
ul.products li.product .add_to_cart_button,
.product-loop-footer .button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: center !important;
}

/* Ostalo */
.single-product .woocommerce-tabs+section.related, 
.single-product .woocommerce-tabs~div.products {
    margin-bottom: 15.857em;
}

/* --- 4. MOBILNA PRILAGODBA --- */
@media (max-width: 768px) {
    /* Malo manja rezervacija visine na mobitelu */
    ul.products li.product .price,
    .owl-item > .product .price {
        min-height: 48px !important;
    }
    
    /* Smanji font cijene na mobitelu ako je prevelik */
    .owl-item > .product .price, 
    .products > .product .price {
        font-size: 16px; 
    }
}

/* Prisilno smanjivanje cijene u search dropdown-u čak i na stranici proizvoda */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .electro-price .price,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .electro-price .amount {
    font-size: 18px !important; 
    line-height: 1 !important;
}

/* Smanjivanje stare cijene u searchu */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .electro-price del .amount {
    font-size: 13px !important;
}

/* Popravka da KM ne skače u novi red zbog prevelikog fonta */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .electro-price ins {
    text-decoration: none !important;
}