/* =====================================================
            WEEALL CART PAGE STYLES
===================================================== */

/* Page Back Navigation Bar */
.page-navigation-bar {
    width: min(94%, 1240px);
    margin: 145px auto 10px auto;
}

.page-navigation-bar .container {
    padding: 0;
}

.back-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-nav-btn:hover {
    background-color: #f9fafb;
    border-color: #D71920;
    color: #D71920;
}

/* ============================
        CART LAYOUT
============================ */

.cart-section {
    padding: 10px 0 60px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

/* ============================
        CART PRODUCT CARD
============================ */

.cart-product-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    display: flex;
    gap: 28px;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* PROMINENT BALANCED IMAGE BOX */
.cart-product-image {
    width: 220px;
    height: 220px;
    min-width: 220px;
    max-width: 220px;
    border-radius: 12px;
    background: #fbfbfb;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
}

.cart-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* PRODUCT INFO AREA */
.cart-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-product-info h2 {
    margin: 0 0 4px 0;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.35;
}

.cart-brand {
    color: #6b7280;
    font-size: 13px;
    margin: 0 0 6px 0;
}

.cart-rating {
    margin: 0 0 8px 0;
    color: #f59e0b;
    font-size: 13px;
}

.cart-rating span {
    color: #6b7280;
    font-size: 12px;
    margin-left: 4px;
}

.cart-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.cart-offer-price {
    font-size: 24px;
    font-weight: 800;
    color: #D71920;
}

.cart-mrp {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 15px;
}

.discount-badge {
    background: #ecfdf5;
    color: #059669;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.stock-status {
    color: #059669;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 10px 0;
}

/* CLEAN 2-LINE TRUNCATED DESCRIPTION */
.product-description-snippet {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 14px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

/* ============================
    QUANTITY & ACTION ROW
============================ */

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    height: 36px;
}

.quantity-box button {
    width: 36px;
    height: 100%;
    border: none;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.quantity-box button:hover {
    background: #e5e7eb;
}

.quantity-box span {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.remove-cart-item {
    border: 1px solid #fee2e2;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 8px;
    height: 36px;
    transition: all 0.15s ease;
}

.remove-cart-item:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* ============================
    ADD MORE PRODUCTS BUTTON
============================ */

.cart-actions {
    margin-top: 16px;
}

.add-more-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.add-more-products-btn:hover {
    background: #f9fafb;
    border-color: #D71920;
    color: #D71920;
}

/* ============================
        ORDER SUMMARY ASIDE
============================ */

#orderSummary {
    position: sticky;
    top: 120px;
}

.order-summary-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.order-summary-box h2 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    color: #4b5563;
    font-size: 14px;
}

.summary-row strong,
.summary-row span:last-child {
    color: #111827;
    font-weight: 600;
}

.free-shipping {
    color: #059669 !important;
    font-weight: 700 !important;
}

.summary-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.summary-total strong,
.summary-total span:last-child {
    color: #D71920 !important;
    font-size: 22px;
    font-weight: 800;
}

.checkout-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #D71920;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.checkout-btn:hover {
    background: #b8141a;
}

.delivery-message {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 14px;
    color: #0369a1;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secure-box {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================
        EMPTY CART STATE
============================ */

.empty-cart {
    text-align: center;
    padding: 60px 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.empty-cart i.fa-cart-shopping {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
    display: inline-block;
}

.empty-cart h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.empty-cart p {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 24px 0;
}

/* SLEEK, PROPORTIONATE & PERFECTLY CENTERED BUTTON */
.empty-cart-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 22px !important;
    background: #D71920 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.empty-cart-btn i {
    font-size: 14px !important;
    line-height: 1 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
}

.empty-cart-btn span {
    line-height: 1 !important;
    color: #ffffff !important;
}

.empty-cart-btn:hover {
    background: #b8141a !important;
}

/* ============================
    RECOMMENDED PRODUCTS
============================ */

.recommended-products {
    padding: 40px 0;
    background: #fafafa;
    border-top: 1px solid #eeeeee;
}

.section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.section-heading p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ============================
        TRUST BADGES
============================ */

.trust-section {
    padding: 40px 0;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-card {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eeeeee;
    background: #ffffff;
}

.trust-card i {
    font-size: 24px;
    color: #D71920;
    margin-bottom: 8px;
}

.trust-card h3 {
    margin: 6px 0 2px 0;
    font-size: 14px;
    color: #111827;
}

.trust-card p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* ============================
    RESPONSIVENESS
============================ */

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

    #orderSummary {
        position: static;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cart-product-card {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .cart-product-image {
        width: 100%;
        max-width: 180px;
        height: 180px;
    }

    .cart-product-info {
        width: 100%;
    }

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

/* Recommended Products Scrollbar */
#recommendedProducts::-webkit-scrollbar {
  height: 8px !important;
  display: block !important;
}
#recommendedProducts::-webkit-scrollbar-track {
  background: #e2e8f0 !important;
  border-radius: 10px !important;
}
#recommendedProducts::-webkit-scrollbar-thumb {
  background: #94a3b8 !important;
  border-radius: 10px !important;
}
#recommendedProducts::-webkit-scrollbar-thumb:hover {
  background: #D71920 !important;
}
