/* ==========================================================================
   SIMPLE KOREA - DESIGN SYSTEM & STYLES (Korean Aesthetic)
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #2b2725;
    --primary-light: #423d3a;
    --accent: #b8977e;
    --accent-hover: #9e7f67;
    --bg-main: #faf8f5;
    --bg-card: #ffffff;
    --bg-alt: #f3efe8;
    
    --text-main: #2b2725;
    --text-muted: #78716c;
    --text-light: #a8a29e;
    
    --border-color: #e7e2d9;
    --border-light: #f0ebe1;
    
    --shadow-sm: 0 2px 8px rgba(43, 39, 37, 0.04);
    --shadow-md: 0 8px 24px rgba(43, 39, 37, 0.08);
    --shadow-lg: 0 16px 36px rgba(43, 39, 37, 0.12);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

/* 頂部通知列 */
.announcement-bar {
    background-color: var(--primary);
    color: #f5f2eb;
    text-align: center;
    padding: 9px 15px;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* 導覽列 Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.96);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
}

.logo-sub {
    font-size: 0.68rem;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 500;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

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

.icon-btn {
    position: relative;
    padding: 8px;
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background-color: var(--bg-alt);
    color: var(--accent);
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 70px 0 100px;
    background: linear-gradient(135deg, #faf8f5 0%, #f4efe6 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 4px 14px;
    background: rgba(184, 151, 126, 0.12);
    border-radius: 20px;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-title .highlight {
    font-family: 'Noto Sans TC', sans-serif;
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.hero-card {
    position: relative;
}

.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-card:hover .hero-img {
    transform: scale(1.03);
}

.hero-card-floating {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border-light);
}

.floating-icon {
    font-size: 1.8rem;
}

.floating-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.floating-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Features Bar */
.features-bar {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 30px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
}

.feature-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
}

.title-line {
    width: 40px;
    height: 2px;
    background-color: var(--accent);
    margin: 14px auto 0;
}

/* Category Cards Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.category-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    transition: opacity 0.3s;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 20px;
    color: #ffffff;
}

.cat-count {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.category-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0 6px;
}

.category-content p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
}

.cat-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
}

.category-card:hover .category-img {
    transform: scale(1.08);
}

/* Products Section & Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 25px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Product Card */
.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-thumb {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background-color: #f7f5f0;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}

.product-actions-hover {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    transition: bottom 0.3s ease;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
}

.product-card:hover .product-actions-hover {
    bottom: 0;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background-color: var(--accent);
    color: #ffffff;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.add-cart-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--bg-alt);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.add-cart-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
}

/* Story Section */
.story-section {
    background-color: var(--bg-alt);
    padding: 90px 0;
}

.story-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-subtitle {
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 600;
}

.story-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 10px 0 24px;
    color: var(--primary);
}

.story-content p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.story-stats {
    display: flex;
    gap: 30px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.stat-num {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.story-image-group {
    position: relative;
}

.story-img-main {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.story-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
}

/* Newsletter Section */
.newsletter-section {
    background-color: var(--primary);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.newsletter-inner h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.newsletter-inner p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: none;
    outline: none;
    font-size: 0.92rem;
}

/* Footer */
.site-footer {
    background-color: #211e1c;
    color: #a8a29e;
    padding-top: 70px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo .logo-main {
    color: #ffffff;
}

.footer-about {
    font-size: 0.88rem;
    margin: 16px 0 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.social-icon:hover {
    background-color: var(--accent);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #ffffff;
}

.contact-col p {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-bottom {
    padding: 24px 0;
    font-size: 0.8rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-tag {
    color: var(--accent);
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
    box-shadow: var(--shadow-lg);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 1.8rem;
    line-height: 1;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-img {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 700;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-main);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.shipping-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    z-index: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-grid, .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-container, .story-inner {
        grid-template-columns: 1fr;
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .categories-grid, .products-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
