.product-detail {
	display: grid;
	gap: 14px;
}

.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	color: #888;
	font-size: 0.9rem;
	& a {
		color: #555;
	}
}

.back-link {
	display: inline-flex;
	width: fit-content;
	font-weight: 700;
	color: var(--accent-dark);
}

.detail-head {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 12px 14px;
	background: #fff;
	display: grid;
	gap: 6px;

	& h1 {
		margin: 0;
		font-size: clamp(1.8rem, 3vw, 2.6rem);
		line-height: 1.08;
		color: #111;
	}
}

.detail-rating-row {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	font-size: 0.94rem;
	color: #555;
}

.detail-rating-stars {
	letter-spacing: 0.05em;
	color: #efb300;
}

.detail-rating-value {
	font-weight: 700;
	color: #1a1a1a;
}

.detail-rating-count {
	color: #888;
}

.detail-live-viewers {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f2f8ff;
	color: #1a3a67;
	font-size: 0.87rem;
	font-weight: 600;
}

.detail-live-viewers-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #2b78d1;
	box-shadow: 0 0 0 0 rgba(43, 120, 209, 0.4);
	animation: viewer-pulse 1.8s ease-out infinite;
}

@keyframes viewer-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(43, 120, 209, 0.45);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(43, 120, 209, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(43, 120, 209, 0);
	}
}

.detail-kicker {
	margin: 0;
	width: fit-content;
	border-radius: var(--radius-sm);
	border: none;
	padding: 3px 10px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111;
	background: var(--accent);
}

.detail-deal-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.detail-discount-badge {
	display: inline-flex;
	border: none;
	border-radius: var(--radius-sm);
	padding: 4px 11px;
	font-size: 0.84rem;
	font-weight: 700;
	color: #111;
	background: var(--accent);
}

.detail-save {
	font-size: 0.92rem;
	font-weight: 700;
	color: #555;
}

.detail-hero {
	display: grid;
	grid-template-columns: 1.7fr minmax(340px, 1fr);
	gap: 22px;
	align-items: start;
}

.media-block {
	border: 0;
	border-radius: 0;
	padding: 0;
	background: transparent;
}

.info-block {
	border: 0;
	border-radius: 0;
	padding: 0;
	background: transparent;
}

.detail-main-image {
	width: 100%;
	height: min(68vh, 720px);
	object-fit: contain;
	background: #fff;
}

.purchase-panel {
	display: grid;
	gap: 14px;
}

@media (min-width: 980px) {
	.purchase-panel {
		position: sticky;
		top: 16px;
	}
}

.purchase-form {
	display: grid;
	gap: 14px;
}

.option-card {
	border: 1px solid #e8e5de;
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 14px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	& h2 {
		margin: 0 0 10px;
		font-size: 1.35rem;
		font-weight: 700;
		color: #111;
	}
}

.option-grid {
	display: grid;
	gap: 10px;
}

.option-field {
	display: grid;
	gap: 6px;

	& label {
		font-size: 0.96rem;
		font-weight: 500;
		color: #555;
	}
	& select {
		width: 100%;
		border: 1px solid #e0ddd8;
		border-radius: var(--radius-sm);
		padding: 10px 12px;
		color: var(--text);
		background: #fff;
	}
}

.option-inline {
	grid-template-columns: 80px 1fr;
	align-items: center;
}

.stock-note {
	margin: 10px 0 0;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.96rem;
	&.in-stock {
		color: #1a3a67;
		background: transparent;
	}
	&.out-of-stock {
		color: var(--danger);
		background: transparent;
	}
	& .dot {
		width: 11px;
		height: 11px;
		border-radius: 999px;
		background: #1db567;
	}
	&.out-of-stock .dot {
		background: #d13232;
	}
}

.order-cutoff-banner {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1px solid #e8e5de;
	border-radius: var(--radius);
	padding: 10px 12px;
	background: #fff;

	&.is-passed {
		border-color: #e4d5b8;
		background: #fffaf0;
	}
}

