.sms-product-box {
	width: 100%;
}

.sms-product-box__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--sms-space-4, 16px);
	padding: var(--sms-space-4, 16px);
	background: var(--sms-color-surface, #ffffff);
	border: 1px solid var(--sms-color-border, #d7deeb);
	border-radius: var(--sms-radius-card, 20px);
	box-shadow: var(--sms-shadow-card, 0 18px 40px rgba(20, 32, 51, 0.08));
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sms-product-box__card:hover,
.sms-product-box__card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 24px 48px rgba(20, 32, 51, 0.14);
}

.sms-product-box__card--empty {
	min-height: 240px;
	justify-content: flex-start;
	align-items: stretch;
	background: var(--sms-color-surface-muted, #f6f8fc);
	border-style: dashed;
}

.sms-product-box__actions {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
}

.sms-product-box__actions--empty {
	display: none;
}

.sms-product-box[data-preview-mode="editor"] .sms-product-box__actions--empty,
.sms-product-box__actions--preview {
	display: flex;
}

.sms-product-box__action-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
}

.sms-product-box__action-slot:empty {
	display: none;
}

.sms-product-box__action-slot > * {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 0;
	background: rgba(255, 255, 255, 0.94);
	color: var(--sms-color-text, #142033);
	border: 1px solid rgba(20, 32, 51, 0.08);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(20, 32, 51, 0.12);
	text-decoration: none;
}

.sms-product-box__action-slot-placeholder {
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px dashed var(--sms-color-border, #d7deeb);
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(20, 32, 51, 0.1);
}

.sms-product-box__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 6px 12px;
	background: var(--sms-gradient-action, linear-gradient(135deg, #ff6a3d 0%, #ff9b2f 100%));
	color: #ffffff;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 10px 20px rgba(255, 106, 61, 0.18);
}

.sms-product-box__badge--placeholder {
	opacity: 0.92;
}

.sms-product-box__gallery {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--sms-color-surface-muted, #f6f8fc);
	border-radius: 16px;
	overflow: hidden;
}

.sms-product-box__gallery-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.sms-product-box__media {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--sms-color-surface-muted, #f6f8fc);
	border-radius: inherit;
	overflow: hidden;
}

.sms-product-box__gallery-slide[hidden] {
	display: none;
}

.sms-product-box__media--placeholder {
	background: linear-gradient(135deg, rgba(17, 85, 255, 0.08) 0%, rgba(70, 194, 255, 0.16) 100%);
	border: 1px dashed var(--sms-color-border, #d7deeb);
}

.sms-product-box__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.sms-product-box__card:hover .sms-product-box__image,
.sms-product-box__card:focus-within .sms-product-box__image {
	transform: scale(1.03);
}

.sms-product-box__gallery-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: rgba(20, 32, 51, 0.72);
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 24px rgba(20, 32, 51, 0.22);
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.sms-product-box__gallery-arrow:hover,
.sms-product-box__gallery-arrow:focus-visible {
	background: rgba(20, 32, 51, 0.9);
	transform: translateY(-50%) scale(1.03);
}

.sms-product-box__gallery-arrow:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.sms-product-box__gallery-arrow--prev {
	left: 12px;
}

.sms-product-box__gallery-arrow--next {
	right: 12px;
}

.sms-product-box__gallery-arrow-icon {
	font-size: 20px;
	line-height: 1;
}

.sms-product-box__gallery-dots {
	position: absolute;
	right: 16px;
	bottom: 14px;
	left: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.sms-product-box__gallery-dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.sms-product-box__gallery-dot-indicator {
	display: block;
	width: 8px;
	height: 8px;
	background: rgba(255, 255, 255, 0.48);
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(20, 32, 51, 0.18);
	transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.sms-product-box__gallery-dot.is-active .sms-product-box__gallery-dot-indicator {
	background: #ffffff;
	transform: scale(1.35);
}

.sms-product-box__gallery-dot:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
	border-radius: 999px;
}

.sms-product-box__content {
	display: grid;
	gap: var(--sms-space-3, 12px);
}

.sms-product-box__title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.3;
	color: var(--sms-color-text, #142033);
	overflow-wrap: anywhere;
}

.sms-product-box__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sms-product-box__price {
	color: var(--sms-color-text, #142033);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.sms-product-box__price del {
	color: var(--sms-color-text-muted, #5f6d84);
	font-weight: 500;
}

.sms-product-box__price ins {
	color: inherit;
	font-weight: 700;
	text-decoration: none;
}

.sms-product-box__title--placeholder {
	color: var(--sms-color-text, #142033);
}

.sms-product-box__price--placeholder {
	color: var(--sms-color-text-muted, #5f6d84);
	font-weight: 500;
}

.sms-product-box__variations {
	display: grid;
	gap: 10px;
	padding: 12px;
	background: rgba(17, 85, 255, 0.04);
	border: 1px solid rgba(17, 85, 255, 0.1);
	border-radius: 16px;
}

.sms-product-box__variation-fields {
	display: grid;
	gap: 10px;
}

.sms-product-box__variation-field {
	display: grid;
	gap: 6px;
}

.sms-product-box__variation-label {
	color: var(--sms-color-text, #142033);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.35;
}

.sms-product-box__variation-select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	background: #ffffff;
	color: var(--sms-color-text, #142033);
	border: 1px solid var(--sms-color-border, #d7deeb);
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.35;
}

.sms-product-box__variation-select:focus-visible {
	outline: 2px solid var(--sms-color-primary, #1155ff);
	outline-offset: 2px;
}

.sms-product-box__variation-helper {
	margin: 0;
	color: var(--sms-color-text-muted, #5f6d84);
	font-size: 0.84rem;
	line-height: 1.45;
}

.sms-product-box__purchase {
	position: relative;
	display: grid;
	gap: 10px;
}

.sms-product-box__quantity {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: 100%;
	isolation: isolate;
}

.sms-product-box__quantity-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	min-height: 46px;
	flex: 0 0 46px;
	padding: 0;
	background: var(--sms-color-surface-muted, #f6f8fc);
	color: var(--sms-color-text, #142033);
	border: 1px solid var(--sms-color-border, #d7deeb);
	border-radius: 14px;
	box-shadow: 0 8px 20px rgba(20, 32, 51, 0.08);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.sms-product-box__quantity-button:hover,
.sms-product-box__quantity-button:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(17, 85, 255, 0.24);
	box-shadow: 0 12px 24px rgba(20, 32, 51, 0.12);
}

.sms-product-box__quantity-button:focus-visible {
	outline: 2px solid var(--sms-color-primary, #1155ff);
	outline-offset: 2px;
}

.sms-product-box__quantity-button[disabled] {
	cursor: not-allowed;
	opacity: 0.56;
	transform: none;
	box-shadow: none;
}

.sms-product-box__quantity-button > span {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	color: inherit;
}

.sms-product-box__quantity-field {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	min-width: 80px;
	height: 46px;
	flex: 0 0 80px;
	position: relative;
	z-index: 1;
	visibility: visible;
	opacity: 1;
	background: #ffffff;
	border: 2px solid var(--sms-color-border, #d7deeb);
	border-radius: 14px;
	overflow: hidden;
}

.sms-product-box .sms-product-box__quantity input.sms-product-box__quantity-input {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none;
	height: 100% !important;
	min-height: 100% !important;
	padding: 0 !important;
	background: transparent !important;
	color: #142033 !important;
	border: 0 !important;
	border-radius: 0;
	font-family: inherit !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	font-variant-numeric: tabular-nums;
	line-height: normal !important;
	letter-spacing: 0 !important;
	text-align: center !important;
	text-align-last: center !important;
	text-indent: 0 !important;
	text-shadow: none !important;
	caret-color: #142033;
	-webkit-text-fill-color: #142033;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: textfield;
	opacity: 1;
	visibility: visible !important;
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	transform: none;
	float: none;
	margin: 0;
	flex: none;
	background-clip: padding-box;
	overflow: visible;
	vertical-align: middle;
}

.sms-product-box .sms-product-box__quantity input.sms-product-box__quantity-input::-webkit-outer-spin-button,
.sms-product-box .sms-product-box__quantity input.sms-product-box__quantity-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.sms-product-box .sms-product-box__quantity input.sms-product-box__quantity-input:focus-visible {
	outline: 2px solid var(--sms-color-primary, #1155ff);
	outline-offset: 2px;
}

.sms-product-box__button {
	--sms-product-box-button-gradient-angle: 135deg;
	--sms-product-box-button-gradient-start: var(--sms-color-primary, #1155ff);
	--sms-product-box-button-gradient-end: var(--sms-color-primary-strong, #0b3fc4);
	--sms-product-box-button-hover-gradient-start: var(--sms-product-box-button-gradient-start);
	--sms-product-box-button-hover-gradient-end: var(--sms-product-box-button-gradient-end);
	--sms-product-box-button-success-gradient-start: var(--sms-color-success, #0f9f63);
	--sms-product-box-button-success-gradient-end: #2fc37d;
	--sms-product-box-button-success-text-color: #ffffff;
	display: inline-flex;
	position: relative;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 18px;
	background: transparent;
	color: #ffffff;
	border: 0 solid transparent;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.sms-product-box__button-background {
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	transition: opacity 0.28s ease, transform 0.28s ease, filter 0.28s ease;
}

.sms-product-box__button-background--base {
	background-image: linear-gradient(
		var(--sms-product-box-button-gradient-angle),
		var(--sms-product-box-button-gradient-start, var(--sms-color-primary, #1155ff)) 0%,
		var(--sms-product-box-button-gradient-end, var(--sms-color-primary-strong, #0b3fc4)) 100%
	);
}

.sms-product-box__button-background--hover {
	background-image: linear-gradient(
		var(--sms-product-box-button-gradient-angle),
		var(--sms-product-box-button-hover-gradient-start) 0%,
		var(--sms-product-box-button-hover-gradient-end) 100%
	);
	opacity: 0;
}

.sms-product-box__button-background--success {
	background-image: linear-gradient(
		var(--sms-product-box-button-gradient-angle),
		var(--sms-product-box-button-success-gradient-start) 0%,
		var(--sms-product-box-button-success-gradient-end) 100%
	);
	opacity: 0;
}

.sms-product-box__button:not(.sms-product-box__button--disabled):hover,
.sms-product-box__button:not(.sms-product-box__button--disabled):focus-visible {
	color: #ffffff;
	transform: translateY(-1px);
	filter: saturate(1.05);
}

.sms-product-box__button:focus-visible {
	outline: 2px solid var(--sms-color-text, #142033);
	outline-offset: 2px;
}

.sms-product-box__button:hover .sms-product-box__button-background--hover,
.sms-product-box__button:focus-visible .sms-product-box__button-background--hover,
.sms-product-box__button.is-loading .sms-product-box__button-background--hover {
	opacity: 1;
}

.sms-product-box__button:hover .sms-product-box__button-background--base,
.sms-product-box__button:focus-visible .sms-product-box__button-background--base {
	filter: saturate(0.98);
}

.sms-product-box__button.is-success .sms-product-box__button-background--success {
	opacity: 1;
}

.sms-product-box__button-inner {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: nowrap;
	gap: 8px;
	width: 100%;
	min-width: 0;
	overflow: visible;
}

.sms-product-box__button-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 1em;
	min-height: 1em;
	overflow: visible;
}

.sms-product-box__button-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: visible;
}

.sms-product-box__button-icon-visual {
	display: block;
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
	flex: 0 0 auto;
}

.sms-product-box__button-icon-visual svg,
.sms-product-box__button-icon > svg {
	width: 100%;
	height: 100%;
	display: block;
	max-width: none;
	overflow: visible;
}

.sms-product-box__button-icon-visual i,
.sms-product-box__button-icon > i {
	display: block;
	font-size: inherit;
	line-height: 1;
}

.sms-product-box__button-icon > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.sms-product-box__button-icon-visual img,
.sms-product-box__button-icon > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
}

.sms-product-box__button-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-width: 0;
	white-space: nowrap;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sms-product-box__button-feedback-message {
	position: absolute;
	left: 50%;
	bottom: 4px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	background: rgba(20, 32, 51, 0.92);
	color: #ffffff;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 0);
	box-shadow: 0 12px 24px rgba(20, 32, 51, 0.18);
}

.sms-product-box__button-feedback-message.is-active {
	animation: sms-product-box-feedback-rise 1.45s ease forwards;
}

.sms-product-box__button--placeholder {
	pointer-events: none;
	opacity: 0.9;
}

.sms-product-box__button--disabled {
	cursor: default;
	pointer-events: none;
	filter: none;
}

.sms-product-box__button--out-of-stock {
	--sms-product-box-button-gradient-start: #a0abbc;
	--sms-product-box-button-gradient-end: #7e899a;
	--sms-product-box-button-hover-gradient-start: #a0abbc;
	--sms-product-box-button-hover-gradient-end: #7e899a;
}

.sms-product-box__button--max-cart {
	--sms-product-box-button-gradient-start: #d48b2a;
	--sms-product-box-button-gradient-end: #b96f10;
	--sms-product-box-button-hover-gradient-start: #d48b2a;
	--sms-product-box-button-hover-gradient-end: #b96f10;
}

.sms-product-box__button.is-loading {
	pointer-events: none;
	opacity: 0.95;
}

.sms-product-box__button.is-feedback-locked {
	pointer-events: none;
}

.sms-product-box__button.is-loading::after {
	content: "";
	width: 14px;
	height: 14px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: sms-product-box-spin 0.8s linear infinite;
}

.sms-product-box__button.is-success {
	color: var(--sms-product-box-button-success-text-color);
	transform: translateY(-1px) scale(1.01);
}

.sms-product-box__empty {
	max-width: none;
	margin: 0;
	color: var(--sms-color-text-muted, #5f6d84);
	font-size: 0.95rem;
	line-height: 1.5;
	text-align: left;
}

@keyframes sms-product-box-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes sms-product-box-feedback-rise {
	0% {
		opacity: 0;
		transform: translate(-50%, 0);
	}

	12% {
		opacity: 1;
		transform: translate(-50%, -6px);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, -50px);
	}
}

@media (max-width: 1024px) {
	.sms-product-box__gallery-arrow {
		width: 40px;
		height: 40px;
	}

	.sms-product-box__gallery-arrow-icon {
		font-size: 18px;
	}

	.sms-product-box__quantity-button,
	.sms-product-box__quantity-input {
		min-height: 44px;
	}

	.sms-product-box__button-feedback-message {
		font-size: 0.78rem;
	}
}

@media (max-width: 767px) {
	.sms-product-box__card {
		gap: 14px;
		padding: 14px;
	}

	.sms-product-box__badge {
		top: 12px;
		left: 12px;
		min-height: 28px;
		padding: 5px 10px;
	}

	.sms-product-box__actions {
		top: 12px;
		right: 12px;
		gap: 6px;
	}

	.sms-product-box__action-slot,
	.sms-product-box__action-slot > *,
	.sms-product-box__action-slot-placeholder {
		min-width: 38px;
		min-height: 38px;
		width: 38px;
		height: 38px;
	}

	.sms-product-box__gallery-arrow {
		width: 38px;
		height: 38px;
	}

	.sms-product-box__gallery-arrow--prev {
		left: 10px;
	}

	.sms-product-box__gallery-arrow--next {
		right: 10px;
	}

	.sms-product-box__gallery-dots {
		right: 12px;
		bottom: 12px;
		left: 12px;
		gap: 6px;
	}

	.sms-product-box__gallery-dot {
		width: 22px;
		height: 22px;
	}

	.sms-product-box__title {
		font-size: 1rem;
	}

	.sms-product-box__price {
		font-size: 0.95rem;
	}

	.sms-product-box__variations {
		padding: 10px;
	}

	.sms-product-box__variation-fields {
		gap: 8px;
	}

	.sms-product-box__purchase {
		gap: 8px;
	}

	.sms-product-box__quantity {
		width: 100%;
		justify-content: stretch;
	}

	.sms-product-box__quantity-field {
		width: auto;
		min-width: 82px;
		flex: 1 1 auto;
	}

	.sms-product-box__quantity-button {
		width: 44px;
		height: 44px;
		min-height: 44px;
		flex-basis: 44px;
	}

	.sms-product-box .sms-product-box__quantity input.sms-product-box__quantity-input {
		height: 100% !important;
		min-height: 100% !important;
		line-height: normal !important;
	}

	.sms-product-box__button {
		width: 100%;
	}

	.sms-product-box__button-feedback-message {
		bottom: 2px;
		max-width: calc(100% - 12px);
		text-align: center;
		white-space: normal;
	}
}
