/* Homepage sections — DJI / Insta360 inspired */

.coco-homepage {
	display: block;
}

.coco-front-page .coco-front-page__content {
	padding: var(--space-xl) 0;
}

/* ── Hero carousel (DJI-style) ── */
.coco-hp-hero {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.coco-hp-hero__swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

@media (min-width: 768px) {
	.coco-hp-hero__swiper,
	.coco-hp-hero__slide,
	.coco-hp-hero__media {
		height: 640px;
	}
}

.coco-hp-hero__slide {
	position: relative;
	height: auto;
}

.coco-hp-hero__media {
	position: relative;
	width: 100%;
	height: 640px;
	overflow: hidden;
	background: #0f172a;
}

.coco-hp-hero__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.coco-hp-hero__image--mobile {
	display: none;
}

.coco-hp-hero__placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #111827 100%);
}

.coco-hp-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 100%);
}

.coco-hp-hero__content {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	bottom: auto;
	z-index: 2;
	color: #fff;
	transform: translateY(-50%);
	pointer-events: none;
}

.coco-hp-hero__copy {
	max-width: 560px;
	pointer-events: auto;
}

.coco-hp-hero__content--left-vcenter .coco-hp-hero__copy {
	text-align: left;
}

.coco-hp-hero__content--left-text-center .coco-hp-hero__copy {
	text-align: center;
}

.coco-hp-hero__content--center-vcenter .coco-hp-hero__copy {
	margin-inline: auto;
	text-align: center;
}

.coco-hp-hero__content--right-vcenter .coco-hp-hero__copy,
.coco-hp-hero__content--right-text-center .coco-hp-hero__copy {
	margin-left: auto;
}

.coco-hp-hero__content--right-vcenter .coco-hp-hero__copy {
	text-align: right;
}

.coco-hp-hero__content--right-text-center .coco-hp-hero__copy {
	text-align: center;
}

.coco-hp-hero__kicker {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
}

.coco-hp-hero__kicker-svg,
.coco-hp-hero__title-svg {
	display: block;
	width: auto;
	max-width: min(100%, 420px);
	height: auto;
	max-height: clamp(28px, 6vw, 72px);
	object-fit: contain;
	object-position: left center;
}

.coco-hp-hero__content--left-text-center .coco-hp-hero__kicker-svg,
.coco-hp-hero__content--left-text-center .coco-hp-hero__title-svg,
.coco-hp-hero__content--center-vcenter .coco-hp-hero__kicker-svg,
.coco-hp-hero__content--center-vcenter .coco-hp-hero__title-svg,
.coco-hp-hero__content--right-text-center .coco-hp-hero__kicker-svg,
.coco-hp-hero__content--right-text-center .coco-hp-hero__title-svg {
	margin-left: auto;
	margin-right: auto;
	object-position: center center;
}

.coco-hp-hero__content--right-vcenter .coco-hp-hero__kicker-svg,
.coco-hp-hero__content--right-vcenter .coco-hp-hero__title-svg {
	margin-left: auto;
	margin-right: 0;
	object-position: right center;
}

.coco-hp-hero__kicker-svg {
	max-height: clamp(18px, 3vw, 32px);
	margin: 0 0 10px;
}

.coco-hp-hero__title-svg {
	margin: 0 0 var(--space-sm);
}

.coco-hp-hero__title {
	margin: 0 0 var(--space-sm);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.12;
	color: #fff;
}

