/* WC Whatmore Clone — advanced public UI */
:root {
	--wcm-accent: #ff3366;
	--wcm-accent-2: #7c3aed;
	--wcm-glass: rgba(15, 15, 20, 0.55);
	--wcm-glass-border: rgba(255, 255, 255, 0.12);
	--wcm-radius: 16px;
	--wcm-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	--wcm-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wcm-widget {
	margin: 2rem 0;
	font-family: var(--wcm-font);
}

/* Thumbnails */
.wcm-video-thumb {
	position: relative;
	border: 0;
	padding: 0;
	background: #111;
	cursor: pointer;
	display: block;
	width: 100%;
	border-radius: var(--wcm-radius);
	overflow: hidden;
	box-shadow: var(--wcm-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wcm-video-thumb:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
.wcm-video-thumb img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 9/16;
}
.wcm-video-thumb__caption {
	position: absolute;
	bottom: 36px;
	left: 10px;
	right: 10px;
	color: #fff;
	font-size: 12px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
	text-align: left;
	z-index: 2;
}
.wcm-video-thumb__product {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	background: var(--wcm-glass);
	backdrop-filter: blur(8px);
	border: 1px solid var(--wcm-glass-border);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 5px 8px;
	border-radius: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	z-index: 2;
}
.wcm-video-thumb__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 52px;
	height: 52px;
	margin: -26px 0 0 -26px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	z-index: 2;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.wcm-video-thumb__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border: 10px solid transparent;
	border-left: 16px solid #111;
	border-right: 0;
	margin-left: 2px;
}

/* Carousel */
.wcm-carousel__track {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 4px 2px 12px;
	scrollbar-width: none;
}
.wcm-carousel__track::-webkit-scrollbar { display: none; }
.wcm-carousel__slide {
	flex: 0 0 44%;
	max-width: 240px;
	scroll-snap-align: start;
}

/* Stories */
.wcm-stories__row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding: 10px 4px;
}
.wcm-stories__item {
	flex: 0 0 auto;
	text-align: center;
	width: 92px;
}
.wcm-stories__item .wcm-video-thumb img {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	border: 3px solid var(--wcm-unread, #ff3366);
	aspect-ratio: 1;
}
.wcm-stories__item.is-read .wcm-video-thumb img {
	border-color: var(--wcm-read, #aaa);
}
.wcm-stories__label {
	display: block;
	font-size: 11px;
	margin-top: 8px;
	font-weight: 500;
}

/* PDP */
.wcm-pdp-grid__title {
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 14px;
}
.wcm-pdp-grid__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

/* HD Banner */
.wcm-hd-banner__media {
	min-height: 420px;
	background-size: cover;
	background-position: center;
	border-radius: 20px;
	overflow: hidden;
	position: relative;
}
.wcm-hd-banner__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.65));
	color: #fff;
	padding: 32px;
	text-align: center;
}
.wcm-hd-banner__overlay h2 {
	font-size: clamp(1.75rem, 5vw, 3rem);
	font-weight: 800;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
}

/* Shop grid */
.wcm-shop-by-video-page__header {
	text-align: center;
	padding: 2.5rem 1rem 1rem;
}
.wcm-shop-grid__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	justify-content: center;
}
.wcm-shop-grid__filters button {
	border: 1px solid #e5e5e5;
	background: #fff;
	border-radius: 999px;
	padding: 8px 18px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.2s;
}
.wcm-shop-grid__filters button.is-active {
	background: linear-gradient(135deg, var(--wcm-accent), var(--wcm-accent-2));
	color: #fff;
	border-color: transparent;
}
.wcm-shop-grid__items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 18px;
}
.wcm-shop-grid__item h4 {
	font-size: 14px;
	margin: 10px 0 0;
	font-weight: 600;
}

/* ========== PLAYER ========== */
body.wcm-player-open { overflow: hidden; }
.wcm-player-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	font-family: var(--wcm-font);
}
.wcm-player-root[hidden] { display: none !important; }
.wcm-player-root__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	backdrop-filter: blur(6px);
}
.wcm-player {
	position: relative;
	z-index: 2;
	height: 100%;
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	background: #0a0a0c;
}
.wcm-player__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 10;
	background: var(--wcm-glass);
	border: 1px solid var(--wcm-glass-border);
	color: #fff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(10px);
}
.wcm-player__stage {
	flex: 1;
	position: relative;
	min-height: 0;
	background: #000;
}
.wcm-player__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wcm-player__gradient {
	pointer-events: none;
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
	z-index: 1;
}
.wcm-player__top {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 4;
	padding: 60px 16px 16px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
}
.wcm-player__title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.wcm-player__product-chip {
	display: inline-block;
	font-size: 12px;
	color: #fff;
	background: var(--wcm-glass);
	border: 1px solid var(--wcm-glass-border);
	padding: 4px 10px;
	border-radius: 999px;
	text-decoration: none;
	backdrop-filter: blur(8px);
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wcm-player__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.wcm-action-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	background: var(--wcm-glass);
	border: 1px solid var(--wcm-glass-border);
	color: #fff;
	width: 48px;
	padding: 10px 6px;
	border-radius: 14px;
	cursor: pointer;
	backdrop-filter: blur(10px);
	font-size: 11px;
	font-weight: 600;
	transition: transform 0.15s;
}
.wcm-action-btn:active { transform: scale(0.95); }
.wcm-like-btn.is-liked { color: var(--wcm-accent); }
.wcm-like-btn.is-liked .wcm-icon-heart path { fill: var(--wcm-accent); stroke: var(--wcm-accent); }

