/*
 Theme Name:   Liquory Child
 Template:     liquory
*/

/* ===== WPCSB PRODUCT STYLES ===== */
.wpcsb-product-data {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 4px !important;
}
.wpcsb-product-name {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #000 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.wpcsb-product-price { margin: 0 !important; }
.wpcsb-product-price .woocommerce-Price-amount {
    color: #be1622 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
.wpcsb-product-price span { color: #be1622 !important; }
.wpcsb-wrapper .wpcsb-container .wpcsb-product { max-width: 100% !important; }
.wpcsb-product-action { display: flex; flex-grow: 2; }
.wpcsb-product-action .variations_form { display: flex; flex-grow: 2; }
.wpcsb-product-action .variations_form > div {
    flex-direction: row !important;
    display: flex;
    flex-grow: 2;
    justify-content: space-between;
}
.entry-summary .variations_form > div { flex-direction: column !important; }

/* ===== HERO SLIDER HEIGHT RESERVATION ===== */
.elementor-element-804ccd9,
.elementor-element-804ccd9 .elementor-widget-container {
    min-height: 700px;
}
@media (max-width: 479px) {
    .elementor-element-804ccd9,
    .elementor-element-804ccd9 .elementor-widget-container {
        min-height: 500px;
    }
}

/* ===== CLS FIXES ===== */

/* Product images */
.woocommerce ul.products li.product img,
.attachment-woocommerce_thumbnail,
img.lzl, img.lzl-ed, img.lzl-cached {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Slick carousel images */
.slick-slide img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

/* Slick carousel - hide until initialized to prevent CLS */
.slick-slider:not(.slick-initialized) {
    overflow: hidden;
    max-height: 260px;
}

/* Stretched section CLS fix */
[data-id="5edda13"].elementor-section-stretched {
    width: 100vw !important;
    left: 0px !important;
    transform: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: 0 !important;
    position: relative !important;
}

/* Offers section */
.elementor-element-5edda13 { min-height: 100px; }

/* Text editor widget */
.elementor-widget-text-editor { min-height: 30px; }

/* AppsMav widget */
.am-GRwidgetbar-box {
    position: fixed;
    width: 135px;
    height: 60px;
}
.am-widgetbar-logo {
    width: 25px !important;
    height: 25px !important;
    display: block;
}



/* Hide Seraphinite branding */
img[alt="Seraphinite Accelerator"],
img[src^="data:image/png;base64,iVBORw0KGgo"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
}
.our-ranges img {
	  display: block !important;
}
.slider-image-class {
    width: 721px;
    height: 721px;
    object-fit: cover; /* This crops the 1024x766 image to a square aspect ratio */
}
.liquory-av-overlay, .liquory-av {
    display: none !important;
}

/* 2. Show it only if a special class is added to the body */
body.show-age-gate .liquory-av-overlay, 
body.show-age-gate .liquory-av {
    display: block !important;
}

/* Accessibility - Fix #888888 contrast on theme elements */
.cat-total,
.count-review,
.star-rating span,
strong.rating,
a.pf-value,
.elementor-element-9519f3a {
    color: #666666 !important;
}

/* Accessibility - Fix contrast on light backgrounds */
span.inventory_status {
    color: #666666 !important;
}

/* Accessibility - Fix contrast on dark category card backgrounds */
.product-cat-link span.text {
    color: #ffffff !important;
}

/* Accessibility - Fix MENU screen reader text */
span.toggle-text.screen-reader-text {
    color: transparent !important;
}

.category-product-img img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
}

.elementor-invisible {
    visibility: visible !important;
}

.elementor-animation-entrance .animated {
    animation: none !important;
}

input[type="radio"]:focus {
    outline: none;
    box-shadow: none;
}

@media (min-width: 769px){

#woocommerce_product_brands-2 .product-brands {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 6px;
}

}

@media (min-width: 769px){

/* 1. FIX MAIN IMAGE CONTAINER */
.woocommerce-product-gallery__wrapper {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 2. FIX IMAGE */
.woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 3. PREVENT JUMP */
.woocommerce-product-gallery__image {
    width: 100%;
    height: 100%;
}

}



/* Align everything properly */
.widget_product_categories .product-categories li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Icon */
.widget_product_categories .product-categories li > i {
    margin-right: 8px;
    font-size: 12px;
}

/* Link */
.widget_product_categories .product-categories li > a {
    flex: 1;
}

/* Count */
.widget_product_categories .product-categories .count {
    margin-left: auto;
    color: #888;
    font-size: 13px;
}

/* Children full width */
.widget_product_categories .product-categories ul.children {
    width: 100%;
    padding-left: 15px;
}

/* Attribute rows spacing */
.variations tr {
    margin-bottom: 10px;
}

/* Label alignment (Size, Quantity, etc.) */
.variations label {
    font-weight: 600;
    margin-right: 10px;
}

/* Swatches container */
.variations .value {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Each option box */
.variations .variable-item {
    min-width: 70px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 6px;
}




.woocommerce-product-gallery__trigger span {
    display: none !important;
}

.price_slider_amount input {
	display : none !important;
}

.liquory-av-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 9998;
}

.liquory-av {
    position: fixed;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: #fff;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border-radius: 8px;
}

     .liquory-av-overlay, 
        .liquory-av {
            display: none !important;
        }

        /* 2. CORRECTED: Look for the class on the HTML tag, not the body */
        html.show-age-gate .liquory-av-overlay, 
        html.show-age-gate .liquory-av {
            display: block !important;
        }


.woocommerce ul.products li.product {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    .woocommerce ul.products li.product h3.woocommerce-loop-product__title {
        font-size: 14px !important;
        line-height: 1.3;
    }

/* 1. Make title height consistent */
.woocommerce ul.products li.product h3.woocommerce-loop-product__title {
    line-height: 1.3;
    min-height: 1.9em; /* exactly 2 lines */
    margin-bottom: 3px;
}

/* 2. Tighten spacing between title and rating */
.woocommerce ul.products li.product .count-review {
    margin-top: 0;
    margin-bottom: 4px;
}

/* 3. Normalize spacing for price */
.woocommerce ul.products li.product .price {
    margin-top: 4px;
    margin-bottom: 6px;
}

.woocommerce ul.products li.product .product-caption {
    display: flex;
    flex-direction: column; /* vertical stacking */
    justify-content: center; /* vertical center */
    height: 40%; /* make sure parent has height */
}

.woocommerce ul.products li.product .price del {
    margin-left: 8px; /* space after original price */
}

.woocommerce ul.products li.product .price ins {
    margin-left: 4px; /* optional extra space before discounted price */
}

@media (max-width: 480px) {


  /* Control spacing manually */
  .quantity_wrap {
    margin-top: 10px !important; /* only space between input & button */
  }

 

}

.single-product .tagged_as {
  display: none !important;
}

.wc_payment_method input[type="radio"] {
  visibility: hidden;
}