/*
Theme Name: ZiCoding Baby
Theme URI: https://zicoding.com
Author: ZiCoding
Description: Super brza, SEO optimizovana tema.
Version: 1.0
*/

/* 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;
}

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

body {
  font-family: "Quicksand", sans-serif;
  color: #666;
  background-color: #DFDBE5;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 500;
}
p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 1em;
}

/* Prisilno postavljanje fonta */
button,
input[type="submit"],
textarea,
.search-field {
  font-family: 'Quicksand', sans-serif !important;
}

.container {
  max-width: 80%;
  width: 100%;
  margin: auto;
  background-color: #ffffff;
}

.site-main {
  margin: 0 auto;
  background-color: #ffffff;
  max-width: 80%;
  width: 100%;
}

.product-card {
  padding: 15px;
  margin: auto;
}

.breadcrumbs {
  text-align: center;
  background-color: #ffffff;
  justify-content: center;
  max-width: 80%;
  margin: 0 auto;
  padding: 10px;
  font-size: 14px;
  box-shadow: 0px 10px 20px -15px rgba(0, 0, 0, .75);
}

.breadcrumbs a {
  color: var(--osnovna-boja);
  text-decoration: none;
}

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

.site-header {
  max-width: 100%;
  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 */
.header-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  order: 2;
  flex: 2;
}

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

.header-search input[type="search"] {
  width: 100%;
  padding: 10px 30px 10px 15px;
  border: 1px solid var(--osnovna-boja);
  border-radius: 4px;
  font-size: 16px;
  color: #666;
  font-family: inherit;
}

.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;
}

.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: var(--dopunska-boja);
  border-radius: 2px;
}

.header-search button[type="submit"] svg {
  width: 20px;
  height: 20px;
  stroke: var(--osnovna-boja);
}

/* 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: var(--osnovna-boja); 
  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;
  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;
}

.wp-block-list > li:hover {
  color: #000;
}

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

/* Navigacija */
.main-navigation {
  position: relative;
  background: var(--osnovna-boja);
  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;
}

.primary-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-menu li {
  position: relative;
}

.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: var(--dopunska-boja);
  border-radius: 4px;
}

.primary-menu .menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--osnovna-boja);
  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: var(--dopunska-boja);
}

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

.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);
  }
}

.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;
}

/* Hero sadržaj */
.hero-banner {
  max-width: 80%;
  background-image: url("../../images/hero.webp");
  background-position: center center;
  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: var(--boja-gumb);
  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: var(--boja-gumb-hover);
}

/* Footer Styles */
.site-footer {
  max-width: 80%;
  margin: auto;
  background-color: #f1f1f1;
  color: #fff;
  line-height: 1.6;
}

.site-footer > .container {
  background-color: #f1f1f1 !important;
  margin: 0 auto;
  padding: 15px;
  max-width: 100%;
}

.site-footer a {
  color: #1f1f1f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #000;
}

/* prefooter */
.pre-footer-widgets {
  color: #fff;
  padding: 20px;
  background-color: var(--dopunska-boja);
  text-align: center;    
  margin-bottom: 20px;
  font-weight: 700;
}

.pre-footer-widgets h2 {
  color: #fff;
  margin: 10px;
  font-weight: 700;
}

/* Footer Widgets */
.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 2rem;
}

.site-footer .footer-column {
  flex: 1;
  min-width: 200px;
  margin-bottom: 10px;
}

.site-footer .footer-column h3,
.site-footer .footer-col h3 {
  color: #000;
  font-size: 1.2rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
  margin: 0 1.5rem 0 0 !important;
  text-align: left !important;
}

.site-footer .footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--osnovna-boja);
  text-align: left !important;
}

.site-footer .wp-block-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--osnovna-boja);
  background-image: none !important;
  border-radius: 0;
  transform: none;
  text-align: left !important;
}

.site-footer .footer-column p {
  color: #000;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.site-footer .footer-widgets,
.site-footer .footer-bottom {
  text-align: left;
}

/* Site Info */
.site-info {
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  background-color: var(--osnovna-boja);
}

.site-info p {
  margin: 0.5rem 0;
}

.site-footer .site-info a {
  color: #fff !important;
}

.site-footer .site-info a:hover {
  color: #000;
}

address {
  font-style: normal;
}

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

.footer-column {
  animation: fadeIn 0.5s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
    overflow: visible;
    flex-wrap: wrap;
  }
  .site-branding {
    order: 1;
    flex: 1;
    min-width: 120px;
  }
p {
        font-size: 15px;
    }

  .site-logo img {
    max-height: 60px;
  }
.container {
    max-width: 100%;
}
.breadcrumbs {
    max-width: 100%;
}
.site-main {
  max-width: 100%;
}
.hero-banner {
    max-width: 100%;
}
.site-footer {
    max-width: 100%;
}
  .primary-menu {
    flex-direction: column;
    gap: 0;
    width: 100vw;
    display: none;
    background: var(--osnovna-boja);
    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;    
  margin-right: 10px;
  }

  .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;
  }

  .submenu-toggle {
    display: none;
  }

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

  .primary-menu .menu .menu-item-has-children .menu-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

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

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

  .primary-menu .menu .menu-item-has-children > .sub-menu {
    display: none;
    flex-direction: column;
    background: var(--dopunska-boja);
    width: 100%;
    padding-left: 10px;
  }

  .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;
  }

  .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%;
  }
}