/*
Theme Name: BR4U Master Theme
Theme URI: https://belowretail4u.com
Author: Below Retail 4 U
Description: The official custom theme. Built for absolute speed and premium aesthetics.
Version: 3.1.0
Text Domain: br4u-theme
*/

:root {
    --bg: #0a0a0a;
    --surface: #161618;
    --border: #2c2c2e;
    --primary: #e91e63;
    --primary-glow: rgba(233, 30, 99, 0.4);
    --accent: #00ffcc;
    --text: #ffffff;
    --text-muted: #888888;
}

body { 
    margin: 0; 
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--primary); }

.br4u-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 40px 20px; 
    min-height: 70vh;
}

/* --- THE HERO BANNER --- */
.br4u-hero {
    background: radial-gradient(circle at center, #1c1c1e 0%, #0a0a0a 100%);
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.br4u-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
}
.br4u-hero h1 span { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.br4u-hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.br4u-section-title {
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
    padding-bottom: 10px;
}
.br4u-section-title h2 {
    margin: 0; font-size: 24px; font-weight: 900; text-transform: uppercase;
    letter-spacing: 1px; display: flex; align-items: center; gap: 10px;
}

/* ==========================================================
   THE CAROUSEL TRACK (FIXES THE JAVASCRIPT)
========================================================== */
.br4u-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.br4u-carousel-wrapper ul.products {
    display: flex !important; /* THIS IS WHAT ALLOWS IT TO SCROLL */
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scroll-snap-type: x mandatory !important;
    gap: 20px !important;
    padding: 0 0 20px 0 !important; 
    margin: 0 !important;
    list-style: none !important;
    -ms-overflow-style: none !important; 
    scrollbar-width: none !important; 
}
.br4u-carousel-wrapper ul.products::-webkit-scrollbar { display: none !important; }

/* STRICT PRODUCT CARD SIZING */
.br4u-carousel-wrapper ul.products li.product {
    flex: 0 0 calc(25% - 15px) !important; 
    min-width: 240px !important;
    scroll-snap-align: start !important;
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 15px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    height: 420px !important; /* STRICT HEIGHT LOCK */
    box-sizing: border-box !important;
    position: relative !important;
    transition: 0.3s !important;
}

.br4u-carousel-wrapper ul.products li.product:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px var(--primary-glow) !important;
    transform: translateY(-5px) !important;
}

/* IDENTICAL IMAGE SIZING */
.br4u-carousel-wrapper ul.products li.product img {
    width: 100% !important;
    height: 200px !important; 
    object-fit: contain !important; /* FIXES THE BROKEN SIZES */
    background: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin: 0 0 15px 0 !important;
    box-sizing: border-box !important;
}

/* TWO-LINE TEXT CLAMP */
.br4u-carousel-wrapper ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    color: var(--text) !important;
    margin: 0 0 10px 0 !important;
    height: 36px !important; 
    line-height: 18px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-weight: 600 !important;
}

.br4u-carousel-wrapper ul.products li.product .price {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: var(--primary) !important;
    margin-bottom: 15px !important;
    margin-top: auto !important; 
    display: block !important;
}

.br4u-carousel-wrapper ul.products li.product .button {
    margin-top: 0 !important;
    background: var(--border) !important;
    color: var(--text) !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
    transition: 0.3s !important;
    text-align: center !important;
}

.br4u-carousel-wrapper ul.products li.product .button:hover {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
}

/* --- CAROUSEL NAVIGATION ARROWS --- */
.br4u-carousel-container { position: relative; margin-bottom: 40px; }
.br4u-carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--primary); color: #fff; border: none;
    width: 45px; height: 45px; border-radius: 50%;
    z-index: 10; cursor: pointer;
    box-shadow: 0 0 15px var(--primary-glow);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: 0.3s ease-in-out; font-size: 16px;
}
.br4u-carousel-container:hover .br4u-carousel-nav { opacity: 1; }
.br4u-carousel-nav.prev { left: -20px; }
.br4u-carousel-nav.next { right: -20px; }
.br4u-carousel-nav:hover { background: #fff; color: var(--primary); transform: translateY(-50%) scale(1.1); }

@media(max-width: 1024px) {
    .br4u-carousel-wrapper ul.products li.product { flex: 0 0 calc(33.333% - 14px) !important; }
}
@media(max-width: 768px) {
    .br4u-carousel-wrapper ul.products li.product { flex: 0 0 calc(50% - 10px) !important; }
    .br4u-carousel-nav { opacity: 1; width: 35px; height: 35px; font-size: 14px; }
    .br4u-carousel-nav.prev { left: 5px; }
    .br4u-carousel-nav.next { right: 5px; }
}
@media(max-width: 480px) {
    .br4u-carousel-wrapper ul.products li.product { flex: 0 0 85% !important; }
}

/* HIDE WOOCOMMERCE BLOAT */
.woocommerce-result-count, .woocommerce-ordering, .woocommerce-badge, .onsale { display: none !important; }

/* ==========================================================
   SINGLE PRODUCT PAGE FIXES
========================================================== */
/* Hide the Ghost SKU and Uncategorized text from customers */
.woocommerce div.product .product_meta {
    display: none !important;
}