/* ============================================================
   엘엔케이샵 (L&K SHOP) - 통합 디자인 시스템 & 스타일시트
   컨셉: Modern Sapphire & Luxury Slate Lifestyle Commerce
   ============================================================ */

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

/* CSS Variables */
:root {
    /* Brand Colors - Deep Sapphire & Electric Cobalt */
    --primary-color: #1e40af;       /* Deep Royal Sapphire */
    --primary-hover: #1d4ed8;       /* Electric Blue */
    --primary-dark: #0f172a;        /* Midnight Slate */
    --primary-soft: #eff6ff;        /* Soft Ice Blue */
    --primary-glow: rgba(30, 64, 175, 0.15);
    
    /* Secondary & Accent Colors */
    --accent-blue: #3b82f6;
    --accent-cyan: #0ea5e9;
    --accent-gold: #d97706;
    --accent-gold-soft: #fef3c7;
    --success-color: #10b981;
    --danger-color: #ef4444;
    
    /* Neutral & Background Colors */
    --text-dark: #0f172a;           /* Deep Charcoal Slate */
    --text-muted: #475569;          /* Medium Slate */
    --text-light: #64748b;          /* Cool Gray */
    --bg-main: #f8fafc;             /* Slate 50 */
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;        /* Subtle Border */
    --border-hover: #cbd5e1;
    
    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 40px -10px rgba(30, 64, 175, 0.18);
    
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    line-height: 1.6;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

button, input, select, textarea {
    font-family: inherit;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   Announcement Bar (상단 안내 띠)
   ============================================================ */
.announcement-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 500;
    padding: 8px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-bar .badge-live {
    display: inline-block;
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.4);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    margin-right: 8px;
    font-weight: 600;
}

/* ============================================================
   Header & Navigation
   ============================================================ */
.header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

/* Logo Design */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.04em;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text h1 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #0f172a 30%, #1e40af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.logo-text p {
    font-size: 11.5px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 1px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.auth-buttons, .user-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-text {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

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

.user-menu span {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-color);
    padding: 6px 12px;
    background: var(--primary-soft);
    border-radius: var(--radius-full);
}

.cart-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--text-dark);
    transition: var(--transition);
}

