/*
Theme Name: Catsandberries
Theme URI: http://catsandberries.com
Author: Frank Mortier
Author URI: http://FrankMortier.io
Description: This is an ecommerce site about cats and berries
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: catsandberries
Domain Path: /languages
Tags: 
*/


/*
Hide image filename/title in gallery carousel
*/
.jp-carousel-titleanddesc-title {
  display: none;
}

button.xoo-wl-action-btn {
    background-color: #dd9933;
    color: #fff;
    padding: 10px;
    font-size: medium;
}

.wc-block-product-categories-list {
  margin: 0;
  padding: 0;
  display: contents; 
  list-style-type: none;
}

.wc-block-product-categories-list-item {
  background-color: #F0C58191;
  margin-bottom: 5px;
  padding: 2px;
  border-radius: 25px;

}

.wc-block-product-categories-list-item__name{
margin-left: 10px;
}

.wc-block-product-categories-list-item a {
text-decoration: none;
}

.wc-block-product-categories-list-item a:hover {
text-decoration: none;
  color: #00d084;
}

.wc-block-product-categories-list-item a:active {
text-decoration: none;
  color: red;
}

.wc-block-product-categories-list-item-count {
 color: black;
  margin-right: 10px;
}


.wc-block-product-filter-checkbox-list__text {
    font-size: medium;
}


/* Container for the sorting dropdown */
.woocommerce-ordering, 
.wc-block-product-sort {
    margin: 20px 0;
    display: flex;
    justify-content: flex-end; /* Keeps it to the right */
}

/* Styling the select box */
.woocommerce-ordering select,
.wc-block-product-sort select {
    -webkit-appearance: none;
    appearance: none;
    border: 1.5px solid #e2e8f0; /* Soft gray border */
    border-radius: 8px;
    padding: 8px 35px 8px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #1a202c;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

/* Hover and Focus interaction */
.woocommerce-ordering select:hover,
.wc-block-product-sort select:hover {
    border-color: #cbd5e0;
    background-color: #ffffff;
}

.woocommerce-ordering select:focus,
.wc-block-product-sort select:focus {
    outline: none;
    border-color: #00d084; /* Modern Purple - Change to your brand color */
    box-shadow: 0 0 0 3px rgba(0, 208, 132);
}

/* 1. Force the Overlay and the Slide-out Drawer to the absolute top */
.wc-block-components-drawer__screen-overlay,
.wc-block-components-drawer__screen-overlay--with-slide-out,
.wc-block-components-drawer__screen-overlay--with-slide-in,
.wc-block-components-drawer {
    z-index: 999999 !important;
    position: fixed !important;
}

/* 2. Lower the Header priority */
/* This ensures the 'dimming' effect actually covers the header area */
header, 
.site-header, 
.wp-block-template-part-header {
    z-index: 10 !important;
    position: relative !important;
}

/* --- Language Selector Fixes --- */

/* 1. The Lightbox (WooCommerce PhotoSwipe) */
/* We use a massive number to ensure it wins every battle */
.pswp, 
.pswp--open, 
.pswp__bg, 
.pswp__scroll-wrap {
    z-index: 999999999 !important;
}

/* 2. The WordPress Admin Bar */
/* WordPress uses 99999, so we reinforce it */
#wpadminbar {
    z-index: 9999999 !important;
}

/* 3. The Cat Container */
/* By setting position: relative and a low z-index, we "ground" it */
#cat-lang-header {
    position: relative !important;
    z-index: 1 !important; 
    display: flex !important;
    gap: 2px !important;
    justify-content: flex-end !important;
}

/* 3. The Links */
#cat-lang-header a {
    position: relative !important;
    display: inline-block !important;
    width: 55px !important;
    height: 70px !important;
    text-decoration: none !important;
}

/* Ensure the link can move */
#cat-lang-header a {
    display: inline-block !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important; /* A bouncy hop */
    position: relative !important;
}

/* The Jump effect on hover */
#cat-lang-header a:hover {
    transform: translateY(-8px) !important; /* Adjust this number for a higher or lower jump */
}

/* Optional: Make the ball less transparent on hover so it "pops" */
#cat-lang-header a:hover span {
    background-color: rgba(var(--berry-rgb, 0,0,0), 0.9) !important;
    border-color: #fff !important;
}

/* 4. The Ball with Letters (Right-shifted) */
#cat-lang-header span {
    position: absolute !important;
    bottom: 5px !important;
    right: -5px !important; /* Shifted right in front of the paws */
    z-index: 10 !important; /* Higher than the cat SVG */
    
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    border: 1.5px solid #ffffff !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    color: #FFFBF2 !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

/* 5. Colors & 50% Transparency */
.cat-en svg { fill: #F0C581 !important; }
.cat-en span { background-color: rgba(255, 77, 109, 0.5) !important; }

.cat-de svg { fill: #F0C581 !important; }
.cat-de span { background-color: rgba(67, 97, 238, 0.5) !important; }

.cat-fr svg { fill: #F0C581 !important; }
.cat-fr span { background-color: rgba(68, 147, 99, 0.5) !important; }

.cat-nl svg { fill: #F0C581 !important; }
.cat-nl span { background-color: rgba(251, 133, 0, 0.5) !important; }

