:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --text-color: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* Navigation */
/* ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 20px;
    }

.navbar-brand {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-menu a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        transition: opacity 0.3s;
    }

        .nav-menu a:hover {
            opacity: 0.8;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    color: white;
    font-size: 1.5rem;
    position: relative;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* ============================================ */
/* Buttons */
/* ============================================ */

.btn-primary {
    background: var(--secondary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background: #e65c00;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255,102,0,0.3);
    }

.btn-secondary {
    background: var(--primary-color);
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

    .btn-secondary:hover {
        background: #0052a3;
    }

.btn-login {
    color: white;
    padding: 8px 20px;
    border: 2px solid white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

    .btn-login:hover {
        background: white;
        color: var(--primary-color);
    }

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
}

.btn-remove {
    background: var(--danger-color);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-remove:hover {
        background: #c0392b;
    }

/* ============================================ */
/* Hero Section */
/* ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-color), #0052a3);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================ */
/* Categories */
/* ============================================ */

.categories {
    padding: 80px 0;
    background: #f8f9fa;
}

    .categories h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 3rem;
        color: var(--dark-color);
    }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

    .category-card i {
        font-size: 3rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .category-card h3 {
        margin-bottom: 0.5rem;
    }

    .category-card p {
        font-size: 0.9rem;
        color: #666;
    }

/* ============================================ */
/* Products */
/* ============================================ */

.featured-products {
    padding: 80px 0;
}

    .featured-products h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 3rem;
        color: var(--dark-color);
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    }

    .product-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }

.product-info {
    padding: 1.5rem;
}

    .product-info h3 {
        margin-bottom: 0.5rem;
        color: var(--dark-color);
    }

    .product-info p {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.category-badge {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================ */
/* Features Section */
/* ============================================ */

.features {
    padding: 80px 0;
    background: #f8f9fa;
}

    .features h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 3rem;
        color: var(--dark-color);
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

    .feature-card i {
        font-size: 3rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

    .feature-card h3 {
        margin-bottom: 1rem;
    }

/* ============================================ */
/* Product Details */
/* ============================================ */

.product-details {
    padding: 60px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.product-image-section img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-info-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.description {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.price-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.price-label {
    display: block;
    color: #666;
    margin-bottom: 0.5rem;
}

.product-options {
    margin-bottom: 2rem;
}

    .product-options h3 {
        margin-bottom: 1rem;
    }

.option-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.quantity-selector {
    margin-bottom: 1.5rem;
}

    .quantity-selector label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .quantity-selector input {
        width: 100px;
        padding: 10px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        font-size: 1rem;
    }

.product-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

    .product-features .feature {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        color: var(--success-color);
    }

/* ============================================ */
/* Customize Page */
/* ============================================ */

.customize-page {
    padding: 60px 0;
}

.customize-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.design-area {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.canvas-container {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

#designCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: white;
}

.design-tools {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-btn {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

    .tool-btn:hover {
        background: var(--primary-color);
        color: white;
    }

.options-panel {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}

.price-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

    .price-row.total {
        border-top: 2px solid var(--border-color);
        padding-top: 0.5rem;
        margin-top: 0.5rem;
        font-weight: bold;
        font-size: 1.2rem;
    }

/* ============================================ */
/* Cart Page */
/* ============================================ */

.cart-page {
    padding: 60px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 100px 100px 50px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

    .cart-item:last-child {
        border-bottom: none;
    }

    .cart-item img {
        width: 100%;
        border-radius: 5px;
    }

.item-details h3 {
    margin-bottom: 0.5rem;
}

.item-price {
    color: #666;
}

.item-quantity input {
    width: 60px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-align: center;
}

.item-total {
    font-weight: bold;
    font-size: 1.2rem;
}

.cart-summary {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

    .summary-row.total {
        border-top: 2px solid var(--border-color);
        padding-top: 1rem;
        font-weight: bold;
        font-size: 1.3rem;
    }

.empty-cart {
    text-align: center;
    padding: 4rem 0;
}

    .empty-cart i {
        font-size: 5rem;
        color: var(--border-color);
        margin-bottom: 1rem;
    }

/* ============================================ */
/* Footer */
/* ============================================ */

footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

    .footer-section a:hover {
        opacity: 1;
    }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* ============================================ */
/* Responsive Design */
/* ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .product-layout,
    .cart-layout,
    .customize-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
    }

    .item-quantity,
    .item-total,
    .item-actions {
        grid-column: 2;
    }
}
