.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: white;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.cart-drawer.open {
    transform: translateX(0);
}

body.no-scroll {
    overflow: hidden;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    margin-top: 32px;
}

.close-cart {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #555;
}

.shipping-msg {
    text-align: center;
    font-size: 14px;
    color: #004d40;
    margin-bottom: 10px;
    margin-top: 10px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 100%;
    background-color: #f3cbb3;
}
.free-shipping-label {
    text-align: right;
    font-size: 11px;
    color: #333;
    margin-top: 5px;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 5px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.item-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.item-details {
    flex: 1;
}

.item-title {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #000;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.current-price {
    font-weight: bold;
    color: #C19A6B;
    font-size: 14px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #fff;
    border: none;
    width: 25px;
    height: 25px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}
.qty-btn:hover { background: #f0f0f0; }

.qty-value {
    font-size: 13px;
    font-weight: 600;
    padding: 0 5px;
    min-width: 20px;
    text-align: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    color: #999;
    transition: color 0.2s;
}
.icon-btn:hover { color: #d32f2f; }
.icon-btn svg { width: 18px; height: 18px; }

.continue-link {
    display: block;
    text-align: center;
    color: #E16203;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #E16203;
    width: fit-content;
    margin: 20px auto 0;
    padding-bottom: 2px;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: white;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
}
.savings-row {
    display: flex;
    justify-content: space-between;
    color: #28a745;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background-color: #E16203;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.checkout-btn:hover { background-color: #c95502; }

.empty-cart-msg {
    display: none;
    text-align: center;
    padding-top: 50px;
    color: #777;
}