/* On-video shop bar */
.wcm-player__shop-bar {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 16px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(12px);
}
.wcm-shop-bar__product {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
.wcm-shop-bar__img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}
.wcm-shop-bar__name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #111;
}
.wcm-shop-bar__price {
	display: block;
	font-size: 13px;
	color: var(--wcm-accent);
	font-weight: 600;
}
.wcm-shop-bar__actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: stretch;
}
.wcm-shop-bar__variation {
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 8px;
	border: 1px solid #ddd;
	max-width: 120px;
}
.wcm-shop-bar__atc {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(135deg, var(--wcm-accent), var(--wcm-accent-2));
	color: #fff;
	border: 0;
	border-radius: 12px;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.2s, transform 0.15s;
}
.wcm-shop-bar__atc.is-loading { opacity: 0.7; pointer-events: none; }
.wcm-shop-bar__atc.is-success { background: #10b981; }

.wcm-toast {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	z-index: 20;
	background: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 14px 22px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.25s, transform 0.25s;
	pointer-events: none;
}
.wcm-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.wcm-player__quiz {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 100px;
	z-index: 6;
	background: rgba(255, 255, 255, 0.97);
	border-radius: 14px;
	padding: 16px;
	box-shadow: var(--wcm-shadow);
}
.wcm-quiz__option {
	display: block;
	width: 100%;
	margin: 8px 0 0;
	padding: 12px;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-weight: 500;
	text-align: left;
}
.wcm-quiz__option:hover {
	border-color: var(--wcm-accent);
	background: #fff5f8;
}

/* Drawer */
.wcm-player__drawer {
	background: #fff;
	border-radius: 20px 20px 0 0;
	max-height: 42%;
	display: flex;
	flex-direction: column;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}
.wcm-player__drawer-handle {
	padding: 10px;
	text-align: center;
}
.wcm-player__drawer-handle span {
	display: inline-block;
	width: 44px;
	height: 4px;
	background: #ddd;
	border-radius: 4px;
}
.wcm-drawer__heading {
	margin: 0 16px 8px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #888;
}
.wcm-player__drawer-products {
	overflow-x: auto;
	display: flex;
	gap: 12px;
	padding: 0 14px 18px;
	scroll-snap-type: x mandatory;
}
.wcm-product-card {
	flex: 0 0 88%;
	max-width: 340px;
	scroll-snap-align: start;
	border: 1px solid #eee;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	gap: 12px;
	padding: 12px;
	background: #fafafa;
}
.wcm-product-card.is-primary {
	border-color: var(--wcm-accent);
	background: linear-gradient(135deg, #fff8fa, #fff);
}
.wcm-product-card.is-highlighted {
	box-shadow: 0 0 0 2px var(--wcm-accent);
}
.wcm-product-card img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	border-radius: 10px;
}
.wcm-product-card__body { flex: 1; min-width: 0; }
.wcm-product-card__body h4 { margin: 0 0 4px; font-size: 14px; }
.wcm-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	background: var(--wcm-accent);
	color: #fff;
	padding: 2px 8px;
	border-radius: 6px;
	margin-bottom: 4px;
}
.wcm-product-card__reviews blockquote {
	font-size: 11px;
	margin: 4px 0;
	color: #666;
}
.wcm-variation-select { width: 100%; margin: 6px 0; font-size: 12px; }
.wcm-btn {
	width: 100%;
	padding: 10px;
	background: #111;
	color: #fff;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
}
.wcm-btn:hover { opacity: 0.9; }

@media (min-width: 768px) {
	.wcm-carousel__slide { flex: 0 0 30%; }
	.wcm-player {
		margin-top: 24px;
		margin-bottom: 24px;
		height: calc(100% - 48px);
		border-radius: 20px;
		overflow: hidden;
	}
}
