* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 68px;
}

.logo a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    text-decoration: none;
    color: #000;
    display: block;
    line-height: 1;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

nav a.active {
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
}

/* Page Header */
.page-header {
    background: #f5f5f5;
    padding: 4rem 40px 3rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 0.95rem;
    color: #666;
    font-weight: 300;
}

nav a:hover {
    opacity: 0.6;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.search-icon {
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-icon:hover {
    opacity: 0.6;
}

.cart {
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s;
}

.cart:hover {
    opacity: 0.6;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    position: relative;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
    padding: 0.9rem 2.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

/* Featured Banner */
.featured-banner {
    background: #f5f5f5;
    padding: 3rem 40px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.featured-banner h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.featured-banner p {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
}

/* Products Section */
.products {
    padding: 60px 40px 80px;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.product-card {
    background: white;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    color: #000;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.sale {
    background: #ff0000;
    color: #fff;
}

.product-info {
    padding: 1.5rem;
    background: #fff;
}

.product-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: #000;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.category {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 0.85rem;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.btn-cart {
    background: #000;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cart:hover {
    background: #333;
}

.btn-cart:active {
    transform: scale(0.95);
}

/* Footer */
footer {
    background: #f5f5f5;
    color: #000;
    padding: 4rem 40px 2rem;
    margin-top: 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #000;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #999;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ─── Catalog Additions ─── */
.brand-label {
    color: #999;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.product-code {
    font-size: 0.75rem;
    color: #bbb;
    margin-top: 0.15rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.8rem;
    font-size: 0.8rem;
}

.color-count {
    color: #666;
}

.stock-count {
    font-weight: 600;
}

.stock-ok { color: #2e7d32; }
.stock-low { color: #f57f17; }
.stock-zero { color: #c62828; }

.badge-instock { background: #e8f5e9; color: #2e7d32; }
.badge-low { background: #fff8e1; color: #f57f17; }
.badge-soldout { background: #000; color: #fff; }

.product-card.out-of-stock { opacity: 0.55; }
.product-card.out-of-stock:hover { opacity: 0.8; }

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 0.85rem;
}

.product-image.img-error img { display: none; }
.product-image.img-error::after {
    content: '이미지 없음';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    color: #ccc;
    font-size: 0.85rem;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 0.95rem;
    background: #fff;
}

/* Brand Filter */
.brand-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 24px 40px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.filter-btn:hover { background: #f5f5f5; }
.filter-btn.active { background: #000; color: #fff; border-color: #000; }

/* Updated Date Badge */
.updated-badge {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
    letter-spacing: 0;
}

/* 거래처 로그인/주문 버튼 */
.user-nav-btn {
    display: inline-block;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1.5px solid #000;
    border-radius: 4px;
    color: #000;
    text-decoration: none;
    background: transparent;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.user-nav-btn:hover { background: #000; color: #fff; }
.user-nav-btn.logged-in { background: #000; color: #fff; border-color: #000; }
.cart-badge {
    display: inline-block;
    background: #e53935;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    header .container {
        padding: 1rem 20px;
    }

    nav ul {
        gap: 1.5rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .hero-content h2 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }

    .featured-banner {
        padding: 2rem 20px;
    }

    .featured-banner h3 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .product-image {
        height: 350px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer {
        padding: 3rem 20px 2rem;
    }

    .brand-filter {
        padding: 16px 20px;
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}
