/*
Theme Name: NIEE Wardrobe
Description: Minimalist Korean Daily Wardrobe custom theme.
Version: 1.1
Author: Your Name
Text Domain: niee
*/

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

:root { 
    --bg-oatmeal: #F9F6F0; 
    --text-brown: #2C2220; 
    --accent-espresso: #4A3E3B; 
    --card-bg: #FFFFFF; 
    --border-color: #ECE6DC; 
    --text-muted: #8F807C; 
    --font-serif: 'Cormorant Garamond', Georgia, serif; 
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
}

body { 
    background-color: var(--bg-oatmeal); 
    color: var(--text-brown); 
    font-family: var(--font-sans); 
    line-height: 1.7; 
    padding-top: 60px; 
    padding-bottom: 60px; 
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* Header & Logo */
header { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 60px; 
    background-color: rgba(249, 246, 240, 0.95); 
    backdrop-filter: blur(8px); 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 24px; 
    z-index: 1000; 
}

.brand-logo-link img { 
    height: 28px; 
    width: auto; 
    object-fit: contain; 
    display: block; 
}

.brand-text-logo { 
    font-family: var(--font-serif); 
    font-size: 22px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
}

.icon-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--text-brown); 
    transition: opacity 0.3s; 
}

.icon-btn:hover { 
    opacity: 0.6; 
}

.icon-btn svg { 
    width: 20px; 
    height: 20px; 
    stroke-width: 1.5; 
}

.hamburger-menu svg { 
    width: 24px; 
    height: 24px; 
}

/* Side Menu */
.side-menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden; 
    transition: all 0.4s ease; 
}

.side-menu-panel { 
    position: fixed; 
    top: 0; 
    right: -100%; 
    width: 80%; 
    max-width: 350px; 
    height: 100vh; 
    background-color: var(--bg-oatmeal); 
    z-index: 2001; 
    padding: 80px 40px 40px 40px; 
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); 
    box-shadow: -5px 0 15px rgba(0,0,0,0.05); 
}

.menu-active .side-menu-overlay { 
    opacity: 1; 
    visibility: visible; 
}

.menu-active .side-menu-panel { 
    right: 0; 
}

.close-menu-btn { 
    position: absolute; 
    top: 20px; 
    right: 24px; 
}

.menu-nav-links { 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
}

.menu-nav-links a { 
    font-family: var(--font-serif); 
    font-size: 24px; 
    text-transform: capitalize; 
    border-bottom: 1px solid transparent; 
    width: fit-content; 
    transition: color 0.3s; 
}

.menu-nav-links a:hover { 
    color: var(--text-muted); 
}

/* Search Bar */
.bottom-search-bar { 
    position: fixed; 
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 60px; 
    background-color: #FFFFFF; 
    border-top: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    z-index: 999; 
    cursor: pointer; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.02); 
    color: var(--text-muted); 
    font-size: 13px; 
    letter-spacing: 1px; 
}

.search-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background-color: var(--bg-oatmeal); 
    z-index: 2002; 
    padding: 60px 24px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(20px); 
    transition: all 0.3s ease; 
}

.search-active .search-overlay { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.close-search-btn { 
    position: absolute; 
    top: 20px; 
    right: 24px; 
}

.search-input-wrapper { 
    margin-top: 40px; 
    border-bottom: 2px solid var(--text-brown); 
    padding-bottom: 10px; 
    display: flex; 
    align-items: center; 
}

.search-input-wrapper input { 
    width: 100%; 
    background: none; 
    border: none; 
    outline: none; 
    font-size: 20px; 
    font-family: var(--font-serif); 
    color: var(--text-brown); 
}

.search-input-wrapper input::placeholder { 
    color: #C3B7B3; 
    font-style: italic; 
}

/* Hero Section */
.hero-section { 
    position: relative; 
    width: 100%; 
    min-height: 65vh; /* 保证没有上传图片时也有一个高级的主体高度 */
    max-height: 85vh; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: #EAE4DA; 
    overflow: hidden; 
}

.hero-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.hero-section::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.12); /* 淡淡的遮罩，保证白色文字在浅色图上也能看清 */
    z-index: 1; 
    pointer-events: none; 
}

.hero-content { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 2; 
    color: #FFFFFF; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; /* 核心：让所有文字和按钮绝对上下左右居中 */
    text-align: center; 
    padding: 0 20px; 
}

.hero-tagline { 
    font-family: var(--font-serif); 
    font-size: 32px; 
    font-weight: 400; 
    font-style: italic; 
    line-height: 1.3; 
    margin-bottom: 12px; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.15); 
}

.hero-brand-name { 
    font-size: 10px; 
    font-weight: 400; 
    text-transform: uppercase; 
    letter-spacing: 5px; 
    margin-bottom: 36px; 
    color: rgba(255,255,255,0.9); 
}

.hero-cta-btn { 
    border: 1px solid #FFFFFF; 
    color: #FFFFFF; 
    padding: 12px 40px; 
    font-size: 12px; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    font-weight: 500; 
    background: rgba(0,0,0,0.15); 
    backdrop-filter: blur(4px); 
    transition: all 0.4s ease; 
}

.hero-cta-btn:hover { 
    background-color: #FFFFFF; 
    color: var(--text-brown); 
}

/* Brand Statement */
.brand-statement { 
    padding: 80px 24px; 
    text-align: center; 
    background-color: #FFFFFF; 
}

.statement-title { 
    font-size: 11px; 
    color: var(--text-muted); 
    letter-spacing: 4px; 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    font-weight: 500; 
}

.statement-quote { 
    font-family: var(--font-serif); 
    font-size: 24px; 
    font-style: italic; 
    margin-bottom: 16px; 
    color: var(--accent-espresso); 
}

/* Product Grid */
.products-container { 
    padding: 20px 24px 80px 24px; 
}

.section-heading { 
    font-family: var(--font-serif); 
    font-size: 22px; 
    font-weight: 400; 
    margin-bottom: 24px; 
    letter-spacing: 1px; 
}

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 32px 16px; 
}

.product-card { 
    display: block; 
    background-color: transparent; 
    cursor: pointer; 
}

.product-image-container { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 3 / 4; 
    background-color: #EFECE6; 
    margin-bottom: 12px; 
    border-radius: 12px; 
    overflow: hidden; 
}

.product-image-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

.placeholder-text { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100%; 
    color: #B5A8A4; 
    font-size: 12px; 
    font-style: italic; 
}

.product-info { 
    display: flex; 
    flex-direction: column; 
    padding: 0 4px; 
}

.product-advice-tag { 
    font-size: 12px; 
    color: var(--text-muted); 
    font-weight: 500; 
    margin-bottom: 6px; 
    line-height: 1.4; 
}

.product-title { 
    font-size: 14px; 
    font-weight: 400; 
    color: var(--text-brown); 
    margin-bottom: 4px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.product-price { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-brown); 
}

/* Footer */
footer { 
    background-color: var(--text-brown); 
    color: #FAF6F0; 
    padding: 60px 24px 60px 24px; 
    text-align: center; 
}

footer p { 
    font-size: 12px; 
    opacity: 0.7; 
    letter-spacing: 1px; 
}

/* Desktop Styles */
@media (min-width: 768px) {
    body { 
        padding-bottom: 0; 
    } 
    .bottom-search-bar { 
        display: none; 
    } 
    main { 
        max-width: 1200px; 
        margin: 0 auto; 
    }
    .product-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 40px 24px; 
    }
    .hero-tagline { 
        font-size: 48px; 
    }
}