/* =========================================
   GLOBAL CSS - Opšti stilovi za sve stranice
   ========================================= */

/* === SCROLL BEHAVIOR === */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* === FONTOVI === */
h1, h2, h3, h4, h5, h6, body, button, input, textarea {
    font-family: 'Roboto', sans-serif;  
}

/* === SITE HEADER === */
.site-header {
   padding-top: 4px;
}

.custom-logo-link, .site-branding, .site-header-cart, .site-logo-anchor, .site-logo-link, .site-search {
    margin-bottom: 0;
}

.home.blog .site-header, .home.page:not(.page-template-template-homepage) .site-header, .home.post-type-archive-product .site-header {
    margin-bottom: 0;
}

button.menu-toggle, button.menu-toggle:hover {
    border-color: #000;
}

@media screen and (min-width:1024px){
.site-header .site-branding img {
    max-width: 300px;
}}

/* === SECONDARY NAVIGATION === */
.secondary-navigation ul.menu a {
    color: #d1c466;
}

/* === BREADCRUMB === */
.storefront-breadcrumb {
   background-color: #d1c466;
     color: #191e23!important;
     margin-bottom: 5px;
}

@media screen and (min-width:1024px){
.storefront-breadcrumb {
     margin-left: -100%;
     margin-right: -150%;
}}

.breadcrumb-separator {
     color: #191e23!important;
}
.woocommerce-breadcrumb a{
     color: #191e23!important;
}

.woocommerce-breadcrumb a:first-of-type:before {display: none;}

/* Mobilni breadcrumb */
@media (max-width: 768px) {
  .storefront-breadcrumb {
    background-color: #d1c466;
    color: #000;
    font-size: 14px;
    padding: 8px 16px !important;
    line-height: 1.4;
    margin: 0 !important;
    font-family: inherit;
  }

  .storefront-breadcrumb a {
    color: #000 !important;
    font-weight: bold;
    text-decoration: underline;
  }
}

/* === INPUT POLJA === */
.input-text, input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], textarea {
    background-color: #d1c466;
    color: #191e23!important;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
}

/* === CHECKOUT I KORPA FORMA POLJA === */
#customer_details {
    width: 100%;
}

#order_review{
    width: 100%;
}

#billing_country_field.form-row.form-row-wide.address-field.update_totals_on_change.validate-required{
    display: none;
}
#shipping_country_field.form-row.form-row-wide.address-field.update_totals_on_change.validate-required{
    display: none;
}

/* Crveni okvir kad se preskoči obavezno polje na checkout */
.woocommerce-invalid-required-field input {
outline: 1px solid red!important;
}

/* === WIDGET AREA === */
.widget-area {
    margin-top: 4em;
}

/* === ENTRY HEADER === */
.entry-header {
    text-align: center;
}

/* === MARK === */
mark {
    color: #d1c466;
    font-weight: 400;
}

/* === MORE LINK === */
.more-link {
    padding: 15px;
    border: 2px solid currentColor;
  background-color: #d23c2b;
    color: white;
}

.alpha {
    padding-top: 30px;
}

/* === STARS RATING === */
p.stars {color: white !important;}

/* === UVODNI BLOK === */
.uvodni-blok {
  background-color: #000000;
  color: #d1c466;
  text-align: center;
  padding: 40px 20px;
  border-radius: 16px;
  font-family: sans-serif;
  font-size: 17px;
  line-height: 1.7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 30px;
}

.uvodni-blok strong {
  font-weight: 400;
}

.uvodni-blok a.uvodni-tekst-blog-link {
  color: #d1c466;
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.3s ease;
}

.uvodni-blok a.uvodni-tekst-blog-link:hover {
  color: #f6e27a;
  text-decoration: underline;
}

/* Pročitaj više/manje */
.uvodni-blok {
  background-color: #000000;
  color: #d1c466;
  padding: 0px 20px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.7;
  font-family: 'Roboto', sans-serif;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.uvodni-blok summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 400;
  color: #d1c466;
  list-style: none;
  margin-bottom: 0px;
  display: block;
}

