/*
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.   ***************/


@font-face {
    font-family: 'Clarice-Book';
    src: url('/wp-content/themes/fonts/clarice-book-webfont.woff2') format('woff2'),
         url('/wp-content/themes/fonts/clarice-book-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'Clarice-Bold';
    src: url('/wp-content/themes/fonts/clarice-medium-webfont.woff2') format('woff2'),
         url('/wp-content/themes/fonts/clarice-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}


li.select2-results__option {
    margin-bottom: 0;
    font-size: 12px;
   }
   #select2-product_cat-container {
    /*font-size: 12px;
    padding-left: 0;
    padding-right: 5px;*/
   }
   
   .select2-container--default .select2-selection--single {
    padding-left: 4px;
   }
   button.is-form {
    color: #ffffff;
    text-shadow: none;
   }
   .widget .toggle {
   color: #222;
   }
   p.product-page-price {
    margin-bottom: 0.15em;
    margin-top: 0.15em;
   }
   .single_add_to_cart_button {
       background-color: #9dbd3b !important;
   }
   
   
   .live-search-results {
     display: none;
   }
/* Värimaailma yrityksen brändin mukaisesti */
.kamp-green {
    background-color: #263b37 !important;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 10px;
}

.kamp-gold {
    background-color: #AD966E !important;
    color: #ffffff;
    border-radius: 6px;
    padding: 4px 10px;
}

/* Tyylitellyt fontit */
.kamp-text-normal {
    font-family: "Clarice-Book", sans-serif !important;
    font-weight: 400;
}

div.kamp-text-normal h3 {
    font-family: "Clarice-Book", sans-serif !important;
    font-weight: 400;
}

.kamp-text-bold {
    font-family: "Clarice-Bold", sans-serif !important;
    font-weight: 700;
}

/* Ostosnappi */
div.tr-kamp a.add_to_cart_button {
    background-color: #263b37 !important;
    color: #ffffff !important;
    font-weight: bold;
    border-radius: 6px;
    padding: 8px 14px;
    transition: background 0.3s ease;
}

div.tr-kamp a.add_to_cart_button:hover {
    background-color: #1e2f2b !important;
}

/* Labelit kuvien päällä */
.tr-labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tr-label {
    font-size: 12px;
    font-weight: bold;
    padding: 3px 11px;
    border-radius: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Värit ja tyylit labeleille */
.tr-label-red {
    background-color: #cf2e2e;
    color: #ffffff;
}

.tr-label-gold {
    background-color: #AD966E;
    color: #ffffff;
}

.tr-label-green {
    background-color: #466a66;
    color: #ffffff;
}

.tr-label-brown {
    background-color: #8d634d;
    color: #ffffff;
}

.tr-label-silver {
    background-color: #9b9b9b;
    color: #ffffff;
}

/* Hinnat */
.tr-price-estimated {
    text-decoration: line-through;
    opacity: 0.7;
}

.tr-price-estimated-list {
    float: right;
}

/* Harmaa hintateksti */
.amount-grayish {
    color: #ddd !important;
}

   .logo {
       
   }

@media (max-width: 768px) {
    /* Piilotetaan kaikki labelit oletuksena */
    .tr-label {
        display: none !important;
    }

    /* Näytetään aina alennuslabel */
    .tr-label-red {
        display: inline-block !important;
    }

    /* Näytetään kaikki labelit, kun käytössä on sekä small-columns-1 että product-small */
    .small-columns-1 .product-small .tr-label {
        display: inline-block !important;
    }
}






   .tagcloud a {
    font-size: 1em !important;
    display: block;
    padding: 0;
    margin: 0;
    text-transform: uppercase;
}
.ux-relay__load-more-button {
    text-indent: -9999px;
    line-height: 0; /* Collapse the original line */
    background-color: #263b37 !important;
    margin-top: 2em;
    font-size: 1.1em;
  }
  .ux-relay__load-more-button:after {
    content: 'Lisää tavaroita..';
    visibility: visible; text-indent: 0;
    display: block;
    line-height: initial; 
  }
  
  .box-badge .box-text {
    background-color: #db8249;

  }
  .box-badge .box-text h5 {
    color: #fff !important;
  }
  .box-badge .box-text h5:hover {
    color: #496965 !important;
  }
  .slider-nav-reveal .flickity-prev-next-button, .slider-nav-reveal .flickity-prev-next-button:hover {
    background-color: #db8249 !important;
  }
  .flickity-prev-next-button svg {
    fill: #fff !important;
  }

  .vintage-products .product-small.box {
    background-color: #27150b !important;
}

.art-products .product-small.box {
  background-color: #187491  !important;
}

/*************** Category slider ***************/


.category-slider {
  padding: 10px 0;
  background-color: #ffffff; /* Set background to white */
  display: flex;
  overflow-x: auto; /* Enable horizontal scrolling */
}

.category-slider-wrapper {
  display: flex;
  flex-direction: column;
  width: max-content; /* Adjust width based on content */
}

.category-row {
  display: flex;
  justify-content: flex-start; /* Align items to the start of the container */
  margin-bottom: 20px; /* Increase margin between rows */
}

.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 10px;
  width: 85px; /* Set a fixed width for all items */
  box-sizing: border-box; /* Ensure padding and border are included in the width */
}

.category-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition for hover effect */
}

.category-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin-bottom: 5px;
  transition: filter 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effect */
}

