.sce-cart-card {
/* Card-style layout support */
	display: flex;
	align-items: center;
	gap: 12px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	padding: 10px 10px;
	margin-bottom: 16px;
}

/* Optional: text alignment next to image */
.sce-cart-card-content {
	flex: 1;
}
/* Cart image wrapper */
.sce-cart-image {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Product thumbnail */
.sce-cart-thumb {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.sce-cart-title{
	font-size: 12px;
	font-weight: normal;
	color:#000000;
	margin: 0;
	line-height: 1;	
}

.sce-cart-row{
    width: 100%;
	display: flex;
	flex-direction: column; /* 🔑 stack vertically */
}
.sce-cart-content{
	display: flex;
	align-items:center;
	gap: 10px;
	margin-top: 8px;
	justify-content: space-between;
}

.sce-qty-wrapper{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size:12px;
    font-weight: normal;
}
.sce-qty-select{
	padding: 5px 6px;
	height: 35px;
	font-size: 12px;
	border-radius: 6px;
	border: 1px solid #ddd;
	min-width: 50px;
}

.sce-cart-subtotal{
    display: flex;
    gap:10px;
    font-size: 12px;
    font-weight: normal;
    margin-right: 10px;
}
.sce-cart-price{
    font-size: 10px;
    display: flex;
    gap:10px;
}
/* Remove Button */
.sce-remove-item {
	width: 24px !important;
	height: 24px!important;
	min-width: 24px !important;
	min-height: 24px !important;
	max-width: 24px !important;
	max-height: 24px !important;
	
	padding: 0 !important;

	border: 1px solid #ddd;
	border-radius: 50% !important;
	box-sizing: border-box;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	background: #fff;
	color: #666;
	cursor: pointer;

	font-size: 18px;
	line-height: 1;
	vertical-align: middle;

	appearance: none;
	-webkit-appearance: none;
}

.sce-remove-item svg {
	display: block; /* CRITICAL */
}

.sce-remove-item {
	margin: 10px;          /* desktop + tablet */
}

@media (max-width: 767px) {
	.sce-remove-item {
		margin: 0px;          /* mobile */
	}
	.sce-cart-content{
	    justify-content: flex-start;
	}
	
	.sce-cart-title {
		min-width: 0;                 /* 🔑 CRITICAL */
		white-space: normal;
		overflow-wrap: break-word;
		word-break: break-word;
		line-height: 1.3;             /* better readability */
	}
	
	.sce-cart-subtotal{
        gap:10px;
        font-size: 10px;
        font-weight: normal;
    }
    .sce-qty-wrapper{
        align-items: center;
        gap: 10px;
        font-size:10px;
        font-weight: normal;
    }
    
    .sce-qty-select{
    	padding: 5px 6px;
    	height: 35px;
    	font-size: 10px;
    	border-radius: 6px;
    	border: 1px solid #ddd;
    	min-width: 50px;
    }
}



/* Totals Card */
.sce-totals-card {
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* Sticky on mobile */
@media (max-width: 767px) {
	.sce-cart-totals {
		position: sticky;
		top: 0;
		z-index: 50;
	}
}
/* Cross Sell Support*/

.sce-cross-sell-container {
    position: relative;
    padding: 10px 0;
    border-radius: 12px;
}

/* ===== Scroll wrapper ===== */
.sce-cross-sell-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.sce-cross-sell-wrapper::-webkit-scrollbar {
    display: none;
}
.sce-cross-sell-heading{
    font-size: 24px;
    font-weight: 600;
    color:#000;
    padding: 20px 0 10px;
}


/* ===== Button ===== */
.sce-add-to-cart {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

/* ===== Navigation buttons ===== */
.sce-cross-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    background-color: rgb(0, 0, 0, 0.4);
	border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
	padding: 0 !important;
    border: 1px solid #ddd;
    
    cursor: pointer;
    z-index: 10;
    
    font-size: 18px;
	line-height: 1;
	vertical-align: middle;

	appearance: none;
	-webkit-appearance: none;
}

.sce-cross-nav.prev { left: -10px; }
.sce-cross-nav.next { right: -10px; }

/* Hide arrows on small screens */
@media (max-width: 768px) {
    .sce-cross-nav { display: none; }
}

/* ===== Track ===== */
.sce-cross-sell-track {
    display: flex;
    gap: 12px;
    padding: 12px;
    scroll-snap-type: x mandatory;
}

/* ===== Card ===== */
.sce-cross-sell-card {
    min-width: 160px;
    max-width: 160px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sce-cross-sell-card a,
.sce-cross-sell-card a:hover,
.sce-cross-sell-card a:focus,
.sce-cross-sell-card a:visited {

    text-decoration: none !important;
}

.sce-cross-sell-card a.button {
    text-transform: none !important;
    text-decoration: none !important;
    margin-top: auto;
    width: 100%;
    padding: 6px;
    border-radius: 8px !important;
    border: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}



/* ===== Image wrapper ===== */
.sce-cross-img-wrap {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 8px;
    overflow: hidden;
}

.sce-cross-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* ===== Text ===== */
.sce-cross-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 10px;
    margin: 8px 0 4px;
}

.sce-cross-price {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}
/********* Totals Section Styles***********/
/* ===============================
   DESKTOP: Cart Totals Heading
================================ */

@media (min-width: 768px) {

    .sce-totals-header {
        position: relative;
        padding-top: 40px; /* space for heading band */
    }

    .sce-totals-header::before {
        content: "Cart Totals";
        position: absolute;
        top: 0;
        left: -14px;
        right: -14px;
        height: 32px;
        background: #f2f2f2;
        color: #333;
        font-size: 14px;
        font-weight: 600;
        display: flex;
        align-items: center;
        padding-left: 14px;
        border-radius: 12px 12px 0 0;
    }
}


/* Totals Card */
.sce-totals-card {
	background: #fff;
	border-radius: 12px;
	padding: 0px 14px 14px;
	box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* Sticky on mobile */
@media (max-width: 767px) {
	.sce-cart-totals {
		position: sticky;
		top: 0;
		z-index: 50;
	}
}



.sce-totals-breakdown {
	display: none;
	margin-top: 10px;
}

.sce-totals-card.open .sce-totals-breakdown {
	display: block;
}

.sce-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 14px;
}

.sce-checkout-btn {
	display: block;
	margin-top: 12px;
	background: #111;
	color: #fff;
	text-align: center;
	padding: 12px;
	border-radius: 8px;
	text-decoration: none;
}

/* =========================
   Totals default behavior
========================= */

/* DESKTOP: always open */
@media (min-width: 768px) {
	.sce-totals-breakdown {
		display: block !important;
	}

	.sce-toggle-breakdown {
		display: none; /* no toggle needed on desktop */
	}
}

/* MOBILE: closed by default */
/* ===============================
   MOBILE: Sticky Totals Header
================================ */
/* ===============================
   MOBILE: Inline Total + Checkout
================================ */

@media (max-width: 767px) {

    /* Make header a single horizontal bar */
    .sce-totals-header {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Chevron (already compact from previous fix) */
    .sce-toggle-breakdown {
        flex: 0 0 auto;
    }

    /* Total text takes remaining space */
    .sce-grand-total {
        flex: 1 1 auto;
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Checkout button: small + inline on right */
    .sce-checkout-btn {
        flex: 0 0 auto;
        margin-top: 10px;                 /* remove block spacing */
        padding: 6px 10px;         /* smaller size */
        font-size: 12px;
        line-height: 1;
        border-radius: 6px;
        white-space: nowrap;
    }
}

/* ===============================
   MOBILE: Compact Chevron Toggle
================================ */

@media (max-width: 767px) {

    .sce-toggle-breakdown {
        /* Remove default button styles */
        background: none;
        border: none;
        padding: 0;
        margin: 0;

        /* Size control */
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;

        /* Center the chevron */
        display: inline-flex;
        align-items: center;
        justify-content: center;

        /* Icon styling */
        font-size: 14px;
        line-height: 1;
        color: #111;

        /* Interaction */
        cursor: pointer;

        padding: 6px;
    }

    /* Optional: subtle tap feedback */
    .sce-toggle-breakdown:active {
        background: rgba(0,0,0,0.05);
    }

    /* Rotate chevron when open */
    .sce-totals-card.open .sce-toggle-breakdown {
        transform: rotate(180deg);
    }
}

@media (max-width: 767px) {


    /* Chevron BEFORE total */
    .sce-toggle-breakdown {
        order: -1;
        font-size: 16px;
        margin-right: 4px;
    }




    /* Remove desktop-only heading spacing */
    .sce-totals-header::before {
        display: none;
    }
}


@media (max-width: 767px) {

	.sce-empty-cart {
    	display: flex;
    	flex-direction: column;
    	align-items: center;
    	justify-content: flex-start;
    	min-height: 100vh; /* full viewport height */
    	text-align: center;
	    padding: 40px 10px 10px;
    	width:100%;
    }
	.sce-empty-cart h2 {
	font-size: 16px;
	margin-bottom: 8px;
    }
}

/********* Coupon Section Styles***********/
.sce-coupon-list{
    padding: 0px !important;
}
.sce-coupon-title {
    color: #000;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
    padding:20px 0 10px;
	line-height: 1;
}
.sce-coupon-input-wrap {
	position: relative;
	margin-bottom: 12px;
}

.sce-coupon-input {
	width: 100%;
	padding: 12px 90px 12px 12px;
	border-radius: 8px;
	border: 1px solid #ddd;
}

.sce-coupon-apply-btn {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	padding: 0 14px;
	border-radius: 6px;
	border: none;
	background: #111;
	color: #fff;
	cursor: pointer;
}
.sce-coupon-item.is-applied .sce-coupon-action-btn {
	background: #c0392b;
}


.sce-coupon-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sce-coupon-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	border: 1px dashed #ddd;
	border-radius: 6px;
	margin-bottom: 8px;
}

.sce-coupon-action-btn {
	padding: 6px 12px;
	border-radius: 6px;
	border: none;
	font-size: 13px;
	cursor: pointer;
	background: #111;
	color: #fff;
}

/* Applied coupon container styling */
.sce-coupon-item.is-applied {
    opacity: 0.6;
    border-style: solid;
    background: #fff5f5;
}

/* Disable APPLY only */
.sce-coupon-item.is-applied
.sce-coupon-action-btn[data-action="apply"] {
    pointer-events: none;
    opacity: 0.5;
}

/* Keep REMOVE clickable */
.sce-coupon-item.is-applied
.sce-coupon-action-btn[data-action="remove"] {
    pointer-events: auto;
    opacity: 1;
    background: #c0392b;
}


.sce-coupon-item.is-applied {
	border-style: solid;
	background: #fff5f5;
}

.sce-coupon-item.is-applied .sce-coupon-action-btn {
	background: #c0392b;
}

.sce-coupon-left{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sce-coupon-code{
    color: #000;
    font-size:14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sce-coupon-desc{
    font-size:12px;
    color:#666;
    line-height: 1.4;
}

.sce-empty-cart {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 100vh; /* full viewport height */
	text-align: center;
	padding: 40px 20px 20px;
	width:100%;
}

.sce-empty-cart-content {
	max-width: 420px;
}

.sce-empty-cart h2 {
	font-size: 24px;
	margin-bottom: 8px;
}

.sce-empty-cart p {
	color: #666;
	margin-bottom: 20px;
	font-size: 14px;
}

.sce-continue-shopping-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	text-decoration: none !important;
	font-size: 14px;
	transition: background 0.2s ease, transform 0.15s ease;
}

.sce-continue-shopping-btn:hover {
	background: grey;
	transform: translateY(-1px);
}

.sce-coupons {
	background: #fff;
    margin-top: 20px;
	border-radius: 12px;
	padding: 14px;
	box-shadow: 0 4px 12px rgba(0,0,0,.06);
}



.sce-free-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.sce-free-text.success {
    color: #16a34a;
    font-weight: 600;
}

.sce-progress {
    height: 8px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.sce-progress span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    transition: width 0.3s ease;
}
/*** Free Shipping ****/

.sce-free-shipping-bar {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sce-free-shipping-text {
    font-size: 12px;
    margin-top:-10px;
    margin-bottom: 15px;
}

.sce-free-shipping-progress {
    background: #e5e5e5;
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
}

.sce-free-shipping-progress span {
    display: block;
    height: 100%;
    background: #2ecc71;
    transition: width 0.3s ease;
}

/* Layout Cart */
/* ===============================
   Base Layout (Desktop First)
================================ */

.sce-cart-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

/* Left: main cart content */
.sce-cart-left {
    flex: 0 0 60%;
    max-width: 60%;
}

/* Right: totals */
.sce-cart-right {
    flex: 0 0 40%;
    max-width: 40%;
}

/* ===============================
   Mobile Layout
================================ */

@media (max-width: 767px) {

    .sce-cart-block {
        flex-direction: column;
    }

    /* Totals on top */
    .sce-cart-right {
        order: -1;
        width: 100%;
        max-width: 100%;
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        padding-bottom: 8px;
        border-bottom: 1px solid #e5e5e5;
    }

    /* Cart content below */
    .sce-cart-left {
        width: 100%;
        max-width: 100%;
    }
}
/********************** Free Gift *********/

.sce-free-gift-milestones {
    margin-top: 10px;
    font-size: 13px;
}

.sce-gift-tier {
    margin-top: 4px;
    opacity: 0.8;
}

.sce-gift-tier.reached {
    color: #1a7f37;
    font-weight: 600;
}

.sce-free-gift-qty {
    font-weight: 600;
    opacity: 0.8;
}



.sce-marker-line {
    display: block;
    width: 2px;
    height: 12px;
    margin: 0 auto;
    background: #9ca3af;
}




.sce-free-shipping-progress-wrapper {
    position: relative;
    padding: 0px;
    margin-top: 10px;
}

.sce-free-shipping-progress {
    position: relative;
    height: 10px !important;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.sce-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    display: block;
}

/* Milestones BELOW bar */
.sce-progress-milestones.below {
    position: relative;
    margin-top: -27px;
    height: 40px;
}

.sce-progress-marker {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}


.sce-marker-label {
    font-size: 11px;
    color: #666;
}

/* States */
.sce-progress-marker.reached .sce-marker-icon {
    opacity: 1;
}

.sce-progress-marker.reached .sce-marker-label {
    color: #1a7f37;
    font-weight: 600;
}
.sce-progress-marker.reached .sce-marker-line {
    background: #16a34a;
}



/*************************/

.sce-coupon-card {
	margin-top: 16px;
}



.sce-coupon.applied {
	background: #e8f8ec;
}

.sce-apply-coupon,
.sce-remove-coupon {
	background: none;
	border: none;
	cursor: pointer;
	font-weight: bold;
}


/*************************/

.sce-progress-marker {
    position: absolute;
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

/* Price above icon */
.sce-marker-price {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
}

/* Circular icon */
.sce-marker-icon {
    width: 24px;
    height: 24px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-size: 12px;
    line-height: 1;
    margin: 0 auto;
}

/* Label below icon */
.sce-marker-label {
    font-size: 11px;
    margin-top: 4px;
    color: #6b7280;
}

/* States */
.sce-progress-marker.reached .sce-marker-icon {
    border-color: #16a34a;
    color: #16a34a;
    background: #ecfdf5;
}

.sce-progress-marker.reached .sce-marker-price {
    color: #16a34a;
}


