/* ============================================================
   Cart page styles - mobile-first
   ============================================================ */

.cart-empty {
    text-align: center;
    padding: 60px 24px;
}

.cart-empty-icon {
    font-size: 56px;
    color: #d4d4d4;
    margin-bottom: 16px;
}

.cart-empty h2 {
    font-size: 20px;
    font-weight: 700;
    color: rgb(33, 37, 41);
    margin: 0 0 8px;
}

.cart-empty p {
    color: rgb(128, 128, 128);
    font-size: 14px;
    margin: 0 0 20px;
}

.cart-empty-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 28px;
    text-decoration: none;
}

.cart-empty-btn:hover {
    color: #fff;
    background: #424649;
}

/* ------------------------------------------------------------
   Progress indicator (Cart -> Address)
   ------------------------------------------------------------ */
.cart-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px 4px;
}

.cp-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cp-step.active .cp-dot {
    background: #000;
    color: #fff;
}

.cp-label {
    font-size: 14px;
    font-weight: 600;
    color: #9a9a9a;
}

.cp-step.active .cp-label {
    color: #000;
}

.cp-line {
    width: 44px;
    height: 2px;
    background: #e0e0e0;
}

.cp-step.active + .cp-line {
    background: #000;
}

/* ------------------------------------------------------------
   Cart layout
   ------------------------------------------------------------ */
.cart-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 12px 16px;
    box-sizing: border-box;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
}

.cart-item-img {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    color: rgb(38, 38, 38);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-title:hover {
    color: rgb(38, 38, 38);
}

.cart-item-viewers {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgb(66, 69, 83);
    font-size: 13px;
    margin-top: 5px;
}

.viewer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(0, 179, 0);
    display: inline-block;
}

.cart-item-delivery {
    color: rgb(0, 179, 0);
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
}

.cart-item-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ci-price {
    color: #000;
    font-size: 17px;
    font-weight: 700;
}

.ci-mrp {
    color: rgb(148, 150, 159);
    font-size: 13px;
    text-decoration: line-through;
}

.ci-off {
    color: green;
    font-size: 13px;
    font-weight: 700;
}

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

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5d5d5;
    border-radius: 20px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: #fff;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    cursor: pointer;
    line-height: 1;
}

.qty-btn:hover {
    background: #f2f2f2;
}

.cart-item .qty-input {
    position: static;
    left: auto;
    top: auto;
}

.qty-input {
    border: none;
    outline: none;
    width: 36px;
    height: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-remove {
    border: none;
    background: none;
    color: rgb(66, 69, 83);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

/* ------------------------------------------------------------
   Price details
   ------------------------------------------------------------ */
.cart-summary {
    margin-top: 16px;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 14px;
}

.cart-summary-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ececec;
}

.pd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgb(66, 69, 83);
    font-size: 14px;
    padding: 6px 0;
}

.pd-green {
    color: green;
    font-weight: 600;
}

.pd-total {
    border-top: 1px dashed #d5d5d5;
    margin-top: 6px;
    padding-top: 12px;
    color: #000;
    font-size: 16px;
    font-weight: 700;
}

.place-order {
    margin-top: 14px;
    background: #000;
    border: 0.8px solid #000;
    border-radius: 15px;
    color: #fff;
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    padding: 0 20px;
    height: 54px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease-in-out;
}

.place-order:hover {
    background: #424649;
}

.place-order-note {
    display: none;
    text-align: center;
    color: rgb(66, 69, 83);
    font-size: 13px;
    margin: 10px 0 0;
}

/* ------------------------------------------------------------
   Safety banner + footer spacing
   ------------------------------------------------------------ */
.cart-safety {
    margin-top: 16px;
}

.cart-safety img {
    display: block;
    width: 100%;
    height: auto;
}

.qty-msg {
    display: none;
    font-size: 12px;
    color: #d32f2f;
    margin-top: 8px;
}

.qty-msg.show {
    display: block;
}

/* ------------------------------------------------------------
   Desktop layout
   ------------------------------------------------------------ */
@media (min-width: 768px) {
    .cart-layout {
        display: flex;
        align-items: flex-start;
        gap: 20px;
    }

    .cart-items {
        flex: 1;
    }

    .cart-summary {
        flex: 0 0 320px;
        position: sticky;
        top: 12px;
        margin-top: 0;
    }

    .cart-item-img {
        width: 120px;
        height: 120px;
    }

    .cart-progress {
        padding: 20px 12px 8px;
    }
}
