/* Cart Page Styles */

.cart-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px 140px 16px;
}

.cart-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cart-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cart-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cart-title i {
    font-size: 36px;
    color: var(--white);
}

.cart-title h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.cart-count {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

.cart-count strong {
    font-weight: 800;
    color: var(--white);
}

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

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.remove-item {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: rgba(233, 30, 99, 0.1);
    border: none;
    border-radius: 50%;
    color: #E91E63;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.remove-item:hover {
    background: #E91E63;
    color: var(--white);
    transform: rotate(90deg);
}

.item-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 130px;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.item-details-text {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.item-details-text strong {
    color: var(--text-dark);
}

.item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Moltaqa', sans-serif;
}

.item-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

/* Order Summary */
.order-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--bg-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 15px;
}

.summary-row span:first-child {
    color: var(--text-light);
}

.summary-row span:last-child {
    font-weight: 700;
    color: var(--text-dark);
}

.summary-row.discount {
    color: #4CAF50;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
    font-size: 18px;
}

.summary-row.total span {
    font-weight: 800;
    color: var(--text-dark);
}

.total-price {
    font-size: 24px !important;
    color: var(--primary-color) !important;
}

.shipping {
    color: #4CAF50 !important;
}

/* Promo Code */
.promo-code {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.promo-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Moltaqa', sans-serif;
    outline: none;
    transition: all 0.3s ease;
}

.promo-input:focus {
    border-color: var(--primary-color);
}

.apply-promo {
    padding: 12px 24px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Moltaqa', sans-serif;
}

.apply-promo:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Moltaqa', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.continue-shopping {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Moltaqa', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.continue-shopping:hover {
    background: var(--bg-light);
}

/* Trust Badges */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--bg-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 14px;
}

.trust-item i {
    font-size: 20px;
    color: var(--primary-color);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-cart h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 16px 0;
}

.empty-cart p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 32px 0;
}

.browse-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.browse-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive Design */
@media (min-width: 768px) {
    .cart-main {
        padding: 32px 40px 60px 40px;
    }

    .cart-layout {
        grid-template-columns: 1fr 400px;
        gap: 32px;
    }

    .cart-item {
        grid-template-columns: 140px 1fr;
        gap: 20px;
    }

    .item-image {
        height: 180px;
    }

    .item-name {
        font-size: 18px;
    }

    .item-details-text {
        font-size: 14px;
    }

    .trust-badges {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 420px;
    }
}