/*
 Theme Name: Astra Child
 Theme URI: https://wpastra.com/
 Description: Child theme za Astra
 Author: Katarina 
 Template: astra
 Version: 1.0
 Text Domain: astra-child
*/

/* Stil za naslov "Sortiraj po ceni" */
.custom-price-filter h3 {
    font-family: 'Jost';
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* Raspored dugmića u istoj liniji */
.custom-price-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 300px;
    margin: 0;
    padding: 0;
}

/* Stil za dugmiće */
.custom-price-filter button.button {
    padding: 10px 15px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background-color: #933C4D;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: none !important;
}

/* Hover efekat (FIX: samo jednom i pravilno zatvoren) */
.custom-price-filter button.button:hover {
    background-color: #B96071;
}

/* Stil za aktivno dugme */
.custom-price-filter button.button.active {
    background-color: #6c2e2e;
    color: #ffffff;
    font-weight: bold;
}

/* Sakrivanje linka "Obriši filter" */
.custom-price-filter .reset-link {
    color: #933C4D;
    font-size: 14px;
}

.woocommerce div.product form.cart {
    display: flex;
    flex-direction: column;
}

.woocommerce div.product form.cart .quantity {
    margin-bottom: 15px;
}

#custom-personalization {
    margin-bottom: 20px;
}

/* FIX: NEMA <style> tagova u CSS fajlu */
#custom-invitation-form input[type="number"],
#custom-invitation-form input[type="email"] {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

/* Uklanjanje senke sa korpe */
.woocommerce-cart,
.woocommerce-cart .cart_totals,
.woocommerce-cart table.cart,
.woocommerce-mini-cart,
.woocommerce-mini-cart__content,
.custom-price-filter button.button {
    box-shadow: none !important;
}

@media screen and (max-width: 768px) {
    .woocommerce-products-header {
        display: flex;
        flex-direction: column;
    }

    .woocommerce-products-header .woocommerce-result-count {
        order: 2;
    }

    .woocommerce-products-header .woocommerce-ordering {
        order: 3;
    }

    .sidebar-main .widget_categories {
        order: 1;
    }

    .ast-container {
        display: flex;
        flex-direction: column;
    }

    #secondary {
        width: 100%;
        margin-bottom: 20px;
    }

    #primary, #secondary {
        float: none !important;
        display: block;
        width: 100%;
    }

    #secondary {
        position: relative;
        top: 0;
    }
}

/* Drugi "UKUPNO" (na dnu) – istakni ga više */
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
    font-weight: 700;
    font-size: 18px;
    color: #111827;
}

/* =========================================================
   STICKY CENA (CF7) — FINAL, STABILNO, THEME-FRIENDLY
   Nalepi na SAM KRAJ style.css / Additional CSS
   ========================================================= */

/* 0) Bezbedno: ako CF7 ubaci <p> i <br> unutar sticky-a */
#cena-sticky-container p{
  margin: 0 !important;
  padding: 0 !important;
  display: inline !important;
}
#cena-sticky-container br{
  display: none !important;
}

/* 1) Desktop sticky — bez “kartice”, bez bg, ali UVEK vidljivo */
#cena-sticky-container.cena-sticky{
  position: sticky !important;
  top: 16px !important;
  z-index: 99999 !important;

  /* layout samo */
  /*display: inline-flex !important;*/
  align-items: baseline !important;
  gap: 6px !important;
  white-space: nowrap !important;

  margin: 0 0 16px 0 !important;
  padding: 0 !important;

  /* nema vizuelnog dizajna */
  /*background: transparent !important;*/
  box-shadow: none !important;
  border: 0 !important;
  /*border-radius: 0 !important;*/

  /* KRITIČNO: spreči “nestanak” zbog inherited white text */
  color: var(--ast-global-color-2, #111827) !important;

  /* osiguraj da ne može da bude sakriven */
  /*opacity: 1 !important;*/
  visibility: visible !important;
}

