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




body, html{
	overflow-x: hidden !important;
}

:root {
 --container-width: 96%;
 --container-max-width: 96%;
	margin: 0 auto;
}

.hero-section[data-type="type-1"] {
    --margin-bottom: 20px !important;
}


.ct-cart-actions {
    --buttonMinHeight: 50px !important;
}

[data-header*="type-1"] [data-sticky*="yes"] .site-title {
  font-size: 10.5px;
}


.naslov_spletna_trgovina {
text-shadow: 2px 0 #DE847B, -2px 0 #DE847B, 0 2px #DE847B, 0 -2px #DE847B, 1px 1px#DE847B, -1px -1px #DE847B, 1px -1px #DE847B, -1px 1px #DE847B;
}

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

.kb-splide .splide__arrow--prev {
  left: calc(100% - 100px);
	bottom: 30px;
}

.kb-splide .splide__arrow--next {
  right: 30px;
	bottom: 30px;
}

.kb-splide .splide__arrow {
  font-size: 1rem;
  height: 30px;
  width: 30px;
  opacity: .7;
	top: 90%;
  opacity .3s ease-in-out;
}

.kb-splide .splide__pagination__page {
  height: 16px;
  opacity: .5;
  width: 16px;
}




.single_add_to_cart_button {
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  transition: all 0.3s ease;
  animation: shakeMe 4s infinite; /* vsakih 4 sekund */	
}



/* Keyframes za “shake” efekt */
@keyframes shakeMe {
  0%, 92%, 100% { transform: translateX(0); }
  94% { transform: translateX(-3px); }
  96% { transform: translateX(3px); }
  98% { transform: translateX(-2px); }
}



.ct-sidebar {
    padding-bottom: 40px !important;
}

.out-of-stock-badge {
    z-index: 1;
    top: 0;
    left: calc(100% - 60px) !important;
    border-radius: var(--badge-radius, 0px);
    font-weight: 600;
}


.ct-woo-badges {
  width: 100% !important;
}

[class*="ct-woo-badge-"][data-shape="type-3"] {
  --badge-min-width: 100px !important;
}

.ct-woo-card-extra[data-type="type-1"] .ct-button {
  border: 1px solid #ccc;
}

.ct-woo-badge-featured {
  white-space: nowrap; 
	right: 55px !important;
	position: absolute;
	margin-top: 2px;
}

.single-product .ct-woo-badge-featured {
  white-space: nowrap; 
	right: 155px !important;
	position: absolute;
	margin-top: 2px;
}

.related .ct-woo-badge-featured {
  right: 55px !important;
  margin-top: 2px;
}

[data-products="type-1"] .product {
	padding: 10px;
	border: 1px solid #ddd;
}

[data-products="type-1"] .product:hover {
	border: 1px solid #999;
}

/* popust loop */

[data-products="type-1"]  .product span.onsale {
	position: absolute !important;
	line-height: 1em;
	border-radius: 0 !important;
	top: -10px !important;
	left: -10px !important;
	max-width: 80px;
	min-width: 80px;
	height: 26px;
	font-size: 13px;
	font-weight: 500;
}



.woocommerce .price {
    display: block !important;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap !important;
    margin-bottom: 5px !important;
}

.cena-brez-ddv {
    color: #666;
    line-height: 0.5em;
	  display: block;
}

.single-product .cena-brez-ddv {
  font-size: 18px;
  font-weight: 500 !important;
  padding-bottom: 10px;
  margin-top: 0px !important;
}

.related .cena-brez-ddv {
  margin-top: 0px !important;
}

/* popust izdelek */

span.onsale {
	left: calc(100% - 150px) !important;
}

.discount-inline {
    margin-left: 8px;
    color: #e63946;
    font-weight: bold;
    font-size: 0.9em;
}


/* novo arhiv */
.ct-woo-card-extra.new-badge{
	position: absolute;
    background: #E54C60;
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 50px;
	font-size: 9px;
	padding: 5px;
	right: 25px;
	z-index: 2;
	display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
	top: 65px;
}

/* novo izdelek */
.itsnew {
   background: #f37b21;
   padding: 5px 10px;
   font-size: 12px;
   font-weight: 600;
   color: #fff;
   margin-top: 15px;
   float: right;
   top: 15px;
}

/* prihranek loop */


.you-save-price {
    display: block;
    color: #1d3557;
    font-size: 14px;
    margin-top: 4px;
}


/* naslov loop */

