/* Smart Cart — borderless, inherits site typography */

:root {
	--sc-primary: #161616;
	--sc-button: #161616;
	--sc-button-text: #ffffff;
	--sc-sale: #b42318;
	--sc-accent: #161616;
	--sc-text: #161616;
	--sc-muted: #6d6a65;
	--sc-soft: #898989;
	--sc-bg: #ffffff;
	--sc-sand: #fafafa;
	--sc-rule: #e5e5e5;
	--sc-divider: #e5e5e5;
	--sc-drawer-width: 450px;
	--sc-radius: 8px;
	--sc-radius-lg: calc(var(--sc-radius) + 4px);
	--sc-shadow: 0 4px 16px rgb(0 0 0 / 12%);
	--sc-overlay: rgba(15, 15, 15, 0.45);
}

.sc-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
	visibility: hidden;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: var(--sc-text);
}

.sc-root *,
.sc-root *::before,
.sc-root *::after {
	box-sizing: border-box;
}

/* Reset theme button/input borders inside drawer */
.sc-root button,
.sc-root input,
.sc-root textarea,
.sc-root select {
	font: inherit;
	color: inherit;
	background: transparent;
	border: none !important;
	outline: none;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 0;
	margin: 0;
}

.sc-root a {
	color: inherit;
}

.sc-root.is-open {
	pointer-events: auto;
	visibility: visible;
}