/* 2) Spans nasleđuju temu za font, ali boja mora biti stabilna */
#cena-sticky-container.cena-sticky #cena-label,
#cena-sticky-container.cena-sticky #cena-prikaz{
  font: inherit !important;
  color: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 3) Ako ti Elementor/Astra negde menja overflow pa ubija sticky */
.elementor-column,
.elementor-widget-wrap,
.elementor-section,
.elementor-container{
  overflow: visible !important;
}

/* 4) Mobile bar dole — diskretan, ali čitljiv */
@media (max-width: 767px){
  #cena-sticky-container.cena-sticky{
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 12px !important;
    top: auto !important;

    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;

    /* malo prostora da se čita */
    padding: 10px 12px !important;
    margin: 0 !important;

    /* blagi “tema-friendly” background da se vidi preko sadržaja */
    /*background: var(--ast-global-color-5, rgba(255,255,255,0.96)) !important;*/
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 12px !important;

    /* tekst uvek vidljiv */
    color: var(--ast-global-color-2, #111827) !important;

    box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
  }

  /* da submit ne bude ispod bara */
  .wpcf7 form{
    padding-bottom: 95px !important;
  }
}

/* ===========================
   WooCommerce: svuda transparent (cart/checkout/order)
   =========================== */

/* Tabele (cart, order details) */
.woocommerce table.shop_table,
.woocommerce table.shop_table thead,
.woocommerce table.shop_table tbody,
.woocommerce table.shop_table tfoot,
.woocommerce table.shop_table tr,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  background: transparent !important;
  background-color: transparent !important;
}

/* Cart “totals” kutija + collaterals */
.woocommerce-cart .cart-collaterals,
.woocommerce-cart .cart_totals {
  background: transparent !important;
  background-color: transparent !important;
}

/* Checkout desni blok (order review) + payment box */
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout #payment,
.woocommerce-checkout #payment .payment_box,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout .woocommerce-checkout-review-order-table thead {
  background: transparent !important;
  background-color: transparent !important;
}

/* Kupon / notice trake */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* “Order received” (thank you) customer details / adrese */
.woocommerce-order .woocommerce-customer-details,
.woocommerce-order .woocommerce-customer-details--addresses,
.woocommerce-order .woocommerce-column--billing-address,
.woocommerce-order .woocommerce-column--shipping-address {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Ukloni pozadine sa Woo naslova u cart/checkout blokovima */
.woocommerce-cart .woocommerce h1,
.woocommerce-cart .woocommerce h2,
.woocommerce-cart .woocommerce h3,
.woocommerce-checkout .woocommerce h1,
.woocommerce-checkout .woocommerce h2,
.woocommerce-checkout .woocommerce h3 {
  background: transparent !important;
  background-color: transparent !important;
}

.woocommerce-checkout #payment div.payment_box {
  background: transparent !important;
  border: 1px solid rgba(0,0,0,0.10) !important;
}
.woocommerce-checkout #payment div.payment_box:before {
  border: 1em solid rgba(0,0,0,0.10) !important;
  border-right-color: transparent !important;
  border-left-color: transparent !important;
  border-top-color: transparent !important;
}

/* WooCommerce checkout input polja transparent */

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* isto za cart / coupon polja */
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select {
  background: transparent !important;
  background-color: transparent !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  border: 1px solid rgba(0,0,0,0.12);
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
  border-color: #D35E6A;
  outline: none;
}

/* Woo Select2 (država / okrug / region) transparent */

