/* Coupang Design System Variables */
:root {
    --coupang-blue: #3DACDC;
    --coupang-red: #E52528;
    --coupang-green: #00891A;
    --coupang-yellow: #FFD200;
    --text-black: #111111;
    --text-gray: #555555;
    --bg-gray: #F0F0F0;
    --border-gray: #CCCCCC;
    --container-width: 1020px;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-black);
    background-color: white;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.main-header {
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 170px;
}

.category-btn {
    background: var(--coupang-blue);
    color: white;
    border: none;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}

.hamburger {
    width: 20px;
    height: 2px;
    background: white;
    position: relative;
    margin-bottom: 5px;
}

.hamburger::before, .hamburger::after {
    content: '';
    width: 20px;
    height: 2px;
    background: white;
    position: absolute;
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Search Area */
.search-area {
    flex: 1;
    margin: 0 40px;
}

.search-input-wrapper {
    display: flex;
    border: 2px solid var(--coupang-blue);
    height: 40px;
}

.search-select {
    border: none;
    border-right: 1px solid var(--border-gray);
    padding: 0 10px;
    outline: none;
    background: #f9f9f9;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 15px;
    outline: none;
}

.search-btn {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    font-size: 18px;
    color: var(--coupang-blue);
}

/* User Menu */
.user-menu {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-gray);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cart-btn {
    color: var(--coupang-blue);
}

/* Navigation */
.main-nav {
    background: #fafafa;
    border-top: 1px solid #eee;
}

.nav-list {
    display: flex;
    gap: 30px;
    padding: 12px 0;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
}

.nav-link.rocket { color: #0073e9; }
.nav-link.fresh { color: #00891a; }
.nav-link.gold { color: #f5a623; }

/* Main Content */
.main-content {
    background-color: var(--bg-gray);
    padding-bottom: 50px;
}

/* Slider Banner */
.main-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    background: white;
}

.banner-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 20px 10px;
    cursor: pointer;
    z-index: 10;
}

.slider-next { right: 0; }
.slider-prev { left: 0; }

/* Product Grid */
.product-section {
    margin-top: 30px;
}

.section-title {
    margin-bottom: 20px;
    font-size: 22px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    padding-bottom: 15px;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 14px;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-info {
    margin-bottom: 5px;
}

.discount {
    color: var(--coupang-red);
    font-weight: bold;
    margin-right: 5px;
}

.price {
    font-weight: 700;
    font-size: 16px;
}

.delivery-info {
    font-size: 12px;
    margin-bottom: 5px;
}

.rocket-badge {
    color: var(--coupang-blue);
    font-weight: bold;
}

.fresh-badge {
    color: var(--coupang-green);
    font-weight: bold;
}

.delivery-date {
    color: var(--coupang-green);
    display: block;
}

.rating-info {
    font-size: 11px;
    color: var(--text-gray);
}

.stars {
    color: #ff9600;
}

/* Footer */
.main-footer {
    background: white;
    padding: 40px 0;
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    border-top: 1px solid var(--border-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .container { width: 100%; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .search-area { margin: 0 20px; }
}
