/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.breadcrumbs {
  background-color: transparent !important;
  color: #000 !important;
  border: none !important;
}

.breadcrumbs .page-title {
    color: #000 !important;
	font: 400 1.6em/1.2 var(--porto-h1-ff,var(--porto-body-ff)),sans-serif !important;
}

.breadcrumbs .breadcrumbs-wrap a {
    color: #75684d !important;
}

.product-thumbs-slider.owl-carousel .owl-stage-outer .img-thumbnail {
    border: 1px solid var(--porto-gray-1);
    transition: border-color 0.2s;
}

/* Default (desktop) */
.header-logo {
  padding: 0 0 10px 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
  .header-logo {
    padding: 5px 0 10px 0 !important;
  }
}

.cart-icon {
   padding: 5px 0px 10px 0 !important;

}

/* Single product - stock */


.stock {
    font-weight: normal !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 3px !important; /* Space between dot and text */
	margin-bottom: 8px !important;
}

.stock.in-stock {
    color: #00af66 !important; /* Green color */
}

.stock.out-of-stock {
    color: #cc0000 !important; /* Green color */
}

.stock-dot {
    font-size: 18px;
    color: #00af66; /* Green */
}


.stock-dot.out {
    color: #cc0000; /* Red for out-of-stock */
}

.delivery-time {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px !important;
}

/* Number of servings */

p.number-of-servings {font-size: 14px;line-height:1.2rem;display: inline-block;font-weight: 500;color: #75684d;}
.background-servings {
    background: none; /* Background color */
    padding: 4px 8px; /* Adds space around text */
    border-radius: 8px; /* Optional: rounded corners */
    display: inline-block; /* Ensures it only wraps the text */
border: 1px solid #75684d;

}

/* Bullet list short description */

.woocommerce-product-details__short-description ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.woocommerce-product-details__short-description ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 8px;
 font-size: 1.1428em;
letter-spacing: -0.015em;
}

.woocommerce-product-details__short-description ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-image: url('https://zdravahrana.hr/wp-content/uploads/2025/06/download.svg');
  background-size: 18px 18px;
  background-repeat: no-repeat;
}

/* Deklaracija POP-UP */

#deklaracija-popup-btn {
    display: inline-block;
    padding-left: 7px;
	font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
	color: #1f2124;
}


.hranljive-btn svg {
    width: 18px;
    height: 18px;
	margin-right: 2px;
    fill: #1F2123;
	
}

#deklaracija-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 3000;
}

#deklaracija-popup-content {
    display: none;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 0.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 30000;
    width: 60%;
    max-height: 70%;
    overflow-y: auto;
}

@media only screen and (max-width: 768px) {
    #deklaracija-popup-content {
        top: 10%;
        left: 50%;
        transform: translate(-50%, 0);
        width: 90%;
        max-height: 80%;
        overflow-y: auto;
    }
}

#deklaracija-popup-content h1 {
    font-size: 2rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 20px 0;
}

#deklaracija-popup-content h2 {
    font-size: 1.5rem;
    color: #444;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 10px 0;
}

#deklaracija-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    font-size: 40px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

#deklaracija-close-btn:hover {
    color: #000;
}

/* Nutritional Table Styling */
.NutritionalTable {
    width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.NutritionalTable thead {
    background-color: #f8f9fa;
    color: #333;
}

.NutritionalTable th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
}

.NutritionalTable td {
    padding: 10px;
    text-align: left;
    color: #555;
    width: 33.33%;
}

.NutritionalTable .notranslate {
    font-style: italic;
}

/* Alternating rows */
.NutritionalTable tr:nth-child(even) {
    background-color: #f2f2f2;
}

.NutritionalTable.max-w-xl tr:nth-child(odd) {
    background-color: #f2f2f2;
}

.NutritionalTable.max-w-xl tr:nth-child(even) {
    background-color: #ffffff;
}

.NutritionalTable.max-w-xl td {
    width: 100%;
}

.NutritionalTable.mb-8 th {
    width: 33.33%;
}

.NutritionalTable.mb-8 td {
    width: 66.67%;
}

.NutritionalTable.my-4 th,
.NutritionalTable.my-4 td {
    width: 25%;
}

.NutritionalTable.my-5 th,
.NutritionalTable.my-5 td {
    width: 20%;
}

/*PRODUCT ICONS*/

.product-benefits-wrapper {
    position: relative;
}

.product-benefits-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 25px 0;
    margin-top: -10px;
    border-top: 1px solid #D5D8DC;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.benefit-item {
    flex: 0 0 auto;
    width: 90px;
    text-align: center;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    object-fit: contain;
}

.benefit-item span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #444;
    white-space: nowrap;
}

.scroll-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #444;
    pointer-events: none;
    animation: scrollHint 1.5s infinite;
    display: none;
}

@keyframes scrollHint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-50%) translateX(6px); }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
    }
}

/* Hide Variation Availability  */

.woocommerce-variation-availability p.stock {
    display: none !important;
}

/* */

label.wfacp_main_form.label.label_shiping {
    text-align: left;
}

span.wgl-proxy-label {
    position: relative;
}

.wgl-proxy-label::after {
    content: "←";
    display: inline-block;
    margin-left: 8px;
    animation: moveLeft 0.6s infinite alternate ease-in-out;
    position: absolute;
    color: black;
    right: -90px;
    top: -5px;
    font-size: 20px;
}

