/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* ---------- Header: top bar contact ---------- */
#top-bar .flex-row.container { flex-wrap: wrap; }
.stolisnik-topbar-label {
  display: inline-block;
  margin-right: 0.65em;
  padding-right: 0.75em;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  line-height: 1.3;
  white-space: nowrap;
}
.stolisnik-topbar-label strong {
  font-size: 0.95em;
  font-weight: 700;
  color: #333;
}
#top-bar .nav-left .nav-top > li > a,
#top-bar .nav-center .nav-top > li > a {
  font-size: 0.95em;
  padding-top: 6px;
  padding-bottom: 6px;
}
#top-bar .nav-top-link {
  transition: color 0.2s ease;
}
#top-bar .nav-top-link:hover,
#top-bar .nav-top-link:focus {
  color: var(--primary-color, #abcd4c);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#top-bar .nav-top-link i[class^="icon-"] {
  font-size: 1.05em;
  margin-right: 0.2em;
}

/* ---------- Page content links only (legal, usluge, o-nama, …) ---------- */
/* Lato loads 400/700 only — use 700 (not 600) or č/ć/š/ž/đ fall back to system font. */
body.page #content.page-wrapper .col-inner a:not(.button):not(.icon) {
  font-weight: 700;
  font-synthesis: none;
}
/* Inline links in lists: same weight as list text + underline (bold half-line looks broken). */
body.page #content.page-wrapper .col-inner li a:not(.button):not(.icon) {
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
body.page #content.page-wrapper .col-inner h1,
body.page #content.page-wrapper .col-inner h2,
body.page #content.page-wrapper .col-inner h3,
body.page #content.page-wrapper .col-inner h4 {
  font-synthesis: none;
}