.sc-overlay {
	position: absolute;
	inset: 0;
	background: var(--sc-overlay);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.sc-root.is-open .sc-overlay {
	opacity: 1;
}

.sc-drawer {
	position: absolute;
	top: 0;
	bottom: 0;
	width: min(var(--sc-drawer-width), 100vw);
	max-width: 100%;
	background: var(--sc-bg);
	display: flex;
	flex-direction: column;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
}

/* Right side (default — typical for RTL Hebrew sites) */
.sc-root--right .sc-drawer {
	right: 0;
	left: auto;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
	transform: translateX(105%);
}

.sc-root--right.is-open .sc-drawer {
	transform: translateX(0);
}

/* Left side */
.sc-root--left .sc-drawer {
	left: 0;
	right: auto;
	box-shadow: 8px 0 32px rgba(0, 0, 0, 0.08);
	transform: translateX(-105%);
}

.sc-root--left.is-open .sc-drawer {
	transform: translateX(0);
}

.sc-drawer__inner {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	position: relative;
}

.sc-drawer__loader {
	position: absolute;
	inset: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sc-drawer__loader[hidden] {
	display: none !important;
}

.sc-spinner {
	width: 28px;
	height: 28px;
	border: 2px solid rgba(0, 0, 0, 0.08) !important;
	border-top-color: var(--sc-primary) !important;
	border-radius: 50%;
	animation: sc-spin 0.7s linear infinite;
}

@keyframes sc-spin {
	to { transform: rotate(360deg); }
}

/* Top progress bar.

   Shown for every in-flight request against a drawer that already has contents,
   instead of the full-panel overlay: the shopper keeps reading their cart while
   it refreshes, and still sees that something is happening. */
.sc-drawer::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 30;
	background: var(--sc-primary);
	transform: scaleX(0);
	transform-origin: var(--sc-progress-origin, right);
	opacity: 0;
	pointer-events: none;
}

.sc-drawer.is-loading::after {
	opacity: 1;
	animation: sc-progress 1.6s cubic-bezier(0.3, 0.8, 0.4, 1) infinite;
}

@keyframes sc-progress {
	0%   { transform: scaleX(0); }
	60%  { transform: scaleX(0.82); }
	100% { transform: scaleX(1); }
}

/* Skeleton blocks for content that has been asked for but not arrived. */
.sc-skel {
	display: block;
	border-radius: 4px;
	background: linear-gradient(90deg, #efefef 25%, #f8f8f8 37%, #efefef 63%);
	background-size: 400% 100%;
	animation: sc-shimmer 1.3s ease-in-out infinite;
}

.sc-skel--line {
	width: 70%;
	height: 12px;
}

.sc-skel--short {
	width: 40%;
}

.sc-skel--fill {
	width: 100%;
	height: 100%;
	border-radius: var(--sc-radius);
}

@keyframes sc-shimmer {
	0%   { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* Add-to-cart controls, anywhere on the site.

   Smart Cart draws this itself rather than leaning on WooCommerce's `.loading`,
   which only styles `a.button` inside `.woocommerce` and so leaves a theme's own
   button with no feedback at all for the length of the request. */
.sc-busy {
	position: relative;
	pointer-events: none;
	cursor: progress;
	/* Hides the label without changing the button's size, so nothing around it
	   shifts when the spinner appears. */
	color: transparent !important;
}

.sc-busy > * {
	opacity: 0.25;
	transition: opacity 0.15s ease;
}

.sc-busy::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid var(--sc-button-text, #fff);
	border-top-color: transparent;
	border-radius: 50%;
	animation: sc-spin 0.65s linear infinite;
	z-index: 2;
}

/* An outline button has a light background — a white spinner would vanish. */
.sc-busy.sc-rec-card__add::before,
.sc-busy[class*='outline']::before,
.sc-busy[class*='secondary']::before {
	border-color: var(--sc-text);
	border-top-color: transparent;
}

/* Top login bar */
.sc-topbar {
	flex-shrink: 0;
	display: flex;
	justify-content: flex-start;
	padding: 12px 20px 0;
}

.sc-login-link {
	font-size: 13px;
	font-weight: 400;
	color: var(--sc-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: opacity 0.25s ease;
}

.sc-login-link:hover {
	opacity: 0.65;
}

/* Announcement */
.sc-announcement {
	flex-shrink: 0;
	text-align: center;
	font-size: 13px;
	padding: 12px 20px;
	background: var(--sc-sand);
	color: var(--sc-muted);
}

.sc-announcement:empty {
	display: none;
}

/* Free shipping */
.sc-fs-bar {
	padding: 14px 20px 0;
	flex-shrink: 0;
}

.sc-fs-text {
	margin: 0 0 8px;
	font-size: 13px;
	text-align: center;
	color: var(--sc-muted);
}

.sc-fs-track {
	height: 3px;
	background: rgba(0, 0, 0, 0.07);
	border-radius: 999px;
	overflow: hidden;
}

.sc-fs-fill {
	height: 100%;
	background: var(--sc-primary);
	transition: width 0.4s ease;
}

/* Header */
.sc-header {
	flex-shrink: 0;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--sc-rule);
}

.sc-close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-inline-end: -8px;
	padding: 0;
	border-radius: var(--sc-radius);
	cursor: pointer;
	color: var(--sc-text);
	line-height: 0;
	transition: background-color 0.2s ease;
}

.sc-close:hover {
	background: var(--sc-sand);
}

.sc-title {
	margin: 0;
	font-size: 19px;
	font-weight: 600;
	letter-spacing: 0;
}

.sc-title-count {
	font-size: 15px;
	font-weight: 400;
	color: var(--sc-soft);
}

/* Body */
.sc-body {
	flex: 1 1 0;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

.sc-body--empty {
	display: flex;
	flex-direction: column;
}

/* Items */
.sc-items {
	display: grid;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 20px;
}

.sc-item {
	display: grid;
	grid-template-columns: 82px minmax(0, 1fr) 28px;
	align-items: start;
	gap: 12px;
}

/* Optimistic row states.

   Each one paints the expected result of a tap immediately; the fragments that
   come back a round trip later replace the whole list, so none of these classes
   ever has to be cleaned up on success. */
.sc-item--pending {
	animation: sc-item-in 0.25s ease both;
}

.sc-item--pending .sc-item__info {
	gap: 10px;
	padding-top: 4px;
}

.sc-item--removing {
	opacity: 0;
	transform: translateX(8%);
	max-height: 0;
	margin-bottom: -18px;
	overflow: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease;
}

.sc-item--updating .sc-item__prices {
	opacity: 0.4;
	transition: opacity 0.15s ease;
}

@keyframes sc-item-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

.sc-item__remove {
	grid-column: 3;
	grid-row: 1;
	align-self: start;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 50%;
	cursor: pointer;
	color: var(--sc-soft);
	line-height: 0;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.sc-item__remove svg {
	width: 14px;
	height: 14px;
	stroke-width: 1.7;
}

.sc-item__remove:hover {
	color: var(--sc-text);
	background: var(--sc-sand);
}

/* Square tile, whole image inside it: contain letterboxes against the sand
   background rather than cropping a tall book cover down to a square. */
.sc-item__thumb {
	grid-column: 1;
	grid-row: 1;
	display: block;
	align-self: start;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--sc-radius);
	background: var(--sc-sand);
}

.sc-item__thumb img,
.sc-item__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.sc-item__info {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	display: grid;
	justify-items: start;
	gap: 8px;
}

.sc-item__brand {
	font-size: 12px;
	color: var(--sc-muted);
	font-weight: 400;
}

.sc-item__name {
	font-size: 14px;
	line-height: 1.4;
	color: var(--sc-text);
	text-decoration: none;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sc-item__name:hover {
	opacity: 0.7;
}

.sc-item dl,
.sc-item .variation {
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: var(--sc-muted);
	border: none !important;
}

.sc-item dl dt,
.sc-item dl dd {
	display: inline;
	margin: 0;
	margin-inline-end: 4px;
	border: none !important;
}

.sc-item__prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.sc-item__price {
	font-size: 14px;
	font-weight: 700;
}

.sc-item__price--sale {
	color: var(--sc-sale);
}

.sc-item__price--regular {
	font-size: 12px;
	font-weight: 400;
	color: var(--sc-muted);
	text-decoration: line-through;
}

/* Quantity — hairline pill */
.sc-qty {
	display: inline-flex;
	align-items: center;
	height: 34px;
	background: transparent;
	border: 1px solid var(--sc-rule) !important;
	border-radius: var(--sc-radius);
	overflow: hidden;
}

.sc-qty__btn {
	width: 30px;
	height: 100%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 400;
	color: var(--sc-text);
	line-height: 1;
	transition: background-color 0.2s ease;
}

.sc-qty__btn:hover {
	background: var(--sc-sand);
}

.sc-qty__input {
	padding: 0 !important;
	width: 40px !important;
	height: 100%;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--sc-text);
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

.sc-qty__input::-webkit-outer-spin-button,
.sc-qty__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Recommendations */
.sc-recs {
	padding: 20px 0 4px;
	border-top: 1px solid var(--sc-rule);
	margin-top: 0;
}

.sc-recs__title {
	margin: 0 20px 14px;
	font-size: 16px;
	font-weight: 600;
	color: var(--sc-text);
}

.sc-recs__wrap {
	position: relative;
	padding: 0 20px;
}

.sc-root .sc-recs__nav {
	position: absolute;
	top: 38%;
	z-index: 3;
	width: 34px;
	height: 34px;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sc-text);
	background: var(--sc-bg) !important;
	border: 1px solid var(--sc-rule) !important;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	line-height: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

.sc-recs__wrap:hover .sc-recs__nav,
.sc-recs__wrap:focus-within .sc-recs__nav {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.sc-recs__nav:hover {
	transform: scale(1.06);
}

.sc-recs__nav--prev {
	right: 12px;
}

.sc-recs__nav--next {
	left: 12px;
}

.sc-recs__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 4px 0 12px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.sc-recs__track::-webkit-scrollbar {
	display: none;
}

.sc-rec-card {
	flex: 0 0 calc((100% - 12px) / 2);
	min-width: calc((100% - 12px) / 2);
	max-width: calc((100% - 12px) / 2);
	scroll-snap-align: start;
	scroll-snap-stop: always;
	background: transparent;
	display: flex;
	flex-direction: column;
	transition: opacity 0.2s ease, flex-basis 0.3s ease, min-width 0.3s ease, max-width 0.3s ease, margin 0.3s ease;
}

/* Added to the cart: the card folds out of the track and its neighbours slide
   in. The negative margin swallows the gap the empty slot would leave. */
.sc-rec-card--added {
	flex-basis: 0;
	min-width: 0;
	max-width: 0;
	margin-inline-end: -12px;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

.sc-rec-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

.sc-rec-card__img {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--sc-radius);
	background: var(--sc-sand);
}

.sc-rec-card__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
	transition: transform 0.5s ease;
}

.sc-rec-card__link:hover .sc-rec-card__img img {
	transform: scale(1.05);
}

.sc-rec-card__name {
	margin: 10px 0 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--sc-accent);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sc-rec-card__price {
	margin: 4px 0 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--sc-accent);
}

.sc-rec-card__price del {
	color: var(--sc-soft);
	font-weight: 400;
	font-size: 12px;
	margin-inline-end: 6px;
}

.sc-root .sc-rec-card__add {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	margin-top: 10px;
	background: var(--sc-bg) !important;
	color: var(--sc-text) !important;
	border: 1px solid var(--sc-rule) !important;
	border-radius: var(--sc-radius);
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: border-color 0.2s ease;
}

.sc-root .sc-rec-card__add:hover {
	border-color: var(--sc-text) !important;
}

.sc-rec-card__add--link {
	display: block;
}

/* Banners */
.sc-banners {
	padding: 0 20px 12px;
}

.sc-banners:empty {
	display: none;
}

.sc-banner {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--sc-radius);
	text-decoration: none;
	color: inherit;
	margin-bottom: 10px;
}

.sc-banner:last-child {
	margin-bottom: 0;
}

.sc-banner__img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--sc-radius);
}

.sc-banner__text {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
	color: #fff;
}

/* Empty state */
.sc-empty {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.sc-empty__title {
	margin: 6px 0 8px;
	font-size: 20px;
	font-weight: 600;
}

.sc-empty__subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--sc-muted);
}

