/* =====================================================
   KV B2B Integration – Shop UI (PREMIUM REDESIGN)
   ===================================================== */

/* 1. RESET & FOUNDATION */
.kv-shop-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    background: #F7F5F2; /* Soft Off-White Background */
}

/* 2. PRODUCT GRID (4 columns, clean spacing) */
.kv-shop-wrap ul.products,
body.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kv-shop-wrap ul.products::before,
.kv-shop-wrap ul.products::after,
body.woocommerce ul.products::before,
body.woocommerce ul.products::after {
    display: none !important;
    content: none !important;
}

/* 3. THE CARD (Minimalist & Elevated) */
.kv-shop-wrap ul.products li.product,
body.woocommerce ul.products li.product {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border-radius: 0 !important; /* Sharp corners for modern luxury look */
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin: 0 !important;
    padding: 0 0 40px !important;
    text-align: center !important;
    position: relative !important;
}

.kv-shop-wrap ul.products li.product:hover,
body.woocommerce ul.products li.product:hover {
    transform: translateY(-8px) !important;
}

/* 4. IMAGE SECTION */
.kv-shop-wrap ul.products li.product .woocommerce-loop-product__link {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #F9F8F6 !important;
    margin-bottom: 24px !important;
    overflow: hidden !important;
}

.kv-shop-wrap .kv-add-overlay {
    display: none !important;
}

.kv-shop-wrap ul.products li.product img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    padding: 30px !important;
    mix-blend-mode: multiply !important;
    transition: transform 0.6s ease !important;
}

.kv-shop-wrap ul.products li.product:hover img {
    transform: scale(1.08) !important;
}

/* 5. TYPOGRAPHY (The 'Artisan' look) */
.kv-brand-label {
    font-family: 'Outfit', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #A39689 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.kv-shop-wrap ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
.kv-shop-wrap ul.products li.product h3,
.kv-shop-wrap ul.products li.product h2,
.kv-shop-wrap ul.products li.product .product-title,
.kv-shop-wrap ul.products li.product .product-title a {
    font-family: 'Outfit', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1A1A1A !important;
    line-height: 1.4 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 20px !important;
}

/* 6. PRICE & SAVINGS (The requested 'Premium' area) */
.kv-price-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.kv-b2b-price-main {
    font-family: 'Outfit', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1A1A1A !important;
    letter-spacing: -0.01em !important;
}

.kv-price-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kv-list-price-sub {
    font-size: 12px !important;
    color: #C2B9B0 !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
}

/* THE SAVINGS PILL (Refined & High-Contrast) */
.kv-savings-pill {
    background: #1A1A1A !important; /* Bold Charcoal */
    color: #FFFFFF !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    padding: 3px 8px !important;
    border-radius: 2px !important; /* Sharp minimalist radius */
    display: inline-block !important;
}

/* 7. BUTTONS (Minimalist Underline) */
.kv-shop-wrap ul.products li.product .button,
body.woocommerce ul.products li.product .button {
    display: inline-block !important;
    margin: 24px auto 0 !important;
    width: auto !important;
    padding: 0 0 4px 0 !important;
    background: transparent !important;
    color: #1A1A1A !important;
    border: none !important;
    border-bottom: 2px solid #1A1A1A !important;
    border-radius: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    font-family: 'Outfit', sans-serif !important;
    transition: color 0.3s ease, border-color 0.3s ease !important;
}

.kv-shop-wrap ul.products li.product .button:hover,
body.woocommerce ul.products li.product .button:hover {
    color: #A39689 !important;
    border-color: #A39689 !important;
}

/* See product button (same style) */
.kv-see-product-btn {
    display: inline-block !important;
    margin: 24px auto 0 !important;
    padding: 0 0 4px 0 !important;
    color: #A39689 !important;
    border-bottom: 2px solid #D4C4B5 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    text-decoration: none !important;
}

.kv-card-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-top: auto !important;
    padding: 20px 20px 0 !important;
    border-top: 1px solid #E8E4DF !important;
}

.kv-shop-wrap .kv-card-actions .button,
body.woocommerce .kv-card-actions .button {
    margin: 0 !important;
}

.kv-product-details {
    color: #1A1A1A !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.kv-product-details span {
    margin-right: 3px !important;
}

.kv-shop-wrap ul.products li.product.outofstock::before,
body.woocommerce ul.products li.product.outofstock::before {
    content: "Udsolgt" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 12 !important;
    padding: 5px 12px !important;
    background: #DF171B !important;
    color: #FFFFFF !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

/* 8. BADGES (Floating Tag Style) */
.kv-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.kv-badge span {
    background: #FFFFFF !important;
    color: #1A1A1A !important;
    padding: 6px 12px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    border-radius: 2px !important;
}

/* 9. CATEGORY CIRCLES (Cleaned up) */
.kv-cat-circles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    padding: 80px 40px;
    background: #FFFFFF;
}

.kv-cat-circle-img {
    width: 140px;
    height: 140px;
    border-radius: 0 !important; /* Square for high-end feel */
    background: #F9F8F6;
    transition: transform 0.4s ease;
}

.kv-cat-circles a:hover .kv-cat-circle-img {
    transform: scale(1.05);
}

/* 10. FONTS */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* AVADA CLEANUP (Aggressive) */
.fusion-content-sep {
    display: none !important;
}
.fusion-price-rating .star-rating {
    display: none !important;
}

/* Keep WooCommerce's percentage widths from shrinking items inside the grid. */
@media (max-width: 1024px) {
    .kv-shop-wrap ul.products,
    body.woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .kv-shop-wrap {
        padding: 40px 20px;
    }

    .kv-shop-wrap ul.products,
    body.woocommerce ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }
}
