* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    cursor: pointer;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

nav a:hover {
    color: #e74c3c;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
    width: 100%;
}

.cart-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
}

.empty-cart p {
    font-size: 16px;
    color: #999;
    margin-bottom: 20px;
}

.btn-go-shopping {
    padding: 10px 30px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

.btn-go-shopping:hover {
    background: #c0392b;
}

/* Cart Content */
.cart-content {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.cart-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cart-list {
    max-height: calc(100vh - 400px);
    overflow-y: auto;
}

/* Cart Item */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.cart-item-checkbox {
    flex-shrink: 0;
}

.cart-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
}

.cart-item-price {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity-controls button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.cart-quantity-controls button:hover {
    background: #f5f5f5;
}

.cart-quantity-controls input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 30px;
    font-size: 14px;
}

.btn-delete {
    color: #999;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
}

.btn-delete:hover {
    color: #e74c3c;
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    background: #fafafa;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.total-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.total-price {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-checkout:hover {
    background: #c0392b;
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #e74c3c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
