/* ==========================================================================
   Homepage sections and shared carousel / section components
   ========================================================================== */

/* Sections -------------------------------------------------------------- */
.section { padding: 72px 0; }
.section--grey { background: var(--c-grey); }
.section--flush { padding: 0; }
.section__head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section__title { flex: 1; min-width: 0; margin: 0; font-size: clamp(26px, 3vw, 36px); font-weight: 650; letter-spacing: -0.025em; }
.section__link { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .section { padding: 48px 0; } }

/* Carousels ------------------------------------------------------------- */
.carousel__nav { display: flex; gap: 8px; }
.carousel__nav[hidden] { display: none; }
@media (max-width: 760px) {
	.carousel__nav { display: none; } /* touch scrolling replaces the arrows */
	.section__head { gap: 10px; }
}
.carousel__btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border: 1px solid var(--c-line); border-radius: 50%;
	background: var(--c-white); color: var(--c-navy);
}
.carousel__btn:hover:not(:disabled) { background: var(--c-blue); border-color: var(--c-blue); color: #fff; }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }

.carousel__track,
.woocommerce ul.products.carousel__track {
	--per: 4;
	--cgap: 16px;
	display: flex; gap: var(--cgap);
	margin: 0; padding: 4px 2px 12px; list-style: none;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track::before, .carousel__track::after { display: none !important; }
.carousel__track > li,
.woocommerce ul.products.carousel__track > li.product {
	flex: 0 0 calc((100% - (var(--per) - 1) * var(--cgap)) / var(--per));
	width: auto; max-width: none; margin: 0; float: none; scroll-snap-align: start;
}
@media (max-width: 1100px) { .carousel__track, .woocommerce ul.products.carousel__track { --per: 3; } }
@media (max-width: 760px)  { .carousel__track, .woocommerce ul.products.carousel__track { --per: 2.2; --cgap: 12px; } }

.collection-track { --per: 6; }
.section--tiles .collection-track { --per: 6; }
@media (max-width: 1100px) { .collection-track, .section--tiles .collection-track { --per: 4; } }
@media (max-width: 760px)  { .collection-track, .section--tiles .collection-track { --per: 2.3; } }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; background: var(--c-navy); overflow: hidden; }
.hero__track { position: relative; aspect-ratio: 1600 / 560; min-height: 300px; max-height: 620px; width: 100%; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; display: flex; align-items: center; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__slide--plain { background: linear-gradient(120deg, var(--c-navy), var(--c-blue)); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 20, 60, 0.72), rgba(0, 20, 60, 0.12) 72%); pointer-events: none; }
.hero__slide--plain::after { display: none; }
.hero__content { position: relative; z-index: 2; }
.hero__box { max-width: 520px; color: #fff; }
.hero__eyebrow { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 3px; background: var(--c-red); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.hero__title { margin-bottom: 10px; color: #fff; font-size: clamp(28px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.hero__text { margin-bottom: 20px; font-size: clamp(15px, 1.6vw, 19px); opacity: 0.95; }
.hero__controls { position: absolute; z-index: 5; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 20, 60, 0.55); }
.hero__pause { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: #fff; }
.hero__pause svg { width: 14px; height: 14px; }
.hero__icon-play { display: none; }
.hero.is-paused .hero__icon-pause { display: none; }
.hero.is-paused .hero__icon-play { display: inline; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 10px; height: 10px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; }
.hero__dot.is-active { background: #fff; }
@media (max-width: 760px) {
	.hero__track { aspect-ratio: 4 / 3; max-height: none; }
	.hero__slide::after { background: linear-gradient(0deg, rgba(0, 20, 60, 0.82), rgba(0, 20, 60, 0.28) 78%); }
	.hero__slide { align-items: flex-end; padding-bottom: 48px; }
}

/* Default hero --------------------------------------------------------- */
.hero-default { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(73, 134, 219, 0.55), transparent 60%), linear-gradient(120deg, var(--c-navy) 0%, #0a4aa8 60%, var(--c-blue) 100%); }
.hero-default::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 22px); pointer-events: none; }
.hero-default__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.hero-default__eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-default__title { margin-bottom: 14px; color: #fff; font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
.hero-default__text { max-width: 52ch; margin-bottom: 26px; font-size: clamp(15px, 1.5vw, 18px); opacity: 0.92; }
.hero-default__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-default__actions .button { padding: 14px 26px; font-size: 15px; }
.hero-default__mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hero-default__mosaic a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 30px rgba(0, 20, 60, 0.3); transition: transform 0.2s; }
.hero-default__mosaic a:hover { transform: translateY(-3px); }
.hero-default__img { display: block; aspect-ratio: 4 / 3; background: var(--c-grey); }
.hero-default__img img { width: 100%; height: 100%; object-fit: cover; }
.hero-default__img.is-product { background: #fff; }
.hero-default__img.is-product img { object-fit: contain; padding: 10px 10px 34px; }
.hero-default__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; background: linear-gradient(0deg, rgba(0, 20, 60, 0.9), rgba(0, 20, 60, 0)); color: #fff; font-weight: 800; font-size: 14px; }
@media (max-width: 991px) {
	.hero-default__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
}
@media (max-width: 520px) {
	.hero-default__mosaic { gap: 10px; }
	.hero-default__label { font-size: 12.5px; }
}

/* USP bar (sits under the menu on every page) --------------------------- */
.usp { background: var(--c-white); border-bottom: 1px solid var(--c-line); }
.usp__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 32px; margin: 0 auto; padding-top: 16px; padding-bottom: 16px; list-style: none; }
.usp__item { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.35; min-width: 0; }
.usp__item .icon { width: 22px; height: 22px; color: var(--c-navy); }
.usp__item strong { display: block; color: var(--c-navy); font-size: 13.5px; font-weight: 650; }
.usp__item strong a { color: inherit; }
.usp__item strong a:hover { color: var(--c-blue); }
.usp__item span { display: block; color: var(--c-ink-soft); }
@media (max-width: 991px) {
	.usp__list { display: flex; overflow-x: auto; gap: 28px; scroll-snap-type: x proximity; scrollbar-width: none; }
	.usp__list::-webkit-scrollbar { display: none; }
	.usp__item { flex: none; scroll-snap-align: start; }
	.usp__item span { white-space: nowrap; }
}
/* Phones: one message at a time, auto-advancing (see initUspCarousel in theme.js) */
@media (max-width: 760px) {
	.usp__list { gap: 0; padding-left: 0; padding-right: 0; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
	.usp__item { flex: 0 0 100%; justify-content: center; padding: 0 16px; scroll-snap-align: center; scroll-snap-stop: always; }
	.usp__item > div { min-width: 0; }
	.usp__item span { white-space: normal; }
}
.usp__dots { display: none; justify-content: center; gap: 6px; margin: 0; padding: 0 0 8px; list-style: none; }
.usp__dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--c-line); transition: background 0.2s, width 0.2s; }
.usp__dots li.is-active { width: 16px; border-radius: 3px; background: var(--c-blue); }
@media (max-width: 760px) { .usp__dots { display: flex; } }
@media (max-width: 760px) {
	body:not(.home) .usp { display: none; }
}

/* Collection cards ------------------------------------------------------ */
.collection-card a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-white); overflow: hidden; color: var(--c-ink); transition: box-shadow 0.15s, transform 0.15s; }
.collection-card a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.collection-card__img { display: block; aspect-ratio: 1; background: var(--c-grey); }
.collection-card__img img { width: 100%; height: 100%; object-fit: cover; }
.collection-card__img.is-product { background: #fff; }
.collection-card__img.is-product:has(img.is-white-bg),
.hero-default__img.is-product:has(img.is-white-bg) { background: var(--c-stage); }
.collection-card__img.is-product img.is-white-bg,
.hero-default__img.is-product img.is-white-bg { mix-blend-mode: multiply; }
.collection-card__img.is-product img { object-fit: contain; padding: 14px; }
.collection-card__title { padding: 14px 16px 0; font-weight: 650; color: var(--c-navy); line-height: 1.3; }
.collection-card__cta { padding: 4px 14px 14px; font-size: 13px; font-weight: 700; color: var(--c-blue); }
.section--tiles .collection-card a { position: relative; border: 0; }
.section--tiles .collection-card__img { aspect-ratio: 1 / 1.1; }
.section--tiles .collection-card__img.is-product { background: linear-gradient(160deg, #fff, var(--c-grey-2)); }
.section--tiles .collection-card__img.is-product img { padding: 18px 18px 56px; }
.section--tiles .collection-card__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(0deg, rgba(0, 20, 60, 0.85), rgba(0, 20, 60, 0)); color: #fff; font-weight: 650; }
.section--tiles .collection-card__cta { display: none; }

/* Trending -------------------------------------------------------------- */
.chips { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: none; padding: 9px 16px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-white); color: var(--c-navy); font-weight: 600; font-size: 14px; }
.chip:hover { border-color: var(--c-navy); }
.chip.is-active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.trending__panel[hidden] { display: none; }
.trending__panel .container { padding: 0; }
.trending__all { margin: 8px 0 0; text-align: center; }

/* Popular departments --------------------------------------------------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dept-card { padding: 22px; border-radius: var(--radius); background: var(--c-white); border: 1px solid var(--c-line); }
.dept-card__title { font-size: 19px; }
.dept-card__title a { color: var(--c-navy); }
.dept-card ul { margin: 0 0 14px; padding: 0; list-style: none; }
.dept-card li a { display: block; padding: 4px 0; color: var(--c-ink); font-size: 14px; }
.dept-card li a:hover { color: var(--c-blue); }
.dept-card__all { font-weight: 700; }
@media (max-width: 991px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .dept-grid { grid-template-columns: 1fr; } }

/* More from ------------------------------------------------------------- */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill-list a { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--c-grey); color: var(--c-navy); font-weight: 700; }
.pill-list a:hover { background: var(--c-navy); color: #fff; }
