/*
Theme Name: Hello Elementor Child (Bagberry TIF 2026 Global Edition)
Description: Full integration of the TIF Luxury Framework. Features: Sticky dual-row navigation, Fashionphile-style filtering, 65/35 composite layouts, and a high-end Black Luxury Footer with full-color payment icons.
Version: 3.5.0
Author: Bagberry TIF Project
Template: hello-elementor
*/

/* ==========================================================
   1. GLOBAL VARIABLES & BASE (TIF 2026 Standards)
   ========================================================== */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --color-black: #000000;
    --color-gray-dark: #333333;
    --color-gray-light: #f9f9f9;
    --color-border: #eeeeee;
    --spacing-unit: 20px;
    --max-width: 1440px;
    --lux-spacing: 10px; /* TIF standard letter spacing for logos */
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-black);
    line-height: 1.6;
    margin: 0; padding: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; letter-spacing: 1px; }

/* ==========================================================
   2. HEADER LOGIC (Dual-Row Nav & Ritualistic Logo)
   ========================================================== */
.lux-header-full { background: #fff; border-bottom: 1px solid var(--color-border); padding: 30px 0 0; }
.lux-logo-row { text-align: center; margin-bottom: 25px; }

.lux-logo {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: var(--lux-spacing);
    text-decoration: none;
    color: var(--color-black);
    text-transform: uppercase;
    transition: opacity 0.3s;
}
.lux-logo:hover { opacity: 0.7; }

.lux-nav-row { border-top: 1px solid #f9f9f9; border-bottom: 1px solid #f9f9f9; }
.lux-nav {
    display: flex; justify-content: center;
    list-style: none; padding: 15px 0; margin: 0;
}
.lux-nav li a {
    text-decoration: none; color: var(--color-black);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    padding: 0 25px; position: relative;
    transition: opacity 0.3s;
}
.lux-nav li a:hover { opacity: 0.5; }

/* Navigation Underline Animation */
.lux-nav li a::after {
    content: ''; position: absolute; bottom: -5px; left: 25px; right: 25px;
    height: 1px; background: #000; width: 0; transition: width 0.4s;
}
.lux-nav li a:hover::after, .lux-nav li.current-menu-item a::after { width: calc(100% - 50px); }

/* ==========================================================
   3. FRONT PAGE: HERO (White-Space & Hover Logic)
   ========================================================== */
.lux-hero-wrapper { padding: 0 40px; margin-top: 10px; } /* TIF Req: Lateral padding */

.lux-hero {
    height: 85vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex; justify-content: center;
    overflow: hidden;
}

.lux-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.15); }

/* Copy Positioning at 25% */
.lux-hero-content-top {
    position: absolute; top: 25%; left: 0; right: 0;
    text-align: center; color: #fff; padding: 0 20px; z-index: 5;
}
.lux-hero-title { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: 3px; margin-bottom: 15px; text-transform: uppercase; }
.lux-hero-subtitle { font-size: 1.1rem; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; }

/* CTA Positioning & Hover Dropdown */
.lux-hero-content-bottom { position: absolute; bottom: 30%; left: 0; right: 0; text-align: center; z-index: 10; }

