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

/*************** CHILD THEME STABLE CSS ***************/

/* ==================================================
   AUTO-SCROLL / ANIMATION FIXES
   ================================================== */

div[style*="overflow:hidden"][style*="height:30px"]:hover > div {
  animation-play-state: paused !important;
}

div[style*="overflow:hidden"][style*="height:30px"] > div {
  animation-play-state: running !important;
}


/* ==================================================
   CONTENT AREA – PAGE-SPECIFIC PADDING
   ================================================== */

body.page-id-11197 .content-area,
body.page-id-11194 .content-area,
body.page-id-11191 .content-area,
body.page-id-11200 .content-area,
body.page-id-11203 .content-area {
  padding-left: 10px;
  padding-right: 10px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  body.page-id-11197 .content-area,
  body.page-id-11194 .content-area,
  body.page-id-11191 .content-area,
  body.page-id-11200 .content-area,
  body.page-id-11203 .content-area {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* About & Contact pages */
body.page-id-13217 .content-area,
body.page-id-13220 .content-area {
  padding-left: 10px;
  padding-right: 10px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  body.page-id-13217 .content-area,
  body.page-id-13220 .content-area {
    padding-left: 5px;
    padding-right: 5px;
  }
}


/* ==================================================
   WOOCOMMERCE – SAFE UTILITIES
   ================================================== */

/* Hide category product count */
.product-category .count {
  display: none !important;
}

/* Button hover effect */
.button:hover {
  background-color: #ee9206 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Remove reset variations flash */
.reset_variations,
a.reset_variations,
.single_variation_wrap .reset_variations {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}

/* Hide shipping calculator button in cart */
.woocommerce-cart .shipping-calculator-button {
  display: none !important;
}


/* ==================================================
   FOOTER – PREMIUM LINKS (STABLE)
   ================================================== */

.footer-premium-link {
  text-align: center;
  margin-bottom: 6px;
}

.footer-premium-link a,
.footer-premium-link a:visited {
  color: #7f2222 !important;
  font-size: 90%;
  text-decoration: none !important;
  display: inline-block;
  position: relative;
  transition: all 0.25s ease;
}

.footer-premium-link a::before {
  content: "\203A\00A0";
  color: #7f2222;
  transition: all 0.25s ease;
}

.footer-premium-link a:hover,
.footer-premium-link a:focus,
.footer-premium-link a:active {
  color: #ee9206 !important;
  transform: translateY(-1px);
}

.footer-premium-link a:hover::before,
.footer-premium-link a:focus::before,
.footer-premium-link a:active::before {
  content: "\00BB\00A0";
  color: #ee9206;
}


/* ==================================================
   SHOP SIDEBAR – TABLET VISIBILITY
   ================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
  .shop-page .sidebar {
    display: block !important;
  }
  .shop-page .large-9 {
    width: 75% !important;
  }
  .shop-page .large-3 {
    width: 25% !important;
  }
}


/* ==================================================
   PARTNER LOGO SLIDER
   ================================================== */

.partners-slider {
  overflow: hidden;
  background-color: #fff;
  border-top: 2px solid #ee9206;
  border-bottom: 2px solid #ee9206;
  padding: 20px 0;
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
}

.partners-track img {
  height: 65px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
}

.partners-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1024px) {
  .partners-track {
    gap: 40px;
    animation-duration: 30s;
  }
  .partners-track img {
    height: 55px;
  }
}

@media (max-width: 768px) {
  .partners-slider {
    padding: 15px 0;
  }
  .partners-track {
    gap: 30px;
    animation-duration: 25s;
  }
  .partners-track img {
    height: 45px;
  }
}

@media (max-width: 480px) {
  .partners-track {
    gap: 20px;
  }
  .partners-track img {
    height: 40px;
  }
}


/* ==================================================
   GLOBAL FULFILLMENT INFO (COMPONENT)
   ================================================== */

/*
 * .global-fulfillment-info {
  margin-top: 18px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  font-size: 15px;
  line-height: 1.55;
  color: #333;
  max-width: 420px;
  width: 100%;
}

.global-fulfillment-info strong {
  color: #780000;
  font-weight: 600;
}

.gfi-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 6px;
  vertical-align: -3px;
}

.gfi-truck {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23780000' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h13v10H3V4zm14 0h3l3 5v5h-6V4zM5 18.5A2.5 2.5 0 0 0 7.5 21 2.5 2.5 0 0 0 10 18.5 2.5 2.5 0 0 0 7.5 16 2.5 2.5 0 0 0 5 18.5zm11 0A2.5 2.5 0 0 0 18.5 21 2.5 2.5 0 0 0 21 18.5 2.5 2.5 0 0 0 18.5 16 2.5 2.5 0 0 0 16 18.5z'/%3E%3C/svg%3E");
}

.gfi-clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23780000' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 11 11A11.013 11.013 0 0 0 12 1zm1 11h5v2h-7V6h2z'/%3E%3C/svg%3E");
}
*/

/* TFH arrow – final */
#shop-sidebar .widget-title {
    cursor: pointer;
}

#shop-sidebar .tfh-arrow {
    margin-left: 6px;
    font-size: 16px;
    font-weight: bold;
    color: #780000;
    transition: transform 0.2s ease;
}

#shop-sidebar .tfh-widget-open .tfh-arrow {
    transform: rotate(180deg);
}

/* TFH – rotate Flatsome built-in sidebar arrow */
#shop-sidebar .widget-title {
    transition: background-position 0.2s ease, transform 0.2s ease;
}

#shop-sidebar .tfh-widget-open > .widget-title {
    transform: rotate(180deg);
}

/* TFH – control Flatsome sidebar arrow (background-based) */

/* Default (closed) */
#shop-sidebar .widget-title {
    background-position: right center;
}

/* Open state – arrow flips */
#shop-sidebar .tfh-widget-open > .widget-title {
    background-position: right -20px;
}

/* Paslēpjam mūsu test-bultiņu, jo tā nav vajadzīga */
#shop-sidebar .tfh-arrow {
    display: none !important;
}


/*************** END OF CHILD STYLE.CSS ***************/
