:root {
    --main-bg: #ffffff;
    --main-text: #000000;
    --accent: #DB6E00;
    --card-bg: #f7f7f7;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--main-bg);
    color: var(--main-text);
}

header {
    background-color: #fff;
    padding: 0 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header nav img {
    width: 50px;
    margin-right: 5px;
}

.logo {
    display: flex;
    align-items: center;
}

nav,
.nav-links,
.nav-links .dropdown,
.nav-links .dropdown .dropdown {
    z-index: 999;
    position: relative;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

.nav-links li {
    list-style: none;
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    text-align: center;
}

.nav-links li a.active {
    font-weight: bold;
    color: #DB6E00;
}

.nav-links li:hover>.dropdown {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
}

.cart-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.cart-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--accent);
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.item-details {
    flex-grow: 1;
}

.item-details h3 {
    margin: 0 0 10px 0;
    color: var(--accent);
}

.price {
    font-weight: bold;
    margin: 10px 0;
}

.discount-code {
    color: #DB6E00;
    font-size: 14px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.quantity-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity {
    margin: 0 15px;
    font-weight: bold;
}

.remove-item {
    background: none;
    border: none;
    color: #DB6E00;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.cart-summary {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.coupon-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.coupon-section h3 {
    margin-top: 0;
}

#coupon-code {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 200px;
    margin-right: 10px;
}

#apply-coupon {
    padding: 10px 15px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#apply-coupon:hover {
    background-color: #c55e00;
}

#coupon-message {
    margin-top: 10px;
    font-size: 0.9em;
    min-height: 20px;
}

.totals {
    margin-bottom: 20px;
}

.totals div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total {
    font-weight: bold;
    font-size: 1.2em;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 10px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #c55e00;
}

.hidden {
    display: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: var(--accent);
    margin-top: 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode */
body.dark-mode {
    --main-bg: #121212;
    --main-text: #ffffff;
    --card-bg: #1e1e1e;
    --border-color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #fff;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    header {
        padding: 15px;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .menu-toggle:before {
        font-size: 30px;
        color: #333;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: whitesmoke;
        position: absolute;
        width: 100%;
        left: 0;
        top: 32px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: left;
        width: 100%;
        padding: 10px 20px;
    }

    .nav-links li a {
        color: #333;
    }

    .nav-links .has-dropdown>a::after {
        font-size: 14px;
    }

    .nav-links .has-dropdown.active .dropdown {
        display: block;
    }

    .nav-links .dropdown {
        display: none;
        background-color: #f8f8f8;
        padding: 10px;
        position: relative;
        left: 0;
        top: 0;
    }

    .nav-links .dropdown li a {
        padding-left: 30px;
    }

    .btn-hero {
        bottom: 0;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex;
    }

    .nav-links li {
        margin: 5px 0 5px 0;
        display: flex;
        flex-wrap: nowrap;
    }

    .nav-links .has-dropdown>a::after {
        font-size: 14px;
    }

    .nav-links .dropdown {
        display: none;
        background-color: #f8f8f8;
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        padding: 5px;
    }

    .nav-links .has-dropdown:hover>.dropdown {
        display: block;
    }

    .nav-links .dropdown .has-dropdown {
        position: relative;
    }

    .nav-links .dropdown .has-dropdown .dropdown {
        top: 0;
        left: 100%;
        position: absolute;
        display: none;
        background-color: #f8f8f8;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        min-width: 80px;
    }

    .nav-links .dropdown .has-dropdown:hover>.dropdown {
        display: block;
    }
}