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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #f5c518;
    --accent-color: #4a90e2;
    --text-dark: #1a1a2e;
    --text-light: #666;
    --text-muted: #999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e5e5e5;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

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

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

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

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.cart-icon,
.user-icon {
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    transition: color 0.3s;
}

.cart-icon:hover,
.user-icon:hover {
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section {
    display: none;
    min-height: 70vh;
}

.section.active {
    display: block;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.btn {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #e0b415;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Features */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-light);
    font-size: 14px;
}

/* Section Title */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

/* Featured Products */
.featured-products {
    padding: 80px 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

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

.product-image {
    width: 100%;
    height: 250px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    overflow: hidden;
}

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-to-cart:hover {
    background: #2d2d4a;
}

/* About */
.about-content {
    padding: 80px 0;
    text-align: center;
}

.about-text {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    margin-top: 10px;
}

/* Contact */
.contact-content {
    padding: 80px 0;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 32px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

/* Cart */
.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 40px 0;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: 4px;
    overflow: hidden;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

.cart-summary {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
}

.cart-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

.summary-row.total {
    border-top: 2px solid var(--border);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
}

.empty-cart {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Auth */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.auth-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

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

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
}

.auth-link a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Account */
.account-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 60px 0;
}

.account-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}

.account-user {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    margin: 0 auto 15px;
}

.account-user h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.account-user p {
    color: var(--text-light);
    font-size: 14px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-nav a {
    padding: 12px 15px;
    border-radius: 4px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--bg-light);
    color: var(--accent-color);
}

.account-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
}

.account-tab {
    display: none;
}

.account-tab.active {
    display: block;
}

.account-tab h2 {
    font-size: 24px;
    margin-bottom: 30px;
}

.profile-form {
    max-width: 400px;
}

/* Orders */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
}

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

.order-number {
    font-weight: 600;
    font-size: 16px;
}

.order-date {
    color: var(--text-light);
    font-size: 14px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2e7d32;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
}

.order-item-image {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 4px;
    overflow: hidden;
}

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

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.order-item-price {
    color: var(--text-light);
    font-size: 14px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.empty-orders {
    text-align: center;
    padding: 60px 0;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0 30px;
    margin-top: 80px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
}

#modalBody {
    text-align: center;
}

#modalBody h2 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

#modalBody p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.policy-content {
    text-align: left;
    margin-bottom: 20px;
}

.policy-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 20px;
    margin-bottom: 10px;
}

.policy-content p {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 40px;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .footer-links {
        gap: 20px;
    }
}