:root {
    --text-main: #222222;
    --text-sub: #555555;
    --text-muted: #888888;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
}

header {
    text-align: center;
    padding: 4rem 1rem;
    background: white;
}

header h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1.5px;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

nav a {
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Home Grid */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.home-card {
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: white;
}

.home-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.home-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(10%);
    transition: 0.5s;
}

.home-card:hover img {
    filter: grayscale(0%);
}

.home-card-info {
    padding: 1.5rem;
}

.home-card-info h3 {
    margin: 0 0 0.8rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.home-card-info p {
    color: var(--text-sub);
    margin: 0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail Pages Style */
.hero {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: -2px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.main-content section {
    margin-bottom: 4rem;
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--theme-main);
    padding-bottom: 0.8rem;
    display: inline-block;
}

.main-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--text-sub);
}

/* Sub-type Grid */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sub-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5rem;
    transition: 0.3s;
}

.sub-item:hover {
    border-color: var(--theme-main);
}

.sub-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1rem;
    filter: grayscale(30%);
}

.sub-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-main);
}

.sub-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-sub);
}

/* Products Section */
.products-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.product-card {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--bg-light);
    padding: 1.5rem;
}

.product-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.product-info h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.product-info p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-sub);
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-box h4 {
    margin-top: 0;
    color: var(--theme-main);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.info-list li span {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 10px;
}

/* Theme Colors */
.theme-whiskey { --theme-main: #8B4513; }
.theme-rum { --theme-main: #5D2A11; }
.theme-gin { --theme-main: #006666; }
.theme-vodka { --theme-main: #4A6984; }
.theme-makgeolli { --theme-main: #8D7B68; }
.theme-soju { --theme-main: #2E8B57; }
.theme-sake { --theme-main: #1A237E; }
.theme-beer { --theme-main: #D4AF37; }
.theme-wine { --theme-main: #722F37; }
.theme-tequila { --theme-main: #2F4F4F; }

footer {
    text-align: center;
    padding: 4rem 1rem;
    border-top: 1px solid #eee;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4rem;
}

@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; gap: 3rem; }
    .product-card { flex-direction: column; text-align: center; }
}
