/* ===== RESET & ROOT ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A202C;
    --primary-light: #2D3748;
    --accent: #E53E3E;
    --accent-hover: #C53030;
    --gold: #D69E2E;
    --cream: #F7FAFC;
    --white: #FFFFFF;
    --gray-50: #F7FAFC;
    --gray-100: #EDF2F7;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E0;
    --gray-400: #A0AEC0;
    --gray-500: #718096;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 64px;
    --cat-height: 60px;
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background: var(--gray-50);
    color: var(--primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.up-display {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* ===== HEADER ===== */
.up-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: var(--header-height);
}

.up-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.up-logo .up-display {
    font-size: 18px;
    background: linear-gradient(135deg, #E53E3E, #D69E2E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.up-logo .up-ko {
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

.up-nav {
    display: flex;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
}

.up-nav span {
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.up-nav span:hover {
    opacity: 1;
    color: var(--gold);
}

.up-nav span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.up-nav span:hover::after {
    width: 100%;
}

.up-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.up-cart-btn {
    position: relative;
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.up-cart-btn:hover {
    transform: scale(1.04);
    background: var(--accent-hover);
}

.up-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gold);
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    border-radius: var(--radius-full);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.up-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    font-size: 24px;
}

.up-mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 24px;
    z-index: 29;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    gap: 12px;
}

.up-mobile-nav.open {
    display: flex;
}

.up-mobile-nav span {
    color: white;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.up-mobile-nav span:hover {
    opacity: 1;
    color: var(--gold);
}

/* ===== HERO ===== */
.up-hero {
    background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    color: white;
    padding: 48px 24px 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 60vh;
}

.up-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(229, 62, 62, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(214, 158, 46, 0.06) 0%, transparent 40%),
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
        repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
    pointer-events: none;
    z-index: 0;
}

.up-hero-noodles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.up-hero-noodle {
    position: absolute;
    font-size: 60px;
    opacity: 0.06;
    animation: floatNoodle 20s ease-in-out infinite;
}

.up-hero-noodle:nth-child(1) { top: 5%; left: 5%; animation-delay: 0s; font-size: 80px; }
.up-hero-noodle:nth-child(2) { top: 15%; right: 10%; animation-delay: 3s; font-size: 50px; }
.up-hero-noodle:nth-child(3) { bottom: 20%; left: 8%; animation-delay: 6s; font-size: 70px; }
.up-hero-noodle:nth-child(4) { bottom: 10%; right: 5%; animation-delay: 9s; font-size: 90px; }
.up-hero-noodle:nth-child(5) { top: 45%; left: 50%; animation-delay: 12s; font-size: 40px; }
.up-hero-noodle:nth-child(6) { top: 60%; left: 15%; animation-delay: 15s; font-size: 55px; }
.up-hero-noodle:nth-child(7) { top: 30%; right: 30%; animation-delay: 2s; font-size: 45px; }
.up-hero-noodle:nth-child(8) { bottom: 40%; left: 45%; animation-delay: 8s; font-size: 35px; }

@keyframes floatNoodle {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(30px, -20px) rotate(5deg) scale(1.1); }
    50% { transform: translate(-20px, 30px) rotate(-3deg) scale(0.9); }
    75% { transform: translate(15px, -10px) rotate(4deg) scale(1.05); }
}

.up-hero-flakes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.up-flake {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: flakeFall 8s ease-in infinite;
}

.up-flake:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.up-flake:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 9s; }
.up-flake:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 8s; }
.up-flake:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 10s; }
.up-flake:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 7.5s; }
.up-flake:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 8.5s; }
.up-flake:nth-child(7) { left: 15%; animation-delay: 6s; animation-duration: 9.5s; }
.up-flake:nth-child(8) { left: 50%; animation-delay: 2.5s; animation-duration: 7.8s; }

@keyframes flakeFall {
    0% { opacity: 0; transform: translateY(-20px) scale(0); }
    20% { opacity: 0.6; transform: translateY(20px) scale(1); }
    80% { opacity: 0.6; transform: translateY(60px) scale(1); }
    100% { opacity: 0; transform: translateY(100px) scale(0.5); }
}

.up-hero-copy {
    max-width: 480px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 280px;
}

.up-hero-eyebrow {
    display: inline-block;
    background: rgba(214, 158, 46, 0.15);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(214, 158, 46, 0.1);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(214, 158, 46, 0); }
    50% { box-shadow: 0 0 30px rgba(214, 158, 46, 0.1); }
}

