/**
* Theme Name: Nutreko Child
* Description: This is a child theme of Nutreko, generated by Merlin WP.
* Author: <a href="https://wpopal.com/">Opalthemes</a>
* Template: nutreko
* Version: 1.0.8
*/

/* =======================================================
   SHOP GRID – NASLOVI I CIJENE
======================================================= */

/* Linija ispod naslova proizvoda u gridu */
.product-block .product-top h3.woocommerce-loop-product__title {
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Shop grid cijene – desktop */
.woocommerce ul.products li.product .product-block .product-caption .price {
    display: flex !important;
    justify-content: center !important;
    flex-direction: row !important;
    width: 100% !important;
    font-weight: 700 !important;
    font-size: 20px !important; /* desktop veličina */
    box-shadow: 0 6px 12px rgba(0,0,0,0.25) !important;
}

/* Shop grid cijene – mobilna verzija */
@media (max-width: 767px) {
  .woocommerce ul.products li.product .product-block .product-caption .price {
      font-size: 26px !important; /* mobilna veličina */
      font-weight: 700 !important;
      box-shadow: 0 6px 12px rgba(0,0,0,0.25) !important;
  }
}

/* Border + shadow samo za shop grid cijene */
.woocommerce ul.products li.product .product-block .product-caption .price {
    display: inline-block;
    border: 2px solid #000000;
    padding: 10px 15px;
    margin: 10px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    background-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Linija ispod slike u shop gridu */
.woocommerce ul.products li.product .product-transition {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.woocommerce ul.products li.product .product-transition::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
}


/* =======================================================
   SINGLE PRODUCT PAGE – CIJENE (s kompletnim okvirom)
======================================================= */

/* Glavni kontejner za cijenu (radi i s popustom i bez njega) */
.single-product .summary p.price {
    display: inline-block;
    background: #fff;
    border: 2px solid #e30613;          /* crveni okvir sa svih strana */
    border-radius: 8px;
    padding: 12px 26px;                 /* dovoljno prostora za donji rub */
    margin: 16px 0 24px 0;
    line-height: 1.2;
    box-shadow: 0 6px 16px rgba(227,6,19,0.15);
    max-width: fit-content;
}

/* NOVA CIJENA (aktuelna) */
.single-product .summary .price ins .woocommerce-Price-amount,
.single-product .summary .woocommerce-Price-amount {
    font-size: 42px !important;
    font-weight: 800 !important;
    color: #333 !important;
    text-decoration: none !important;
}

/* STARA CIJENA (ako postoji popust) */
.single-product .summary .price del .woocommerce-Price-amount {
    font-size: 20px !important;
    font-weight: 400 !important;
    color: #888 !important;
    text-decoration: line-through !important;
    margin-right: 12px !important;
    opacity: 0.9;
}

/* VALUTA (KM) */
.single-product .summary .woocommerce-Price-currencySymbol {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-left: 4px;
    position: relative;
    top: -2px; /* vizualno poravnanje s brojem */
}

/* Hover – blagi “lift” efekat */
.single-product .summary p.price:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227,6,19,0.25);
    transition: all 0.3s ease;
}

/* Responsive (mobilni) */
@media (max-width: 767px) {
  .single-product .summary p.price {
      padding: 10px 20px;
  }
  .single-product .summary .price ins .woocommerce-Price-amount,
  .single-product .summary .woocommerce-Price-amount {
      font-size: 32px !important;
  }
}



/* =======================================================
   CART I CHECKOUT
======================================================= */

/* Globalne WooCommerce cijene (cart i checkout) */
.woocommerce-cart .cart .price,
.woocommerce-checkout .cart .price,
.woocommerce-checkout-review-order-table .product-total .woocommerce-Price-amount,
.woocommerce-checkout-review-order-table .order-total .woocommerce-Price-amount {
    font-size: 20px !important;
    font-weight: 400 !important; /* normal */
    color: #000 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}



/* =======================================================
   GLOBALNI FONT
======================================================= */

/* Forsiraj Elementor zadani font na cijelom sajtu */
body, body * {
    font-family: var(--e-global-typography-primary-font-family), sans-serif !important;
}
/* === PATCH: prisili kompletan crveni okvir (uklj. donji rub) === */
.single-product div.product .summary p.price{
    display: inline-block !important;
    background: #fff !important;
    border: 2px solid #e30613 !important;   /* sve 4 ivice */
    border-radius: 8px !important;
    padding: 12px 26px 14px 26px !important;/* malo više dole da se rub vidi */
    line-height: 1.2 !important;
    box-shadow: 0 6px 16px rgba(227,6,19,0.15) !important;
    max-width: fit-content !important;
}

/* Ako je neki stil negdje “skinuo” samo bottom, vrati ga */
.single-product div.product .summary p.price{
    border-bottom-width: 2px !important;
}

/* Stabilizuj sadržaj unutar okvira da ništa ne “guta” donji rub */
.single-product div.product .summary p.price .woocommerce-Price-amount{
    display: inline-block !important;
    line-height: 1 !important;
}

/* U slučaju da tema dodaje masku preko ::after – ugasi je */
.single-product div.product .summary p.price::after{
    content: none !important;
}
/* Kada proizvod nije na stanju */
.woocommerce ul.products li.product.outofstock {
  pointer-events: none;          /* onemogućava klik */
  opacity: 0.5;                  /* zasivljenje */
  filter: grayscale(70%);        /* blagi crno-bijeli ton */
  position: relative;
}

/* Možeš dodati i traku ili poruku "Nema na stanju" */
.woocommerce ul.products li.product.outofstock::after {
  content: "Nema na stanju";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
