/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */


/* VRH */

#free-shipping-bar {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 10px 40px;
    position: relative;
    font-size: 14px;
}

#free-shipping-bar .close-bar {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
}

#free-shipping-bar .close-bar:hover {
    opacity: 1;
}



/* MEGA MENU GUMB VSI IZDELKI  */


.tabi_mova .kt-tab-title.kt-tab-title-8:hover {
	background-color: #FFFFFF !important;
}


.tabi_mova .kt-tab-title.kt-tab-title-8 span {
	padding: 9px 24px !important;
	border: 1px solid #1a1a1a !important;
	border-radius: 30px !important;
	width:auto !important;
	transition: all 0.2s ease;
}


.tabi_mova .kt-tab-title.kt-tab-title-8 span:hover {
	background-color: #f5f5f5 !important;
	border: 1px solid #f5f5f5 !important;
}


/* Izdelki v tabih */

.tabi_mova [data-products] .product .badge-new {
  background: none;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
}

.tabi_mova [data-products] .product .woocommerce-Price-amount {
  font-size: 13px;
}

.tabi_mova .woocommerce ul.products li.product .add_to_cart_button {
  display: none;
}

.tabi_mova [data-products] .product figure {
  --product-element-spacing: 8px !important;
}

.tabi_mova [data-products="type-1"] .ct-woo-card-actions[data-alignment="equal"] {
  display: none;
}

.tabi_mova [data-products] .woocommerce-loop-product__title {
  --theme-font-size: 13px;
}



.tabi_mova {
    max-height: calc(100vh - 200px); /* 👈 prilagodi višino headerja */
    overflow-y: auto;
}



/* product card = flex column */
.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* wrapper za vsebino (Blocksy uporablja to) */
.woocommerce ul.products li.product .ct-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 🔥 cena gre vedno na dno */
.woocommerce ul.products li.product .price {
    margin-top: auto;
}








.woocommerce ul.products li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* 🔥 max 3 vrstice */
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    min-height: 3.6em; /* fallback za enotno višino */
    line-height: 1.2em;
}














/*  MENU  */

.mova-menu ul {
    display: block;
    gap: 30px;
    list-style: none;
	line-height: 24px !important;	
    padding: 0;
    margin: 0;
}

.mova-menu a {
    text-decoration: none;
    color: #9d9d9d;
	font-size: 12px;
	text-align: left;
}

.mova-menu a:hover {
    color: #C9AD97;
}



/* SIDE MENU */

.ct-panel-content-inner {
  display: block;
}

/* IKONCA LUPA SEARCH */

.ct-search-form[data-form-controls="inside"]:not([data-taxonomy-filter="true"]) [data-button*="icon"] {
  background-color: #A67C00;
}



/* BENER */

.kb-splide[data-slider-dots="true"] {
  margin-bottom: 0 !important;
}

.kb-splide .splide__pagination, .kb-splide ul.splide__pagination.splide__pagination {
    bottom: 30px !important;
}

.splide__pagination__page::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #fff;
}


/* BENER NAVIGACIJA */

.kb-advanced-slider-239_f75e2c-e8 .splide__pagination__page {
  width: 80px;
  height: 3px;
  border: none;
  border-radius: 0px;
  background: rgba(255,255,255,0.5) !important;
  position: relative;
  overflow: hidden;
}




.splide__pagination li {
    position: relative;
}

/* naslov */
.dot-title {
    position: absolute;
    top: -22px;
    left: 0;
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    transition: 0.3s ease;	
}

.splide__pagination li .splide__pagination__page.is-active + .dot-title {
    opacity: 1;
}


/* fill */
.splide__pagination__page::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #fff;
}

/* animacija */
.splide__pagination__page.is-active::after {
    animation: progressBar 2.5s linear forwards;
}

@keyframes progressBar {
    from { width: 0%; }
    to { width: 100%; }
}


/* UVODNA STRAN POSTI */

.home-posts-4 [data-layout="enhanced-grid"] {
    --grid-template-columns: repeat(4, 1fr) !important;
}

.home-posts-4 [data-layout="enhanced-grid"] article {
    grid-column: auto !important;
}

.entries:not([data-cards="cover"]) :is(.entry-button, .entry-meta, .ct-media-container):last-child:not(:only-child) {
  font-size: 14px;
	color: #C9AD97;
}


@media (max-width: 768px) {
  
.home-posts-4 [data-layout="enhanced-grid"] {
    --grid-template-columns: repeat(2, 1fr) !important;
	}
  }




/* UVODNA STRAN INFO BOXI POD BENERJEM */

.infobox-mova {
	width: 230px;
}

