/* Nafasam Side Cart: Rose Atelier */
.nsc {
	--nsc-blush: #FBF3F1;
	--nsc-rose: #F3DCD8;
	--nsc-line: #EAD3CF;
	--nsc-wine: #6E1A36;
	--nsc-wine-d: #561329;
	--nsc-plum: #2B1419;
	--nsc-mauve: #6F555B;
	--nsc-green: #1F7A4D;
	--nsc-serif: 'Bodoni Moda', 'Didot', 'Bodoni MT', Georgia, serif;
	--nsc-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
	font-family: var(--nsc-sans);
	color: var(--nsc-plum);
}
.nsc.is-open { visibility: visible; pointer-events: auto; }
html.nsc-lock, html.nsc-lock body { overflow: hidden; }

.nsc *, .nsc *::before, .nsc *::after { box-sizing: border-box; }
.nsc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.nsc-overlay {
	position: absolute; inset: 0;
	background: rgba(43, 20, 25, 0.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity .4s ease;
}
.nsc.is-open .nsc-overlay { opacity: 1; }

.nsc-panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: min(440px, 100vw);
	background: var(--nsc-blush);
	border-radius: 28px 0 0 28px;
	box-shadow: -24px 0 60px -24px rgba(43, 20, 25, .45);
	transform: translateX(104%);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1);
	display: flex; flex-direction: column;
	outline: none;
	overflow: hidden;
}
.nsc.is-open .nsc-panel { transform: none; }

.nsc-body { display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* Header */
.nsc-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 22px 22px 18px 26px;
	border-bottom: 1px solid var(--nsc-line);
	background: var(--nsc-blush);
}
.nsc-title { margin: 0; font: 400 28px/1.1 var(--nsc-serif); color: var(--nsc-plum); letter-spacing: -.3px; display: flex; align-items: baseline; gap: 10px; }
.nsc-count { font: 500 14px/1 var(--nsc-sans); color: var(--nsc-mauve); letter-spacing: 0; }
.nsc-x {
	width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--nsc-line); background: #fff; color: var(--nsc-plum);
	display: grid; place-items: center; cursor: pointer;
	transition: transform .3s, background .3s, color .3s, border-color .3s;
}
.nsc-x:hover { background: var(--nsc-wine); color: #fff; border-color: var(--nsc-wine); transform: rotate(90deg); }

/* Scroll area */
.nsc-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px 24px; display: flex; flex-direction: column; gap: 14px; }

/* Shipping progress */
.nsc-ship { background: #fff; border-radius: 18px; padding: 14px 16px; }
.nsc-ship p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--nsc-plum); }
.nsc-ship p svg { color: var(--nsc-wine); }
.nsc-ship strong { color: var(--nsc-wine); font-weight: 600; }
.nsc-bar { height: 6px; border-radius: 99px; background: var(--nsc-rose); margin-top: 10px; overflow: hidden; }
.nsc-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #B4405E, var(--nsc-wine)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

/* Items */
.nsc-items { list-style: none; margin: 0; padding: 6px 14px; background: #fff; border-radius: 22px; }
.nsc-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--nsc-rose); transition: opacity .3s, transform .3s; }
.nsc-item:last-child { border-bottom: 0; }
.nsc-item.is-leaving { opacity: .35; transform: translateX(8px); }
.nsc-thumb { flex: none; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--nsc-rose); display: block; }
.nsc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.nsc-item:hover .nsc-thumb img { transform: scale(1.06); }
.nsc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nsc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nsc-name { font: 400 18px/1.2 var(--nsc-serif); color: var(--nsc-plum) !important; text-decoration: none !important; }
.nsc-name:hover { color: var(--nsc-wine) !important; }
.nsc-meta { font-size: 13px; color: var(--nsc-mauve); white-space: pre-line; }
.nsc-remove { flex: none; width: 34px; height: 34px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: transparent; color: var(--nsc-mauve); display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s; }
.nsc-remove:hover { background: var(--nsc-rose); color: var(--nsc-wine); }
.nsc-remove svg { width: 17px; height: 17px; }
.nsc-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; flex-wrap: wrap; }

.nsc-qty { display: inline-flex; align-items: center; border: 1px solid var(--nsc-line); border-radius: 99px; background: var(--nsc-blush); padding: 2px; }
.nsc-qty button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--nsc-plum); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.nsc-qty button:hover { background: var(--nsc-wine); color: #fff; }
.nsc-qty button svg { width: 15px; height: 15px; }
.nsc-qty input { width: 34px; border: 0; background: transparent; text-align: center; font: 600 15px/1 var(--nsc-sans); color: var(--nsc-plum); padding: 0; margin: 0; -moz-appearance: textfield; appearance: textfield; box-shadow: none; }
.nsc-qty input::-webkit-outer-spin-button, .nsc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nsc-qty input:focus { outline: none; }
.nsc-qty-fixed { font-size: 13px; color: var(--nsc-mauve); }

.nsc-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.nsc-price del { font-size: 13px; color: #9A948E; }
.nsc-price strong { font-size: 16px; font-weight: 600; color: var(--nsc-plum); }
.nsc-price em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--nsc-green); }

