/* Cart Page Premium Stylesheet */

.sp-cart-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.sp-cart-hero-content h1 {
    font-size: 36px;
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 10px 0;
}

.sp-cart-hero-content p {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

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

.sp-cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Cart Table List */
.sp-cart-items {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.01);
}

.sp-cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 80px;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
    font-weight: 800;
    font-size: 14px;
    color: var(--dark);
}

.sp-cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 80px;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: all 0.3s;
}

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

.sp-cart-item-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sp-cart-item-img {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.sp-cart-item-details h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 4px 0;
}

.sp-cart-item-details span {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.sp-cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.sp-cart-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sp-cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--dark);
    transition: all 0.2s;
}

.sp-cart-qty-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.sp-cart-qty-val {
    font-size: 14px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
}

.sp-cart-item-remove {
    background: none;
    border: none;
    color: #e5484d;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
    justify-self: center;
}

.sp-cart-item-remove:hover {
    transform: scale(1.15);
}

/* Order Summary */
.sp-cart-summary {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    height: fit-content;
}

.sp-cart-summary h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 24px 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.sp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text);
}

.sp-summary-row.total {
    border-top: 1.5px dashed var(--border);
    padding-top: 16px;
    margin-top: 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.sp-checkout-btn {
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    height: 52px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 15px;
    box-shadow: 0 4px 14px rgba(229,72,77,0.3);
}

.sp-checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,72,77,0.4);
}

/* Empty State */
.sp-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    max-width: 500px;
    margin: 40px auto;
}

.sp-cart-empty i {
    font-size: 64px;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.8;
}

.sp-cart-empty h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.sp-cart-empty p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.sp-cart-empty-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(229,72,77,0.3);
}

.sp-cart-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,72,77,0.4);
}

/* Responsiveness */
@media (max-width: 992px) {
    .sp-cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sp-cart-header {
        display: none;
    }
    .sp-cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .sp-cart-item-product {
        flex-direction: column;
    }
    .sp-cart-qty {
        justify-content: center;
    }
    .sp-cart-item-remove {
        justify-self: center;
    }
}