@media (max-width: 768px) {
  .infobox-mova {
	width: 100px !important;
	}
	
	.infobox-mova .kt-infobox-textcontent {
		line-height: 16px !important;
	}
	
	
  }

/* slajder prva stran */

.slick-initialized .slick-slide {
  margin: 0 10px;
}


.slick-track {
    display: flex !important;
}

.slick-slide {
    height: auto !important;
    display: flex !important;
}




/* slike loop */

/* === Popravek Blocksy slik: slika naj bo vedno cela v kvadratu === */

/* Glavna WooCommerce mreža + Paše skupaj slike */
.woocommerce ul.products li.product img,
.pase-grid .pase-item img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  display: block;
  background-color: #fff;
  border: 0px solid #eee;
  border-radius: 10px;
  padding: 15px;
  box-sizing: border-box;
  object-fit: contain !important;
  aspect-ratio: 1 / 1 !important;
}








.woocommerce ul.products li.product img, .pase-grid .pase-item img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  display: block;
  background-color: transparent;
  border: 0px solid #eee;
  border-radius: 10px;
  padding: 15px;
  box-sizing: border-box;
  object-fit: contain !important;
  aspect-ratio: 1 / 1 !important;
}

.woocommerce-info, .woocommerce-thankyou-order-received, .wc-block-components-notice-banner.is-info {
    --background-color: #FAFAFA !important;
}




/* poskrbimo, da wrapper za slike ima relative */
.woocommerce ul.products li.product,
.woocommerce div.product div.images {
    position: relative;
}


/*** slick carousel izdelki ***/

.prev_arrow {
	position: absolute;
	width: 40px;
	height: 40px;
	top:250px;
	left:-20px;
	cursor: pointer;
	z-index:9;
	text-align: center;
	display: inline-block;
}

.next_arrow {
	position: absolute;
	width: 40px;
	height: 40px;
	top:250px;
	right:-20px;
	cursor: pointer;
	z-index:9;
	text-align: center;
	display: inline-block;
}



.prev_arrow, .next_arrow {
    width: 40px;
    height: 40px;
    background-color: #666;
	border-radius: 50%;

}

.prev_arrow:hover,
.next_arrow:hover {
    background-color: #A67C00;
}

.prev_arrow::before,
.next_arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid white;
    border-top: 0;
    border-right: 0;
    position: absolute;
    top: 50%;
}

.prev_arrow::before {
    left: 16px;
    transform: translateY(-50%) rotate(45deg);
}

.next_arrow::before {
    right: 16px;
    transform: translateY(-50%) rotate(-135deg);
}



/* === Točke zvestobe === */

.loyalty-product-points {
    background: #f5f7fa;
    border-left: 4px solid #8b5cf6;
    padding: 8px 12px;
    border-radius: 6px;
}
.loyalty-loop-points {
    margin-top: 4px;
    font-weight: 500;
}





/* === Checkout Progress Steps blagajna košarica zaključek === */
.checkout-progress {
  width: 100%;
  padding: 0 0 10px 0;
  margin-bottom: 20px;
  text-align: center;
}

.checkout-progress ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin: 0;
  padding: 0;
}

.checkout-progress li.step {
  position: relative;
  font-weight: 500;
  font-size: 16px;
  color: #999;
}

.checkout-progress li.step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -40px;
  width: 30px;
  height: 2px;
  background: #ddd;
  transform: translateY(-50%);
}

.checkout-progress li.step:first-child::before {
  display: none;
}

/* Aktivni korak */
.checkout-progress li.step.active {
  color: #A67C00;
  font-weight: 600;
}

/* Zaključeni koraki */
.checkout-progress li.step.done {
  color: #666666;
}

.checkout-progress li.step.done::before {
  background: #A67C00;
}







/* loop */


.woocommerce ul.products li.product {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;

}


.product .ct-media-container {
	border-radius: 8px;
}


/* loop značke */

.shop-loop-badges {
    position: absolute;
    z-index: 10;
	top:0;
	right: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}




.badge-sale,
.badge-new,
.badge-featured {
    color: #fff;
    font-weight: 400;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    line-height: 1.3;
}

.badge-sale {
    background: #DA0D00;
}

.badge-new {
    background: #FF453A;
}

.badge-featured {
    background: #A67C00;
}

.shop-loop-category {
    font-size: 16px;
    color: #666;
    margin: 2px 0 6px 0;
	text-decoration: underline;
}

.sale-price del {
  color: #666 !important;
	margin-top: 3px;
}


/* produkt kartica */
.woocommerce ul.products li.product {
    position: relative;
}

/* NOVO badge na sliki */
.badge-new-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}