.category-item p {
  margin: 0;
  font-size: 14px;
  color: #333;
  width: 100%; /* Ensure text is centered within the item */
  text-align: center;
  transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.category-item a:hover img {
  filter: grayscale(100%);
  transform: scale(1.1); /* Scale the image up slightly */
}

.category-item a:hover p {
  color: #555; /* Change text color to a more noticeable shade of gray */
}

.category-item a:hover {
  transform: scale(1.05); /* Scale the whole item slightly for more emphasis */
}

.wishlist-icon {
  display: none;
}

.mobile-only {
  display: none;
}
.desktop-only {
  display: block;
}

button.single_add_to_cart_button, 
.ux-product-add-to-cart-button, 
.ux_product_add_to_cart {
    background-color: #ff7f00 !important; /* Oranssi */
    color: #fff !important; /* Valkoinen teksti */
    padding: 10px 20px;
    border-radius: 0 !important; /* Terävät kulmat */
    text-transform: uppercase;
    font-weight: bold;
    border: none !important;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

button.single_add_to_cart_button:hover, 
.ux-product-add-to-cart-button:hover, 
.ux_product_add_to_cart:hover {
    background-color: #e76e00 !important; /* Tummempi oranssi hoverille */
}

button.single_add_to_cart_button:active, 
.ux-product-add-to-cart-button:active, 
.ux_product_add_to_cart:active {
    transform: scale(0.95); /* Kevyt painallusanimaatio */
    background-color: #cc5c00 !important; /* Vielä tummempi oranssi painallukselle */
}



/* Varastossa vain 1 kpl -teksti punaiseksi (tällä hetkellä ei näytetä koko tekstiä) */
.stock.in-stock {
    color: red;
	display: none;
}


/*Karimin view count CSS*/
.custom-visitor-count-st {
    font-size: 20px;
    font-weight: bold;
    text-align: left;
    color: #333;
    margin-top: 15px;
}

#animated-count {
    display: inline-block;
    overflow: hidden;
    height: 1.2em; /* Vastaa fonttikokoa */
    position: relative;
}

#animated-count span {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s ease-out;
    transform: translateY(0);
}

/*************** ADD MOBILE ONLY CSS HERE  ***************/

/* Hide modal and show optimized banner if mobile */
@media only screen and (max-width : 768px) {
    .mc-modal, .mc-modal-bg {
        visibility: visible !important;
    }

    .mc-modal {
        /* Move the modal to the back */
        z-index: 9998;
        top: 20px !important;
        left: 0;
        right: 0;
        max-width: 95% !important;
        height: auto !important;
    }

    .mc-banner {
        visibility: hidden !important;
        /* Move the banner to the front */
        z-index: 9999;
    }

    li.select2-results__option {
        margin-bottom: 0;
        font-size: 12px;
       }
    #cart-popup > div > div.cart-sidebar-content.relative {
      display: none;
    }
    .price-wrapper {
        width: 100%;
        text-align: left !important;
    }
    .collection-box, .collection-box .box-image {
      height: 150px;
    }
    .mobile-only {
      display: block;
    }
    .desktop-only {
      display: none;
    }
}

.page-id-159588 #top-bar {
	display:none;
}

/* Vain sitä varten että block1 eli mainos ei näy muilla kuin etusivulla*/
/*body:not(.home) .header-bottom {
    display: none !important;
}*/


.hidden-video {
    display: none;
}

.header-bottom {
    background-color: #ffffff !important; /* Täysin valkoinen tausta */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.ux-product-gallery img {
    width: 1000px; /* Aseta haluamasi leveys */
    height: auto; /* Säilyttää kuvasuhteen */
}

.woocommerce-form-coupon-toggle {
    font-size: 20px; 
    font-weight: bold; 
}

.tr-label-triangle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff9600, #e88600);
    color: white;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.tr-icon-small {
    width: 14px;
    height: 14px;
    margin-right: 2px;
    display: inline-block;
    vertical-align: middle;
}

.tr-label[data-tooltip] {
    position: relative;
    cursor: help;
}

.tr-label[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 110%;
    right: 0;
    background: rgba(0,0,0,0.85);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 100;
	text-transform: none !important;
}

.tr-label[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/*Piilotetaan kategoria breadcrumbit*/
.page-header-wrapper {
  display: none !important;
}

.dynamic-related-products .tr-icons-bottomright {
    display: none !important;
}

.woocommerce-coupon-visible {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid #ddd;
  background: #f9f9f9;
  border-radius: 6px;
}

.woocommerce-coupon-visible p {
  margin-bottom: 1rem;
  font-weight: 500;
}

.woocommerce-coupon-visible input#coupon_code {
  width: 60%;
  max-width: 300px;
  padding: 0.6rem;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.woocommerce-coupon-visible button[name="apply_coupon"] {
  background-color: #ff9600;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.woocommerce-coupon-visible button[name="apply_coupon"]:hover {
  background-color: #e07e00;
}

.category-filtering .filter-button {
  background: #E07F40;
  color: #fff;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: background 0.3s ease;
}

.category-filtering .filter-button i {
  font-size: 22px;
}

.category-filtering .filter-button:hover {
  background: #c96d30;
}


.tr-myyty {
        display: block;
        text-align: center;
        font-size: 22px;
        font-weight: 700;
        color: #E07F40; /* brändin oranssi */
        margin-bottom: 15px;
    }
    .tr-buy-right-button {
        display: inline-block;
        padding: 14px 28px;
        font-size: 18px;
        font-weight: bold;
        background-color: #466A66; /* brändin vihreä */
        color: #fff;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.2s ease-in-out;
    }
    .tr-buy-right-button:hover {
        background-color: #E07F40; /* hover oranssi */
    }
    .tr-buy-container {
        text-align: center;
        margin: 20px 0;
}