/* ---------- Homepage: hero ---------- */
.home-hero .ux-banner,
#wrapper .home .slider-wrapper { border-radius: 0; }
.home .h-large { font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Homepage: category tiles ---------- */
.home-cat-grid .box-category,
.home-cat-best .box-category {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.home-cat-grid .box-category:hover,
.home-cat-best .box-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.home-cat-grid .box-image,
.home-cat-best .box-image { border-radius: 8px; }
/* Legible overlay titles */
.home-cat-grid .box-text .header-title,
.home-cat-best .box-text .header-title {
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  font-weight: 700;
  line-height: 1.2;
}
.home-cat-grid .box-text,
.home-cat-best .box-text { padding: 0 10px; }

/* ---------- Homepage: trust row (below hero) ---------- */
.home-features .icon-box {
  margin: 0;
  align-items: flex-start;
}
.home-features .icon-box-text h5 {
  margin-bottom: 2px;
  font-size: 0.95em;
  line-height: 1.2;
}
.home-features .has-icon-bg .icon-inner {
  background-color: var(--primary-color, #abcd4c);
  border-color: var(--primary-color, #abcd4c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-features .icon-box-left .has-icon-bg .icon {
  position: relative;
  height: auto;
  padding-top: 0;
  overflow: visible;
  width: 100%;
}
.home-features .has-icon-bg .icon .icon-inner {
  position: relative;
  top: auto;
  height: auto;
  aspect-ratio: 1;
  width: 100%;
}
.home-features .has-icon-bg .icon i[class^="icon-"] {
  position: static;
  left: auto;
  top: auto;
  width: auto;
  margin: 0;
  transform: none;
  color: #fff;
  font-size: 1.2em;
  line-height: 1;
}
.home-features .icon-map-pin-fill { font-size: 1.05em; }
.home-features .icon-certificate { font-size: 1.35em; }
.home-features a.plain:hover .has-icon-bg .icon-inner {
  background-color: #fff;
  border-color: var(--primary-color, #abcd4c);
}
.home-features a.plain:hover .has-icon-bg .icon-inner i[class^="icon-"] {
  color: var(--primary-color, #abcd4c);
}
.home-features .icon-box-text {
  flex: 1 1 auto;
  min-width: 0;
}
.home-features .icon-box-text p {
  margin: 0;
  font-size: 0.88em;
  line-height: 1.35;
  color: #666;
}
.home-features a.plain {
  display: block;
  border-radius: 6px;
  transition: background-color .2s ease;
}
.home-features a.plain:hover { background-color: rgba(0, 0, 0, 0.03); }
.home-features a.plain:hover .icon-box-text h5 { color: var(--primary-color, #abcd4c); }
.home-features .is-bold-center { margin-bottom: 1em; }
@media only screen and (max-width: 849px) {
  .home-features .trust-badges > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .home-features .trust-badges.row-divided > .col + .col {
    border-top: 1px solid #ececec;
    margin-top: 0.75em;
    padding-top: 0.75em;
  }
  .home-features .trust-badges.row-divided > .col {
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------- Homepage: section titles ---------- */
.home-cats .is-bold-center,
.home-products .is-bold-center { margin-bottom: 1.2em; }

/* ---------- Shop / category: product cards ---------- */
.products .product-small.box,
.products .col .box-vertical {
  transition: transform .2s ease, box-shadow .2s ease;
}
.products .product-small.box:hover {
  transform: translateY(-3px);
}
.shop-container .product-small .box-text { padding-top: 10px; }
.shop-container .price { font-weight: 700; }

/* ---------- Footer 1: product widgets ---------- */
.footer-1 .widget.woocommerce ul.product_list_widget li {
  margin-bottom: 0.65em;
  padding-bottom: 0.65em;
}
.footer-1 .widget.woocommerce .product-title {
  font-size: 0.92em;
  line-height: 1.35;
}
.footer-1 .widget.woocommerce .amount {
  font-size: 0.9em;
}

/* ---------- Footer 2: SEO keyword strip (full-width, stacked lines) ---------- */
.footer-2 .widget:has(.stolisnik-footer-seo-strip) {
  flex: 0 0 100%;
  max-width: 100%;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-2:not(.dark) .widget:has(.stolisnik-footer-seo-strip) {
  border-top-color: rgba(0, 0, 0, 0.08);
}
.stolisnik-footer-seo-strip {
  width: 100%;
}
.footer-2.dark .stolisnik-footer-seo {
  font-size: 0.85em;
  line-height: 1.6;
}
.footer-2:not(.dark) .stolisnik-footer-seo {
  font-size: 0.85em;
  line-height: 1.6;
  color: rgba(74, 74, 74, 0.9);
}
.footer-2:not(.dark) .stolisnik-footer-seo strong {
  color: #333;
}
.stolisnik-footer-seo + .stolisnik-footer-seo {
  margin-top: 0.35em;
}
.stolisnik-footer-seo a {
  white-space: normal;
}

/* ---------- Checkout: payment methods ---------- */
.woocommerce-checkout #payment .wc_payment_methods {
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce-checkout #payment .wc_payment_method {
  margin: 0 0 0.85em;
  padding: 0;
}
.woocommerce-checkout #payment .wc_payment_method:last-child {
  margin-bottom: 0;
}
.woocommerce-checkout #payment .wc_payment_method > label {
  display: inline-block;
  margin-bottom: 0.15em;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.woocommerce-checkout #payment .payment_box {
  margin-top: 0.45em;
  padding: 0.75em 0.9em;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fafafa;
}
.woocommerce-checkout #payment .payment_box .stolisnik-payment-notes {
  font-size: 0.9em;
  line-height: 1.55;
  color: #4a4a4a;
}
.woocommerce-checkout #payment .payment_box .stolisnik-payment-notes p {
  margin: 0 0 0.55em;
  font-size: inherit;
  line-height: inherit;
}
.woocommerce-checkout #payment .payment_box .stolisnik-payment-notes p:last-child {
  margin-bottom: 0;
}
.woocommerce-checkout #payment .payment_box .stolisnik-payment-notes__lead {
  margin-bottom: 0.65em;
}
.woocommerce-checkout #payment .payment_box > p:only-child {
  margin: 0;
  font-size: 0.9em;
  line-height: 1.55;
  color: #4a4a4a;
}

/* ---------- GPSR product tab ---------- */
.stolisnik-gpsr-tab .stolisnik-gpsr-intro {
  margin: 0 0 1em;
  font-size: 0.95em;
  line-height: 1.5;
}
.stolisnik-gpsr-tab .stolisnik-gpsr-attributes { margin-bottom: 1.25em; }
.stolisnik-gpsr-tab .stolisnik-gpsr-attributes td p:last-child { margin-bottom: 0; }
.stolisnik-gpsr-tab .stolisnik-gpsr-report { margin: 0; }

@media only screen and (max-width: 850px) {
  .stolisnik-topbar-label strong {
    font-size: 0;
  }
  .stolisnik-topbar-label strong::after {
    content: "Kontakt:";
    font-size: 0.85rem;
  }
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/

  .home .h-large { font-size: 1.7em; }
  .home-cat-grid .box-category,
  .home-cat-best .box-category { box-shadow: 0 1px 6px rgba(0,0,0,0.08); }

}