.coco-hp-hero__desc {
	margin: 0 0 var(--space-md);
	max-width: 520px;
	font-size: 18px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.coco-hp-hero__content--left-text-center .coco-hp-hero__desc,
.coco-hp-hero__content--center-vcenter .coco-hp-hero__desc,
.coco-hp-hero__content--right-text-center .coco-hp-hero__desc {
	margin-left: auto;
	margin-right: auto;
}

.coco-hp-hero__content--right-vcenter .coco-hp-hero__desc {
	margin-left: auto;
	margin-right: 0;
}

.coco-hp-hero__btn {
	display: inline-flex;
	min-height: 44px;
	padding-inline: 24px;
	font-size: 15px;
	background: #fff;
	color: var(--text-main);
}

.coco-hp-hero[data-tone="dark"] .coco-hp-hero__content {
	color: var(--text-main);
}

.coco-hp-hero[data-tone="dark"] .coco-hp-hero__overlay {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.coco-hp-hero[data-tone="dark"] .coco-hp-hero__kicker {
	color: rgba(17, 24, 39, 0.72);
}

.coco-hp-hero[data-tone="dark"] .coco-hp-hero__title {
	color: var(--text-main);
}

.coco-hp-hero[data-tone="dark"] .coco-hp-hero__desc {
	color: rgba(17, 24, 39, 0.78);
}

.coco-hp-hero[data-tone="dark"] .coco-hp-hero__btn {
	background: var(--text-main);
	color: #fff;
}

.coco-hp-hero[data-tone="dark"] .coco-hp-hero__nav {
	background: rgba(17, 24, 39, 0.08);
	color: var(--text-main);
}

.coco-hp-hero__content--left-text-center .coco-hp-hero__btn,
.coco-hp-hero__content--center-vcenter .coco-hp-hero__btn,
.coco-hp-hero__content--right-text-center .coco-hp-hero__btn {
	margin-left: auto;
	margin-right: auto;
}

.coco-hp-hero__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	opacity: 0;
	transform: translateY(-50%);
	cursor: pointer;
	pointer-events: auto;
	transition: opacity 0.28s ease, background 0.2s ease, transform 0.2s ease;
}

.coco-hp-hero__nav svg {
	display: block;
	width: 24px;
	height: 24px;
}

.coco-hp-hero__nav--prev {
	left: 5.5%;
}

.coco-hp-hero__nav--next {
	right: 5.5%;
}

.coco-hp-hero:hover .coco-hp-hero__nav,
.coco-hp-hero__swiper:focus-within .coco-hp-hero__nav {
	opacity: 0.55;
}

.coco-hp-hero__nav:hover {
	opacity: 0.95;
	background: rgba(255, 255, 255, 0.24);
}

.coco-hp-hero__nav.swiper-button-disabled {
	opacity: 0 !important;
	pointer-events: none;
}

.coco-hp-hero__progress {
	position: absolute;
	left: 50%;
	bottom: 40px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	max-width: 80vw;
	opacity: 0.42;
	transform: translateX(-50%);
	pointer-events: auto;
	transition: opacity 0.28s ease;
}

.coco-hp-hero:hover .coco-hp-hero__progress,
.coco-hp-hero__swiper:focus-within .coco-hp-hero__progress {
	opacity: 0.72;
}

.coco-hp-hero__progress-segment {
	appearance: none;
	flex: 0 0 18px;
	width: 18px;
	height: 3px;
	padding: 0;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.28);
	overflow: hidden;
	cursor: pointer;
	transition: width 0.12s ease, flex-basis 0.12s ease, background 0.2s ease;
}

.coco-hp-hero__progress-segment:hover {
	background: rgba(255, 255, 255, 0.42);
}

.coco-hp-hero__progress-segment.is-active {
	flex-basis: 64px;
	width: 64px;
}

.coco-hp-hero__progress-fill {
	display: block;
	height: 100%;
	width: 0;
	background: #fff;
	border-radius: inherit;
}

@media (hover: none) {
	.coco-hp-hero__nav {
		opacity: 0.45;
	}

	.coco-hp-hero__progress {
		opacity: 0.55;
	}
}

/* ── Product showcase ── */
.coco-hp-products {
	padding: 48px 0 56px;
	background: #fff;
	overflow: hidden;
}

.coco-hp-products__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.coco-hp-products__title {
	margin: 0;
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #1d1d1f;
}

.coco-hp-products__more {
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 500;
	color: #6e6e73;
	text-decoration: none;
	white-space: nowrap;
}

.coco-hp-products__more:hover {
	color: var(--theme-color);
}