.sc-empty-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.sc-empty-card {
	display: block;
	background: var(--sc-sand);
	border-radius: var(--sc-radius);
	text-decoration: none;
	color: var(--sc-text);
	overflow: hidden;
}

/* Banner artwork is designed to fill its tile, so it still crops to fit. */
.sc-empty-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.sc-empty-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.sc-empty-card:hover .sc-empty-card__img {
	transform: scale(1.05);
}

.sc-empty-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.06);
}

.sc-empty-card__label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
}

.sc-empty-card__arrow {
	flex: 0 0 auto;
	color: var(--sc-text);
	line-height: 0;
}

.sc-empty-card__arrow svg {
	stroke-width: 1.8;
}

.sc-continue-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	margin-top: auto;
	background: var(--sc-button) !important;
	color: var(--sc-button-text) !important;
	border-radius: var(--sc-radius);
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: opacity 0.3s ease;
}

.sc-continue-btn:hover {
	opacity: 0.88;
}

/* Footer */
.sc-footer {
	flex-shrink: 0;
	display: grid;
	gap: 10px;
	padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--sc-rule);
	background: var(--sc-bg);
}

.sc-utils {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 10px;
}

.sc-root .sc-util-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--sc-rule) !important;
	border-radius: var(--sc-radius);
	background: var(--sc-bg) !important;
	cursor: pointer;
	font-size: 15px;
	font-weight: 400;
	color: var(--sc-text);
	transition: border-color 0.2s ease;
}

