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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px;
    border-bottom: 1px solid #e6e6e6;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.logo {
    margin-right: 20px;
}

.logo img {
    display: block;
}

.main-nav {
    flex: 1;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 5px 0;
    margin: 6px;
}

.nav-links a:hover {
    color: #dddee4;
    font-weight: 500;
    background-color: #000;
    border-radius: 16px;
    padding: 6px;
    transition: all 0.3s ease;
}

.nav-links a.active {
    color: #1428a0;
    font-weight: 500;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 6px;
}

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

.search {
    position: relative;
    margin-right: 20px;
}

.search-container {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

#searchInput {
    width: 180px;
    padding: 8px 12px;
    border: none;
    outline: none;
    background: transparent;
}

#searchButton {
    background: transparent;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10;
}

.cart, .account {
    margin-left: 15px;
    font-size: 20px;
    position: relative;
}

.cart a, .account a {
    color: #000;
    text-decoration: none;
}

.cart a.active {
    color: #1428a0;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #1428a0;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


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

.cart-container h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1428a0;
    text-align: center;
}

.cart-empty {
    text-align: center;
    padding: 60px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.empty-cart-icon {
    font-size: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

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

.continue-shopping {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1428a0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.continue-shopping:hover {
    background-color: #0e1c6b;
}

.cart-items {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.cart-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

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

.item-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 20px;
}

.item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-price {
    font-size: 16px;
    color: #1428a0;
    font-weight: 600;
    margin-bottom: 10px;
}

.item-actions {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.quantity-control {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 0 5px;
}

.remove-btn {
    background-color: transparent;
    border: none;
    color: #ff3b30;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.remove-btn i {
    margin-right: 5px;
}

.cart-summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-row.total {
    border-bottom: none;
    font-size: 18px;
    font-weight: 600;
    color: #1428a0;
    padding-top: 15px;
}

.checkout-btn {
    width: 100%;
    padding: 12px 0;
    background-color: #1428a0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #0e1c6b;
}

.continue-shopping-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #1428a0;
    text-decoration: none;
}

.continue-shopping-link:hover {
    text-decoration: underline;
}


.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.4s;
}

.nav-dropdown {
    display: flex;
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-dropdown.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .nav-links a:hover {
        background-color: #f0f0f0;
        color: #000;
        border-radius: 0;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .item-image {
        margin-right: 0;
        margin-bottom: 15px;
        width: 120px;
        height: 120px;
    }
    
    .item-actions {
        margin-top: 15px;
    }
}

@media screen and (max-width: 480px) {
    .cart-container {
        padding: 0 15px;
    }
    
    .cart-container h1 {
        font-size: 24px;
    }
    
    .item-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity-control {
        margin-right: 0;
        margin-bottom: 10px;
    }
}