:root {
    --primary: #F6DAD1; /* Hoasis Peach */
    --primary-dark: #e8c4bb;
    --accent: #E57373; /* Hoasis Point */
    --bg-light: #ffffff;
    --text-main: #333333;
    --text-light: #666666;
    --border: #eeeeee;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans KR', sans-serif; background: #fff; color: var(--text-main); line-height: 1.6; overflow-x: hidden; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Top Navigation Icons */
.header-top { background: #fff; border-bottom: 1px solid #f0f0f0; padding: 15px 0; }
.top-menu-icons { display: flex; gap: 30px; justify-content: flex-end; }
.top-icon-item { text-align: center; color: #555; text-decoration: none; font-size: 0.8rem; transition: 0.3s; }
.top-icon-item i { display: block; font-size: 1.6rem; margin-bottom: 5px; color: #777; }
.top-icon-item:hover { color: var(--accent); }
.top-icon-item:hover i { color: var(--accent); }

/* Header Main */
.header-main { background: var(--primary); padding: 30px 0; }
.header-flex { display: flex; align-items: center; justify-content: space-between; }

.logo h1 { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 2.2rem; color: #444; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.search-bar { flex: 0 1 500px; position: relative; }
.search-bar input { width: 100%; padding: 12px 25px; border-radius: 30px; border: none; font-size: 1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); outline: none; }
.search-bar button { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); background: none; border: none; font-size: 1.2rem; color: #999; cursor: pointer; }

/* Sub Navigation */
.nav-sub { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.nav-list { display: flex; list-style: none; gap: 40px; }
.nav-list li a { display: block; padding: 15px 0; text-decoration: none; color: #333; font-weight: 700; font-size: 1rem; transition: 0.3s; }
.nav-list li a:hover { color: var(--accent); }

/* Initial Search Grid ( ㄱㄴㄷㄹ ) */
.initial-grid { display: grid; grid-template-columns: repeat(14, 1fr); border: 1px solid #ddd; margin: 30px 0; background: #fafafa; }
.initial-item { padding: 10px; text-align: center; border: 0.5px solid #eee; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: 0.2s; }
.initial-item:hover { background: #fff; color: var(--accent); font-weight: 900; }
.initial-item.active { background: #333; color: #fff; }

/* Quick Sidebar (Right Floating) */
.quick-sidebar { position: fixed; right: 20px; top: 200px; width: 110px; background: #fff; border: 1px solid #ddd; z-index: 1000; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.quick-item { display: block; padding: 12px 5px; text-align: center; text-decoration: none; color: #444; font-size: 0.75rem; border-bottom: 1px solid #eee; transition: 0.3s; }
.quick-item i { display: block; font-size: 1.4rem; margin-bottom: 4px; color: #666; }
.quick-item:hover { background: #f9f9f9; color: var(--accent); }
.quick-info { padding: 10px; background: #444; color: #fff; text-align: center; font-size: 0.7rem; line-height: 1.4; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 30px; }
.product-item { background: #fff; border: 1px solid #f0f0f0; transition: 0.3s; position: relative; border-radius: 12px; overflow: hidden; }
.product-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary); }

.product-img { width: 100%; aspect-ratio: 1/1; overflow: hidden; background: #f8f8f8; display: flex; align-items: center; justify-content: center; padding: 15px; }
.product-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: 0.5s; }
.product-item:hover .product-img img { transform: scale(1.05); }

.product-info { padding: 15px; border-top: 1px solid #f9f9f9; }
.p-badge-container { display: flex; gap: 5px; margin-bottom: 10px; }
.p-badge { padding: 2px 6px; font-size: 0.65rem; font-weight: 900; color: #fff; border-radius: 2px; }
.badge-new { background: #4CAF50; }
.badge-best { background: #E57373; }

.p-name { font-size: 0.9rem; font-weight: 500; color: #333; margin-bottom: 15px; min-height: 2.6rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-price { font-size: 1.15rem; font-weight: 900; color: var(--accent); }

/* Sidebar (Left) */
.sidebar { width: 240px; padding-right: 40px; }
.side-title { font-size: 1.1rem; font-weight: 900; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #333; position: relative; }
.side-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 40px; height: 2px; background: var(--accent); }
.side-list { list-style: none; }
.side-list li a { display: block; padding: 12px 0; color: #444; text-decoration: none; font-size: 0.95rem; border-bottom: 1px solid #f5f5f5; transition: 0.2s; }
.side-list li a:hover { color: var(--accent); padding-left: 8px; background: #fffaf9; }

/* Main Layout */
.main-wrapper { display: flex; padding: 50px 0; position: relative; }
.content-area { flex: 1; }

/* Category Section Grid */
.cat-section-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 20px; color: #333; display: flex; align-items: center; gap: 10px; }
.cat-section-title::before { content: ''; width: 5px; height: 20px; background: var(--accent); border-radius: 5px; }

/* Login Elements */
.login-body { background: #F6DAD1; height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: #fff; padding: 60px; border-radius: 30px; width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); text-align: center; border: 1px solid #f0f0f0; }
.login-box h2 { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 2.5rem; margin-bottom: 10px; color: #333; }
.login-box h2 span { color: var(--accent); }
.login-form input { width: 100%; border: 1px solid #ddd; border-radius: 12px; padding: 16px 20px; margin-bottom: 15px; outline: none; transition: 0.3s; font-size: 1rem; }
.login-form input:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(229,115,115,0.1); }
.btn-login { width: 100%; background: #333; color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; font-size: 1.1rem; margin-top: 10px; }
.btn-login:hover { background: var(--accent); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(229,115,115,0.2); }

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000; }
.modal-content { background: #fff; padding: 30px; border-radius: 20px; text-align: center; max-width: 400px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.modal.hidden { display: none; }

/* Footer */
.footer { background: #fafafa; border-top: 1px solid #eee; color: #666; padding: 60px 0; font-size: 0.85rem; }
.footer b { color: #333; font-weight: 900; }
.footer-links { display: flex; gap: 30px; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.footer-links a { text-decoration: none; color: #555; font-weight: 700; }
.footer-info p { margin-bottom: 5px; }
.copyright { margin-top: 30px; color: #999; }
