/*
Theme Name: Kava Child - QuyenRu.shop
Theme URI: https://quyenru.shop
Description: Giao diện Tiếp thị liên kết Đồ ngủ & Nội Y Gợi Cảm (Crocoblock Kava)
Author: EZ DIGI
Template: kava
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --qr-primary: #e11d48;
    --qr-primary-hover: #be123c;
    --qr-shopee: #ee4d2d;
    --qr-dark: #09090b;
    --qr-rose-light: #fff1f2;
    --qr-border: #fecdd3;
}

body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Rule 1: Prevent orphan words */
h1, h2, h3, h4, h5, h6, .ez-aff-title {
    text-wrap: balance !important;
}

/* Hide default Kava top-panel (Row 2 in white area) */
.top-panel,
.top-panel.container,
.site-description {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: hidden !important;
}

/* Top Announcement Bar */
.quyenru-topbar {
    background: #09090b !important;
    color: #e2e8f0 !important;
    font-size: 13.5px !important;
    padding: 10px 20px !important;
    text-align: center !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px;
    border-bottom: 1px solid #18181b;
}

/* Site Header & Enlarge Logo */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header .site-branding {
    display: flex !important;
    align-items: center !important;
    padding: 6px 0 !important;
}

.site-logo-link img,
.custom-logo {
    max-height: 95px !important;
    height: 90px !important;
    width: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
    transition: transform 0.3s ease;
}

.site-logo-link:hover img,
.custom-logo:hover {
    transform: scale(1.04);
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-navigation a {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.main-navigation a:hover {
    color: var(--qr-primary) !important;
    background: var(--qr-rose-light);
}

/* Slider Custom Styles */
.quyenru-slider-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    padding: 7px 20px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45) !important;
    margin-bottom: 20px !important;
}

.qr-nav-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 50 !important;
    background: rgba(0,0,0,0.5) !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    transition: all 0.25s ease !important;
    user-select: none !important;
}

.qr-nav-btn:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* EZ Affiliater Customization */
.ez-affiliater-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 20px 15px 50px !important;
}

.ez-aff-tabs {
    display: flex !important;
    justify-content: center !important;
    border-bottom: 2px solid #f1f5f9 !important;
    margin-bottom: 35px !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.ez-aff-tab-btn {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #475569 !important;
    padding: 12px 24px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
}

.ez-aff-tab-btn:hover {
    color: var(--qr-primary) !important;
    background: var(--qr-rose-light) !important;
    border-color: var(--qr-border) !important;
    transform: translateY(-2px);
}

.ez-aff-tab-btn.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border-color: #be123c !important;
    box-shadow: 0 8px 20px -4px rgba(225, 29, 72, 0.45) !important;
}

/* Product Cards */
.ez-aff-card {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
}

.ez-aff-card:hover {
    transform: translateY(-8px) !important;
    border-color: var(--qr-border) !important;
    box-shadow: 0 20px 25px -5px rgba(225, 29, 72, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

.ez-aff-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 12px !important;
    line-height: 1.45 !important;
    height: 44px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Rule 2: Strict white text for all CTA buttons */
.ez-btn-buy,
.ez-btn-buy:hover,
.ez-btn-buy:focus,
.ez-btn-buy:active,
.ez-btn-buy *,
.quyenru-btn-primary,
.quyenru-btn-primary:hover,
.quyenru-btn-primary *,
.quyenru-btn-secondary,
.quyenru-btn-secondary:hover,
.quyenru-btn-secondary * {
    color: #ffffff !important;
}

.ez-btn-buy {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
    border-radius: 9999px !important;
    padding: 10px 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
    transition: all 0.3s ease !important;
}

.ez-btn-buy:hover {
    background: linear-gradient(135deg, #be123c, #9f1239) !important;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Completely hide default Kava footer */
#colophon,
.site-footer {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}