.coco-hp-products__frame {
	position: relative;
	overflow: visible;
}

.coco-hp-products__swiper {
	width: 100%;
	overflow: visible;
}

.coco-hp-products__swiper .swiper-slide.coco-hp-products__slide {
	width: clamp(240px, 24vw, 300px);
	height: auto;
	flex-shrink: 0;
	box-sizing: border-box;
}

.coco-hp-products__arrow {
	position: absolute;
	top: 42%;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: rgba(29, 29, 31, 0.72);
	color: #fff;
	backdrop-filter: blur(6px);
	transform: translateY(-50%);
	cursor: pointer;
	transition: background 0.15s ease;
	pointer-events: auto;
}

.coco-hp-products__arrow--prev {
	left: -8px;
}

.coco-hp-products__arrow--next {
	right: -8px;
}

.coco-hp-products__arrow:hover {
	background: rgba(29, 29, 31, 0.9);
}

.coco-hp-products__pager {
	display: none;
}

.coco-hp-product {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100%;
	padding: 20px 20px 18px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.coco-hp-product__media-link {
	display: block;
	text-decoration: none;
}

.coco-hp-product__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	padding: 8px 0 16px;
	background: transparent;
}

.coco-hp-product__media img {
	width: auto;
	max-width: 100%;
	max-height: 180px;
	height: auto;
	object-fit: contain;
}

.coco-hp-product__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0;
	padding: 0;
}

.coco-hp-product__badge {
	display: inline-flex;
	align-self: flex-start;
	margin-bottom: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e5484d;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
}

.coco-hp-product__name {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: #1d1d1f;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.coco-hp-product__name:hover {
	color: #1d1d1f;
}

.coco-hp-product__tagline {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 400;
	color: #6e6e73;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.coco-hp-product__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 0;
}

.coco-hp-product__price {
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: #1d1d1f;
}

.coco-hp-product__price .woocommerce-Price-amount {
	font-weight: 700;
	color: inherit;
}

.coco-hp-product__price del {
	display: block;
	margin-top: 2px;
	color: #9ca3af;
	font-size: 12px;
	font-weight: 400;
}

.coco-hp-product__from {
	margin-left: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #6e6e73;
}

.coco-hp-product__buy {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 18px;
	border-radius: 999px;
	background: #1d1d1f;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease;
}

.coco-hp-product__buy:hover {
	background: #000;
	color: #fff;
}

/* ── Interest cards (Shop by interest) ── */
.coco-hp-interests {
	padding: 48px 0 56px;
	background: #f7f7f8;
	overflow: hidden;
}

.coco-hp-interests__header {
	margin-bottom: 24px;
}

.coco-hp-interests__title {
	margin: 0;
	font-size: clamp(28px, 3.6vw, 42px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: #1d1d1f;
}

.coco-hp-interests__track {
	position: relative;
	padding: 0 max(16px, calc((100% - min(1200px, 100% - var(--space-lg))) / 2 + 16px));
}

.coco-hp-interests__swiper {
	overflow: visible;
}

.coco-hp-interests__slide {
	width: 200px;
	height: auto;
}

.coco-hp-interests__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	border: none;
	border-radius: 50%;
	background: rgba(29, 29, 31, 0.72);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.coco-hp-interests__nav:hover:not(.swiper-button-disabled) {
	background: rgba(29, 29, 31, 0.9);
	transform: scale(1.05);
}

.coco-hp-interests__nav--prev {
	left: max(4px, calc((100% - min(1200px, 100% - var(--space-lg))) / 2));
}

.coco-hp-interests__nav--next {
	right: max(4px, calc((100% - min(1200px, 100% - var(--space-lg))) / 2));
}

.coco-hp-interests__nav.swiper-button-disabled {
	opacity: 0;
	pointer-events: none;
}

.coco-hp-interest-card {
	position: relative;
	display: block;
	width: 100%;
	min-height: 280px;
	border-radius: 20px;
	overflow: hidden;
	text-decoration: none;
	color: #fff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coco-hp-interest-card:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.coco-hp-interest-card--plain {
	background: linear-gradient(145deg, #475569, #1e293b);
}

.coco-hp-interest-card__bg {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	transition: transform 0.45s ease;
}

.coco-hp-interest-card:hover .coco-hp-interest-card__bg {
	transform: scale(1.08);
}

.coco-hp-interest-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.55) 100%);
	transition: background 0.3s ease;
}

