/* Global Styles */
:root {
    --primary-color: #FFB7B2;
    /* Soft Pink */
    --secondary-color: #B5EAD7;
    /* Soft Mint */
    --accent-color: #E2F0CB;
    /* Soft Lemon */
    --text-color: #5D5C61;
    /* Dark Gray */
    --bg-color: #FEF9F8;
    /* Very warm light gray/pink tint */
    --white: #ffffff;
    --font-heading: 'Gowun Dodum', sans-serif;
    --font-body: 'Noto Sans KR', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    word-break: keep-all;
}

/* Header */
header {
    background-color: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: #FF9AA2;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FF9AA2;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFF5F5 0%, #F0FFF4 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 0 0 50% 50% / 4rem;
    /* Curved bottom */
    margin-bottom: 3rem;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.badge {
    background-color: #FFDAC1;
    color: #555;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    color: #777;
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #EEE;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s;
}

.search-box button:hover {
    transform: scale(1.05);
}

/* Categories */
.categories {
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    text-align: center;
}

.categories h2,
.popular-products h2 {
    font-family: var(--font-heading);
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-card .icon {
    font-size: 2rem;
}

/* Popular Products */
.popular-products {
    max-width: 1000px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.placeholder-pink {
    background-color: #FFB7B2;
}

.placeholder-blue {
    background-color: #B5EAD7;
}

.placeholder-yellow {
    background-color: #E2F0CB;
}

.product-info {
    padding: 1.5rem;
}

.tag {
    background-color: #F7EDF0;
    color: #E85A71;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-info h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: #444;
}

.product-info p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.btn-more {
    display: block;
    text-align: center;
    background-color: #F4F9F4;
    color: #555;
    text-decoration: none;
    padding: 0.7rem;
    border-radius: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-more:hover {
    background-color: #E2F0CB;
}

/* Newsletter */
.newsletter {
    background-color: #FFF5F5;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter h3 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: #555;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

.input-group button {
    padding: 0 1.5rem;
    background-color: #FF9AA2;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.footer-logo {
    font-family: var(--font-heading);
    color: #FF9AA2;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    margin: 0 0.8rem;
    font-size: 0.9rem;
}

.copyright {
    color: #aaa;
    font-size: 0.8rem;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .search-box {
        flex-direction: column;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group button {
        padding: 0.8rem;
    }
}