@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//optimumstore.ba/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.3.6") format("woff2");
}

:root {
	--wd-text-font: "Work Sans", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #767676;
	--wd-text-font-size: 16px;
	--wd-title-font: "Mulish", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 700;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Mulish", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 700;
	--wd-entities-title-transform: none;
	--wd-entities-title-color: rgb(36,36,36);
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Lato", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Mulish", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 700;
	--wd-widget-title-transform: none;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Mulish", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: capitalize;
	--wd-header-el-font-size: 15px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: rgb(255,94,43);
	--wd-alternative-color: rgb(0,0,0);
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: rgb(255,94,43);
	--btn-accented-bgcolor-hover: rgb(234,65,39);
	--wd-form-brd-width: 0px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
	--wd-sticky-btn-height: 95px;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: rgb(248,248,248);
	background-image: url(https://optimumstore.ba/wp-content/uploads/2022/05/popup-banner.jpg);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
html .wd-nav.wd-nav-secondary > li > a {
	font-family: "Mulish", Arial, Helvetica, sans-serif;
	font-weight: 800;
}
html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
	font-size: 18px;
	text-transform: none;
}
html .wd-nav-mobile > li > a {
	text-transform: none;
}
.whb-general-header .wd-nav.wd-nav-secondary > li > a {
	font-weight: 400;
	color: rgb(119,119,119);
}
.whb-general-header .wd-nav.wd-nav-secondary > li:hover > a, .whb-general-header .wd-nav.wd-nav-secondary > li.current-menu-item > a {
	color: rgb(36,36,36);
}
html .entry-summary .single_add_to_cart_button, .wd-single-add-cart .single_add_to_cart_button, html .wd-sticky-btn-cart .single_add_to_cart_button, html .wd-sticky-add-to-cart, html .wd-sticky-btn.wd-quantity-overlap div.quantity input[type] {
	background: rgb(33,33,33);
}
html .entry-summary .single_add_to_cart_button:hover, .wd-single-add-cart .single_add_to_cart_button:hover, html .wd-sticky-btn-cart .single_add_to_cart_button:hover, html .wd-sticky-add-to-cart:hover, html .wd-sticky-btn.wd-quantity-overlap .cart:hover > div.quantity input[type], html .wd-sticky-btn.wd-quantity-overlap .cart:hover > div.quantity+.button {
	background: rgb(0,0,0);
}
body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {
	--wd-form-color: rgb(119,119,119);
	--wd-form-placeholder-color: rgb(119,119,119);
	--wd-form-bg: rgba(15,15,15,0.04);
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 1090px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 15px;
}
.woocommerce-product-gallery.thumbs-position-left {
	--wd-thumbs-width: 150px;
}

@media (max-width: 1024px) {
	:root {
		--wd-sticky-btn-height: 95px;
	}
	html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
		font-size: 16px;
	}
	.woocommerce-product-gallery {
		--wd-gallery-gap: 10px;
	}

}

@media (max-width: 768.98px) {
	:root {
		--wd-sticky-btn-height: 60px;
	}
	html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
		font-size: 16px;
	}
	.woocommerce-product-gallery {
		--wd-gallery-gap: 4px;
	}

}
:root{
--wd-container-w: 1390px;
--wd-form-brd-radius: 0px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 0px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-default-box-shadow-active: none;
--btn-default-bottom: 0px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--btn-accented-box-shadow-active: none;
--btn-accented-bottom: 0px;
--wd-brd-radius: 0px;
}

@media (min-width: 1390px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}



#trp-floater-ls-current-language.trp-with-flags, #trp-floater-ls-language-list.trp-with-flags {
    text-align: left;
    display: none;
}

.whb-top-bar {
    background-color: rgb(255 94 43) !important;
    border-color: rgba(129, 129, 120, 0.2);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.product-image-wrap {
    filter: brightness(0.97);
}

.product-images {
    filter: brightness(0.97);
}

.nav-link-text {
    text-transform: initial !important;
}



/* Osiguravanje 1:1 odnosa slike */
.woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Odnos 1:1 */
}

/* Pozicioniranje slike kao cover (pokriva cijeli prostor) */
.woocommerce-product-gallery__image img {
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.tabs-layout-accordion .wd-scroll-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.wd-sticky-btn { 
    box-shadow: 0 0 80px rgb(33 33 33 / 40%);
}

/* Stil za slike u formatu 1:1 */
.product-image-link {
    position: relative;
    display: block;
    overflow: hidden; /* Skriva sve što izlazi izvan okvira */
    width: 100%; /* Podesite širinu na 100% */
    height: 0;
    padding-bottom: 100%; /* Održava omjer 1:1 */
}

.product-image-link img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centriranje slike */
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cropuje sliku od sredine */
}

