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

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Main Header */
.main-header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.search-form .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 25px 25px 0;
}

.cart-icon {
    position: relative;
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.cart-icon:hover {
    color: #667eea;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

/* Navigation */
.main-nav {
    background: white;
    border-top: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    display: block;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: #667eea;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Slider */
.hero-slider {
    margin-bottom: 0;
}

.banner-slide {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Section Titles */
.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.section-title span {
    position: relative;
    padding-bottom: 15px;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Category Cards */
.category-card {
    display: block;
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.category-icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.category-card h5 {
    color: #333;
    font-weight: 600;
    margin: 0;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.badge-sale, .badge-new {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.badge-new {
    background: #5352ed;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-category {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.product-price {
    margin-top: 10px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    display: block;
}

.sale-price, .current-price {
    color: #ff4757;
    font-size: 20px;
    font-weight: 700;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0 0 15px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Features Section */
.feature-box {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-box:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-box i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background: #2c3e50;
    color: white;
    margin-top: 50px;
}

.footer-top {
    padding: 50px 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-text {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.cs-phone {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.cs-time {
    color: #bdc3c7;
    line-height: 1.8;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icon:hover {
    background: #667eea;
    transform: translateY(-3px);
}

.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
}

.copyright {
    color: #95a5a6;
    margin: 0;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.auth-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-header h2 {
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    font-weight: 700;
}

/* Cart & Checkout */
.cart-item, .order-history-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.cart-summary, .order-summary {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-top: 20px;
}

.total-amount {
    color: #667eea;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control button {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

.quantity-control button:hover {
    background: #667eea;
    color: white;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    height: 35px;
}

/* Admin Styles */
.admin-page {
    background: #f5f6fa;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    background: #1a252f;
}

.sidebar-header h4 {
    margin: 0;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    background: #34495e;
    color: white;
    border-left: 4px solid #667eea;
}

.admin-content {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h2 {
    font-weight: 700;
    color: #2c3e50;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-right: 20px;
}

.stat-info h5 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: #7f8c8d;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .admin-sidebar {
        width: 200px;
    }
    
    .admin-content {
        margin-left: 200px;
    }
}
