/**
 * Manifest frontend stylesheet — namespaced .manifest-fe-* untuk avoid theme conflict.
 * Loaded on single product + shop pages.
 */

.manifest-fe-badges-wrap {
	margin: 12px 0 16px;
}

.manifest-fe-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.manifest-fe-badge {
	display: inline-block;
	padding: 4px 10px;
	background: #0F766E;
	color: #fff;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.02em;
}

.manifest-fe-trust-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 8px 0;
	font-size: 13px;
	color: #50575e;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.manifest-fe-trust-item {
	font-weight: 500;
}

.manifest-fe-wa-cs {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 12px;
	padding: 10px 16px;
	background: #25D366;
	color: #fff !important;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	transition: background 0.15s;
}

.manifest-fe-wa-cs:hover {
	background: #1da851;
	color: #fff !important;
}

.manifest-fe-wa-icon {
	font-size: 16px;
}

.manifest-fe-restock {
	margin: 16px 0;
	padding: 16px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.manifest-fe-restock h4 {
	margin: 0 0 4px;
	font-size: 15px;
	color: #1d2327;
}

.manifest-fe-hint {
	margin: 0 0 12px;
	font-size: 13px;
	color: #50575e;
}

.manifest-fe-restock-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.manifest-fe-restock-form input[type="text"],
.manifest-fe-restock-form input[type="tel"] {
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	width: 100%;
	box-sizing: border-box;
}

.manifest-fe-restock-form button {
	padding: 10px 16px;
	background: #0F766E;
	color: #fff;
	border: 0;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.15s;
}

.manifest-fe-restock-form button:hover {
	background: #0c5f59;
}

.manifest-fe-restock-form button:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

.manifest-fe-restock-msg {
	margin-top: 8px;
	font-size: 13px;
	min-height: 16px;
}

.manifest-fe-restock-msg.success {
	color: #0F766E;
	font-weight: 600;
}

.manifest-fe-restock-msg.error {
	color: #c00;
}

@media (max-width: 600px) {
	.manifest-fe-trust-strip {
		flex-direction: column;
		gap: 6px;
	}
}

/* ============================================================
   Quick-View Modal — Wave C C3 P1-16
   ============================================================ */

/* Trigger button — sits below card link, full width of card */
.manifest-fe-quickview {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin-top: 10px;
	padding: 8px 12px;
	background: transparent;
	color: #0F766E;
	border: 1px solid #0F766E;
	border-radius: 6px;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.manifest-fe-quickview:hover,
.manifest-fe-quickview:focus-visible {
	background: #0F766E;
	color: #fff;
	outline: none;
}

.manifest-fe-quickview:focus-visible {
	box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.25);
}

/* Modal overlay — hidden by default, opens via .is-open */
.manifest-fe-qv-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 9990;
	align-items: center;
	justify-content: center;
	padding: 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.manifest-fe-qv-modal.is-open {
	display: flex;
	animation: mfstQvFadeIn 0.18s ease-out;
}

@keyframes mfstQvFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.manifest-fe-qv-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 920px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: mfstQvSlideUp 0.22s ease-out;
}

@keyframes mfstQvSlideUp {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.manifest-fe-qv-modal.is-open,
	.manifest-fe-qv-modal__panel {
		animation: none;
	}
}

.manifest-fe-qv-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.92);
	color: #1A1A1A;
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, transform 0.15s;
}

.manifest-fe-qv-modal__close:hover {
	background: #f3f4f6;
	transform: scale(1.05);
}

.manifest-fe-qv-modal__close:focus-visible {
	outline: 2px solid #0F766E;
	outline-offset: 2px;
}

/* Loading state */
.manifest-fe-qv-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 24px;
	color: #525252;
	gap: 12px;
}

.manifest-fe-qv-spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	border: 3px solid #e5e7eb;
	border-top-color: #0F766E;
	border-radius: 50%;
	animation: mfstQvSpin 0.7s linear infinite;
}

@keyframes mfstQvSpin {
	to { transform: rotate(360deg); }
}

.manifest-fe-qv-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 24px;
	gap: 16px;
	text-align: center;
}

.manifest-fe-qv-error p {
	margin: 0;
	color: #c00;
	font-size: 14px;
}

.manifest-fe-qv-retry {
	padding: 8px 16px;
	background: #0F766E;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.manifest-fe-qv-retry:hover {
	background: #0c5f59;
}

/* Body — two columns on desktop, stacked on mobile */
.manifest-fe-qv-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 24px;
}

@media (max-width: 720px) {
	.manifest-fe-qv-body {
		grid-template-columns: 1fr;
		padding: 16px;
		gap: 16px;
	}
}

/* Gallery column */
.manifest-fe-qv-gallery__main {
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #f3f4f6;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.manifest-fe-qv-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.manifest-fe-qv-gallery__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.manifest-fe-qv-thumb {
	width: 64px;
	height: 64px;
	padding: 0;
	background: #f3f4f6;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.15s;
}

.manifest-fe-qv-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.manifest-fe-qv-thumb:hover {
	border-color: #d1d5db;
}

.manifest-fe-qv-thumb.is-active {
	border-color: #0F766E;
}

/* Content column */
.manifest-fe-qv-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.manifest-fe-qv-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #1A1A1A;
}

.manifest-fe-qv-price {
	font-size: 22px;
	font-weight: 700;
	color: #0F766E;
}

.manifest-fe-qv-price del {
	color: #9ca3af;
	font-weight: 400;
	font-size: 16px;
	margin-right: 8px;
}

.manifest-fe-qv-desc {
	font-size: 14px;
	color: #525252;
	line-height: 1.6;
}

.manifest-fe-qv-desc p {
	margin: 0 0 8px;
}

.manifest-fe-qv-variations {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	background: #f9fafb;
	border-radius: 8px;
}

.manifest-fe-qv-attr {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.manifest-fe-qv-attr label {
	font-size: 13px;
	font-weight: 600;
	color: #1A1A1A;
}

.manifest-fe-qv-attr select {
	padding: 8px 10px;
	font-size: 14px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.manifest-fe-qv-stock {
	font-size: 13px;
	font-weight: 600;
}

.manifest-fe-qv-stock.is-instock {
	color: #0F766E;
}

.manifest-fe-qv-stock.is-outofstock {
	color: #c00;
}

.manifest-fe-qv-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
	padding-top: 12px;
}

.manifest-fe-qv-add {
	padding: 12px 20px;
	background: #0F766E;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: background 0.15s;
}

.manifest-fe-qv-add:hover:not(:disabled) {
	background: #0c5f59;
}

.manifest-fe-qv-add[hidden] {
	display: none !important;
}

.manifest-fe-qv-add:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

.manifest-fe-qv-detail {
	text-align: center;
	padding: 10px;
	color: #0F766E;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
}

.manifest-fe-qv-detail:hover {
	text-decoration: underline;
}