.select2-container--default .select2-selection--single {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* border da ostane isti kao inputi */
.select2-container--default .select2-selection--single {
    border: 1px solid rgba(0,0,0,0.12) !important;
}

/* tekst unutra */
.select2-container--default .select2-selection__rendered {
    background: transparent !important;
}

/* ===========================
   Custom product forms (tvoja polja) — isti look kao checkout
   =========================== */

#custom-invitation-form input,
#custom-invitation-form textarea,
#custom-invitation-form select,
#custom-card-form input,
#custom-card-form textarea,
#custom-card-form select,
#custom-personal-message-form input,
#custom-personal-message-form textarea,
#custom-personal-message-form select,
#custom-combined-form input,
#custom-combined-form textarea,
#custom-combined-form select {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  border-radius: 0 !important; /* ili 6px ako hoćeš mekše */
  padding: 12px 14px !important;
  width: 100% !important;
}

/* Focus boja */
#custom-invitation-form input:focus,
#custom-invitation-form textarea:focus,
#custom-invitation-form select:focus,
#custom-card-form input:focus,
#custom-card-form textarea:focus,
#custom-card-form select:focus,
#custom-personal-message-form input:focus,
#custom-personal-message-form textarea:focus,
#custom-personal-message-form select:focus,
#custom-combined-form input:focus,
#custom-combined-form textarea:focus,
#custom-combined-form select:focus {
  border-color: #D35E6A !important;
  outline: none !important;
}

/* Placeholder (da izgleda nežnije) */
#custom-invitation-form input::placeholder,
#custom-card-form input::placeholder,
#custom-personal-message-form input::placeholder,
#custom-combined-form input::placeholder,
#custom-invitation-form textarea::placeholder,
#custom-card-form textarea::placeholder,
#custom-personal-message-form textarea::placeholder,
#custom-combined-form textarea::placeholder {
  opacity: 0.65;
}

/* ===========================
   FIX: Custom forms – ne diraj radio + ne diraj quantity
   =========================== */

/* 1) Stilizuj SAMO prava polja (ne sve inpute) */
#custom-invitation-form input[type="text"],
#custom-invitation-form input[type="email"],
#custom-invitation-form input[type="number"],
#custom-invitation-form input[type="date"],
#custom-invitation-form input[type="datetime-local"],
#custom-invitation-form textarea,
#custom-invitation-form select,

#custom-card-form input[type="text"],
#custom-card-form input[type="email"],
#custom-card-form input[type="number"],
#custom-card-form input[type="date"],
#custom-card-form input[type="datetime-local"],
#custom-card-form textarea,
#custom-card-form select,

#custom-personal-message-form input[type="text"],
#custom-personal-message-form input[type="email"],
#custom-personal-message-form input[type="number"],
#custom-personal-message-form input[type="date"],
#custom-personal-message-form input[type="datetime-local"],
#custom-personal-message-form textarea,
#custom-personal-message-form select,

#custom-combined-form input[type="text"],
#custom-combined-form input[type="email"],
#custom-combined-form input[type="number"],
#custom-combined-form input[type="date"],
#custom-combined-form input[type="datetime-local"],
#custom-combined-form textarea,
#custom-combined-form select {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  padding: 12px 14px !important;
  width: 100% !important;
}

/* Focus */
#custom-invitation-form input[type="text"]:focus,
#custom-invitation-form input[type="email"]:focus,
#custom-invitation-form input[type="number"]:focus,
#custom-invitation-form input[type="date"]:focus,
#custom-invitation-form input[type="datetime-local"]:focus,
#custom-invitation-form textarea:focus,
#custom-invitation-form select:focus,

#custom-card-form input[type="text"]:focus,
#custom-card-form input[type="email"]:focus,
#custom-card-form input[type="number"]:focus,
#custom-card-form input[type="date"]:focus,
#custom-card-form input[type="datetime-local"]:focus,
#custom-card-form textarea:focus,
#custom-card-form select:focus,

#custom-personal-message-form input[type="text"]:focus,
#custom-personal-message-form input[type="email"]:focus,
#custom-personal-message-form input[type="number"]:focus,
#custom-personal-message-form input[type="date"]:focus,
#custom-personal-message-form input[type="datetime-local"]:focus,
#custom-personal-message-form textarea:focus,
#custom-personal-message-form select:focus,

