/* =========================================================
   Floating "View Cart" button
   ========================================================= */


body.cart-open {
	position: fixed;
	top: 0
}

.view-cart-btn {
    display: none;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.view-cart-btn.is-visible {
    display: block;
}


/* =========================================================
   Cart overlay (dims the page behind the sheet)
   ========================================================= */

.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 9998;
}

.cart-overlay.is-visible {
    display: block;
}


/* =========================================================
   Cart bottom sheet
   ========================================================= */

.cart-sheet {
    display: none;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: #111;
    color: #fff;
    z-index: 9999;
}

.cart-sheet.is-visible {
    display: flex;
}

.cart-sheet__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.cart-sheet__close {
    background: #f00;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
	padding: 4px 10px 5px;
}

.cart-sheet__title {
    margin: 0;
    font-size: 20px;
	padding: 16px 20px;
}

.cart-sheet__spacer {
    width: 22px;
}

.cart-sheet__count {
    padding: 0 20px 8px;
}

.cart-sheet__lines {
    overflow-y: auto;
    padding: 0 20px;
    flex: 1;
}

.cart-sheet__empty {
    text-align: center;
    padding: 40px 0;
    color: #888;
}

.cart-sheet__footer {
    padding: 16px 20px;
    border-top: 1px solid #333;
}

.cart-sheet__row {
    display: flex;
    justify-content: space-between;
	margin: 7px 0;
}

.cart-sheet__row--savings {
    color: #22c55e;
    font-size: 14px;
}

.cart-sheet__row--total {
    font-weight: 700;
    font-size: 16px;
    margin-top: 4px;
}

.cart-sheet__row--total #cartGrandTotal {
	font-size: 20px;
}

.cart-sheet__note {
    font-size: 11px;
    color: #888;
    margin: 10px 0;
}

.cart-sheet__place-order {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 5px;
    background: #22c55e;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.cart-sheet__place-order:disabled {
    opacity: .5;
    cursor: not-allowed;
}


/* =========================================================
   Cart line item (rendered dynamically by custom.js)
   ========================================================= */

.cart-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid #333;
}

.cart-line__image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
}

.cart-line__info {
    flex: 1;
}

.cart-line__name {
    font-size: 14px;
}

.cart-line__qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.cart-line__qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

.cart-line__price {
    text-align: right;
}

.cart-line__subtotal {
    color: #22c55e;
    font-weight: 700;
}

.cart-line__mrp {
    color: #777;
    font-size: 12px;
}


/* =========================================================
   Product card qty control (on the catalog itself)
   ========================================================= */

.qty-control {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-control__btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    color: #fff;
    cursor: pointer;
}

.qty-control__btn--minus {
    background: #e5e5e5;
    color: #000;
}

.qty-control__btn--plus {
    background: #64aea8;
}

.qty-control__btn--add {
    width: 32px;
    height: 32px;
    font-size: 18px;
    background: #64aea8;
}

.qty-control__btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =========================================================
   Product badges (limited offer / out of stock)
   ========================================================= */

.badge-limited-offer {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #f97316;
    padding: 5px 8px 4px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}

.out-of-stock-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #dc2626;
    margin-top: 4px;
}