.up-hero h1 {
    font-size: 38px;
    line-height: 1.1;
    margin: 6px 0 12px;
    animation: fadeInUp 0.8s ease;
}

.up-hero h1 span {
    background: linear-gradient(135deg, var(--gold), #F6AD55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
}

@keyframes shimmerText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.up-hero p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 20px;
    max-width: 400px;
}

.up-hero-cta {
    background: var(--gold);
    color: var(--primary);
    border: none;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.up-hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold), #F6AD55);
    opacity: 0;
    transition: opacity 0.4s;
}

.up-hero-cta:hover::before {
    opacity: 1;
}

.up-hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(214, 158, 46, 0.4);
}

.up-hero-cta span,
.up-hero-cta svg {
    position: relative;
    z-index: 1;
}

.up-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.up-stat {
    display: flex;
    flex-direction: column;
    animation: fadeInUp 1s ease;
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.up-stat:nth-child(2) { animation-delay: 0.4s; }
.up-stat:nth-child(3) { animation-delay: 0.6s; }

.up-stat-value {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold), #F6AD55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.up-stat-label {
    font-size: 11px;
    opacity: 0.6;
}

.up-table {
    position: relative;
    width: 320px;
    height: 240px;
    flex-shrink: 0;
    z-index: 1;
}

.up-dish {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 4px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    cursor: default;
    animation: floatDish 6s ease-in-out infinite;
}

.up-dish:nth-child(1) { animation-delay: 0s; }
.up-dish:nth-child(2) { animation-delay: 1s; }
.up-dish:nth-child(3) { animation-delay: 2s; }
.up-dish:nth-child(4) { animation-delay: 0.5s; }
.up-dish:nth-child(5) { animation-delay: 1.5s; }
.up-dish:nth-child(6) { animation-delay: 2.5s; }
.up-dish:nth-child(7) { animation-delay: 1s; }

@keyframes floatDish {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-10px) rotate(calc(var(--rot, 0deg) + 3deg)); }
}

.up-dish:hover {
    transform: scale(1.1) rotate(5deg) !important;
    z-index: 10;
}

/* ===== CATEGORY STRIP ===== */
.up-catstrip {
    display: flex;
    gap: 8px;
    padding: 12px 24px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: var(--header-height);
    z-index: 20;
    scrollbar-width: thin;
    align-items: center;
    min-height: var(--cat-height);
    -webkit-overflow-scrolling: touch;
}

.up-catstrip::-webkit-scrollbar {
    height: 3px;
}

.up-catstrip::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.up-catstrip::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.up-cat-chip {
    border: 2px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    gap: 6px;
    align-items: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-family: inherit;
}

.up-cat-chip:hover {
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

.up-cat-chip .up-chip-ko {
    font-size: 10px;
    opacity: 0.6;
    font-weight: 400;
}

.up-cat-chip .up-chip-icon {
    font-size: 14px;
}

.up-cat-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.up-searchwrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 3px 14px;
    min-width: 160px;
    background: white;
    transition: var(--transition);
    flex-shrink: 0;
}

.up-searchwrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 32, 44, 0.08);
}

.up-searchwrap input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    width: 100%;
    font-family: inherit;
    padding: 5px 0;
    min-width: 80px;
}

.up-searchwrap .up-search-icon {
    color: var(--gray-400);
    flex-shrink: 0;
}

/* ===== PRODUCT GRID ===== */
.up-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.up-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.up-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-200);
}

.up-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

.up-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    opacity: 0.7;
    font-family: inherit;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.up-wishlist-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: white;
}

.up-wishlist-btn.active {
    opacity: 1;
    color: var(--accent);
    background: white;
}

.up-product-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.up-product-image .up-emoji-big {
    font-size: 64px;
    opacity: 0.3;
}

.up-product-image .up-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.up-product-image .up-image-placeholder .up-emoji-big {
    font-size: 56px;
    opacity: 0.5;
}

