/* ===== EPOKA GLOBAL - CART PAGE STYLESHEET ===== */
/* Depends on: css/style.css (must load before this file) */


/* ===== CART BREADCRUMB SECTION START ===== */
.cart-breadcrumb-section {
    background: var(--bg-cream);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-breadcrumb {
    font-family: var(--font-body);
    font-size: 13px;
    --bs-breadcrumb-divider: '›';
}

.cart-breadcrumb .breadcrumb-item a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.cart-breadcrumb .breadcrumb-item.active {
    color: var(--text-light);
    font-weight: 500;
}
/* ===== CART BREADCRUMB SECTION END ===== */


/* ===== CART MAIN SECTION START ===== */
.cart-main-section {
    padding: 48px 0 64px;
    background: var(--bg-light);
    min-height: 60vh;
}

/* Section heading */
.cart-section-head {
    margin-bottom: 32px;
}

.cart-page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.cart-page-sub {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}
/* ===== CART MAIN SECTION END ===== */


/* ===== CART LAYOUT: 2-column (items + summary) START ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 991.98px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}
/* ===== CART LAYOUT END ===== */


/* ===== CART ITEMS COLUMN START ===== */
.cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== CART ITEM ROW START ===== */
.cart-item-row {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}

.cart-item-row:hover {
    box-shadow: 0 4px 18px var(--shadow);
}

/* Product image */
.cart-item-img-wrap {
    width: 90px;
    height: 90px;
    min-width: 90px;
    border-radius: 10px;
    background: var(--bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

/* Item details */
.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Qty stepper inside item row */
.cart-item-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 25px;
    overflow: hidden;
    width: fit-content;
    background: var(--bg-cream);
}

.cart-item-qty-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
}

.cart-item-qty-btn:hover {
    background: var(--bg-warm);
    color: var(--primary-dark);
}

.cart-item-qty-val {
    min-width: 28px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0 4px;
}

/* Item price (right side) */
.cart-item-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 80px;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

/* Remove button */
.cart-item-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.18s, background 0.18s;
    line-height: 1;
}

.cart-item-remove-btn:hover {
    color: #c0392b;
    background: #fdecea;
}
/* ===== CART ITEM ROW END ===== */


/* ===== CART ACTIONS ROW START ===== */
.cart-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.cart-continue-link {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.cart-continue-link:hover {
    color: var(--primary);
}

.cart-clear-btn {
    background: none;
    border: 1.5px solid #e8b4a0;
    border-radius: 25px;
    padding: 7px 18px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cart-clear-btn:hover {
    background: #fdecea;
    border-color: #c0392b;
}
/* ===== CART ACTIONS ROW END ===== */


/* ===== CART EMPTY STATE START ===== */
.cart-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--white);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
}

.cart-empty-icon {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 18px;
    line-height: 1;
}

.cart-empty-state h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cart-empty-state p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.cart-shop-btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 32px;
    font-size: 14px;
}
/* ===== CART EMPTY STATE END ===== */


/* ===== CART ITEMS COLUMN END ===== */


/* ===== CART ORDER SUMMARY CARD START ===== */
.cart-summary-col {
    position: sticky;
    top: 110px; /* sticky below navbar */
}

.cart-summary-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
}

.cart-summary-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border);
}

/* Summary rows */
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 10px;
}

.cart-summary-row--tax {
    font-size: 12px;
    color: var(--text-light);
}

.cart-summary-row--total {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.cart-free-ship {
    color: #27ae60;
    font-weight: 700;
    font-size: 13px;
}

/* Divider between rows and total */
.cart-summary-divider {
    height: 1.5px;
    background: var(--border);
    margin: 14px 0;
}

/* Trust badges row inside summary */
.cart-trust-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 18px 0 20px;
}

.cart-trust-item {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-trust-item i {
    color: var(--primary);
    font-size: 13px;
}

/* Checkout button — reuses .btn-primary-honey from style.css */
.cart-checkout-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    text-align: center;
    display: block;
}

.cart-checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
/* ===== CART ORDER SUMMARY CARD END ===== */


/* ===== RESPONSIVE CART START ===== */
@media (max-width: 767.98px) {

    .cart-main-section {
        padding: 32px 0 48px;
    }

    .cart-page-title {
        font-size: 1.5rem;
    }

    .cart-item-row {
        flex-wrap: wrap;
        gap: 14px;
        padding: 14px;
    }

    .cart-item-img-wrap {
        width: 72px;
        height: 72px;
        min-width: 72px;
    }

    .cart-item-price-col {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        border-top: 1px solid var(--border);
        padding-top: 10px;
    }

    .cart-actions-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .cart-summary-col {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .cart-section-head {
        margin-bottom: 20px;
    }
}
/* ===== RESPONSIVE CART END ===== */