@keyframes moveLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-5px); /* Move 5px to the left */
    }
}

.wgl-proxy-parcel-shop img {
    max-width: 50px !important;
}

span.wgl-proxy-label {
    color: white !important;
    font-weight: 600;
    font-size: 12px !important;
}

.wgl-proxy-parcel-shop {
    border-radius: 5px;
}

body #wfacp-sec-wrapper .wfacp_main_form.woocommerce #payment ul.payment_methods li.payment_method_stripe_cc .wc-stripe-card-icons-container img.wc-stripe-card-icon {
    max-height: 100% !important;
    max-width: 22px !important;
}

span.wc-stripe-card-icons-container {
    margin-left: 5px;
}

@media screen and (min-width: 1024px) {
  #fkcart-mini-toggler {
    padding-top: 7px;
  }
}

.fix-carousel-layout .e-parent {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

small.includes_tax {
    display: none;
}

.woocommerce-cart .wc-proceed-to-checkout a {
    background: #1BB876;
}

.stock-message-placeholder {
	margin-bottom: 0px;
} 

table.variations a.filter-item {
  font-size: 14px;
}

table.variations td.value {
  padding-left: 0 !important;
}

/*Product add-on*/
.addon-upsell-form {
    margin-top: 20px;
}

.addon-upsell-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F9F8F2;
    border: 2px dashed #d3c5c5;
    border-radius: 10px;
    padding: 10px 15px;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.addon-upsell-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 auto;
}

.addon-upsell-image {
    width: 80px;
    height: auto;
    flex-shrink: 0;
}

.addon-upsell-text {
    max-width: 500px;
}

.addon-upsell-title {
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

.addon-upsell-description {
    font-size: 12px;
    color: #333;
    display: block;
	line-height: 18px;
}

.addon-upsell-price {
    margin-top: 5px;
    font-size: 13px;
}

.addon-upsell-price del {
    margin-right: 8px;
    color: #999;
}

.addon-upsell-button-wrap {
    margin-left: 20px;
}

.addon-upsell-button-wrap .addon-add-button {
    background-color: #e42535;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
}

.cr-credits-div, .reviewer-verified {
    display: none !important;
}

/* ===== Mobile layout: button below price, aligned with text ===== */
@media (max-width: 600px) {
  .addon-upsell-box {
    display: grid;
    grid-template-columns: 80px 1fr;   /* image | text */
    align-items: start;
    padding: 12px 14px;
  }

  /* Let the image and text become direct grid items */
  .addon-upsell-content { display: contents; }

  .addon-upsell-image { 
    grid-column: 1;        /* left column (image) */
    grid-row: 1; 
    width: 72px;           /* optional: a bit smaller on mobile */
  }

  .addon-upsell-text { 
    grid-column: 2;        /* right column (text + price) */
    grid-row: 1; 
    max-width: none; 
  }

  /* Place the button directly under the text/price column */
  .addon-upsell-button-wrap {
    grid-column: 2;        /* align with price column */
    grid-row: 2;
    margin: 8px 0 0 0;     /* remove left margin from desktop */
    justify-self: start;   /* left aligned with text */
  }

  .addon-upsell-button-wrap .addon-add-button {
    /* choose one:
       width: 100%;  // full width under text
       or keep natural width (default) */
  }

  }

.cr-all-reviews-shortcode .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review, .cr-reviews-grid .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review {
background-color: #04B067;
}

#header {
    border-top: none !important;
}

#tab-title-description {
    display: none !important;
}

/* Hide mobile accordion tab titles */
.resp-accordion {
  display: none !important;
}

.woocommerce-tabs .tab-content {
	 border: none !important;
}

.cr-reviews-grid {
	 border: none !important;
}

/* --- UGC video --- */
.ugc-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 16px;
  background-color: #000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ugc-video-wrapper video.carousel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  background: #000;
  cursor: pointer;
}

/* Play button overlay */
.ugc-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ugc-play-btn::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid #000;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
}

.ugc-video-wrapper.playing .ugc-play-btn {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

@media (hover: hover) and (pointer: fine) {
  .ugc-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* --- Sound Indicator (top corner version) --- */
.ugc-sound-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
color: #000;
  font-size: 15px;
  padding: 4px 4px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  font-family: system-ui, sans-serif;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.ugc-sound-indicator .sound-icon {
  font-size: 18px;
  line-height: 1;
}

/* When hidden (after unmute) */
.ugc-video-wrapper.sound-on .ugc-sound-indicator {
  opacity: 0;
  transform: translateY(-10px);
}

/* --- Creator handle overlay: Instagram gradient style --- */
.ugc-handle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 30px;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  pointer-events: none;
  z-index: 5;
  letter-spacing: 0.1px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  background-size: 200% 200%;
  animation: igGradientShift 6s ease infinite;
}

/* Subtle animated gradient shimmer */
@keyframes igGradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/*Stripe*/
label.porto-control-label[for="payment_method_stripe"] {
  display: inline !important;
}

/*GLS icon on checout*/
/* FunnelKit checkout inline shipping icon */
.wfacp_shipping_radio label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.gls-icon {
    height: 18px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    top: 0 !important;
}