.up-product-image .up-image-placeholder .up-brand-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.up-card-brand {
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.up-card-en {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.up-card-ko {
    font-size: 12px;
    opacity: 0.5;
    margin-bottom: 4px;
}

.up-card-desc {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.up-card-weight {
    font-size: 11px;
    opacity: 0.5;
    margin-bottom: 6px;
}

.up-card-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 12px;
}

.up-add-btn {
    border: none;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    transition: var(--transition);
    font-family: inherit;
}

.up-add-btn:hover {
    background: var(--primary-light);
    transform: scale(1.02);
}

.up-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
    font-size: 14px;
}

/* ===== CART DRAWER ===== */
.up-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.6);
    z-index: 40;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.up-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 400px;
    max-width: 92vw;
    background: white;
    z-index: 50;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

.up-drawer-head {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.up-drawer-head .up-display {
    font-size: 17px;
}

.up-drawer-head button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: var(--transition);
}

.up-drawer-head button:hover {
    opacity: 1;
}

.up-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.up-line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.up-line-image {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.up-line-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-line-image .up-emoji-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: var(--gray-100);
}

.up-line-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.up-line-en {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-line-price {
    font-size: 11px;
    opacity: 0.6;
}

.up-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.up-qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 11px;
    font-family: inherit;
    color: var(--primary);
}

.up-qty button:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.up-qty span {
    font-weight: 700;
    font-size: 13px;
    min-width: 20px;
    text-align: center;
}

.up-drawer-foot {
    padding: 16px 20px;
    border-top: 2px solid var(--gray-100);
    background: white;
    flex-shrink: 0;
}

.up-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 4px;
}

.up-row.total {
    font-weight: 800;
    font-size: 17px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid var(--gray-200);
}

.up-checkout-btn {
    margin-top: 12px;
    width: 100%;
    background: var(--gold);
    color: var(--primary);
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit;
}

.up-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 158, 46, 0.25);
}

.up-empty-cart {
    text-align: center;
    padding: 40px 10px;
    opacity: 0.5;
    font-size: 13px;
}

/* ===== CHECKOUT MODAL ===== */
.up-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.7);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.up-modal {
    background: white;
    border-radius: var(--radius);
    width: 460px;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.up-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--gray-500);
}

.up-modal-close:hover {
    background: var(--gray-100);
}

.up-steps {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.up-step-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    transition: var(--transition);
}

.up-step-dot.done {
    background: var(--accent);
}

.up-field {
    margin-bottom: 14px;
}

.up-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gray-600);
}

.up-field input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.up-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 32, 44, 0.08);
}

.up-field-row {
    display: flex;
    gap: 10px;
}

.up-field-row .up-field {
    flex: 1;
}

.up-modal-submit {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    font-family: inherit;
}

.up-modal-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.25);
}

.up-modal-back {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    transition: var(--transition);
    font-family: inherit;
}

.up-modal-back:hover {
    color: var(--primary);
}

.up-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

/* ===== OFFER BANNER (inline, centered in hero) ===== */
.up-offer-banner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.up-offer-banner img {
    width: 100%;
    max-width: 360px;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    animation: offerPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    transition: var(--transition);
}

.up-offer-banner img:hover {
    transform: scale(1.02);
}

@keyframes offerPop {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
    .up-offer-banner img {
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .up-offer-banner {
        margin-bottom: 20px;
    }
    .up-offer-banner img {
        max-width: 220px;
    }
}

/* ===== TOAST ===== */
.up-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s ease;
    white-space: nowrap;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== FOOTER ===== */
.up-footer {
    background: var(--primary);
    color: var(--gray-400);
    padding: 32px 24px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    line-height: 1.8;
}

/* ============================================================ */
/* ===== RESPONSIVE ===== */
/* ============================================================ */

@media (max-width: 1200px) {
    .up-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
        gap: 18px;
        padding: 20px;
    }
    
    .up-hero h1 {
        font-size: 34px;
    }
    
    .up-table {
        width: 280px;
        height: 210px;
    }
}

