/*
Theme Name: Premier shop 1.1.6
Theme URI: https://premiercokolada.rs/
Author: virtu studio
Author URI: https://virtu.rs
Description: A wordpress theme built on top of bulmapress.
Version: 1.1.6
Text Domain: bulmapress

Bulmapress is based on Underscores http://underscores.me/, (C) 2012-2016 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #eee;
  clip: auto !important;
  clip-path: none;
  color: #444;
  display: block;
  font-size: 1em;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000; /* Above WP toolbar. */
}

/*----- FONTS & TYPOGRAPHY -----*/

@font-face {
  font-family: "Futura";
  font-display: swap;
  src: url("frontend/font/futura-bold-webfont.woff2") format("woff2"),
    url("frontend/font/futura-bold-webfont.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "Futura";
  font-display: swap;
  src: url("frontend/font/futura-medium-webfont.woff2") format("woff2"),
    url("frontend/font/futura-medium-webfont.woff") format("woff");
  font-weight: medium;
  font-style: normal;
}

body,
a {
  color: #444;
}

.content p a {
  text-decoration: underline;
}

.is-size-7 {
  font-size: 0.9rem !important;
}

.site-footer a {
  text-decoration: underline;
}

.site-footer a:hover {
  text-decoration: none;
}

/*----- LAYOUT -----*/

body {
  background-color: hsl(0, 0%, 96%);
  font-family: "Futura", sans-serif;
}

@media screen and (min-width: 1024px) {
  .section {
    padding: 1.5rem;
  }
}

img {
  max-width: 100%;
  height: auto;
}

.is-full-width {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.admin-bar .is-fixed-top {
  top: 32px; /* Wordpress admin bar + fixed nav */
}

/* Fix logo margin */
@media screen and (min-width:1024px) {
.container>.navbar .navbar-brand, .navbar>.container .navbar-brand {
margin-inline-start: 0;}
}

a.navbar-item:hover {
  background-color: #fff;
  color: #000;
}

:where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button:hover {
    color: inherit;
    background-color: inherit;
    font-weight: inherit;
}

.topper {
  padding: 10px;
  background-color: #d20a10;
}

.topper a {
  text-decoration: underline;
}

html.has-navbar-fixed-top {
  padding-top: 6rem;
}

.header-container {
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.site-content {
  padding-top: 128px;
}

/* TOPBAR */

.topbar {
    background-color: black;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.scrolling-wrapper {
    display: flex;
    align-items: center;
    animation: scroll 50s linear infinite;
}

.scrolling-text, .scrolling-text-duplicate {
    display: inline-flex;
    align-items: center;
}

.scrolling-box {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 2rem; /* Adjusted spacing */
}

.scrolling-box:empty {
    display: none;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
} 

/* NAVIGATION & DROPDOWN MENU */
.navbar-item.has-dropdown {
    align-items: center;
}

/* Dropdown positioning and animation */
.navbar-item.has-dropdown .navbar-dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: white;
    border-radius: 0 0 4px 4px;
    border: none;
    box-shadow: 0 8px 8px rgba(10,10,10,.1);
    max-height: 80vh;
    overflow-y: auto;
}

/* Scrollbar styling */
.navbar-item.has-dropdown .navbar-dropdown::-webkit-scrollbar {
    width: 8px;
}

.navbar-item.has-dropdown .navbar-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.navbar-item.has-dropdown .navbar-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.navbar-item.has-dropdown .navbar-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Show dropdown on hover */
.navbar-item.has-dropdown:hover .navbar-dropdown {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

/* Fix alignment of items */
.navbar-dropdown .navbar-item {
    white-space: nowrap;
}

.depth_0 .menu-item-has-children > a {
    cursor: default;
    font-size: x-small;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile navigation fixes */
@media screen and (max-width: 1023px) {
    .navbar-dropdown {
        position: static !important;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
    }
    
    .navbar-item.has-dropdown .navbar-dropdown {
        display: none;
        flex-direction: column;
    }
    
    .navbar-item.has-dropdown.is-active .navbar-dropdown {
        display: block;
    }
}

/* Keep existing media queries */
@media screen and (min-width: 1216px) {
    #menu-primary,
    .navbar-end {
        height: 2rem;
        margin-top: 3rem;
        padding: 0.5rem 0.65rem;
    }
}

/* Fix main menu items alignment */
.navbar-start > .has-dropdown > a {
    padding: 0.5rem .65rem;
}

.navbar-start > .has-dropdown > a::after {
    content: "\f107";  
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 0.5em;
    font-size: 0.8em;
}

/* Mobile navigation fixes */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        max-height: calc(100vh - 3.25rem); /* Adjust based on your navbar height */
        overflow-y: auto;
    }
    
    .navbar-dropdown {
        position: static !important;
        box-shadow: none;
        max-height: none;
        overflow-y: visible;
    }
    
    .navbar-item.has-dropdown .navbar-dropdown {
        display: none;
        flex-direction: column;
    }
    
    .navbar-item.has-dropdown.is-active .navbar-dropdown {
        display: block;
    }
}

/* Show dropdown on hover - desktop only */
@media screen and (min-width: 1024px) {
    .navbar-item.has-dropdown:hover .navbar-dropdown {
        display: flex;
        animation: fadeIn 0.2s ease-in-out;
    }
}

/* Mobile - remove hover, only show on click */
@media screen and (max-width: 1023px) {
    .navbar-item.has-dropdown .navbar-dropdown {
        display: none;
        flex-direction: column;
    }
    
    .navbar-item.has-dropdown.is-active .navbar-dropdown {
        display: block;
    }
}

.raiffeisen-bank,
.mc-ms-vs-cards,
.premier-logo,
.preporuka-njkv,
.verified-mc,
.verified-visa,
.bag,
.search-img {
  max-width: 100%;
  background-size: 100%;
  background-image: url("frontend/img/premier-sprite.png");
}

.raiffeisen-bank {
  background-position: 0 0%;
  background-size: 100%;
}
.mc-ms-vs-cards {
  background-position: 0 10.774411%;
  background-size: 104.864865%;
}
.premier-logo {
  background-position: 0 22.290389%;
  background-size: 129.333333%;
}
.preporuka-njkv {
  background-position: 0 45.043478%;
  background-size: 303.125%;
}
.verified-mc {
  background-position: 0 54.65313%;
  background-size: 303.125%;
}
.verified-visa {
  background-position: 0 62.774958%;
  background-size: 303.125%;
}
.bag-hover {
  background-position: 0 83.028286%;
  background-size: 606.25%;
}
.bag {
  background-position: 0 89.351082%;
  background-size: 606.25%;
}
.search-hover {
  background-position: 0 94.728171%;
  background-size: 606.25%;
}
.search-img {
  background-position: 0 100%;
  background-size: 606.25%;
}

.site-footer .hero {
  background: #fff;
  padding: 0.5rem 1.5rem;
}

/* resolve duplecate nav items */
@media only screen and (min-width: 1216px) {
  .navbar-brand .search-btn,
  .navbar-brand .cart-contents {
    display: none;
  }
}
@media only screen and (max-width: 1215px) {
  .navbar-menu .search-btn,
  .navbar-menu .cart-contents {
    display: none;
  }
}
@media only screen and (max-width: 1215px) {
  .navbar-brand .search-btn,
  .navbar-brand .cart-contents {
    margin-left: auto;
  }
}

.navbar-item img {
  max-height: 4.6875rem; /* nav logo max height */
}
@media only screen and (min-width: 1216px) {
  #menu-primary,
  .navbar-end {
    height: 2rem;
    margin-top: 3rem;
    padding: 0.5rem 0.65rem;
  }
}

.navbar-item {
  color: #666;
}

.woocommerce .woocommerce-breadcrumb {
  margin: 0;
  padding: 1rem 1.5rem 0;
}

.section.page,
.section.product {
  padding-top: 1rem;
}

#secondary a {
  color: #fff;
}

.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99999;
    overflow-y: auto;
}

.search-centered {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    padding: 10px;
    transition: transform 0.2s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.close-btn svg path {
    transition: fill 0.2s ease;
}

.close-btn:hover svg path {
    fill: #666;
}

/* AJAX Search Pro Styles Enhancement */
.dgwt-wcas-search-wrapp {
    max-width: 100% !important;
}

.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    height: 60px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 45px 10px 15px;
    width: 100%;
    font-size: 16px;
    transition: all 0.2s ease;
}

.dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

/* Results styling */
.dgwt-wcas-suggestions-wrapp {
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
    margin-top: 5px !important;
    z-index: 100000 !important;
}

/* Mobile optimizations */
@media screen and (max-width: 768px) {
    .search-centered {
        width: 95%;
        padding: 15px;
    }

    .close-btn {
        top: -35px;
    }
}

.obavestenje {
  padding: 0.5em 1em;
  background-color: #d20a10;
  width: 100%;
  z-index: 20;
}

.site-content {
  padding-top: 128px; /* Base padding without notification */
}

.obavestenje:not(:empty) + .navbar + .site-content {
  padding-top: 160px; /* Increased padding when notification is present */
}

.header-container {
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background-color: white;
  display: flex;
  flex-direction: column;
}

.topbar {
  z-index: 30;
}

.navbar {
  z-index: 25;
}


/* Hide High temp warning */
.page-puro .obavestenje,
.page-jabuka-i-cimet-80g .obavestenje,
.page-puro-kakao-80g .obavestenje,
.page-puro-malina-80g .obavestenje,
.page-puro-pomorandza-80g .obavestenje {
  display: none;
}

/*----- HOME -----*/

.glavni {
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
}

.is-wolt-blue {
  background-color: #009de0;
  border: none;
  color: #fff;
}

.is-autumn-orange {
  background-color: #f79013;
  border: none;
  color: #fff;
}

.is-festive-red {
    background-color: #d20a10;
    border: none;
    color: #fff;
}

.glavni h2 {
  color: #fff;;
}

.glavni .button {
  margin-top: 1em;
}

.korporativni-baner .hero {
  background: url(frontend/img/hero-korpo-pokloni.jpg) no-repeat top center;
  background-size: cover;
}

.content p a {
  text-decoration: underline;
}

.content p a:hover {
  text-decoration: none;
}

.post-thumbnail img {
  object-fit: cover;
}

/*----- CATEGORIES -----*/

.products {
  padding-top: 2rem;
}
.products .product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-add-cart .price {
  padding-bottom: 0.5rem;
}
.woocommerce-Price-amount {
  font-size: 1.2rem;
}
.dodatni-tag {
  background: url(frontend/img/bez-secera-tag.png) no-repeat top left;
  background-size: 100px;
  display: none;
  height: 100px;
  margin-bottom: -100px;    /* image flipper plugin fix */
  position: relative;
  width: 100px;
  z-index: 10;  /* image flipper plugin fix */
}

@media only screen and (max-width: 768px) {
  .dodatni-tag {
    background-size: 70px;
    height: 70px;
    margin-bottom: -70px;   /* image flipper plugin fix */
    width: 70px;
  }
}

 /* image flipper plugin fix */
.tp-image-wrapper {
  position: relative;
  z-index: 8;
}

/* fix search overlay and flipper overlap */
.search-overlay-active .tp-image-wrapper {
    z-index: 1;
}

.product_tag-bez-dodatog-secera > .product-info .dodatni-tag {
  display: flex;
}

.product_tag-acticoa > .product-info .dodatni-tag {
  display: flex;
  background-image: url(frontend/img/acticoa-tag.png);
}

.product_tag-obojeno > .product-info .dodatni-tag {
  display: flex;
  background-image: url(frontend/img/tag-obojeno-vocem.png);
}

.product_tag-novo > .product-info .dodatni-tag {
  display: flex;
  background-image: url(frontend/img/tag-novo.png);
}

.sale > .product-info .dodatni-tag {
  display: flex;
  background-image: url(frontend/img/tag-akcija.png);
}


/*----- PRODUCT -----*/

.panel {
  box-shadow: none;
}

.pswp__caption__center {
  text-align: center;
}
@media only screen and (max-width: 768px) {
  .hide-thumbs {
    display: none;
  }
}

.woocommerce-product-details__short-description li a {
  text-decoration: underline;
}

@media only screen and (min-width: 768px) {
  .single-product div.product .woocommerce-product-gallery .flex-viewport {
    width: 80%;
    float: right;
  }
  .single-product
    div.product
    .woocommerce-product-gallery
    .flex-control-thumbs {
    width: 20%;
    float: right;
  }
  .single-product
    div.product
    .woocommerce-product-gallery
    .flex-control-thumbs
    li {
    width: 100%;
  }
  .single-product
    div.product
    .woocommerce-product-gallery
    .flex-control-thumbs
    li
    img {
    width: 90%;
    float: none;
    margin: 10% 10% 0 0;
  }
  .woocommerce div.product div.images .flex-control-thumbs li {
    float: none;
    margin: 0.5em auto;

    width: 60%;
  }
  .woocommerce #content div.product div.images,
  .woocommerce div.product div.images,
  .woocommerce-page #content div.product div.images,
  .woocommerce-page div.product div.images {
    float: none;
    width: 100%;
  }
}

.woocommerce-product-details__short-description {
  padding-bottom: 1rem;
}

.entry-summary .woocommerce-Price-amount {
  font-size: 1.5rem;
  font-weight: 900;
}

.woocommerce .woocommerce-info .button {
  display: none;
}

.rasprodato {
  background: #c40000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  display: inline-block;
}

/*----- PAGES -----*/

.hero {
  overflow: hidden;
  position: relative;
}

.big-header-template .hero {
  margin-bottom: 1rem;
}

.hero .entry-header {
  position: relative;
  z-index: 2;
}

/*----- POSTS -----*/

.single-post .site-content a {
  text-decoration: underline;
}

.single-post .site-content a:hover {
  text-decoration: none;
}

/*----- WOOCOMMERCE -----*/

.woocommerce a.button {
  background-color: #fff;
  border: 1px solid #ddd;
  font-weight: 300;
}

.woocommerce a.button:hover {
  background-color: #eee;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #444;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: #444;
}
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #000;
}

.woocommerce a.added_to_cart,
.search-results .added_to_cart {
  display: none;
}

.woocommerce table.shop_table {
  border: 0;
}

.woocommerce-info .woocommerce-Price-amount {
  font-size: 1rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  padding-bottom: 2em;
}
