* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    border-color: #1a1a1a;
}

.btn-cart {
    width: 100%;
    background: #1a1a1a;
    color: white;
}

.btn-cart:hover {
    background: #333;
}

.header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #1a1a1a;
}

.banner {
    height: 500px;
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.9) 0%, rgba(253, 230, 138, 0.9) 100%),
        url('../images/banner.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-tag {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.banner h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.banner p {
    font-size: 20px;
    color: #666;
    margin-bottom: 32px;
}

.featured {
    padding: 80px 0;
}

.featured h2,
.categories h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-desc {
    text-align: center;
    color: #64748b;
    margin-bottom: 48px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge.sale {
    background: #ef4444;
    color: white;
}

.badge.new {
    background: #1a1a1a;
    color: white;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.product-price {
    margin-bottom: 16px;
}

.original-price {
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 14px;
}

.sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.view-all {
    text-align: center;
}

.categories {
    padding: 80px 0;
    background: #f8fafc;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-card span {
    font-size: 14px;
    color: #64748b;
}

.benefits {
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 14px;
    color: #64748b;
}

.footer {
    padding: 60px 0 24px;
    background: #1a1a1a;
    color: #94a3b8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-section nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section nav a {
    color: #94a3b8;
    text-decoration: none;
}

.footer-section nav a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .banner h1 {
        font-size: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Header */
.page-header {
    padding: 100px 0 40px;
    background: #f8fafc;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: #64748b;
}

/* Products Page */
.products-page .container {
    display: flex;
    gap: 40px;
    padding: 40px 24px;
}

.filters {
    width: 200px;
    flex-shrink: 0;
}

.filters h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #64748b;
    text-transform: uppercase;
}

.filter-list {
    list-style: none;
    margin-bottom: 32px;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
}

.filter-list a.active,
.filter-list a:hover {
    color: #1a1a1a;
    font-weight: 600;
}

.products-content {
    flex: 1;
}

.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sort-bar select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.products-grid .product-card a {
    text-decoration: none;
    color: inherit;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
}

.pagination a.active,
.pagination a:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Product Detail */
.product-detail {
    padding: 20px 0 60px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a1a1a;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.main-image {
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.main-image img {
    max-width: 80%;
    max-height: 80%;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
}

.thumbnail.active {
    border-color: #1a1a1a;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info-detail h1 {
    font-size: 28px;
    margin: 12px 0;
}

.product-subtitle {
    color: #64748b;
    margin-bottom: 24px;
}

.price-section {
    margin-bottom: 32px;
}

.price-section .original-price {
    font-size: 18px;
}

.price-section .sale-price {
    font-size: 32px;
}

.discount-rate {
    background: #fef2f2;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 12px;
}

.option-section {
    margin-bottom: 32px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
}

.color-btn.active {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #1a1a1a;
}

.size-options {
    display: flex;
    gap: 8px;
}

.size-btn {
    padding: 10px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-weight: 500;
}

.size-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    font-size: 18px;
}

.quantity-control input {
    width: 60px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-cart-large {
    flex: 1;
    padding: 16px;
    background: white;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    font-weight: 600;
}

.btn-buy {
    flex: 1;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    font-weight: 600;
}

.product-meta {
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.product-meta p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.product-meta p:last-child {
    margin-bottom: 0;
}

/* Product Tabs */
.product-tabs {
    border-top: 1px solid #e5e7eb;
    padding-top: 40px;
}

.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 32px;
}

.tab-btn {
    padding: 16px 32px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn.active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.tab-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.spec-table th,
.spec-table td {
    padding: 16px;
    text-align: left;
}

.spec-table th {
    width: 150px;
    background: #f8fafc;
    font-weight: 600;
}

.review-item {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.reviewer {
    font-weight: 600;
}

.review-rating {
    color: #fbbf24;
}

.review-date {
    color: #94a3b8;
    font-size: 14px;
}

.review-text {
    color: #64748b;
}

/* Cart Page */
.cart-page {
    padding: 40px 0 80px;
}

.cart-page h1 {
    font-size: 28px;
    margin-bottom: 32px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-text {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 80%;
    max-height: 80%;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.cart-item-option {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-right: none;
}

.cart-item-quantity .qty-btn {
    width: 32px;
    height: 32px;
}

.cart-item-total {
    width: 100px;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
}

.cart-summary {
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row .discount {
    color: #ef4444;
}

.summary-row .free {
    color: #22c55e;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    margin-top: 16px;
}

.summary-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.coupon-section {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}

.coupon-section input {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #1a1a1a;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn-continue {
    width: 100%;
    padding: 16px;
    background: white;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.cart-empty {
    text-align: center;
    padding: 80px 0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.cart-empty h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.cart-empty p {
    color: #64748b;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .products-page .container {
        flex-direction: column;
    }

    .filters {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-wrap: wrap;
    }
}