textarea#order_comments {
    min-height: 70px;
}

@media (min-width: 1025px) {
	 /* Glavna forma */
  form.cart {
    display: flex;
    flex-direction: row; /* Postavljanje u jedan red */
    gap: 20px; /* Razmak između elemenata */
    align-items: center;
  }

  /* Odabir varijacija (ako postoji) */
  form.cart .variations {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  /* Wrap dugmadi + količine */
  form.cart .mobile-button-row {
    display: flex;
    flex-direction: row; /* Postavljanje u jedan red */
    gap: 10px; /* Dodajemo razmak između dugmadi */
    justify-content: flex-start;
    align-items: center;
  }

  /* Količina */
  form.cart .quantity {
    max-width: 100px; /* Povećavamo širinu količine na desktopu */
    flex: 0 0 auto;
  }

  /* Dugmad */
  form.cart .single_add_to_cart_button,
  form.cart .wd-buy-now-btn {
    flex: 1 1 auto; /* Dugmadi zauzimaju proporcionalni prostor */
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ako nema varijacija – default fallback da sve ide u red */
  form.cart:not(:has(.variations)) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  form.cart:not(:has(.variations)) .quantity {
    margin-right: 15px; /* Razmak između količine i dugmadi */
  }

  form.cart:not(:has(.variations)) .single_add_to_cart_button,
  form.cart:not(:has(.variations)) .wd-buy-now-btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 576px) {
	/* Sakrij samo količinu */
.wd-sticky-btn .quantity {
    display: none;
}


.wd-quantity-overlap div.quantity:not(.hidden)+.single_add_to_cart_button {
    padding-inline-start: 20px !important;
}

.wd-sticky-btn-cart.wd-product-type-simple button.single_add_to_cart_button.button.alt {
    font-size: 22px !important; 
    padding: 30px !important;  
    line-height: 2 !important;  
  
}


.wd-sticky-btn-cart.wd-product-type-variable a.wd-sticky-add-to-cart.button.alt {
    font-size: 22px !important;
    padding: 30px !important;
    line-height: 2 !important;
}






/* Skrivamo Add to Cart dugme na mobilnim uređajima */

    .wd-sticky-btn :is(.single_add_to_cart_button, .wd-sticky-add-to-cart) {
        display: none !important;
    }

    /* Prikazujemo Buy Now dugme */
    .wd-sticky-btn .wd-buy-now-btn {
        display: block !important;
        width: 100%;
    }

    /* Buy Now dugme nek zauzima punu širinu */
    .wd-sticky-btn .wd-sticky-btn-cart {
        flex: 1 1 auto;
        margin-inline: 0;
    }

    .wd-sticky-btn .wd-buy-now-btn a,
    .wd-sticky-btn .wd-buy-now-btn button {
        width: 100%;
        border-radius: 0 !important;
    }

/* Stil za sticky dugme sa klasom wd-sticky-btn-shown i wd-quantity-overlap */
.wd-sticky-btn.wd-sticky-btn-shown.wd-quantity-overlap {
    background: #ff5e2b;
}

/* Stil za button#wd-add-to-cart samo unutar sticky sekcije */
.wd-sticky-btn button#wd-add-to-cart {
    font-size: 28px;
}


  




 /* Glavna forma */
  form.cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* Odabir varijacija (ako postoji) */
  form.cart .variations {
    /*display: flex;*/
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  /* Wrap dugmadi + količine */
  form.cart .mobile-button-row {
    display: flex;
    flex-wrap: nowrap; /* Promijenjeno s wrap na nowrap */
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Količina */
  form.cart .quantity {
    max-width: 80px;
    flex: 0 0 auto;
  }

  /* Dugmad */
  form.cart .single_add_to_cart_button,
  form.cart .wd-buy-now-btn {
    flex: 1 1 calc(50% - 44px); /* Ostavlja dovoljno prostora za količinu */
    white-space: nowrap;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Ako nema varijacija – default fallback da sve ide u red */
  form.cart:not(:has(.variations)) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  form.cart:not(:has(.variations)) .quantity {
    margin-right: 8px;
  }

  form.cart:not(:has(.variations)) .single_add_to_cart_button,
  form.cart:not(:has(.variations)) .wd-buy-now-btn {
    flex: 1 1 calc(50% - 44px);
  }


table.variations select {
    max-width: 100% !important;
}

table.variations {
    margin-bottom: 30px !important;
}
}

