﻿
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.2rem;
        margin-bottom: 15px;
        color: var(--text-color);
    }

    .section-title p {
        color: var(--light-text);
        max-width: 600px;
        margin: 0 auto;
    }

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

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

    .nav-links a {
        font-weight: 500;
        transition: var(--transition);
    }

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

.nav-buttons {
    display: flex;
    gap: 15px;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
}

    .breadcrumb a {
        color: rgba(255, 255, 255, 0.8);
        transition: var(--transition);
    }

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

    .breadcrumb span {
        color: rgba(255, 255, 255, 0.8);
    }

/* Cart Styles */
.cart-section {
    background-color: var(--white);
    padding: 60px 0;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.cart-items {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

    .cart-item:hover {
        background-color: var(--bg-light);
    }

    .cart-item:last-child {
        border-bottom: none;
    }

.cart-item-image {
    width: 120px;
    height: 80px;
    background-color: #ddd;
    border-radius: 5px;
    margin-left: 20px;
    flex-shrink: 0;
}

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-category {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.remove-btn {
    color: var(--accent-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

    .remove-btn:hover {
        color: #ff5252;
    }

.cart-summary {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.summary-total {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.discount-code {
    margin: 20px 0;
}

.discount-input {
    display: flex;
    gap: 10px;
}

    .discount-input input {
        flex-grow: 1;
        padding: 10px 15px;
        border: 1px solid var(--border-color);
        border-radius: 5px;
        font-size: 0.9rem;
    }

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light-text);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 70px 0 20px;
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background-color: var(--primary-color);
    }

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

.footer-links a {
    color: #aaa;
    transition: var(--transition);
}

    .footer-links a:hover {
        color: var(--white);
        padding-right: 5px;
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: var(--transition);
    }

        .social-links a:hover {
            background-color: var(--primary-color);
            transform: translateY(-5px);
        }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

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

    .mobile-menu {
        display: block;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        margin-left: 0;
        margin-bottom: 15px;
        width: 100%;
        height: 150px;
    }

        .cart-item-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

    .cart-item-actions {
        justify-content: space-between;
        margin-top: 15px;
    }

    .cart-actions {
        flex-direction: column;
    }
}
