:root {
    --primary-color: #6B46C1;
    --secondary-color: #4C51BF;
    --dark-purple: #553C9A;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header */
.navbar-custom {
    background: linear-gradient(135deg, #6B46C1 0%, #4C51BF 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand .bowling-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
}

/* Dropdown Menu Styles */
.dropdown-hover {
    position: relative;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0;
    list-style: none;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-hover:hover .dropdown-menu-custom {
    display: block;
}

/* 드롭다운 메뉴 위에 마우스가 있을 때도 표시 유지 */
.dropdown-menu-custom:hover {
    display: block;
}

.dropdown-menu-custom .dropdown-item {
    color: #374151;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.dropdown-menu-custom .dropdown-item:hover {
    background: var(--primary-color);
    color: white;
    padding-left: 2rem;
}

.nav-link {
    cursor: pointer;
}

.nav-link:hover {
    color: #E9D5FF !important;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6B46C1 0%, #4C51BF 50%, #2563EB 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.3rem;
    color: #E9D5FF;
    margin-bottom: 2rem;
}

.hero-btn {
    background: white;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Category Buttons */
.category-section {
    padding: 2rem 0;
}

.category-btn {
    border-radius: 50px;
    padding: 10px 25px;
    margin: 5px;
    border: none;
    background: white;
    color: #4B5563;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-btn:hover, .category-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.product-img-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn.active i {
    color: #EF4444;
}

.product-rating {
    color: #FCD34D;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Login Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px;
    border-radius: 8px;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    background: #1F2937;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

footer h5 {
    font-weight: bold;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.3s;
}

footer ul li:hover {
    color: white;
}

/* Login Page Styles */
.login-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.login-card h2 {
    color: var(--primary-color);
    font-weight: bold;
}

.input-group-text {
    background: #f8f9fa;
    border-right: none;
}

.login-card .form-control {
    border-left: none;
}

.login-card .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: #6c757d;
}

.btn-social {
    padding: 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    transition: all 0.3s;
}

.btn-social:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.btn-github:hover {
    border-color: #333;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
}