.sc-root .sc-util-btn:hover,
.sc-root .sc-util-btn.is-active {
	border-color: var(--sc-text) !important;
	background: var(--sc-bg) !important;
}

.sc-util-btn svg {
	flex: 0 0 auto;
	transition: transform 0.25s ease;
}

.sc-util-btn.is-active svg {
	transform: rotate(-90deg);
}

.sc-panel {
	display: grid;
	gap: 8px;
}

.sc-panel[hidden] {
	display: none !important;
}

.sc-root .sc-notes-input,
.sc-root .sc-coupon-input {
	width: 100%;
	background: var(--sc-bg) !important;
	border: 1px solid var(--sc-rule) !important;
	border-radius: var(--sc-radius);
	padding: 11px 12px;
	font-size: 14px;
	resize: vertical;
}

.sc-root .sc-notes-input:focus,
.sc-root .sc-coupon-input:focus {
	border-color: var(--sc-text) !important;
}

.sc-coupon-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.sc-coupon-form .sc-coupon-input {
	flex: 1;
}

.sc-panel-save {
	background: var(--sc-button) !important;
	color: var(--sc-button-text) !important;
	border-radius: var(--sc-radius);
	padding: 0 20px;
	min-height: 44px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.25s ease;
}

.sc-panel-save:hover {
	opacity: 0.88;
}

