/*
Theme Name: Flatsome 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
Author: EZ DIGI
Template: flatsome
Version: 3.19.7
*/

@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: #0f172a;
    --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;
}

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

/* Custom Header & Announcement */
.top-bar {
    background-color: #09090b !important;
    border-bottom: 1px solid #27272a;
    font-size: 13px;
    font-weight: 500;
}

.header-main {
    background: #ffffff !important;
    box-shadow: 0 4px 20px -2px rgba(0,0,0,0.06);
}

.header-nav a {
    font-weight: 600 !important;
    color: #1e293b !important;
    font-size: 15px;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--qr-primary) !important;
}

/* EZ Affiliater Tabs Styling */
.ez-affiliater-container {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 10px 15px 40px !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 26px !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 Grid & Cards */
.ez-aff-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 25px !important;
}

.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;
    position: relative !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-image-wrap {
    position: relative !important;
    width: 100% !important;
    padding-top: 100% !important;
    overflow: hidden !important;
    background: #fdf2f8 !important;
}

.ez-aff-image-wrap img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.ez-aff-card:hover .ez-aff-image-wrap img {
    transform: scale(1.08) !important;
}

/* Card Body */
.ez-aff-info {
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !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;
}

/* Price & Discount */
.ez-aff-price-wrap {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
}

.ez-aff-price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #e11d48 !important;
}

.ez-aff-old-price {
    font-size: 13px !important;
    color: #94a3b8 !important;
    text-decoration: line-through !important;
}

/* Shopee CTA Button - Strict white text rule */
.ez-aff-btn, 
.ez-aff-card a.ez-aff-buy-btn,
.quyenru-btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 12px 18px !important;
    background: linear-gradient(135deg, #ee4d2d, #ff5722) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(238, 77, 45, 0.35) !important;
    transition: all 0.3s ease !important;
}

.ez-aff-btn:hover,
.ez-aff-card a.ez-aff-buy-btn:hover,
.quyenru-btn-primary:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #d73211, #e64a19) !important;
    box-shadow: 0 6px 20px rgba(238, 77, 45, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Force text white for dark buttons */
.ez-aff-btn, .ez-aff-btn * {
    color: #ffffff !important;
}

/* Footer Luxury Styling */
.footer-widgets {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    padding: 50px 0 20px !important;
}

.footer-widgets h4 {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.absolute-footer {
    background-color: #09090b !important;
    color: #64748b !important;
}

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