.add_to_cart_button {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
}

.add_to_cart_button .btn-text {
    flex: 1;
    background: #000 !important;
    color: #fff;
    padding: 6px 40%;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center; /* to je ključ */
	font-size: 14px;
}

.add_to_cart_button .btn-text:hover {
    background: #C9AD97 !important;
}

.btn-ni-na-zalogi {
    flex: 1;
    background: #000 !important;
    color: #fff;
    padding: 6px 35%;
    border-radius: 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center; /* to je ključ */
	font-size: 14px;
	margin-bottom: 4px;
}

.btn-ni-na-zalogi:hover {
    background: #C9AD97 !important;
}


.add_to_cart_button img {
    flex: 0 0 60px;
    background: #fff;
    padding: 12px;
    border-radius: 0 20px 20px 0;
}


.add_to_cart_button:hover .btn-text {
    background: #C9AD97;
    color: #fff;
}


/* Skrij samo privzeto Blocksy ikono na Add to Cart gumbu */
/* Skrij privzeto ikonco v Add to cart gumbu (loop) */
.woocommerce a.add_to_cart_button img {
    display: none !important;
}

[data-products="type-1"] .ct-woo-card-actions {
    width: 100% !important;
	text-align: center;
	border-radius: 4px;
}


a.button.product_type_simple img {
	display: none !important;
}


.added_to_cart {
	width: 100%;
}




.ct-woo-card-actions .button {
	width: 100%;
}



.ui-slider-horizontal .ui-slider-range {
  background-color: #A67C00 !important;
}



/* na zalogi */

    .custom-stock {
        color: #14B90C; /* zelena */
        font-weight: 600;
        font-size: 1.1em;
        display: flex;
        align-items: center;
        margin: 10px 0 0 0;
		font-size: 16px;
    }
		
		
	.stock-dot {
    width: 10px;
    height: 10px;
    background-color: #14B90C; /* zelena */
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.25);
}	
		
    .custom-stock .stock-icon {
        width: 20px; /* prilagodi velikost ikone */
        height: auto;
        margin-right: 6px;
        display: inline-block;
    }
    .custom-stock-tekst {
        color: #666666; /* zelena */
        font-weight: 400;
        font-size: 1.1em;
        display: flex;
        align-items: center;
        margin: 0 0 0 10px;
		font-size: 16px;
    }	


    .custom-stock-loop {
        color: #14B90C; /* zelena */
        font-weight: 600;
        font-size: 1.1em;
        display: flex;
        align-items: center;
        margin: 10px 0 0 0;
		font-size: 14px;
    }


.stock-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.stock-green {
    background-color: #14B90C;
}

.stock-red {
    background-color: #e74c3c;
}






/* MENU KATEGORIJE */

.cat-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-menu-item a {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #666666;
    font-weight: 500;
}

.cat-menu-item a:hover {
    background: #f7f7f7;
}

.cat-label {
    font-weight: 600;
}

.cat-count {
    color: #A67C00;
    font-size: 0.9em;
}

.cat-menu-item > a {
    display: block;
    padding: 8px 12px;
}

/* Skrij podkategorije */

.cat-parent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-main-link {
    flex: 1;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
}

.cat-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
}

.sub-cat-list {
    list-style: none;
    padding-left: 15px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.parent-cat.active > .sub-cat-list {
    max-height: 500px;
}

.sub-cat-item a {
    display: block;
    padding: 6px 10px;
    font-size: 14px;
}















[data-footer*="type-1"] .ct-footer [data-column="text:ksnK1k"] {
  display: block;
}



/* FILTRI */

.ui-slider-horizontal .ui-slider-range {
  background-color: #A67C00;
}

.wpc-filters-widget-top-container {
  background: transparent !important;
}



/* BLAGOVNE ZNAMKE GRID */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
    gap: 20px;
    align-items: center;
}
.brand-item {
    text-align: center;
}
.brand-item img {
    max-height: 60px;
    object-fit: contain;
}




/* CENA MONTAŽE */
.montaza-wrapper {
  margin-top:20px;
  padding:15px;
  background:#f5f5f5;
  border-radius:10px;
}

.montaza-toggle {
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:600;
  cursor:pointer;
  font-size:16px;
}

.montaza-toggle input[type="checkbox"] {
  width:22px;
  height:22px;
  cursor:pointer;
}



.ct-pagination {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100%;
	margin-right: 10px;
}

[data-pagination="simple"] > div {
  padding-right: 10px;
}




/* FOOTER */ 

[data-column="text:ksnK1k"] .entry-content::before{
content:"PRODAJNI PROGRAM";
display:block;
font-size:20px;
color: #666666 !important;
font-weight:600;
margin-bottom:30px;
}

