@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #f2f0eb;
    --text-color: #1a1a1a;
    --accent-color: #67645e;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-main: 'Noto Sans KR', 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Header */
.top-banner {
    background-color: #e5e2db;
    text-align: center;
    padding: 8px 0;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-container {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 80px;
}

.nav-left, .nav-right {
    display: flex;
    gap: 30px;
    flex: 1;
    z-index: 2;
}

.nav-right {
    justify-content: flex-end;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.nav-link:hover {
    opacity: 0.6;
}

/* Mega Menu (Cascading) */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.mega-menu.active {
    max-height: 600px;
    opacity: 1;
}

.mega-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    padding: 40px;
    gap: 60px;
}

.mega-column {
    flex: 1;
}

.mega-column h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-bottom: 25px;
    font-weight: 600;
}

.main-cats ul li {
    margin-bottom: 15px;
}

.main-cats ul li a {
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: var(--transition);
}

.main-cats ul li a:hover {
    padding-left: 10px;
    color: var(--accent-color);
}

.sub-cats .sub-group {
    display: none;
}

.sub-cats .sub-group.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub-cats ul li {
    margin-bottom: 12px;
}

.sub-cats ul li a {
    font-size: 0.95rem;
    opacity: 0.7;
    transition: var(--transition);
}

.sub-cats ul li a:hover {
    opacity: 1;
}

.featured-promotion .promo-card {
    background-color: #f9f8f4;
    border-radius: 12px;
    overflow: hidden;
}

.featured-promotion img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.featured-promotion .promo-info {
    padding: 20px;
}

.featured-promotion h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.featured-promotion p {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 15px;
}

.text-link {
    font-size: 0.85rem;
    text-decoration: underline;
    font-weight: 500;
}

.mega-menu-footer {
    padding: 20px 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.mega-product-card {
    background-color: #ece9e2;
    border-radius: 4px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.mega-product-card:hover {
    background-color: #e5e2db;
}

.mega-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
}

.mega-product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

.mega-product-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.mega-product-info p {
    font-size: 0.8rem;
    opacity: 0.6;
}

.mega-menu-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    z-index: 1;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
}

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

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.1;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--white);
    color: var(--text-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--text-color);
    color: var(--white);
}

/* Product Grid */
.section-title {
    padding: 80px 40px 40px;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 40px 80px;
}

.product-card {
    background-color: #ece9e2;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.product-img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.product-info {
    text-align: left;
}

.product-tag {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-name {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Banner Sections */
.banner-split {
    display: flex;
    min-height: 60vh;
}

.split-image {
    flex: 1;
    overflow: hidden;
}

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

.banner-half {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.banner-half img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: var(--bg-color);
    padding: 80px 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.newsletter {
    max-width: 400px;
}

.newsletter h3 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.newsletter input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-color);
    margin-bottom: 20px;
    outline: none;
}

.footer-logo {
    font-size: 8rem;
    font-weight: 600;
    text-align: center;
    color: #e5e2db;
    margin: 40px 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.footer-column ul li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .nav-left, .nav-right {
        display: none;
    }
    .logo {
        font-size: 1.8rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Drawers (Search & Cart) */
.drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.drawer.open {
    transform: translateX(-450px);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.drawer-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.drawer-header h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.drawer-close:hover {
    opacity: 1;
}

.drawer-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Search Drawer Styles */
.search-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid var(--text-color);
    font-size: 1.1rem;
    outline: none;
    margin-bottom: 40px;
}

.search-suggestions h4, .drawer-featured h4, .cart-upsell h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.4;
    margin-bottom: 20px;
}

.search-suggestions ul li {
    margin-bottom: 15px;
}

.search-suggestions ul li a {
    font-size: 1rem;
    opacity: 0.8;
}

.search-suggestions ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.mini-product {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

.mini-product img {
    border-radius: 4px;
}

.mini-product p {
    font-size: 0.9rem;
    font-weight: 500;
}

.mini-product span {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Cart Drawer Styles */
.cart-empty {
    text-align: center;
    padding: 40px 0;
}

.cart-empty p {
    margin-bottom: 30px;
    opacity: 0.6;
}

.shipping-progress {
    text-align: left;
    margin-bottom: 40px;
}

.shipping-progress p {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.shipping-progress span {
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #eee;
    border-radius: 2px;
}

.progress {
    height: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
}

.upsell-card {
    display: flex;
    gap: 15px;
    align-items: center;
    background-color: #f9f8f4;
    padding: 15px;
    border-radius: 8px;
}

.upsell-info p {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.btn-add-mini {
    background: none;
    border: 1px solid var(--text-color);
    padding: 5px 12px;
    font-size: 0.7rem;
    border-radius: 20px;
    cursor: pointer;
}

.drawer-footer {
    padding: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background-color: var(--text-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
}

.btn-checkout:hover {
    opacity: 0.9;
}

@media (max-width: 480px) {
    .drawer {
        width: 100%;
        right: -100%;
    }
    .drawer.open {
        transform: translateX(-100%);
    }
}