.uvodni-blok .procitaj-vise,
.uvodni-blok .zatvori-dugme {
  display: inline;
  font-size: 15px;
  font-weight: 600;
  color: #d1c466;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 6px;
  white-space: normal;
}

.uvodni-blok details[open] .procitaj-vise {
  display: none;
}

.uvodni-blok .zatvori-dugme {
  display: block;
  text-align: right;
  margin-top: 10px;
}

.uvodni-blok .zatvori-dugme:hover {
  text-decoration: underline;
}

.uvodni-blok a {
  color: #d1c466;
  text-decoration: underline;
}

.uvodni-blok ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style-position: inside;
}

.uvodni-blok ul li {
  margin-bottom: 6px;
}

.uvodni-blok p {
  margin: 12px 0;
  color: #d1c466;
}

/* === SEO H1 === */
.seo-h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.visible-h1 {
  display: inline;
}

.hidden-h1 {
  display: none;
}

.page-template-default h1 {
    color: green;
      display: none;
}

/* === IMAGE ADJUSTMENTS === */
.image-top-margin {
  margin-top: -65px !important;
}

.wp-post-image {
  margin-bottom: -30px !important;
}

/* === GORE WIDGET (VIDŽET NA VRHU) === */
.gore {text-align: left;}

@media only screen and (min-width: 800px) {
  .gore {
        display:none;
    }
}

@media only screen and (max-width: 800px) {
  .gore {
            text-align: center; 
        margin: 20px;
        padding: 5px;
  }
  .widget-title{
            display:none;
  }
}

/* === BLOG POSTS === */
.wp-block-latest-posts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 0;
  list-style: none;
  margin-top: 30px;
}

.wp-block-latest-posts__list li {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  width: 30%;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  transition: all 0.3s ease;
}

.wp-block-latest-posts__list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.wp-block-latest-posts__list li a {
  color: #CFC063;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
}

.wp-block-latest-posts__list time {
  color: #999;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .wp-block-latest-posts__list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0;
    align-items: center;
  }

  .wp-block-latest-posts__list li {
    width: 90% !important;
    list-style: none;
    text-align: center;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }

  .wp-block-latest-posts__list li a {
    color: #CFC063;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 10px;
  }

  .wp-block-latest-posts__list time {
    color: #999;
    font-size: 14px;
    display: block;
    margin-bottom: 10px;
  }
}

/* === SITE REVIEWS === */
.glsr-review {
  background-color: #1f1f1f;
  border: 1px solid #444;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  font-size: 16px;
  color: #e2c878;
}

.glsr-review h3 {
  font-size: 18px;
  color: #ffd700;
}

.glsr-review .glsr-stars {
  margin-bottom: 10px;
}

.glsr-pagination {
  text-align: center;
  margin-top: 30px;
}

/* Stilizacija paginacije */
.glsr-pagination {
  margin-top: 20px;
  margin-bottom: 40px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #e2c878;
}

.glsr-pagination a {
  color: #ffd700;
  padding: 6px 12px;
  text-decoration: none;
  border: 1px solid #444;
  margin: 0 4px;
  border-radius: 6px;
  background-color: #1f1f1f;
  transition: background-color 0.3s, color 0.3s;
}

.glsr-pagination a:hover {
  background-color: #ffd700;
  color: #1f1f1f;
}

.glsr-pagination span.current {
  padding: 6px 12px;
  background-color: #e2c878;
  color: #1f1f1f;
  border-radius: 6px;
  font-weight: bold;
  margin: 0 4px;
}

/* Precizno ciljanje poslednje recenzije */
.glsr-review-wrap:last-of-type {
  margin-bottom: -60px !important;
  padding-bottom: 0 !important;
}

/* Pomeranje paginacije bliže recenzijama */
.glsr-pagination {
  margin-top: -60px !important;
  padding-top: 0 !important;
}