.sc-coupon-applied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	background: var(--sc-sand);
	font-size: 13px;
	font-weight: 600;
}

.sc-coupon-remove {
	font-size: 18px;
	cursor: pointer;
	color: var(--sc-muted);
	line-height: 1;
	padding: 0 4px;
}

.sc-coupon-msg {
	font-size: 12px;
	color: #2e7d32;
}

.sc-coupon-msg:empty {
	display: none;
}

.sc-coupon-msg.is-error {
	color: var(--sc-sale);
}

.sc-totals {
	display: grid;
	gap: 4px;
	margin: 2px 0 0;
}

.sc-totals-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 16px;
	font-weight: 400;
}

.sc-totals-price {
	font-size: 19px;
	font-weight: 700;
}

.sc-shipping-note {
	margin: 0;
	font-size: 12px;
	color: var(--sc-muted);
}

.sc-checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	text-align: center;
	background: var(--sc-button) !important;
	color: var(--sc-button-text) !important;
	text-decoration: none !important;
	border-radius: var(--sc-radius);
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	transition: opacity 0.3s ease;
	box-sizing: border-box;
}

.sc-checkout-btn:hover {
	opacity: 0.9;
	color: var(--sc-button-text) !important;
}

body.sc-cart-open {
	overflow: hidden;
}

.sc-cart-count,
.smart-cart-count {
	display: inline;
}

/* Header shortcode trigger */
.sc-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px;
	background: transparent !important;
	border: none !important;
	cursor: pointer;
	color: inherit;
	font: inherit;
	line-height: 1;
	transition: opacity 0.25s ease;
}

.sc-trigger:hover {
	opacity: 0.65;
}

.sc-trigger__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.sc-trigger__img {
	display: block;
	object-fit: contain;
}

.sc-trigger__label {
	font-size: 14px;
	font-weight: 500;
}