[data-column="menu"] nav::before{
content:"POMOČ UPORABNIKOM";
display:block;
font-size:20px;
color: #666666 !important;
font-weight:600;
margin-bottom:30px;
	margin-top: -8px;
}

[data-column="contacts:jSPJDX"] .ct-contact-info::before{
content:"PODPORA STRANKAM";
display:block;
font-size:20px;
color: #666666 !important;
font-weight:600;
margin-bottom:30px;
	margin-top: -8px;
}



/* BADGES NA IZDELKU IN LOOPU */

.steluno-product-badges-row{
display:flex;
gap:8px;
margin-top:15px;
	margin-bottom: 20px;
flex-wrap:wrap;
}

.steluno-badge{
padding:6px 12px;
border-radius:4px;
font-size:12px;
font-weight:600;
color:white;
	line-height: 1.3;
}

.badge-1{
background:#e67e22;
}

.badge-2{
background:#27ae60;
}

.badge-3{
background:#3498db;
}


/* KATEGORIJE GRID */

.kategorije-grid {
    display: grid;
    gap: 20px;
	width: 100%;
}

/* default fallback */
.kategorije-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.kategorije-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.kategorije-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 📱 mobile */
@media (max-width: 768px) {
    .kategorije-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* lihe vrstice (1,3,5...) */
.kategorije-grid.cols-2 .kategorija-card:nth-child(4n+1),
.kategorije-grid.cols-2 .kategorija-card:nth-child(4n+2) {
  background: #f5f5f5; /* prva barva */
}

/* sode vrstice (2,4,6...) */
.kategorije-grid.cols-2 .kategorija-card:nth-child(4n+3),
.kategorije-grid.cols-2 .kategorija-card:nth-child(4n+4) {
  background: #efefef; /* druga barva */
}

.kategorije-grid.cols-4 .kategorija-card {
    background: #f5f5f5;
}

.kategorije-grid.cols-3 .kategorija-card {
    background: #f5f5f5;
}


.kategorija-card {
  width: 100%;
  display: flex;
  flex-direction: column;
	text-align: center;
	padding: 30px;
	border-radius: 8px;
}

.kategorija-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.kategorija-card h3 {
  margin: 15px 0;
	font-size: 24px;
}

.kat-btn {
  color: var(--theme-palette-color-8, #ffffff);
  background: var(--theme-palette-color-1, #1A1A1A);
  line-height: 1;
  font-weight: 400;
  border-radius: 20px;
  border: 1px solid var(--theme-palette-color-1, #1A1A1A);
  padding-top: 13px;
  padding-right: 32px;
  padding-bottom: 13px;
  padding-left: 32px;
	margin: 20px auto;
	min-width: 140px;
}

.kat-btn:hover {
    background-color: var(--theme-palette-color-8, #ffffff);
	color: var(--theme-palette-color-1, #1A1A1A);
	border: 1px solid var(--theme-palette-color-8, #ffffff);
}




@media (max-width: 768px) {

	
	
.kategorije-grid {
  gap: 8px;
}	
	
.kat-btn {
	min-width: 80px;
	}

.kategorija-card {
  width: 100%;
  padding: 8px;
}	
	
.kategorija-card img {
  width: 100%;
	min-width: 100%;
  height: auto;
  object-fit: cover;
}	
	
.kategorija-card h3 {
  margin: 10px 0;
	font-size: 20px;
    -webkit-line-clamp: 3;   /* 🔥 max 3 vrstice */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.6em; /* fallback za enotno višino */
    line-height: 1.2em;	
	
}	


 }


@media (max-width: 768px) {
[data-vertical-spacing*="top"] {
  padding-top: 15px !important;
  }
}


.acc-back-to-top {
    position: sticky;
    bottom: 10px;
    margin-top: 20px;

    display: inline-block;
    background: #000;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
}

.acc-back-to-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
}


.app-download-buttons {
    display: flex;
    gap: 15px;
}

.app-btn {
    position: relative;
    display: inline-block;
}

.app-btn img {
    display: block;
    height: 40px; /* prilagodi po želji */
}

/* TOOLTIP */
.app-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    opacity: 0;
    pointer-events: none;

    background: #fff;
    padding: 0px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);

    transition: all 0.25s ease;
    z-index: 999;
	width:200px;
}

.app-tooltip img {
    width: 200px;
    height: auto;
}

/* HOVER */
.app-btn:hover .app-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}



/* FILTRI ENA */


#priceFilter {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#priceFilter label {
    display: flex;
    align-items: center;
}

#priceFilter input {
    margin-right: 10px;
}