.lux-shop-now-dropdown { position: relative; display: inline-block; }
.main-shop-btn {
    display: inline-block; padding: 18px 60px; background: #000; color: #fff;
    text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; transition: 0.3s;
}
.lux-dropdown-sub {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: #000; display: none; flex-direction: column;
}
.lux-dropdown-sub a {
    color: #fff; padding: 15px; text-decoration: none; font-size: 11px;
    letter-spacing: 2px; text-transform: uppercase; border-top: 1px solid #222; transition: 0.3s;
}
.lux-dropdown-sub a:hover { background: #333; }
.lux-shop-now-dropdown:hover .lux-dropdown-sub { display: flex; }

/* ==========================================================
   4. PRODUCT GRID & CARD (Core Display)
   ========================================================== */
.tif-section-container { max-width: var(--max-width); margin: 100px auto; padding: 0 40px; }
.tif-main-title { text-align: center; font-size: 32px; margin-bottom: 60px; text-transform: uppercase; font-family: var(--font-serif); }

.tif-grid-8-pack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.product.tif-product-card { background: #fff; transition: transform 0.3s ease; position: relative; }
.tif-product-image-wrapper {
    position: relative; aspect-ratio: 1/1; background-color: var(--color-gray-light);
    overflow: hidden; margin-bottom: 15px;
}
.tif-product-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.product.tif-product-card:hover img { transform: scale(1.05); }

.tif-product-brand { font-size: 10px; font-weight: 800; color: #999; text-transform: uppercase; letter-spacing: 1.5px; }
.tif-product-title { font-size: 14px; margin: 5px 0; color: #333; font-family: var(--font-sans); }
.price { font-size: 14px; font-weight: 700; color: #000; }

.tif-badge { position: absolute; top: 15px; left: 15px; padding: 5px 12px; font-size: 9px; font-weight: 700; z-index: 10; letter-spacing: 1px; }
.tif-badge.new { background: #000; color: #fff; }
.tif-badge.sold { background: #fff; color: #999; border: 1px solid #eee; }

/* ==========================================================
   5. COMPOSITE SHOWCASE (65% / 35% Ratio)
   ========================================================== */
.tif-composite-layout { display: flex; gap: 50px; max-width: var(--max-width); margin: 100px auto; padding: 0 40px; }
.tif-flex-left { flex: 0 0 65%; }
.tif-flex-right { flex: 0 0 35%; display: flex; flex-direction: column; gap: 40px; }

.grid-4x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2x2, .grid-1x2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.tif-block-label {
    font-size: 12px; font-weight: 900; border-bottom: 1px solid #000;
    padding-bottom: 10px; margin-bottom: 30px; letter-spacing: 2px; text-transform: uppercase;
}

/* ==========================================================
   6. FILTER SIDEBAR (Fashionphile Style)
   ========================================================== */
.collection-page-wrapper { display: flex; max-width: var(--max-width); margin: 40px auto; padding: 0 40px; }
.collection-sidebar { width: 280px; flex-shrink: 0; padding-right: 40px; border-right: 1px solid var(--color-border); }
.sidebar-sticky-content { position: sticky; top: 120px; }

.filter-group { margin-bottom: 35px; }
.filter-group h4 { font-size: 11px; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; border-bottom: 1px solid #f5f5f5; color: #888; letter-spacing: 1px; }
.filter-item { display: flex; align-items: center; font-size: 12px; margin-bottom: 10px; cursor: pointer; text-transform: uppercase; }
.filter-item input { margin-right: 12px; accent-color: #000; width: 14px; height: 14px; }

/* Sidebar Custom Scroll */
.filter-scroll-area { max-height: 250px; overflow-y: auto; padding-right: 10px; }
.filter-scroll-area::-webkit-scrollbar { width: 2px; }
.filter-scroll-area::-webkit-scrollbar-thumb { background: #eee; }

/* ==========================================================
   7. FOOTER: BLACK LUXURY THEME (Final Polish)
   ========================================================== */
.lux-footer {
    background: #000 !important; color: #fff;
    padding: 100px 0 40px; margin-top: 80px;
}
.lux-footer-inner { max-width: 1300px; margin: 0 auto; padding: 0 40px; }

.lux-footer-top-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 80px; }
.lux-footer-label { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: #fff; display: block; margin-bottom: 20px; text-transform: uppercase; }
.lux-qr-container img { width: 120px; background: #fff; padding: 8px; }

.lux-footer-email-wrapper { width: 450px; }
.lux-subscribe-form-inline { display: flex; border-bottom: 1px solid #444; }
.lux-subscribe-form-inline input { flex: 1; background: transparent; border: none; padding: 15px 0; color: #fff; outline: none; font-size: 13px; }
.lux-subscribe-form-inline button { background: transparent; color: #fff; border: none; padding-left: 20px; font-weight: 700; cursor: pointer; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }

.lux-footer-divider { border-top: 1px solid #222; margin-bottom: 60px; }

.lux-footer-main-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; }
.lux-footer-logo { font-family: var(--font-serif); font-size: 28px; letter-spacing: 6px; margin-bottom: 20px; text-transform: uppercase; }
.lux-brand-desc { font-size: 12px; color: #666; line-height: 1.8; }

.lux-social-row { display: flex; gap: 20px; margin-top: 25px; }
.tif-social-link img { width: 20px; filter: invert(1); transition: 0.3s; }
.tif-social-link:hover img { opacity: 0.5; }

.lux-footer-nav-col h4 { font-size: 12px; text-transform: uppercase; color: #fff; margin-bottom: 25px; letter-spacing: 1px; }
.lux-footer-nav-col ul { list-style: none; padding: 0; }
.lux-footer-nav-col li { margin-bottom: 12px; }
.lux-footer-nav-col a { font-size: 12px; color: #666; text-decoration: none; transition: 0.3s; }
.lux-footer-nav-col a:hover { color: #fff; }

.lux-footer-bottom { border-top: 1px solid #111; padding-top: 40px; margin-top: 80px; }
.lux-footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.lux-copyright { font-size: 10px; letter-spacing: 1px; color: #444; text-transform: uppercase; }

/* Restoring Color for Payment Icons */
.lux-pay-icon {
    height: 20px !important;
    filter: none !important; 
    opacity: 1 !important; 
    margin-left: 15px;
    display: inline-block;
    vertical-align: middle;
}

/* ==========================================================
   8. RESPONSIVE (Mobile Adaptation)
   ========================================================== */
@media (max-width: 1024px) {
    .lux-hero-wrapper { padding: 0; }
    .tif-composite-layout, .lux-footer-top-row { flex-direction: column; align-items: center; text-align: center; }
    .lux-footer-email-wrapper { width: 100%; margin-top: 40px; }
    .lux-footer-main-grid { grid-template-columns: 1fr; text-align: center; }
    .lux-social-row { justify-content: center; }
    .tif-grid-8-pack { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .tif-flex-left, .tif-flex-right { flex: 1; width: 100%; }
    .lux-logo { font-size: 32px; }
    .lux-nav { flex-wrap: wrap; gap: 10px; }
    .lux-nav li a { padding: 0 10px; font-size: 11px; }
}

/* 强制全宽补丁：防止 Hello Elementor 默认容器限制首页布局 */
.home .site-main, 
.home .site-content, 
.home #content, 
.home article, 
.home .entry-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* 修复 Footer 可能被背景色覆盖的问题 */
.lux-footer {
    position: relative;
    z-index: 99;
    display: block !important;
}