.cart-icon:hover {
    background: var(--primary-soft);
    border-color: rgba(30, 64, 175, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border-radius: var(--radius-full);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    border: 2px solid #ffffff;
}

/* Navigation Menu */
.nav {
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    position: relative;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav ul::-webkit-scrollbar {
    display: none;
}

.nav li {
    flex-shrink: 0;
}

.nav a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    white-space: nowrap;
}

.nav a:hover, .nav a.active {
    background: var(--primary-soft);
    color: var(--primary-color);
    font-weight: 600;
}

.nav .nav-all-btn {
    background: #f1f5f9;
    color: var(--primary-color);
    font-weight: 700;
    border: 1px solid rgba(30, 64, 175, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav .nav-all-btn:hover {
    background: var(--primary-soft);
}

/* 모바일 햄버거 토글 버튼 */
.btn-mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 17px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-mobile-menu-toggle:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================================
   Mobile Off-Canvas Menu Drawer (모바일 전체 카테고리 서랍)
   ============================================================ */
.mobile-menu-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: visibility 0.28s ease, opacity 0.28s ease;
}

.mobile-menu-drawer.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

.mobile-drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 360px;
    background-color: #ffffff !important;
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 2;
}

.mobile-menu-drawer.open .mobile-drawer-content {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.mobile-drawer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-drawer-logo .logo-badge {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 8px;
}

.mobile-drawer-logo .logo-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-drawer-close:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

/* Drawer Auth Box */
.mobile-drawer-auth {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.drawer-auth-guest {
    display: flex;
    gap: 10px;
}

.drawer-auth-btn {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
}

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

.drawer-auth-btn.register {
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.drawer-auth-user {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-user-info {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-user-actions {
    display: flex;
    gap: 10px;
}

.drawer-user-link {
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
}

/* Drawer Categories Grid */
.mobile-drawer-body {
    padding: 20px;
    flex: 1;
}

.mobile-cat-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.mobile-cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-cat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition);
}

.mobile-cat-card:hover, .mobile-cat-card:active {
    background: var(--primary-soft);
    border-color: rgba(30, 64, 175, 0.3);
    transform: translateY(-2px);
}

.mobile-cat-card.active {
    background: var(--primary-soft);
    border-color: var(--primary-color);
}

.cat-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.mobile-cat-card .cat-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Drawer Footer */
.mobile-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
}

.drawer-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    text-decoration: none;
}

.drawer-contact-info p {
    font-size: 11.5px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   Hero Banner (모던 2열 스플릿 히어로)
   ============================================================ */
.hero-banner {
    background: 
        radial-gradient(1000px 600px at 75% 25%, rgba(59, 130, 246, 0.25), transparent 70%),
        radial-gradient(800px 500px at 20% 80%, rgba(99, 102, 241, 0.2), transparent 70%),
        linear-gradient(140deg, #070c18 0%, #0b1329 45%, #101e42 100%);
    color: #ffffff;
    padding: 76px 20px 108px;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.8;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

/* --- Hero Left: Content & Actions --- */
.hero-left {
    text-align: left;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(147, 197, 253, 0.35);
    backdrop-filter: blur(10px);
    color: #93c5fd;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
    letter-spacing: 0.03em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: heroPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
    font-size: clamp(34px, 4.3vw, 54px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 40%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(15.5px, 1.35vw, 17.5px);
    color: #94a3b8;
    line-height: 1.68;
    margin-bottom: 34px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 42px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15.5px;
    padding: 14px 26px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.5);
    transition: all var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.65);
    color: #ffffff;
}

.btn-hero-primary i {
    transition: transform var(--transition);
}

.btn-hero-primary:hover i {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #f1f5f9;
    font-weight: 600;
    font-size: 15.5px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Trust Stats Bar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    font-family: inherit;
}

.stat-label {
    font-size: 12.5px;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.12);
}

/* --- Hero Right: Floating Showcase Card --- */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(99, 102, 241, 0.18) 50%, transparent 70%);
    filter: blur(48px);
    z-index: 1;
    pointer-events: none;
}

.hero-showcase-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 410px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 24px 48px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: heroCardFloat 6s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(59, 130, 246, 0.25);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.showcase-rating {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}

.showcase-rating i {
    color: #f59e0b;
    margin-right: 2px;
}

.showcase-rating span {
    color: #64748b;
    font-weight: 400;
    font-size: 12px;
}

.showcase-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 250px;
    background: #0f172a;
    overflow: hidden;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.showcase-overlay-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.showcase-body {
    padding: 20px;
    text-align: left;
}

.showcase-cat {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.showcase-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.showcase-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.showcase-price-box .discount-rate {
    font-size: 20px;
    font-weight: 800;
    color: #ef4444;
}

.showcase-price-box .current-price {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.showcase-price-box .original-price {
    font-size: 13.5px;
    color: #64748b;
    text-decoration: line-through;
}

/* Floating Info Chips */
.floating-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

.chip-top {
    top: -16px;
    right: -16px;
    animation: chipFloatTop 5s ease-in-out infinite;
}

.chip-bottom {
    bottom: -20px;
    left: -18px;
    animation: chipFloatBottom 5.5s ease-in-out infinite;
}

.chip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.chip-icon.check {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
}

.chip-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chip-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.chip-text span {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
}

/* Keyframe Animations */
@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes chipFloatTop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes chipFloatBottom {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

/* ============================================================
   Features Bar (4대 안심 서비스)
   ============================================================ */
.features {
    padding: 0 20px;
    margin-top: -38px;
    position: relative;
    z-index: 2;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1240px;
    margin: 0 auto;
}

.feature-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 64, 175, 0.3);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 12.5px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 14.5px;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 400;
}

/* ============================================================
   Categories Grid (인기 카테고리)
   ============================================================ */
.product-categories {
    padding: 72px 20px 60px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1240px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 64, 175, 0.35);
}

.category-image {
    height: 180px;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

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

.category-badge-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.category-card-body {
    padding: 18px 20px;
}

.category-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card h3 i.fa-chevron-right {
    font-size: 12px;
    color: #94a3b8;
    transition: var(--transition);
}

.category-card:hover h3 i.fa-chevron-right {
    color: var(--primary-color);
    transform: translateX(4px);
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================================================
   Product Cards & Grid (상품 목록 및 카드)
   ============================================================ */
.featured-products {
    padding: 60px 20px 84px;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(30, 64, 175, 0.3);
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.product-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover .product-hover-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: #ffffff;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateY(8px);
    transition: transform 0.25s ease;
}

.product-card:hover .btn-quick-view {
    transform: translateY(0);
}

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

.product-category {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-soft);
    display: inline-block;
    align-self: flex-start;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    margin-bottom: 10px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.product-card .product-description {
    display: none;
}

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

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.product-price span {
    font-size: 14px;
    font-weight: 600;
    margin-left: 2px;
    color: var(--text-dark);
}

.product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.badge-free-deli {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-origin {
    background: #f1f5f9;
    color: #475569;
}

.badge-seller {
    background: #eff6ff;
    color: #2563eb;
}

/* ============================================================
   Products List Page Styles (products.html)
   ============================================================ */
.products-section {
    padding: 48px 0 80px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.products-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.products-filter select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.products-filter select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ============================================================
   Footer (모던 다크 슬레이트 푸터)
   ============================================================ */
.footer {
    background: #0b0f19;
    color: #94a3b8;
    padding: 64px 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto 48px;
}

.footer-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 6px;
    color: #94a3b8;
}

.footer-section .highlight-text {
    color: #38bdf8;
    font-weight: 600;
}

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

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

.footer-section ul li a {
    color: #94a3b8;
    font-size: 13.5px;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.company-info {
    font-size: 12.5px;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 16px;
}

.company-info strong {
    color: #e2e8f0;
    font-weight: 600;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #475569;
    padding-top: 12px;
}

/* ============================================================
   Generic Buttons & Utilities
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary-solid:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

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

.btn-outline:hover {
    background: var(--primary-soft);
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 992px) {
    .hero-banner {
        padding: 56px 20px 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-left {
        text-align: center;
    }

    .hero-br-pc {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-right {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .announcement-bar {
        font-size: 11.5px;
        padding: 6px 12px;
    }
    
    .header-top {
        padding: 12px 0;
    }
    
    .logo-badge {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        display: none;
    }

    /* 모바일에서는 햄버거 메뉴 버튼 노출 & 텍스트 버튼 정리 */
    .btn-mobile-menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .header-actions .auth-buttons,
    .header-actions .user-menu {
        display: none !important;
    }
    
    .cart-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .nav {
        position: relative;
        overflow: hidden;
    }

    /* 우측 스크롤 가능 인디케이터 그라디언트 페이드 */
    .nav::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95));
        pointer-events: none;
        z-index: 2;
    }
    
    .nav ul {
        padding: 8px 14px;
        gap: 6px;
        padding-right: 48px; /* 우측 페이드 영역 확보 */
    }
    
    .nav a {
        padding: 6px 13px;
        font-size: 12.5px;
        font-weight: 600;
        background: #f8fafc;
        border: 1px solid var(--border-color);
        box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    }

    .nav a.active {
        background: var(--primary-color);
        color: #ffffff;
        border-color: var(--primary-color);
    }

    .nav .nav-all-btn {
        background: var(--primary-soft);
        color: var(--primary-color);
        border-color: rgba(30, 64, 175, 0.25);
    }
    
    .hero-banner {
        padding: 44px 16px 64px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 14.5px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
        padding-top: 18px;
    }

    .stat-number {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11.5px;
    }

    .floating-chip {
        padding: 8px 12px;
        gap: 8px;
    }

    .chip-top {
        top: -12px;
        right: 0px;
    }

    .chip-bottom {
        bottom: -16px;
        left: 0px;
    }

    .chip-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .chip-text strong {
        font-size: 11.5px;
    }

    .chip-text span {
        font-size: 10px;
    }
    
    .features {
        margin-top: -24px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item {
        padding: 16px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-image {
        height: 120px;
    }
    
    .category-card-body {
        padding: 12px 14px;
    }
    
    .category-card h3 {
        font-size: 14.5px;
    }
    
    .category-card p {
        font-size: 12px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-name {
        font-size: 13.5px;
        margin-bottom: 8px;
    }
    
    .product-price {
        font-size: 17px;
    }
}
