/* Make the whole product/category card clickable */
ul.products li.product,
.ct-trending-block-item { position: relative; }

ul.products li.product a.woocommerce-loop-product__link::after,
.ct-trending-block-item a.ct-post-title::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
}

/* keep add-to-cart / buttons clickable above the overlay */
ul.products li.product .button,
ul.products li.product .add_to_cart_button { position: relative; z-index: 3; }

/* Category page title readability */
.hero-section{position:relative;}
.hero-section::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(0,0,0,.22),rgba(0,0,0,.46));z-index:1;pointer-events:none;}
.hero-section .entry-header{position:relative;z-index:2;}
.hero-section .page-title{color:#fff !important;text-shadow:0 2px 10px rgba(0,0,0,.55);}

/* Homepage category tiles hover effect */
.stk-block-card:has(a.valer-tile-link){transition:transform .3s ease, box-shadow .3s ease !important;}
.stk-block-card:has(a.valer-tile-link):hover{transform:translateY(-8px) scale(1.03);box-shadow:0 18px 40px rgba(0,0,0,.18);z-index:2;}

/* Align product card prices & Add-to-Cart buttons */
.wc-block-product-template li.product{display:flex;flex-direction:column;height:100%;}
.wc-block-product-template li.product .wp-block-post-title{min-height:2.6em;}
.wc-block-product-template li.product .wc-block-components-product-button{margin-top:auto;}

/* Product page: remove duplicate rating (keep native stars + show sold) */
.single-product .entry-summary:has(.woocommerce-product-rating) .valer-proof .valer-rating{display:none !important;}

/* Uniform product cards: fixed title height + aligned rating & sold rows */
.wc-block-product-template li.product .wp-block-post-title{min-height:88px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.wc-block-product-template li.product .valer-proof{flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:.15em;min-height:2.6em;}

/* Clamp title link to 3 lines for uniform card height */
.wc-block-product-template li.product .wp-block-post-title a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}

/* Mens category page hero uses the mens banner */
body.term-mens .hero-section img{display:none !important;}
body.term-mens .hero-section{background-image:url('https://valerboutique.com/wp-content/uploads/2026/06/Mens-Banner-2.webp');background-size:cover;background-position:center center;background-repeat:no-repeat;}

/* Homepage mens banner: full width, hover float, balanced spacing */
.valer-mens-banner{max-width:100% !important;margin:1.4rem auto !important;transition:transform .35s ease, box-shadow .35s ease;}
.valer-mens-banner:hover{transform:translateY(-8px) scale(1.02);box-shadow:0 18px 40px rgba(0,0,0,.18);}

/* Mens hero bg fix (unquoted url) */
body.term-mens .hero-section{background-image:url(https://valerboutique.com/wp-content/uploads/2026/06/Mens-Banner-2.webp) !important;background-size:cover !important;background-position:center !important;background-repeat:no-repeat !important;}

/* Mens hero: hide figure overlay so bg image shows */
body.term-mens .hero-section figure{display:none !important;}

/* Mens banner: match tiles width + balance spacing */
.valer-mens-banner{max-width:1550px !important;margin:-64px auto 50px !important;}

/* Hide Jetpack Related Posts on product pages (Woo related products already shown) */
.single-product #jp-relatedposts,.single-product .jp-relatedposts{display:none !important;}

/* Product page: remove grey hero gradient behind breadcrumb, use underline instead */
.single-product .hero-section.is-width-constrained::after{display:none !important;}
.single-product .hero-section{background:none !important;}
.single-product .hero-section .ct-breadcrumbs{border-bottom:1px solid #e5e5e5;padding-bottom:12px;margin-bottom:8px;}

/* Carousel card tidy: clamp titles, align price/button */
.valer-car-list li.product{display:flex !important;flex-direction:column;}
.valer-car-list .woocommerce-loop-product__title{display:-webkit-box !important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em;font-size:15px !important;line-height:1.25 !important;margin-bottom:6px;}
.valer-car-list li.product .price{margin-top:auto;}
.valer-car-list li.product .valer-proof{min-height:1.6em;}

/* Middle homepage tile: lavender to bridge the pink + blue */
.stk-39b367f-container{background-color:#d3b5e8 !important;}

/* Hide native Woo loop star row on product cards (custom proof line already shows the rating) */
ul.products li.product .star-rating,.valer-car-list li.product .star-rating{display:none !important;}

/* Product card titles back to dark (were theme gold accent) */
.woocommerce ul.products li.product .woocommerce-loop-product__title a,.valer-car-list li.product .woocommerce-loop-product__title a,ul.products li.product .woocommerce-loop-product__title a{color:#1a1a1a !important;}
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover,.valer-car-list li.product .woocommerce-loop-product__title a:hover{color:#000 !important;}

/* Welcome popup logo: real logo on white badge */
.valerpop .valerpop-logo{filter:none !important;background:#fff !important;padding:8px 16px !important;border-radius:8px !important;width:auto !important;max-width:210px !important;max-height:56px !important;object-fit:contain !important;}

/* Welcome popup: plain text brand name instead of logo image */
.valerpop .valerpop-logo{display:none !important;}
.valerpop .valerpop-step1::before,.valerpop .valerpop-step2::before{content:"Valer Boutique";display:block;font-family:Georgia,serif;font-size:26px;font-weight:600;letter-spacing:.5px;color:#fff;margin:0 0 18px;}