@media (max-width: 1024px) {
    .up-hero {
        padding: 40px 20px 32px;
        gap: 32px;
    }
    
    .up-hero h1 {
        font-size: 30px;
    }
    
    .up-hero p {
        font-size: 14px;
    }
    
    .up-table {
        width: 250px;
        height: 190px;
    }
    
    .up-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 16px;
        padding: 16px;
    }
    
    .up-catstrip {
        padding: 10px 16px;
        gap: 6px;
        top: var(--header-height);
    }
    
    .up-searchwrap {
        min-width: 120px;
        padding: 2px 12px;
    }
    
    .up-searchwrap input {
        font-size: 12px;
        min-width: 60px;
    }
    
    .up-cat-chip {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .up-nav {
        gap: 16px;
        font-size: 13px;
    }
    
    .up-product-image {
        height: 150px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --cat-height: 52px;
    }
    
    .up-header {
        padding: 8px 16px;
        min-height: var(--header-height);
    }
    
    .up-logo .up-display {
        font-size: 16px;
    }
    
    .up-logo .up-ko {
        font-size: 10px;
    }
    
    .up-nav {
        display: none;
    }
    
    .up-menu-toggle {
        display: block;
    }
    
    .up-cart-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .up-cart-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .up-hero {
        padding: 32px 16px 28px;
        gap: 24px;
        min-height: 50vh;
    }
    
    .up-hero h1 {
        font-size: 26px;
    }
    
    .up-hero p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .up-hero-cta {
        padding: 10px 22px;
        font-size: 13px;
    }
    
    .up-hero-stats {
        gap: 16px;
        margin-top: 16px;
    }
    
    .up-stat-value {
        font-size: 16px;
    }
    
    .up-table {
        width: 220px;
        height: 170px;
    }
    
    .up-catstrip {
        padding: 8px 12px;
        gap: 6px;
        top: var(--header-height);
        min-height: var(--cat-height);
    }
    
    .up-cat-chip {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .up-cat-chip .up-chip-icon {
        font-size: 12px;
    }
    
    .up-searchwrap {
        min-width: 100px;
        padding: 2px 10px;
    }
    
    .up-searchwrap input {
        font-size: 11px;
        min-width: 50px;
    }
    
    .up-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .up-card {
        padding: 14px 12px 12px;
    }
    
    .up-product-image {
        height: 130px;
        margin-bottom: 10px;
    }
    
    .up-product-image .up-emoji-big {
        font-size: 40px;
    }
    
    .up-card-en {
        font-size: 13px;
    }
    
    .up-card-ko {
        font-size: 10px;
    }
    
    .up-card-desc {
        font-size: 11px;
        min-height: 28px;
    }
    
    .up-card-price {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .up-add-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .up-drawer {
        width: 100%;
        max-width: 100%;
    }
    
    .up-modal {
        padding: 20px;
        margin: 12px;
    }
    
    .up-toast {
        font-size: 12px;
        padding: 10px 18px;
        white-space: normal;
        max-width: 92%;
    }
    
    .up-footer {
        padding: 24px 16px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 52px;
        --cat-height: 48px;
    }
    
    .up-header {
        padding: 6px 12px;
        min-height: var(--header-height);
    }
    
    .up-logo .up-display {
        font-size: 14px;
    }
    
    .up-logo .up-ko {
        font-size: 9px;
    }
    
    .up-cart-btn {
        padding: 5px 10px;
        font-size: 11px;
        gap: 4px;
    }
    
    .up-cart-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .up-cart-count {
        width: 16px;
        height: 16px;
        font-size: 8px;
        top: -4px;
        right: -4px;
    }
    
    .up-hero {
        padding: 24px 12px 20px;
        gap: 16px;
        min-height: auto;
    }
    
    .up-hero-eyebrow {
        font-size: 9px;
        padding: 3px 10px;
        margin-bottom: 8px;
    }
    
    .up-hero h1 {
        font-size: 22px;
    }
    
    .up-hero p {
        font-size: 12px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .up-hero-cta {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    .up-hero-stats {
        gap: 12px;
        margin-top: 12px;
    }
    
    .up-stat-value {
        font-size: 14px;
    }
    
    .up-stat-label {
        font-size: 9px;
    }
    
    .up-table {
        width: 180px;
        height: 140px;
    }
    
    .up-catstrip {
        padding: 6px 10px;
        gap: 4px;
        top: var(--header-height);
        min-height: var(--cat-height);
    }
    
    .up-cat-chip {
        font-size: 9px;
        padding: 3px 8px;
        gap: 4px;
        border-width: 1.5px;
    }
    
    .up-cat-chip .up-chip-icon {
        font-size: 10px;
    }
    
    .up-cat-chip .up-chip-ko {
        font-size: 8px;
    }
    
    .up-searchwrap {
        min-width: 80px;
        padding: 1px 8px;
        gap: 4px;
        border-width: 1.5px;
    }
    
    .up-searchwrap input {
        font-size: 10px;
        min-width: 40px;
        padding: 3px 0;
    }
    
    .up-searchwrap .up-search-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .up-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 10px;
    }
    
    .up-card {
        padding: 12px 10px 10px;
        border-radius: 12px;
    }
    
    .up-card-badge {
        font-size: 7px;
        padding: 2px 8px;
        top: 8px;
        left: 8px;
    }
    
    .up-wishlist-btn {
        font-size: 14px;
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }
    
    .up-product-image {
        height: 110px;
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .up-product-image .up-emoji-big {
        font-size: 32px;
    }
    
    .up-card-brand {
        font-size: 8px;
    }
    
    .up-card-en {
        font-size: 12px;
    }
    
    .up-card-ko {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .up-card-desc {
        font-size: 10px;
        min-height: 24px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        margin-bottom: 4px;
    }
    
    .up-card-price {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .up-add-btn {
        padding: 6px 10px;
        font-size: 10px;
        gap: 4px;
    }
    
    .up-add-btn svg {
        width: 10px;
        height: 10px;
    }
    
    .up-drawer-head {
        padding: 12px 16px;
    }
    
    .up-drawer-head .up-display {
        font-size: 15px;
    }
    
    .up-drawer-body {
        padding: 12px 16px;
    }
    
    .up-line {
        padding: 10px 0;
        gap: 10px;
    }
    
    .up-line-image {
        width: 40px;
        height: 40px;
    }
    
    .up-line-image .up-emoji-sm {
        font-size: 20px;
    }
    
    .up-line-en {
        font-size: 12px;
    }
    
    .up-line-price {
        font-size: 10px;
    }
    
    .up-qty button {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    .up-qty span {
        font-size: 12px;
        min-width: 16px;
    }
    
    .up-drawer-foot {
        padding: 12px 16px;
    }
    
    .up-row {
        font-size: 12px;
    }
    
    .up-row.total {
        font-size: 15px;
    }
    
    .up-checkout-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .up-modal {
        padding: 16px;
        border-radius: 12px;
    }
    
    .up-modal h2 {
        font-size: 18px !important;
    }
    
    .up-field {
        margin-bottom: 10px;
    }
    
    .up-field label {
        font-size: 11px;
    }
    
    .up-field input {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .up-modal-submit {
        padding: 10px;
        font-size: 13px;
    }
    
    .up-confirm-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .up-toast {
        font-size: 11px;
        padding: 8px 16px;
        bottom: 16px;
        max-width: 95%;
    }
    
    .up-footer {
        padding: 20px 12px;
        font-size: 10px;
    }
    
    .up-mobile-nav {
        padding: 12px 16px;
        top: var(--header-height);
    }
    
    .up-mobile-nav span {
        font-size: 13px;
        padding: 6px 0;
    }
}

@media (max-width: 360px) {
    .up-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 8px;
    }
    
    .up-card {
        padding: 10px 8px 8px;
    }
    
    .up-product-image {
        height: 90px;
    }
    
    .up-product-image .up-emoji-big {
        font-size: 28px;
    }
    
    .up-card-en {
        font-size: 10px;
    }
    
    .up-card-ko {
        font-size: 8px;
    }
    
    .up-card-price {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .up-add-btn {
        font-size: 8px;
        padding: 4px 6px;
    }
    
    .up-hero h1 {
        font-size: 18px;
    }
    
    .up-hero p {
        font-size: 11px;
    }
    
    .up-table {
        width: 140px;
        height: 110px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .up-hero {
        padding: 24px 16px;
        min-height: auto;
    }
    
    .up-hero h1 {
        font-size: 22px;
    }
    
    .up-table {
        width: 160px;
        height: 120px;
    }
    
    .up-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .up-product-image {
        height: 100px;
    }
}

@media print {
    .up-header,
    .up-catstrip,
    .up-cart-btn,
    .up-hero-cta,
    .up-add-btn,
    .up-wishlist-btn,
    .up-drawer,
    .up-overlay,
    .up-modal-overlay,
    .up-offer-banner,
    .up-toast,
    .up-hero-noodles,
    .up-hero-flakes {
        display: none !important;
    }
    
    .up-hero {
        background: white !important;
        color: black !important;
        padding: 20px !important;
    }
    
    .up-hero h1 span {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
    
    .up-grid {
        display: block !important;
    }
    
    .up-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 16px;
        border: 1px solid #ddd;
        padding: 16px;
    }
}