#custom-combined-form input[type="text"]:focus,
#custom-combined-form input[type="email"]:focus,
#custom-combined-form input[type="number"]:focus,
#custom-combined-form input[type="date"]:focus,
#custom-combined-form input[type="datetime-local"]:focus,
#custom-combined-form textarea:focus,
#custom-combined-form select:focus {
  border-color: #D35E6A !important;
  outline: none !important;
}

/* 2) RESET za radio inpute (da ne dobiju width/padding) */
#custom-invitation-form input[type="radio"],
#custom-card-form input[type="radio"],
#custom-personal-message-form input[type="radio"],
#custom-combined-form input[type="radio"] {
  width: auto !important;
  padding: 0 !important;
  margin: 0 10px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  vertical-align: middle !important;
}

/* 3) FIX: plus/minus da budu vidljivi (Astra/Woo quantity) */
.woocommerce .quantity .plus,
.woocommerce .quantity .minus {
  background: transparent !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  color: #111827 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

/* i da broj u quantity inputu bude čitljiv */
.woocommerce .quantity input.qty {
  background: transparent !important;
  color: #111827 !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
  box-shadow: none !important;
}

/* CART: VRATI REMOVE (X) KOLONU */
.woocommerce-cart table.shop_table th.product-remove,
.woocommerce-cart table.shop_table td.product-remove{
  display: table-cell !important;
  width: 48px !important;
  min-width: 48px !important;
  text-align: center !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* CART: dugme X da bude vidljivo i lepo */
.woocommerce-cart a.remove{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 20px !important;
  line-height: 1 !important;
  border-radius: 999px !important;

  color: #FDFDF4 !important;
  background: #D35E6A !important;
  border: 1px solid rgba(0,0,0,0.14) !important;
}

.woocommerce-cart a.remove:hover{
  background: rgba(211,94,106,0.10) !important;
}

/* Ako Astra/Woo pokušava da ga sakrije na responsive */
@media (max-width: 768px){
  .woocommerce-cart table.shop_table td.product-remove{
    display: table-cell !important;
  }
}

/* CART: skloni dugme Azuriranje korpe */
.woocommerce-cart button[name="update_cart"]{
  display: none !important;
}

/* CHECKOUT: qty inline kao nastavak naziva */
.woocommerce-checkout #order_review td.product-name{
  display: table-cell !important; /* vrati normalno ponašanje */
  font-weight: inherit !important;
  opacity: 1 !important;
}

.woocommerce-checkout #order_review td.product-name .product-quantity{
  display: inline !important;
  margin-left: 6px !important;
  font-weight: 400 !important;
  opacity: .75;
}

/* ============================= */
/* PREMIUM HEADER UX IMPROVEMENT */
/* ============================= */

/* Elegant underline hover za navigaciju */
.ast-primary-header-bar .main-header-menu > .menu-item > a {
  position: relative;
  padding-bottom: 4px;
}

.ast-primary-header-bar .main-header-menu > .menu-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #F8D4D9; /* boja brenda */
  transition: width 0.3s ease;
}

.ast-primary-header-bar .main-header-menu > .menu-item > a:hover::after {
  width: 100%;
}


/* CTA dugme – mali lift efekat */
.ast-header-custom-item .ast-custom-button {
  transition: all 0.2s ease;
}

.ast-header-custom-item .ast-custom-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}


/* Malo veći razmak između menija i CTA dugmeta */
.ast-header-custom-item {
  margin-left: 30px;
}


/* Lagano smanjenje vizuelne težine za "O studiju" */
.main-header-menu > .menu-item:last-child > a {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.main-header-menu > .menu-item:last-child > a:hover {
  opacity: 1;
}


/* Malo elegantniji hover za korpu */
.ast-header-cart:hover {
  transform: scale(1.08);
  transition: transform 0.2s ease;
}