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

:root {
    --primary-color: #e63946;
    --secondary-color: #1d3557;
    --accent-color: #f1faee;
    --text-dark: #2b2d42;
    --text-light: #8d99ae;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    min-width: 120px;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: white;
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 32px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    margin-top: 10px;
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.submenu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.has-submenu:hover .submenu {
    display: block !important;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn,
.cart-btn,
.menu-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover,
.cart-btn:hover,
.menu-toggle:hover {
    color: var(--primary-color);
}

.signup-btn,
.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.login-btn {
    background: var(--secondary-color);
}

.signup-btn:hover,
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle {
    display: none;
}

/* Search Bar */
.search-bar {
    display: none;
    padding: 20px 0;
    border-top: 1px solid var(--bg-light);
}

.search-bar.active {
    display: block;
}

.search-bar {
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--bg-light);
    border-radius: 50px;
    font-size: 16px;
    transition: var(--transition);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

#searchSubmit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

#searchSubmit:hover {
    background: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#heroVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 53, 87, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
}

/* Hero Search */
.hero-search {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#heroSearch {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 16px;
}

#heroSearch:focus {
    outline: none;
}

#heroSearchBtn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

#heroSearchBtn:hover {
    background: var(--secondary-color);
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.feature-item i {
    font-size: 24px;
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

/* Showcase Section */
.showcase {
    background: var(--bg-light);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.showcase-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.showcase-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Lubricants Section */
.lubricants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lubricant-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.lubricant-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.lubricant-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.lubricant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lubricant-info {
    padding: 25px;
}

.lubricant-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.lubricant-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Parts Section */
.parts {
    padding: 80px 0;
}

.parts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-select {
    padding: 10px 20px;
    border: 2px solid var(--bg-light);
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.loading,
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading i {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 20px;
    color: var(--secondary-color);
}

.close-cart {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 64px;
    margin-bottom: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--bg-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--secondary-color);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* Auth Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.auth-modal-close:hover {
    color: var(--primary-color);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-modal-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.auth-modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.auth-modal-header p {
    color: var(--text-light);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid var(--bg-light);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-checkbox input {
    width: 18px;
    height: 18px;
}

.auth-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.auth-submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: none;
}

.auth-overlay.active {
    display: block;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section p,
.footer-section li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-section i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10003;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10002;
    display: none;
}

.modal-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-features {
        flex-direction: column;
        gap: 20px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .signup-btn span,
    .login-btn span {
        display: none;
    }

    .language-selector {
        top: 70px;
        right: 10px;
        padding: 8px;
    }

    .lang-btn {
        font-size: 12px;
        padding: 8px 15px;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .auth-modal-content {
        padding: 30px 20px;
    }
}