/* Coupon */
.nsc-coupon { background: #fff; border-radius: 18px; padding: 6px 8px; display: flex; flex-direction: column; gap: 6px; }
.nsc-coupon-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; border: 0; background: transparent; color: var(--nsc-plum); font: 500 14px/1.2 var(--nsc-sans); cursor: pointer; text-align: left; border-radius: 12px; }
.nsc-coupon-toggle svg { color: var(--nsc-wine); }
.nsc-coupon-toggle:hover { background: var(--nsc-blush); }
.nsc-coupon-form { display: flex; gap: 8px; padding: 0 4px 8px; }
.nsc-coupon-form[hidden] { display: none; }
.nsc-coupon-form input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--nsc-line); border-radius: 99px; background: var(--nsc-blush); padding: 0 16px; font: 400 15px var(--nsc-sans); color: var(--nsc-plum); text-transform: uppercase; }
.nsc-coupon-form input::placeholder { text-transform: none; color: #A89096; }
.nsc-coupon-form input:focus { outline: none; border-color: var(--nsc-wine); background: #fff; }
.nsc-coupon-form button { height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--nsc-plum); color: #fff; font: 500 14px var(--nsc-sans); cursor: pointer; transition: background .25s; }
.nsc-coupon-form button:hover { background: var(--nsc-wine); }
.nsc-chip { display: flex; align-items: center; gap: 10px; margin: 6px 4px 0; padding: 10px 8px 10px 14px; border-radius: 14px; background: #EAF5EE; color: var(--nsc-green); font-size: 14px; }
.nsc-chip span { flex: 1; }
.nsc-chip button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--nsc-green); display: grid; place-items: center; cursor: pointer; }
.nsc-chip button:hover { background: #D6EBDD; }
.nsc-chip button svg { width: 15px; height: 15px; }

/* Recommendations */
.nsc-recs { background: var(--nsc-wine); border-radius: 22px; padding: 18px 0 18px 18px; color: #fff; }
.nsc-h3 { margin: 0 0 12px; font: 400 22px/1.15 var(--nsc-serif); color: #fff; }
.nsc-recs-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 18px 4px 0; scrollbar-width: none; }
.nsc-recs-track::-webkit-scrollbar { display: none; }
.nsc-rec { flex: 0 0 148px; scroll-snap-align: start; background: #fff; border-radius: 16px; padding: 8px 8px 10px; display: flex; flex-direction: column; gap: 6px; color: var(--nsc-plum); transition: transform .35s; }
.nsc-rec:hover { transform: translateY(-3px); }
.nsc-rec-img { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--nsc-rose); }
.nsc-rec-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nsc-rec-name { font: 400 15px/1.2 var(--nsc-serif); color: var(--nsc-plum) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.nsc-rec-price { font-size: 13px; color: var(--nsc-wine); font-weight: 600; }
.nsc-rec-price del { color: #9A948E; font-weight: 400; margin-right: 4px; }
.nsc-rec-price ins { text-decoration: none; }
.nsc-rec-add { margin-top: auto; height: 36px; border: 1px solid var(--nsc-wine); border-radius: 99px; background: #fff; color: var(--nsc-wine); font: 500 13px var(--nsc-sans); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background .25s, color .25s; }
.nsc-rec-add svg { width: 14px; height: 14px; }
.nsc-rec-add:hover { background: var(--nsc-wine); color: #fff; }
.nsc-rec-add.is-busy { opacity: .6; pointer-events: none; }

/* Empty */
.nsc-empty { background: #fff; border-radius: 22px; padding: 36px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nsc-empty-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--nsc-rose); color: var(--nsc-wine); display: grid; place-items: center; }
.nsc-empty-icon svg { width: 30px; height: 30px; }
.nsc-empty-title { margin: 6px 0 0; font: italic 400 26px/1.1 var(--nsc-serif); color: var(--nsc-plum); }
.nsc-empty-text { margin: 0 0 8px; color: var(--nsc-mauve); font-size: 15px; }

/* Footer */
.nsc-foot { flex: none; background: #fff; border-top: 1px solid var(--nsc-line); padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 40px -30px rgba(43, 20, 25, .4); display: flex; flex-direction: column; gap: 12px; }
.nsc-saving { align-self: center; margin-top: -28px; background: var(--nsc-wine); color: #fff; font-size: 13px; padding: 7px 16px; border-radius: 99px; box-shadow: 0 8px 20px -10px rgba(110, 26, 54, .7); }
.nsc-saving strong { font-weight: 700; }
.nsc-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.nsc-total-label { display: block; font: 400 20px/1.1 var(--nsc-serif); color: var(--nsc-plum); }
.nsc-total-note { display: block; font-size: 12px; color: var(--nsc-mauve); margin-top: 4px; }
.nsc-total-amt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.nsc-total-amt del { font-size: 13px; color: #9A948E; }
.nsc-total-amt strong { font-size: 22px; font-weight: 700; color: var(--nsc-plum); }
.nsc-total-amt em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--nsc-green); }

.nsc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 99px; font: 500 16px/1 var(--nsc-sans); text-decoration: none !important; transition: background .3s, transform .3s, box-shadow .3s; }
.nsc-btn-wine { background: var(--nsc-wine); color: #fff !important; box-shadow: 0 14px 28px -16px rgba(110, 26, 54, .8); }
.nsc-btn-wine:hover { background: var(--nsc-wine-d); transform: translateY(-1px); }
.nsc-checkout { width: 100%; min-height: 56px; font-size: 17px; }
.nsc-trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--nsc-mauve); }
.nsc-trust span { display: inline-flex; align-items: center; gap: 6px; }
.nsc-trust svg { width: 14px; height: 14px; color: var(--nsc-wine); }
.nsc-trust a { color: var(--nsc-wine) !important; text-decoration: underline !important; text-underline-offset: 3px; }

/* Loading */
.nsc-loader { position: absolute; top: 0; left: 0; right: 0; height: 3px; overflow: hidden; opacity: 0; transition: opacity .2s; pointer-events: none; }
.nsc-loader span { position: absolute; top: 0; bottom: 0; width: 40%; background: var(--nsc-wine); border-radius: 99px; animation: nsc-load 1s ease-in-out infinite; }
.nsc.is-loading .nsc-loader { opacity: 1; }
.nsc.is-loading .nsc-qty, .nsc.is-loading .nsc-remove { pointer-events: none; }
@keyframes nsc-load { from { left: -40%; } to { left: 100%; } }

/* Toast */
.nsc-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100001; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(420px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 99px; background: #2B1419; color: #fff; font: 500 14px/1.4 'Figtree', system-ui, sans-serif; text-align: center; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .5); transition: opacity .3s, transform .3s; }
.nsc-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.nsc-toast.is-error { background: #8A1C2B; }

/* Header bag micro-interaction + hide WooCommerce's inline "View cart" link */
.elementor-menu-cart__toggle_button.nsc-bump { animation: nsc-bump .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes nsc-bump { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 70% { transform: scale(.97); } 100% { transform: scale(1); } }
a.added_to_cart.wc-forward { display: none !important; }
.single_add_to_cart_button.nsc-btn-busy { opacity: .75; cursor: progress; }

/* Hide Elementor's own drawer so only ours is used */
.elementor-menu-cart__container { display: none !important; }

@media (max-width: 480px) {
	.nsc-panel { width: 100vw; border-radius: 0; }
	.nsc-head { padding: 18px 16px 14px 20px; }
	.nsc-title { font-size: 25px; }
	.nsc-scroll { padding: 14px 12px 20px; }
	.nsc-thumb { width: 74px; height: 74px; }
	.nsc-foot { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.nsc-panel, .nsc-overlay, .nsc-item, .nsc-bar span, .nsc-toast { transition: none; }
	.elementor-menu-cart__toggle_button.nsc-bump { animation: none; }
}

/* Gift designer upsell in the bag */
.nsc-design-up { display: grid; gap: 3px; margin: 12px 0 0; padding: 14px 16px 14px 60px; border-radius: 18px; text-decoration: none !important; position: relative;
	background: linear-gradient(135deg, #FFF8EC, #fff); border: 1px solid rgba(230, 194, 122, .7); color: var(--nsc-plum, #2B1419) !important; }
.nsc-design-up::before { content: ''; position: absolute; left: 14px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: #2B1419 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E6C27A' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M4 9h16v11H4z'/%3E%3Cpath d='M3 6h18v3H3zM12 6v14'/%3E%3C/svg%3E") no-repeat center / 18px; }
.nsc-design-up b { font: 400 16px/1.25 'Bodoni Moda', Georgia, serif; color: #6E1A36; }
.nsc-design-up span { font-size: 12.5px; line-height: 1.45; color: #6F555B; }
.nsc-thumb .ngd-thumb { display: block; width: 100%; height: 100%; background: #FBF3F1; border-radius: inherit; }
.nsc-thumb .ngd-thumb svg { width: 100%; height: 100%; }
