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

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    z-index: 101;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.cart-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 20px;
}

.cart-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cart-item-variant {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
}

.qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 1rem;
}

.qty-value {
    padding: 0 10px;
    font-size: 0.9rem;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid #f0f0f0;
    background-color: #fff;
    /* Ensure footer stays at bottom if content scrolls */
    margin-top: auto;
}

/* Shipping Promo */
.shipping-promo {
    margin-bottom: 24px;
}

.shipping-text {
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.shipping-text strong,
.shipping-text .amount-needed {
    color: #007bff;
    /* Blue for emphasis */
    font-weight: 700;
}

/* Success state */
.shipping-promo.success .shipping-text {
    color: #28a745;
}

.shipping-promo.success .shipping-text strong {
    color: #28a745;
}

.progress-bar-container {
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: visible;
    /* For the circle */
    position: relative;
    margin-top: 8px;
}

.progress-bar-fill {
    height: 100%;
    background-color: #ff5252;
    /* Red bar */
    border-radius: 3px;
    position: relative;
    transition: width 0.3s ease;
}

/* Circle at the end of progress */
.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 12px;
    height: 12px;
    background-color: #ff5252;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
}

/* Summary Breakdown */
.cart-summary {
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-row .label {
    font-weight: 600;
}

.summary-row .value {
    font-weight: 500;
    color: #333;
}

.summary-row.total-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.summary-row.total-row .label,
.summary-row.total-row .value {
    color: #000;
    /* As requested: visual black or dark */
    font-weight: 800;
    font-size: 1.1rem;
}

.summary-disclaimer {
    font-size: 0.75rem;
    color: #999;
    text-align: right;
    margin-top: 8px;
}

/* Actions */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    /* fw5 */
    font-size: 1rem;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 4px;
    transition: background 0.2s;
    /* Removed text-transform: uppercase to match styling needs */
}

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

.btn-continue {
    background: none;
    border: none;
    color: #0066cc;
    text-decoration: none;
    /* No underline unless hover? HTML snippet didn't show underline */
    cursor: pointer;
    font-size: 0.9rem;
    margin: 0 auto;
    display: block;
    padding: 5px;
}

.btn-continue:hover {
    text-decoration: underline;
}