.glsr-pagination-wrapper {
  margin-top: -60px !important;
  padding-top: 0 !important;
}

.glsr-container {
  margin-bottom: -60px !important;
  padding-bottom: 0 !important;
}

/* Review forma stilizacija */
.glsr-form input[type="text"],
.glsr-form input[type="email"],
.glsr-form textarea {
  background-color: #1a1a1a;
  border: 1px solid #eac86b;
  color: #fff;
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

.glsr-form label {
  color: #eac86b;
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  margin-top: 12px;
}

.glsr-form .glsr-field-rating svg {
  fill: #eac86b !important;
}

.glsr-form .glsr-field-consent {
  color: #eac86b;
  font-size: 14px;
  margin-top: 8px;
}

.glsr-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
  background-color: #111;
  border-radius: 10px;
  border: 1px solid #2c2c2c;
  box-shadow: 0 0 10px rgba(234, 200, 107, 0.15);
}

.glsr-form input[type="submit"] {
  background-color: #eac86b;
  color: #1a1a1a;
  border: none;
  padding: 14px 32px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease-in-out;
}

.glsr-form input[type="submit"]:hover {
  background-color: #f6dc85;
  color: #000;
}

.glsr-form input::placeholder,
.glsr-form textarea::placeholder {
  color: #999;
}

@media only screen and (max-width: 768px) {
  .glsr-form {
    padding: 20px 12px;
  }
}

/* Portobello WC Reviews */
.portobello-wc-reviews {
  background-color: #111;
  padding: 40px 30px;
  margin-top: 40px;
  border-radius: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.portobello-wc-single {
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #333;
}

.portobello-wc-stars {
  font-size: 18px;
  color: #eac86b;
  margin-bottom: 5px;
}

.portobello-wc-name {
  font-weight: bold;
  color: #eac86b;
  margin-bottom: 6px;
}

.portobello-wc-name a {
  color: #d1c466;
  text-decoration: underline;
}

.portobello-wc-text {
  color: #d1c466;
  font-style: italic;
  font-size: 16px;
}

/* === SOCIAL MREZE === */
.mreze {
  background-color: #3B5998; /* fb */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.mreze2 {background-color: #1da1f2;} /* tw */
.mreze3 {background-color: #e60023;} /* pin */ 
.mreze4 {background-color: #b92d74;} /* isnta */ 
.mreze5 {background-color: #553db6;} /* vib */

/* === UTILITY CLASSES === */
.desktop-only {
  display: none;
}

@media screen and (min-width: 1025px) {
  .desktop-only {
    display: block !important;
  }
}

.mobile-only {
  display: block;
}

@media screen and (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
}

/* === FOOTER === */
footer#colophon.site-footer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.site-content,
#content,
.hfeed.site,
.page,
#page,
.site-footer,
#colophon {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.site-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Ukloni realni izvor razmaka iznad footera (sidebar/widget) */
#secondary,
.widget-area {
  margin: 0 !important;
  padding: 0 !important;
}

.widget-area .widget {
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px){
  #secondary,
  .widget-area { display: none !important; }
}

.site-content,
.site-main,
#content,
#primary,
.content-area,
.storefront-content-area,
.entry-content,
.woocommerce,
.woocommerce-page,
.site-footer,
#colophon {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* === ANCHOR OFFSET === */
.anchor-offset {
  scroll-margin-top: 160px;
}

/* === PK SECTIONS === */
.pk-section {
  display: none;
}

/* === EMPTY PARAGRAPHS === */
p:empty {
  display: none;
}

/* === MOBILNI HEADER FIXED === */
@media (max-width: 768px) {
  header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }

  body {
    padding-top: 80px !important;
  }

  .home .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #content.site-content {
    margin-top: 0 !important;
  }
}

/* Desktop sidebar hide */
@media (min-width: 1024px) {
  .widget-area {
    display: none !important;
  }

  .content-area {
    width: 100% !important;
  }
}
