/*
Theme Name: Premier shop
Theme URI: https://premiercokolada.rs/
Author: virtu studio
Author URI: https://virtu.rs
Description: A wordpress theme built on top of bulmapress.
Version: 2.0.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: premier-shop

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;
  overflow-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: 500;
  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(0deg 0% 96%);
  font-family: Futura, sans-serif;
}

@media screen and (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 (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;
}

.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 rgb(10 10 10 / 10%);
  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: fade-in 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 fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile navigation fixes */
@media screen and (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 (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 0.65rem;
}

/*
 * The dropdown arrow.
 *
 * This was Font Awesome's angle-down glyph - content: "\f107" with font-family "Font Awesome 5
 * Free" - which stopped rendering the moment #35 removed the Font Awesome stylesheet: the element
 * was still there, the glyph was not. It is drawn from borders now, so it inherits the text colour
 * and scales with the font size exactly as the glyph did, with no font to load.
 */
.navbar-start > .has-dropdown > a::after {
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: '';
  display: inline-block;
  height: 0.45em;
  margin-left: 0.5em;
  transform: translateY(-0.15em) rotate(45deg);
  width: 0.45em;
}

/* Mobile navigation fixes */
@media screen and (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 (width >= 1024px) {
  .navbar-item.has-dropdown:hover .navbar-dropdown {
    display: flex;
    animation: fade-in 0.2s ease-in-out;
  }
}

/* Mobile - remove hover, only show on click */
@media screen and (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 (width >= 1216px) {
  .navbar-brand .search-btn,
  .navbar-brand .cart-contents {
    display: none;
  }
}

@media only screen and (width <= 1215px) {
  .navbar-menu .search-btn,
  .navbar-menu .cart-contents {
    display: none;
  }
}

@media only screen and (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 (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: rgb(255 255 255 / 98%);
  z-index: 99999;
  overflow-y: auto;

  /* The overlay fades in rather than appearing. jQuery's fadeIn() used to do this inline in
     footer.php; the script is frontend/js/search-overlay.js now and toggles this class (#29). */
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.search-overlay.is-open {
  opacity: 1;
}

.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 rgb(0 0 0 / 10%);
}

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

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

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

.obavestenje {
  padding: 0.5em 1em;
  background-color: #d20a10;
  width: 100%;
  color: white;
  text-align: center;
}

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

/* When obavestenje is visible, push header-container down */
body.has-obavestenje .header-container {
  top: 0; /* obavestenje is above it naturally since it's fixed in flow */
}

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

body.has-obavestenje .site-content {
  padding-top: 160px; /* adjust this value to header height + obavestenje height */
}

.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 {
  /* The button sits under the price, and stays there whatever the price markup does.
     This used to come from an override of woocommerce/loop/price.php, which wrapped the
     price in a div (#58, #75). */
  align-items: center;
  display: flex;
  flex-direction: column;
}

.product-add-cart .price {
  /* This used to come from an override of woocommerce/loop/price.php, which wrapped
     the price in a div and added Bulma's has-text-weight-bold class (#58).

     The weight is !important because that is what the class it replaces did: Bulma's
     has-text-* helpers are !important, and without it WooCommerce's own
     .woocommerce ul.products li.product .price { font-weight: 400 } wins wherever the
     loop markup is core's rather than this theme's (#75). */
  display: block;
  font-weight: 700 !important;
  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 (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 (width <= 768px) {
  .hide-thumbs {
    display: none;
  }
}

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

@media only screen and (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;
}

/*
 * Icons are inline SVG now, not Font Awesome glyphs. Bulma's .icon span sizes its content, so they
 * follow is-size-4 and friends the way the glyphs did, and currentColor means the CSS colour rules
 * that applied to the glyphs apply unchanged.
 */
.icon svg,
.icon-svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}

/*
 * Tables in post content get Bulma's classes from functions/scripts-styles.php. The markup used to
 * wrap each one in <div class="column">, which inset it by 0.75rem; the same inset comes from here
 * now, without a grid div that nothing opened. The 1.5rem bottom margin is Bulma's own, so it is
 * kept as it was.
 */
.entry-content .table {
  margin: 0.75rem 0.75rem 1.5rem;
}

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