/* Osnovni reset */
@font-face {
  font-family: 'Quicksand';
  src: url('../../font/Quicksand-Regular.woff2') format('woff2'),
       url('../../font/Quicksand-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Quicksand", sans-serif;
  color: #666;
  background-color: #DFDBE5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M12 0h18v6h6v6h6v18h-6v6h-6v6H12v-6H6v-6H0V12h6V6h6V0zm12 6h-6v6h-6v6H6v6h6v6h6v6h6v-6h6v-6h6v-6h-6v-6h-6V6zm-6 12h6v6h-6v-6zm24 24h6v6h-6v-6z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");

}
 h1{
    font-size: 2.2rem;
}
h2{
    font-size: 1.8rem;
    font-weight: 600;
}
h3{
    font-size: 1.5rem;
    font-weight: 500;
}
/*Prisliti da povuće font */
button,
input[type="submit"],
textarea,
.search-field,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.single_add_to_cart_button {
  font-family: 'Quicksand', sans-serif !important;
}

.container {
  max-width: 1200px;
  margin: auto;
  background-color: #ffffff;
}

/* Header */
.header-container {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
}

.site-header {
  max-width: 1200px;
  background: #ffffff;
  padding: 1rem 0;
  margin: auto;
  top: 0;
  z-index: 1002;
  position: sticky;
}

.site-branding {
  display: flex;
  align-items: center;
  flex: 1;
  order: 1;
}

.site-branding a {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.site-logo {
  display: flex;
  align-items: center;
  max-width: 200px;
  height: auto;
  transition: all 0.3s ease;
}

.site-logo img {
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-left: 5px;
}

.header-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

/* Pretraga */
/* Glavni kontejner za search */
.header-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  order: 2;
  flex: 2;
}

/* Osnovni stil za formu */
.header-search form {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  margin: 0px 10px;
}

/* Stil za input polje */
.header-search input[type="search"] {
  width: 100%;
  padding: 10px 30px 10px 15px;
  border: 1px solid #7359A6;
  border-radius: 4px;
  font-size: 16px;
  color: #666;
  font-family: inherit;
}

/* Stil za cancel button (x) u search polju */
.header-search input[type="search"]::-webkit-search-cancel-button {
  position: relative;
  right: 10px;
  margin-left: 4px;
  filter:
    brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1234%) hue-rotate(230deg) brightness(89%) contrast(92%);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.header-search input[type="search"]::-moz-search-cancel-button {
  margin-left: 4px;
  position: relative;
  right: 40px;
  filter:
    brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(1234%) hue-rotate(230deg) brightness(89%) contrast(92%);
  cursor: pointer;
}

/* Stil za submit button */
.header-search button[type="submit"] {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.header-search button[type="submit"]:hover {
  background-color: #B39DDB;
  border-radius: 2px;
}
/* Stil za SVG ikonu unutar buttona */
.header-search button[type="submit"] svg {
  width: 20px;
  height: 20px;
  stroke: #7359A6;
}

/* Stil za FontAwesome ikonu (sakrivanje ako koristite SVG) */
.header-search button[type="submit"] .fa-search {
  display: none;
}

/* Kraj css za formu pretrage */
/* css za list */
.wp-block-list {
    list-style-type: none;
    padding-left: 1.5em;
    margin: 1.25rem 0;
    line-height: 1.6;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-block-list > li {
    position: relative;
    margin-bottom: 0.75rem;
    padding-left: 1.75em;
}

.wp-block-list > li:before {
    content: "•";
    color: #7359A6; 
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.1em;
}

.wp-block-list ul.wp-block-list {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding-left: 1em;
}

.wp-block-list ul.wp-block-list li {
    padding-left: 1.5em;
    margin-bottom: 0.5rem;
    font-size: 0.95em;
    color: #555;
}

.wp-block-list ul.wp-block-list li:before {
    content: "◦";
    color: #6c757d; /* Siva boja za podlistu */
    font-size: 1.3em;
    top: -0.05em;
}

.wp-block-list strong {
    color: #2c3e50;
    font-weight: 600;
    padding: 0.1em 0.3em;
    border-radius: 3px;
    display: inline-block;
}

/* Hover efekti */
.wp-block-list > li:hover {
    color: #000;
}

.wp-block-list ul.wp-block-list li:hover {
    color: #333;
}

/* Responsivne prilagodbe */
@media (max-width: 768px) {
    .wp-block-list {
        padding-left: 1em;
    }
    
    .wp-block-list > li {
        padding-left: 1.5em;
    }
    
    .wp-block-list ul.wp-block-list {
        padding-left: 0.5em;
    }
}

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

.wp-block-list > li {
    animation: fadeIn 0.3s ease-out forwards;
}

.wp-block-list > li:nth-child(1) { animation-delay: 0.1s; }
.wp-block-list > li:nth-child(2) { animation-delay: 0.2s; }
.wp-block-list > li:nth-child(3) { animation-delay: 0.3s; }
/* kraj */

.header-cart {
  order: 3;
  background-color: #7359A6;
  align-items: center;
  justify-content: flex-end;
  padding: 5px;
  border-radius: 5px;
  margin-right: 10px;
}

.header-cart:hover {
  background-color: #B39DDB;
}

.cart-contents {
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  gap: 8px;
}

.cart-contents svg {
  width: 16px;
  height: 16px;
  fill: white;
  stroke: white;
  transition: all 0.3s ease;
}

.cart-contents .emoji {
  filter: brightness(0) invert(1);
}

/* Navigacija */
.main-navigation {
  position: relative;
  background: #7359A6;
  box-shadow: 0px 10px 20px -15px rgba(0, 0, 0, .75) !important;
  order: 4;
  width: 100%;
  flex-basis: 100%;
  margin-top: 10px;
}

.primary-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  z-index: 1001;
  justify-content: center;
}
/* === Reset default nav style === */
.primary-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-menu li {
  position: relative;
}
/* === Glavni meni === */
.primary-menu .menu {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.primary-menu .menu li a {
  text-decoration: none;
  color: #fff;
  padding: 0.5rem 0.75rem;
  display: block;
  transition: background 0.3s ease;
}

.primary-menu .menu li a:hover {
  background: #B39DDB;
  border-radius: 4px;
}

/* === Dropdown meni === */
.primary-menu .menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #7359A6;
  min-width: 180px;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.primary-menu .menu li:hover > ul {
  display: block;
  animation: fadeInDropdown 0.3s ease-out forwards;
}

.primary-menu .menu li ul li a {
  padding: 10px;
  color: #fff;
  white-space: nowrap;
}

.primary-menu .menu li ul li a:hover {
  background: #B39DDB;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Mobilni meni === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: white;
  z-index: 1002;
}

.menu-toggle .close-icon {
  display: none;
}

.menu-toggle-checkbox:checked ~ .menu-toggle .hamburger {
  display: none;
}

.menu-toggle-checkbox:checked ~ .menu-toggle .close-icon {
  display: block;
}

.menu-toggle-checkbox:checked ~ .primary-menu {
  display: flex;
  animation: fadeInMenu 0.3s ease-out forwards;
}

.primary-menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.menu-toggle-checkbox {
  display: none;
}
.submenu-toggle {
  display: none;
}
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Strelica i link u jednom redu */
.primary-menu .menu .menu-item-has-children .menu-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.primary-menu .menu .menu-item-has-children .menu-link-row a {
  flex: 1 1 auto;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}

.primary-menu .menu .menu-item-has-children .menu-link-row .dropdown-arrow {
  flex-shrink: 0;
  font-size: 18px;
  padding-left: 8px;
  color: #fff;
}
@media screen and (max-width: 1024px) and (min-width: 765px) {
  .primary-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 10px;
  }

  .primary-menu ul.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
  }

  .primary-menu li.menu-item {
    flex: 1 0 auto;
    max-width: 100%;
    text-align: center;
  }

  .menu-link-row a {
    display: block;
    padding: 8px 12px;
    font-size: clamp(11px, 2vw, 14px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* kraj*/
/* Hero sadržaj */
.hero-banner {
  max-width: 1200px;
  background-image: url("../../images/kevser-hero.webp");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

.hero-content {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 600;
}

.shop-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #79A70A;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: 15px;
}

.shop-button:hover {
  background-color: #9BC90D;
}

/* Responsive */
@media (max-width: 768px) {

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
    overflow: visible;
    flex-wrap: wrap;
  }

  .site-header {
    padding: 5px;
  }

  .site-branding {
    order: 1;
    flex: 1;
    min-width: 120px;
  }

  .site-logo img {
    max-height: 60px;
  }

  .header-cart {
    order: 2;
    flex: 0 0 auto;
    font-size: 0.8rem;
  }
 .primary-menu {
    flex-direction: column;
    gap: 0;
    width: 100vw;
    display: none;
    background: #7359A6;
    position: fixed;
    left: 0;
    padding: 10px;
    z-index: 999;
    opacity: 0.6;
    text-align: center;
    align-items: center;
  }

  .primary-menu.menu-open {
    display: flex;
  }

  .main-navigation {
    position: relative;
    z-index: 1000;
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    order: 4;
    flex: 0 0 auto;
    margin-top: 10px;
    width: auto;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: auto;
    z-index: 1001;
    position: relative;
    color: #ffffff;
    order: 4;
    width: 40px;
  }

  .primary-menu .menu {
    flex-direction: column;
    width: 100%;
  }

  .primary-menu .menu li {
    width: 100%;
    text-align: left;
  }

  .primary-menu .menu li ul {
    position: static;
    box-shadow: none;
  }

  .primary-menu .menu li:hover > ul {
    display: block;
    animation: fadeInDropdown 0.3s ease-out forwards;
  }
  /* Sakrij checkbox koji kontroliše submenu */
 .submenu-toggle {
    display: none;
  }

  .primary-menu .menu .menu-item-has-children {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
  }

  /* Red sa linkom i strelicom */
  .primary-menu .menu .menu-item-has-children .menu-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Link s lijeve strane */
  .primary-menu .menu .menu-item-has-children > .menu-link-row > a {
    flex: 1;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    text-align: left;
  }

  /* Strelica desno */
  .primary-menu .menu .menu-item-has-children > .menu-link-row > .dropdown-arrow {
    cursor: pointer;
    font-size: 22px;
    padding: 5px;
    color: #fff;
  }

  /* Submeni ispod */
  .primary-menu .menu .menu-item-has-children > .sub-menu {
    display: none;
    flex-direction: column;
    background: #644da1;
    width: 100%;
    padding-left: 10px;
  }

  /* Pokaži submenu kad je checkbox aktiviran */
  .primary-menu .menu .menu-item-has-children > .submenu-toggle:checked ~ .sub-menu {
    display: flex;
  }

  .primary-menu .menu .sub-menu li a {
    padding: 8px 10px;
    display: block;
    color: #fff;
    text-align: left;
  }
  
  /* KLRAJ*/
  .header-search {
    order: 3;
    flex: 1 0 80%;
    margin-top: 10px;
    justify-content: center;
  }

  .header-search form {
    display: flex;
    align-items: center;
    max-width: 100%;
    height: 100%;
  }

  .search-form input[type="search"],
  .search-form .search-submit {
    height: 36px;
    padding: 5px 10px;
    margin: 0;
    box-sizing: border-box;
  }

  .search-field::-webkit-search-cancel-button {
    right: 40px;
  }

  .search-field::-moz-search-cancel-button {
    right: 40px;
  }

}