.product .woocommerce-loop-product__title {
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 1;
   -webkit-box-orient: vertical;
	 line-height: 1.2em !important;
}

/* opis loop */

[data-products] .product .entry-excerpt {
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
   -webkit-line-clamp: 4;
   -webkit-box-orient: vertical;
	padding: 5px 0;
}



[data-products="type-1"] .product .single_add_to_cart_button:not(.added), .product .button[class*="product_type"] {
	padding: 0px 10px;
	font-size: 13px;
}



.woocommerce button.button, .woocommerce button.button.alt {
    border-radius: 0px;
    padding-right: 10px;
    padding-left: 10px;
	  min-width: 240px;
}


@media only screen and (max-width: 780px) {

.woocommerce button.button, .woocommerce button.button.alt {
	  min-width: 160px;
}

}



/* cena loop */

[data-products="type-1"] .price {
  margin-top: 20px;
}

/* nalepke na arhivu */

.napisi_arhiv {
  position: absolute;
	top:27px;
	left: 15px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.nalepka_arhiv_napis_ena {
	display: inline-flex;
	font-weight: 500;
	font-size: 13px;
	padding: 4px 8px;
	background-color: #67595E;
	color: #fff;
}

.nalepka_arhiv_napis_dve {
	display: inline-flex;
	font-weight: 500;
	font-size: 13px;
	padding: 4px 8px;
	background-color: #F79489;
	color: #fff;
}

.nalepka_arhiv_napis_tri {
	display: inline-flex;
	font-weight: 500;
	font-size: 13px;
	padding: 4px 8px;
	background-color: #cccccc;
	color: #000;
}

.nalepka_arhiv_slika_ena {
  	display: inline-flex;
	width: 80px !important;
	height: auto;
}



.napisi_izdelek {
  position: absolute !important;
	top: 20px;
	left: 140px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.nalepka_izdelek_napis_ena {
	display: inline-flex;
	font-weight: 500;
	font-size: 13px;
	padding: 4px 8px;
	background-color: #67595E;
	color: #fff;
}

.nalepka_izdelek_napis_dve {
	display: inline-flex;
	font-weight: 500;
	font-size: 13px;
	padding: 4px 8px;
	background-color: #F79489;
	color: #fff;
}

.nalepka_izdelek_napis_tri {
	display: inline-flex;
	font-weight: 500;
	font-size: 13px;
	padding: 4px 8px;
	background-color: #cccccc;
	color: #000;
}

.nalepka_izdelek_slika_ena {
  	display: inline-flex;
	width: 80px !important;
	height: auto;
}



/* Skrij dropdown selecte, pusti swatche */
form.cart .variations select {
  display: none !important;
}

/* Skrij reset gumb, če ga nočeš */
form.cart .reset_variations {
  display: none !important;
}


/* gumb kot label */
.dodaj-in-prihrani .bundle-attribute label {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px 5px 3px 0;
  border: 2px solid #ccc;
  border-radius: 5px;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

/* hover efekt */
.dodaj-in-prihrani .bundle-attribute label:hover {
  border-color: #666;
  background: #666;
	color: #fff;
}

/* izbrani */
.dodaj-in-prihrani .bundle-attribute input[type="radio"]:checked + label {
  border-color: #666;
  background: #666;
  color: #fff;
  font-weight: bold;
}









.custom-fields-wrapper {
    position: absolute;
    top: 50px; /* prilagodi glede na postavitev */
    left: 20px; /* prilagodi glede na postavitev */
    width: 300px; /* nastavi širino po potrebi */
    z-index: 100; /* poskrbi, da bo nad ostalimi elementi */
    background-color: rgba(255, 255, 255, 0.8); /* opcijsko ozadje */
    padding: 10px;
    border-radius: 10px;
}

.custom-field-1 {
    color: red;
    font-size: 16px;
    margin-bottom: 10px; /* razmik med elementi */
}

.custom-field-2 {
    color: green;
    font-size: 14px;
    margin-bottom: 10px;
}

.custom-field-3 {
    color: blue;
    font-size: 12px;
    margin-bottom: 10px;
}

.custom-field-image {
    text-align: center;
    margin-bottom: 10px;
}

.custom-image {
    max-width: 100%; /* slika se bo prilagodila širini */
    height: auto;
}



/* navigacija na izdelku */
/* navigacija gre desno od naslova */
.custom-product-navigation-lite {
  float: right;
  margin-left: 15px;
  display: flex;
  gap: 10px;
}

.custom-product-navigation-lite a {
  display: flex;
  align-items: center;
}

.custom-product-navigation-lite img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.custom-product-navigation-lite .nav-arrow {
  font-size: 18px;
}

.custom-product-navigation-lite a img {
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  border-radius: 20px;
}

.custom-product-navigation-lite a:hover img {
  border-color: #444; /* lahko daš tudi tvojo glavno barvo */
}









/* slajder prva stran */

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


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

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






/*** 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 {
	background-image: url("/wp-content/uploads/2024/03/levo-bela-fat.svg");
	background-position: center center;
	background-size: 25px;
	background-repeat: no-repeat;
	background-color: #ccc;
}
.prev_arrow:hover {
	background-color: #333;
}


.next_arrow {
	background-image: url("/wp-content/uploads/2024/03/desno-bela-fat.svg");
	background-position: center center;
	background-size: 25px;
	background-repeat: no-repeat;
	background-color: #ccc;
}

.next_arrow:hover {
	background-color: #333;
}



.ct-order-review {
    background-color: #fbfbfb;
}

.wc_payment_method > input[type="radio"] {
	border-color: #333333 !important;
}


.ct-wishlist-button-single .ct-tooltip-top {
   display: none !important;
}

/* kategorije izdelkov sidebar */

.acclassic .trwca-accordion li a {
  padding-left: 0 !important;
}

.trwca-actheme .trwca-accordion a {
  font-size: 16px !important;
}

button[name='update_cart'] {
   display: none !important;
}


@media (min-width: 1101px) and (max-width: 1300px) {
  [data-products].columns-4 {
    --shop-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) and (max-width: 1100px) {
  [data-products].columns-4 {
    --shop-columns: repeat(2, minmax(0, 1fr));
  }
}


@media only screen and (max-width: 780px) {



#izdelek_loop form.variations_form table.variations {
    margin-top: 0px;
    border: 0 !important;
    height: 0px !important;
     display: contents !important;
}


	
.napisi_izdelek {
  top: 20px;
  left: 20px;
}	

  .single-product .ct-woo-badge-featured {
    white-space: nowrap;
    right: 20px !important;
    position: absolute;
    margin-top: 2px;
  }	
	
	
}


li .ct-wishlist-button-single {
	max-width: 40px !important;
	margin-left: 0px;
}

/* sekcija paše skupaj na izdelku */

.pase-skupaj-section .entry-excerpt {
    display: none !important;
}

/* dodaj in prihrani */

.dodaj-in-prihrani {
  margin-top: 25px;
	margin-bottom: 25px;
}

.dodaj-in-prihrani h3{
  font-size: 24px;
	margin-bottom: 5px;
}

.dodaj-in-prihrani-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.dodaj-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  position: relative;
  background: #fafafa;
}

.dodaj-item input[type="checkbox"] {
  margin-right: 10px;
}

.dodaj-thumb {
  flex: 0 0 60px;
}

.dodaj-thumb img {
  width: 60px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.dodaj-info {
  flex: 1;
}

.dodaj-title {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.dodaj-price del {
  color: #999;
  margin-right: 5px;
}

.dodaj-znacka {
  position: absolute;
  top: 0px;
  right: 0px;
  background: #00b91e !important;
  color: #fff;
  padding: 2px 6px;
  font-size: 13px;
	font-weight: bold;
  border-radius: 0 5px 0 5px !important;
}

.dodaj-sum {
  margin-top: 10px;
  font-weight: bold;
  color: #388e3c;
}


/* Brezplačna poštnina */

.woocommerce-message-postnina {
	margin-top: 15px;
}



/* set-bundle */
.woocommerce-cart .set-contents,
.woocommerce-checkout .set-contents {
  margin-top: 4px;
}

.woocommerce-cart .set-contents div,
.woocommerce-checkout .set-contents div {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.woocommerce-cart .set-contents img,
.woocommerce-checkout .set-contents img {
  width: 28px;
  height: auto;
  border-radius: 3px;
  margin-right: 6px;
}

.woocommerce-cart .set-contents span,
.woocommerce-checkout .set-contents span {
  font-size: 13px;
  line-height: 1.4;
}

.woocommerce-cart .wc-item-meta-label:contains("Vključuje"),
.woocommerce-checkout .wc-item-meta-label:contains("Vključuje") {
  display: none !important;
}

.woocommerce table.shop_table td dl.variation dt:after {
    content: "" !important;
}