.order-cutoff-icon {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 2px solid #1b9f4c;
	border-radius: 999px;
	background: #eaf8ef;

	&::before {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 2px;
		border-radius: 2px;
		background: #1b9f4c;
		transform-origin: bottom center;
		height: 5px;
		transform: translate(-50%, -100%);
	}

	&::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 2px;
		border-radius: 2px;
		background: #1b9f4c;
		transform-origin: bottom center;
		height: 4px;
		transform: translate(-50%, -100%) rotate(90deg);
	}
}

.order-cutoff-text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
	color: #555;

	& strong {
		color: #111;
	}
}

.buy-box {
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 12px;
	display: grid;
	gap: 10px;
	background: #fff;
}

.price-stack {
	display: grid;
	gap: 3px;
}

.old-price-line {
	margin: 0;
	text-decoration: line-through;
	color: #888;
	font-size: 1.35rem;
}

.old-price-excl {
	margin: 0;
	text-decoration: line-through;
	color: #aaa;
	font-size: 0.95rem;
}

.main-price {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.02;
	font-weight: 800;
	color: var(--brand);
}

.price-meta {
	margin: 0;
	color: #777;
	font-size: 0.98rem;
}

.price-save-line {
	margin: 4px 0 0;
	width: fit-content;
	border-radius: var(--radius-sm);
	border: none;
	padding: 5px 10px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #111;
	background: var(--accent);
}

.buy-row {
	display: grid;
	grid-template-columns: 130px 1fr;
	gap: 8px;
	align-items: end;
}

.qty-field {
	& label {
		font-size: 0.86rem;
		font-weight: 700;
		color: #555;
	}
}

.qty-control {
	display: grid;
	grid-template-columns: 38px minmax(52px, 1fr) 38px;
	overflow: hidden;
	border: 1.5px solid #e0ddd8;
	border-radius: var(--radius-sm);

	& input {
		width: 100%;
		color: var(--text);
		background: #fff;
		border: 0;
		border-left: 1px solid #e0ddd8;
		border-right: 1px solid #e0ddd8;
		border-radius: 0;
		min-width: 0;
		padding: 0;
		text-align: center;
		font-weight: 600;
		appearance: textfield;
		-moz-appearance: textfield;
	}
	& input::-webkit-outer-spin-button {
		-webkit-appearance: none;
		margin: 0;
	}
	& input::-webkit-inner-spin-button {
		-webkit-appearance: none;
		margin: 0;
	}
}

.qty-btn {
	border: 0;
	font-size: 1.05rem;
	color: #1a1a1a;
	background: var(--surface-muted);
	cursor: pointer;
}

.cta-primary {
	border: 1.5px solid var(--accent-dark);
	border-radius: var(--radius-pill);
	padding: 14px 18px;
	font-size: 1.1rem;
	font-weight: 800;
	color: #111;
	background: var(--accent);
	cursor: pointer;
	transition: background var(--transition);
	&:hover {
		background: var(--accent-dark);
	}
	&:disabled {
		cursor: not-allowed;
		opacity: 0.6;
	}
}

.buy-links {
	margin: 2px 0 0;
	padding-left: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.link-btn {
	border: 0;
	padding: 0;
	color: var(--accent-dark);
	font-size: 0.95rem;
	font-weight: 600;
	text-align: left;
	background: transparent;
	cursor: pointer;
	&:hover {
		text-decoration: underline;
	}
}

.service-list {
	margin: 0;
	padding: 10px 14px;
	list-style: none;
	border: 1px solid #e8e5de;
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	display: grid;
	gap: 6px;
	color: #555;
	font-size: 0.95rem;
	background: #fff;
}

.spec-list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 6px;
}

.variants-section {
	padding: 0;

	& table {
		width: 100%;
		border-collapse: collapse;
	}

	& th {
		border-top: 1px solid var(--border);
		padding: 10px 8px;
		text-align: left;
		font-size: 0.9rem;
		color: #555;
	}

	& td {
		border-top: 1px solid var(--border);
		padding: 10px 8px;
		text-align: left;
	}
}