.coco-hp-interest-card:hover .coco-hp-interest-card__overlay {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.72) 100%);
}

.coco-hp-interest-card__content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	padding: 18px 16px;
}

.coco-hp-interest-card__label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
	transition: transform 0.3s ease;
}

.coco-hp-interest-card:hover .coco-hp-interest-card__label {
	transform: translateX(2px);
}

.coco-hp-interest-card__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
	transform: translateX(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.coco-hp-interest-card:hover .coco-hp-interest-card__arrow {
	opacity: 1;
	transform: translateX(4px);
}

@media (max-width: 767px) {
	.coco-hp-hero__swiper,
	.coco-hp-hero__swiper .swiper-wrapper,
	.coco-hp-hero__slide {
		height: auto !important;
	}

	.coco-hp-hero__media {
		height: auto;
		aspect-ratio: var(--hero-aspect-mobile, var(--hero-aspect-pc, 4 / 5));
	}

	.coco-hp-hero__image--pc {
		display: none;
	}

	.coco-hp-hero__image--mobile {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center center;
	}

	.coco-hp-hero__placeholder {
		position: relative;
		inset: auto;
		width: 100%;
		aspect-ratio: var(--hero-aspect-mobile, var(--hero-aspect-pc, 4 / 5));
		height: auto;
	}

	.coco-hp-hero__content {
		top: clamp(56px, 16vw, 88px);
		bottom: auto;
		transform: none;
	}

	.coco-hp-hero__title {
		font-size: clamp(20px, 6.4vw, 28px);
		line-height: 1.2;
	}

	.coco-hp-hero__desc {
		font-size: clamp(13px, 3.8vw, 16px);
		margin-bottom: var(--space-sm);
	}

	.coco-hp-hero__kicker {
		font-size: 11px;
		margin-bottom: 8px;
	}

	.coco-hp-hero__btn {
		min-height: 36px;
		padding-inline: 18px;
		font-size: 13px;
	}

	.coco-hp-hero__content .coco-hp-hero__copy {
		margin-inline: auto;
		max-width: 100%;
		text-align: center;
	}

	.coco-hp-hero__content--left-vcenter .coco-hp-hero__copy,
	.coco-hp-hero__content--left-text-center .coco-hp-hero__copy,
	.coco-hp-hero__content--center-vcenter .coco-hp-hero__copy,
	.coco-hp-hero__content--right-vcenter .coco-hp-hero__copy,
	.coco-hp-hero__content--right-text-center .coco-hp-hero__copy {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.coco-hp-hero__kicker-svg,
	.coco-hp-hero__title-svg {
		margin-left: auto;
		margin-right: auto;
		object-position: center center;
	}

	.coco-hp-hero__desc {
		margin-left: auto;
		margin-right: auto;
	}

	.coco-hp-hero__btn {
		margin-left: auto;
		margin-right: auto;
	}

	.coco-hp-interests__nav {
		display: none;
	}

	.coco-hp-product {
		padding: 20px 18px 18px;
		border-radius: 20px;
	}

	.coco-hp-product__buy {
		min-height: 36px;
		padding: 0 18px;
		font-size: 13px;
	}

	.coco-hp-interests__slide {
		width: 168px;
	}

	.coco-hp-interest-card {
		min-height: 240px;
		border-radius: 16px;
	}
}

@media (min-width: 768px) {
	.coco-hp-hero__content.coco-container {
		max-width: 1200px;
		margin: 0 auto;
		padding-left: var(--space-md);
		padding-right: var(--space-md);
	}
}