.sc-trigger-count {
	position: absolute;
	top: 0;
	left: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: var(--sc-button-text, #fff);
	background: var(--sc-button, #111);
	border-radius: 999px;
	pointer-events: none;
}

.sc-trigger-count--empty {
	display: none !important;
}

html[dir="rtl"] .sc-trigger-count,
.sc-root--right ~ .sc-trigger-count {
	top: 0;
	left: 0;
	right: auto;
}

html[dir="ltr"] .sc-trigger-count {
	top: 0;
	right: 0;
	left: auto;
}

@media (max-width: 480px) {
	.sc-drawer {
		width: 100vw;
		--sc-drawer-width: 100vw;
	}

}

/* Auth modal (email OTP before checkout) */
.sc-auth {
	position: fixed;
	inset: 0;
	z-index: 1000001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.sc-auth[hidden] {
	display: none !important;
}

.sc-auth__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.sc-auth__panel {
	position: relative;
	width: 100%;
	max-width: 400px;
	padding: 28px 24px 24px;
	background: var(--sc-bg, #fff);
	color: var(--sc-text, #111);
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
	text-align: center;
}

.sc-auth.is-loading .sc-auth__panel {
	opacity: 0.85;
	pointer-events: none;
}

.sc-auth__close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent !important;
	border: none !important;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--sc-muted, #666);
}

.sc-auth__title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.sc-auth__subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--sc-muted, #666);
}

.sc-auth__step {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sc-auth__step[hidden] {
	display: none !important;
}

.sc-auth__input {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	text-align: center;
	border: 1px solid var(--sc-divider, #ddd) !important;
	border-radius: 8px;
	background: var(--sc-bg, #fff) !important;
	color: var(--sc-text, #111) !important;
	box-sizing: border-box;
}

.sc-auth__input:focus {
	outline: none;
	border-color: var(--sc-accent, #111) !important;
}

.sc-auth__code {
	letter-spacing: 0.35em;
	font-weight: 600;
}

.sc-auth__sent {
	margin: 0;
	font-size: 14px;
	color: var(--sc-muted, #666);
}

.sc-auth__btn {
	width: 100%;
	padding: 13px 16px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.25s ease;
}

.sc-auth__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sc-auth__btn--primary {
	background: var(--sc-button, #111) !important;
	color: var(--sc-button-text, #fff) !important;
	border: none !important;
}

.sc-auth__btn--primary:hover:not(:disabled) {
	opacity: 0.88;
}

.sc-auth__btn--link {
	background: transparent !important;
	border: none !important;
	color: var(--sc-accent, #111) !important;
	text-decoration: underline;
	padding: 8px;
	font-size: 13px;
	font-weight: 500;
}

.sc-auth__msg {
	min-height: 20px;
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.4;
}

.sc-auth__msg.is-error {
	color: #c0392b;
}

.sc-auth__msg.is-success {
	color: #27ae60;
}

/* Header icons group (shortcode) — matches minimal outline set */
.sc-header-icons {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	vertical-align: middle;
	line-height: 0;
}

.sc-header-icons .sc-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	color: inherit;
}

.sc-header-icons .sc-trigger__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.sc-header-icons .sc-icon,
.sc-header-icons svg {
	display: block;
	width: 22px !important;
	height: 22px !important;
	stroke: currentColor;
	flex-shrink: 0;
}

.sc-account-trigger,
.sc-search-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0;
	background: transparent !important;
	border: none !important;
	cursor: pointer;
	color: inherit;
	font: inherit;
	line-height: 0;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.sc-account-trigger:hover,
.sc-search-trigger:hover,
.sc-header-icons .sc-trigger:hover {
	opacity: 0.65;
}

.sc-header-icons .sc-trigger-count {
	top: -6px;
	left: -8px;
	right: auto;
	min-width: 16px;
	height: 16px;
	font-size: 10px;
}


@media (max-width: 480px) {
	.sc-items {
		padding: 16px;
	}

	.sc-item {
		grid-template-columns: 68px minmax(0, 1fr) 24px;
	}

	.sc-header,
	.sc-empty,
	.sc-footer {
		padding-inline: 16px;
	}

	.sc-recs__wrap,
	.sc-recs__title,
	.sc-banners {
		padding-inline: 16px;
	}

	.sc-recs__title {
		margin-inline: 0;
	}
}

/* ==========================================================================
   Live search — anchored dropdown card
   ========================================================================== */
body.sc-search-open {
	overflow: hidden;
}

.sc-search {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	font-family: inherit;
	line-height: inherit;
	color: var(--sc-text);
}

.sc-search[hidden] {
	display: none !important;
}

.sc-search *,
.sc-search *::before,
.sc-search *::after {
	box-sizing: border-box;
}

.sc-search button,
.sc-search input {
	font: inherit;
	color: inherit;
	background: transparent;
	border: none !important;
	outline: none;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	border-radius: 0;
	margin: 0;
}

.sc-search__backdrop {
	position: absolute;
	inset: 0;
	background: var(--sc-overlay);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.sc-search.is-open .sc-search__backdrop {
	opacity: 1;
}

.sc-search__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: min(1010px, calc(100% - 32px));
	margin: clamp(16px, 6vh, 72px) auto 0;
	max-height: calc(100% - clamp(32px, 12vh, 144px));
	opacity: 0;
	transform: translateY(-10px);
	transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.24s ease;
}

.sc-search.is-open .sc-search__panel {
	opacity: 1;
	transform: translateY(0);
}

/* Field */
.sc-search__bar {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 55px;
	padding-inline: 12px 16px;
	background: var(--sc-bg);
	border: 1.7px solid var(--sc-rule) !important;
	border-radius: var(--sc-radius-lg);
	transition: border-color 0.2s ease;
}

.sc-search__bar:focus-within {
	border-color: var(--sc-text) !important;
}

.sc-search__bar-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding: 4px;
	color: var(--sc-soft);
	line-height: 0;
}

.sc-search__bar-icon svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.sc-search__input {
	flex: 1 1 0;
	min-width: 0;
	font-size: 15px !important;
	font-weight: 400;
	padding: 8px 0 !important;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--sc-text) !important;
}

.sc-search__input::placeholder {
	color: var(--sc-soft);
	opacity: 1;
}

.sc-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.sc-search__spinner {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 2px solid transparent !important;
	border-top-color: var(--sc-text) !important;
	border-radius: 50%;
	animation: sc-spin 0.7s linear infinite;
}

.sc-search__spinner[hidden] {
	display: none !important;
}

.sc-search__clear,
.sc-search__close {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 50%;
	color: var(--sc-soft);
	cursor: pointer;
	line-height: 0;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.sc-search__clear:hover,
.sc-search__close:hover {
	color: var(--sc-text);
	background: var(--sc-sand);
}

.sc-search__clear[hidden] {
	display: none !important;
}

.sc-search__clear {
	width: auto;
	padding: 0 10px;
	border-radius: 13px;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
}

/* Separated from the field's own clear button so the two X icons don't read alike. */
.sc-search__close {
	position: relative;
	width: 30px;
	height: 30px;
	margin-inline-start: 9px;
	color: var(--sc-text);
}

.sc-search__close::before {
	content: "";
	position: absolute;
	inset-block: 5px;
	inset-inline-end: -9px;
	width: 1px;
	background: var(--sc-rule);
}

.sc-search__close svg {
	width: 17px;
	height: 17px;
}

/* Result card */
.sc-search__card {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--sc-bg);
	border-radius: var(--sc-radius-lg);
	box-shadow: var(--sc-shadow);
	transition: opacity 0.2s ease;
}

.sc-search__card[hidden] {
	display: none !important;
}

.sc-search.is-busy .sc-search__card {
	opacity: 0.55;
	pointer-events: none;
}

.sc-search__layout {
	display: grid;
	grid-template-columns: 277px minmax(0, 1fr);
	align-items: start;
}

.sc-search__layout.is-single {
	grid-template-columns: minmax(0, 1fr);
}

.sc-search__side {
	background: var(--sc-sand);
	padding: 14px;
	align-self: stretch;
}

.sc-search__side[hidden] {
	display: none !important;
}

.sc-search__main {
	padding: 14px;
}

/* Sidebar groups */
.sc-search__side-block[hidden] {
	display: none !important;
}

.sc-search__side-block + .sc-search__side-block {
	margin-top: 10px;
	padding-top: 6px;
	border-top: 1px solid var(--sc-rule);
}

.sc-search__side-title {
	margin: 0;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sc-soft);
}

.sc-search__side-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-search__side-list a,
.sc-search__suggest {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	width: 100%;
	padding: 8px 10px;
	border-radius: var(--sc-radius);
	font-size: 14px;
	line-height: 1.4;
	color: var(--sc-text);
	text-align: start;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.sc-search__side-list a:hover,
.sc-search__suggest:hover {
	background: rgba(0, 0, 0, 0.05);
}

.sc-search__term {
	font-weight: 500;
}

.sc-search__count {
	order: 1;
	margin-inline-start: auto;
	font-size: 12px;
	color: var(--sc-soft);
}

.sc-search__path {
	order: 2;
	flex-basis: 100%;
	font-size: 12px;
	color: var(--sc-soft);
}

/* Products */
.sc-search__heading {
	margin: 0;
	padding: 6px 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sc-soft);
}

.sc-search__heading[hidden] {
	display: none !important;
}

.sc-search__results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}

.sc-search-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 10px;
	color: var(--sc-text);
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.sc-search-row:hover {
	background: var(--sc-sand);
}

.sc-search-row__media {
	position: relative;
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	overflow: hidden;
	border-radius: var(--sc-radius);
	background: var(--sc-sand);
}

.sc-search-row__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sc-search-row__badge {
	position: absolute;
	inset-block-start: 4px;
	inset-inline-start: 4px;
	z-index: 1;
	padding: 2px 5px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sc-bg);
	background: var(--sc-text);
}

.sc-search-row__info {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.sc-search-row__name {
	font-size: 14px;
	line-height: 1.35;
	color: var(--sc-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sc-search-row__price {
	font-size: 14px;
	font-weight: 700;
}

.sc-search-row__price del {
	margin-inline-end: 6px;
	font-weight: 400;
	color: var(--sc-soft);
}

.sc-search-row__price ins {
	text-decoration: none;
}

/* Empty + footer */
.sc-search__empty {
	padding: 26px 10px 34px;
	text-align: center;
}

.sc-search__empty[hidden] {
	display: none !important;
}

.sc-search__empty-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 600;
}

.sc-search__empty-text {
	margin: 0;
	font-size: 14px;
	color: var(--sc-muted);
}

.sc-search__footer {
	border-top: 1px solid var(--sc-rule);
}

.sc-search__footer[hidden] {
	display: none !important;
}

.sc-search__view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--sc-text) !important;
	text-decoration: none;
	transition: background-color 0.18s ease;
}

.sc-search__view-all:hover {
	background: var(--sc-sand);
}

.sc-search__view-all svg {
	width: 16px;
	height: 16px;
	stroke-width: 1.8;
}

@media (max-width: 1024px) {
	.sc-search__layout,
	.sc-search__layout.is-single {
		grid-template-columns: minmax(0, 1fr);
	}

	/* Products first.

	   The sidebar is first in source order because it is the right-hand column of
	   the desktop grid. Collapsed to one column that order stands, which put
	   categories, tags, popular searches and blog posts above the results the
	   shopper actually searched for. */
	.sc-search__main {
		order: 1;
	}

	.sc-search__side {
		order: 2;
		border-top: 1px solid var(--sc-rule);
	}

	.sc-search__results {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	.sc-search__panel {
		width: 100%;
		height: 100%;
		max-height: 100%;
		margin: 0;
		gap: 0;
	}

	.sc-search__bar {
		border-width: 0 0 1.7px !important;
		border-radius: 0;
		padding-inline: 10px 12px;
	}

	.sc-search__card {
		border-radius: 0;
		box-shadow: none;
	}

	.sc-search-row__media {
		width: 56px;
		height: 56px;
	}
}

/* Quantity deals */
.sc-deals {
	display: grid;
	gap: 10px;
	padding: 14px 20px 0;
}

.sc-deal {
	padding: 14px 16px;
	border: 1px solid var(--sc-rule);
	border-radius: var(--sc-radius);
	background: var(--sc-sand);
}

.sc-deal.is-complete {
	border-color: var(--sc-text);
}

.sc-deal__title {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sc-text);
}

.sc-deal__text {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--sc-muted);
}

.sc-deal__track {
	height: 3px;
	margin-top: 10px;
	background: rgba(0, 0, 0, 0.07);
	border-radius: 999px;
	overflow: hidden;
}

.sc-deal__fill {
	height: 100%;
	background: var(--sc-primary);
	transition: width 0.4s ease;
}

.sc-item__deal {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid var(--sc-rule);
	border-radius: 999px;
	background: var(--sc-sand);
	font-size: 11px;
	font-weight: 500;
	color: var(--sc-muted);
}

.sc-totals-row--minor {
	font-size: 14px;
	color: var(--sc-muted);
}

.sc-totals-row--saving {
	color: var(--sc-sale);
}
