/* EW Catalogue Layouts — matches the Ethereal Wardrobe catalogue / product design */

.ewc-page,
.ewc-prod {
	--ewc-ink: #0d0d10;
	--ewc-muted: #555b6e;
	--ewc-line: #d5d9e6;
	--ewc-soft: #eceef4;
	--ewc-blue: #1b2a5c;
	--ewc-navy: #0b1330;
	--ewc-pop: #9db2ff;
	--ewc-on-muted: #b3bbd6;
	--ewc-display: "Big Shoulders Display", var(--wd-title-font, "Arial Narrow"), Impact, sans-serif;
	--ewc-body: Archivo, var(--wd-text-font, system-ui), sans-serif;
	--ewc-cols: 4;
	--ewc-cols-t: 3;
	--ewc-cols-m: 2;
	color: var(--ewc-ink);
	font-family: var(--ewc-body);
	font-size: 16px;
	line-height: 1.55;
	background: #fff;
	width: 100%;
	-webkit-font-smoothing: antialiased;
}
.ewc-page *, .ewc-prod *,
.ewc-page *::before, .ewc-prod *::before,
.ewc-page *::after, .ewc-prod *::after { box-sizing: border-box; }
.ewc-page a, .ewc-prod a { color: inherit; text-decoration: none; }
.ewc-page img, .ewc-prod img { display: block; max-width: 100%; height: auto; }
.ewc-page .ewc-wrap, .ewc-prod .ewc-wrap { max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.ewc-page h1, .ewc-page h2, .ewc-prod h1, .ewc-prod h2, .ewc-prod h4 {
	font-family: var(--ewc-display); font-weight: 800; text-transform: uppercase;
	line-height: .92; margin: 0; letter-spacing: 0; overflow-wrap: break-word;
}
.ewc-page a:focus-visible, .ewc-prod a:focus-visible, .ewc-prod button:focus-visible {
	outline: 2px solid var(--ewc-blue); outline-offset: 2px;
}

/* ---------- Breadcrumb ---------- */
.ewc-crumb { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ewc-on-muted); margin-bottom: 22px; }
.ewc-page .ewc-crumb a:hover { color: #fff; }
.ewc-prod .ewc-crumb { color: var(--ewc-muted); margin-bottom: 24px; }
.ewc-prod .ewc-crumb a { color: var(--ewc-muted); }
.ewc-prod .ewc-crumb a:hover { color: var(--ewc-blue); }

/* ---------- Category hero ---------- */
.ewc-page .ewc-hero { background: var(--ewc-navy); color: #fff; padding: 72px 0 80px; }
.ewc-page .ewc-hero h1 { font-weight: 900; font-size: clamp(52px, 7vw, 108px); line-height: .86; max-width: 1000px; color: #fff !important; }
.ewc-page .ewc-lead { font-size: 18px; color: var(--ewc-on-muted); max-width: 560px; margin: 24px 0 0; }
.ewc-page .ewc-lead p { margin: 0 0 10px; }
.ewc-page .ewc-lead--desc { margin-top: 12px; font-size: 16px; }

/* ---------- Category chips ---------- */
.ewc-page .ewc-catnav { padding: 24px 0; border-bottom: 1px solid var(--ewc-line); background: #fff; }
.ewc-page .ewc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ewc-page .ewc-chip {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
	border: 2px solid var(--ewc-line); background: #fff; color: var(--ewc-ink);
	font-family: var(--ewc-body); font-weight: 700; font-size: 13px; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .06em; transition: border-color .2s, background .2s, color .2s;
}
.ewc-page .ewc-chip:hover { border-color: var(--ewc-navy); color: var(--ewc-ink); }
.ewc-page .ewc-chip.on { background: var(--ewc-navy); border-color: var(--ewc-navy); color: #fff; }

/* ---------- Product grid ---------- */
.ewc-page .ewc-listing { padding: 8px 0 72px; }
.ewc-page .ewc-grid { padding-top: 48px; }
.ewc-page .ewc-grid, .ewc-prod .ewc-grid {
	display: grid; grid-template-columns: repeat(var(--ewc-cols), minmax(0, 1fr)); gap: 36px 20px;
}
.ewc-card { display: block; color: var(--ewc-ink); }
.ewc-card .ewc-ph { aspect-ratio: 1080 / 1330; overflow: hidden; background: #fff; position: relative; border: 1px solid var(--ewc-line); }
.ewc-card .ewc-ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ewc-card:hover .ewc-ph img { transform: scale(1.05); }
.ewc-card .ewc-ph--empty { border: 0; }
.ewc-card .ewc-ph--empty .ewc-empty { height: 100%; aspect-ratio: auto; }
.ewc-card h3 {
	margin: 14px 0 2px; font-family: var(--ewc-body); font-size: 16px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .02em; color: var(--ewc-ink); line-height: 1.3;
}
.ewc-card .ewc-card-price { font-size: 15px; font-weight: 700; color: var(--ewc-ink); margin: 2px 0 2px; }
.ewc-card .ewc-meta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ewc-muted); }
.ewc-card .ewc-flag {
	position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--ewc-navy); color: #fff;
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; line-height: 1.2;
}
.ewc-price del { color: var(--ewc-muted); font-weight: 500; margin-right: 6px; }
.ewc-price ins { text-decoration: none; }

/* "Photos coming soon" box */
.ewc-empty {
	aspect-ratio: 1080 / 1330; border: 2px dashed #aab1c8; background: var(--ewc-soft);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 24px; gap: 10px; color: var(--ewc-muted);
}
.ewc-empty svg { width: 54px; height: 66px; color: var(--ewc-blue); flex: none; }
.ewc-empty b { font-family: var(--ewc-display); font-size: 24px; font-weight: 800; text-transform: uppercase; color: var(--ewc-ink); line-height: 1; }
.ewc-empty span { font-size: 13px; }
.ewc-empty span a { text-decoration: underline; color: var(--ewc-blue); }
.ewc-page .ewc-none { padding-top: 48px; }
.ewc-page .ewc-none .ewc-empty { aspect-ratio: auto; min-height: 300px; }

.ewc-page .ewc-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.ewc-page .ewc-pagination .ewc-chip { min-width: 44px; padding: 0 12px; }
.ewc-page.is-loading .ewc-listing { opacity: .4; pointer-events: none; transition: opacity .2s; }

/* ---------- CTA band ---------- */
.ewc-page .ewc-dark { background: var(--ewc-navy); color: #fff; padding: 96px 0; }
.ewc-page .ewc-cta .ewc-wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.ewc-page .ewc-cta h2 { font-size: clamp(40px, 5vw, 72px); max-width: 760px; color: #fff !important; }
.ewc-page .ewc-cta h2 em { font-style: normal; color: #fff !important; }

/* ---------- Buttons ---------- */
.ewc-page .ewc-btn, .ewc-prod .ewc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
	border-radius: 2px; font: 700 13px/1.2 var(--ewc-body); letter-spacing: .08em; text-transform: uppercase;
	border: 2px solid var(--ewc-blue); cursor: pointer; transition: .2s; background: var(--ewc-blue); color: #fff !important;
	text-align: center; box-shadow: none;
}
.ewc-prod .ewc-btn:hover { background: var(--ewc-navy); border-color: var(--ewc-navy); }
.ewc-prod .ewc-btn--wa { background: #128c4a; border-color: #128c4a; }
.ewc-prod .ewc-btn--wa:hover { background: #0c6b38; border-color: #0c6b38; }
.ewc-page .ewc-btn--pop { background: var(--ewc-pop); border-color: var(--ewc-pop); color: var(--ewc-navy) !important; }
.ewc-page .ewc-btn--pop:hover { background: #fff; border-color: #fff; color: var(--ewc-navy) !important; }

/* ---------- Product page ---------- */
.ewc-prod { padding: 40px 0 72px; }
.ewc-prod .ewc-preview-note { margin: 0 0 16px; padding: 10px 14px; background: #fff3cd; color: #5c4400; font-size: 13px; }
.ewc-prod .ewc-pgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* Gallery */
.ewc-prod .ewc-gal { min-width: 0; }
.ewc-prod .ewc-main { border: 1px solid var(--ewc-line); background: #fff; position: relative; touch-action: pan-y; }
.ewc-prod .ewc-main > .ewc-empty { border: 0; }
.ewc-prod .ewc-slide { display: none; }
.ewc-prod .ewc-slide.is-active { display: block; }
.ewc-prod .ewc-slide > img { width: 100%; height: auto; }

.ewc-prod .ewc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 10px; }
.ewc-prod .ewc-thumb {
	display: block; position: relative; width: 100%; aspect-ratio: 1; padding: 0; margin: 0; overflow: hidden;
	border: 2px solid var(--ewc-line); border-radius: 0; background: #fff; cursor: pointer;
	min-height: 0; box-shadow: none; transition: border-color .2s;
}
.ewc-prod .ewc-thumb:hover, .ewc-prod .ewc-thumb.on { border-color: var(--ewc-navy); background: #fff; }
.ewc-prod .ewc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ewc-prod .ewc-thumb--video { background: var(--ewc-navy); }
.ewc-prod .ewc-thumb-play {
	position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
	background: rgba(11, 19, 48, .78); color: #fff; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.ewc-prod .ewc-thumb-play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }

/* Video player */
.ewc-prod .ewc-player { position: relative; width: 100%; background: #000; overflow: hidden; cursor: pointer; }
.ewc-prod .ewc-player > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ewc-prod .ewc-playbtn {
	position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
	border: 0; border-radius: 50%; background: rgba(11, 19, 48, .8); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
	transition: background .2s, color .2s, transform .2s; min-height: 0;
}
.ewc-prod .ewc-playbtn svg { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.ewc-prod .ewc-player:hover .ewc-playbtn { background: var(--ewc-pop); color: var(--ewc-navy); transform: scale(1.05); }
.ewc-prod .ewc-player .ewc-media { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; display: block; }
.ewc-prod .ewc-player.is-playing > img, .ewc-prod .ewc-player.is-playing .ewc-playbtn { visibility: hidden; }
.ewc-prod .ewc-player.is-playing { cursor: default; }

/* Info column */
.ewc-prod .ewc-info { min-width: 0; }
.ewc-prod .ewc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ewc-blue); margin-bottom: 14px; }
.ewc-prod .ewc-info h1 { font-size: clamp(40px, 4.6vw, 68px); color: var(--ewc-ink) !important; line-height: .92; }
.ewc-prod .ewc-specs { margin: 28px 0 0; padding: 0; border-top: 2px solid var(--ewc-navy); }
.ewc-prod .ewc-specs > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--ewc-line); margin: 0; }
.ewc-prod .ewc-specs dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ewc-muted); padding-top: 2px; margin: 0; }
.ewc-prod .ewc-specs dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ewc-prod .ewc-specs dd a { color: var(--ewc-ink); text-decoration: underline; }
.ewc-prod .ewc-specs dd a:hover { color: var(--ewc-blue); }
.ewc-prod .ewc-stock { font-weight: 700; }
.ewc-prod .ewc-stock--in { color: #128c4a; }
.ewc-prod .ewc-stock--out { color: #c62839; }
.ewc-prod .ewc-stock--back { color: #a86a0b; }

.ewc-prod .ewc-short { margin-top: 24px; font-size: 16px; color: var(--ewc-muted); max-width: 560px; }
.ewc-prod .ewc-short > :first-child { margin-top: 0; }
.ewc-prod .ewc-short > :last-child { margin-bottom: 0; }
.ewc-prod .ewc-short p { margin: 0 0 12px; }

.ewc-prod .ewc-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ewc-prod .ewc-small { font-size: 14px; color: var(--ewc-muted); margin: 20px 0 0; max-width: 480px; }

/* Description */
.ewc-prod .ewc-desc { margin-top: 72px; padding-top: 40px; border-top: 2px solid var(--ewc-navy); }
.ewc-prod .ewc-desc h4 { font-size: clamp(32px, 3.4vw, 48px); color: var(--ewc-ink) !important; margin-bottom: 20px; }
.ewc-prod .ewc-desc__body { max-width: 860px; color: var(--ewc-ink); }
.ewc-prod .ewc-desc__body > :first-child { margin-top: 0; }
.ewc-prod .ewc-desc__body p { margin: 0 0 14px; }
.ewc-prod .ewc-desc__body ul, .ewc-prod .ewc-desc__body ol { margin: 0 0 14px; padding-left: 20px; }
.ewc-prod .ewc-desc__body a { text-decoration: underline; color: var(--ewc-blue); }
.ewc-prod .ewc-desc__body img { height: auto; }
.ewc-prod .ewc-desc__body table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.ewc-prod .ewc-desc__body th, .ewc-prod .ewc-desc__body td { border: 1px solid var(--ewc-line); padding: 8px 10px; text-align: left; }

/* Related */
.ewc-prod .ewc-related { margin-top: 72px; }
.ewc-prod .ewc-related h2 { font-size: clamp(36px, 4vw, 56px); color: var(--ewc-ink) !important; margin-bottom: 28px; }

/* Fallback template wrapper (no Elementor) */
.ewc-page-shell { width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ewc-page .ewc-grid, .ewc-prod .ewc-grid { grid-template-columns: repeat(var(--ewc-cols-t), minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.ewc-page .ewc-dark { padding: 64px 0; }
	.ewc-page .ewc-hero { padding: 56px 0 64px; }
	.ewc-prod .ewc-pgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ewc-prod .ewc-specs > div { grid-template-columns: 120px 1fr; }
	.ewc-prod .ewc-desc, .ewc-prod .ewc-related { margin-top: 56px; }
}
@media (max-width: 767px) {
	.ewc-page .ewc-grid, .ewc-prod .ewc-grid { grid-template-columns: repeat(var(--ewc-cols-m), minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ewc-page .ewc-wrap, .ewc-prod .ewc-wrap { padding: 0 16px; }
	.ewc-page .ewc-grid, .ewc-prod .ewc-grid { gap: 28px 12px; }
	.ewc-page .ewc-grid { padding-top: 32px; }
	.ewc-page .ewc-hero { padding: 44px 0 52px; }
	.ewc-page .ewc-hero h1 { font-size: clamp(42px, 13vw, 60px); }
	.ewc-page .ewc-lead { font-size: 16px; margin-top: 18px; }
	.ewc-page .ewc-catnav { padding: 16px 0; }
	.ewc-page .ewc-chips { gap: 6px; }
	.ewc-page .ewc-chip { min-height: 38px; padding: 0 12px; font-size: 12px; letter-spacing: .04em; }
	.ewc-page .ewc-listing { padding-bottom: 56px; }
	.ewc-card h3 { font-size: 14px; margin-top: 10px; }
	.ewc-card .ewc-meta { font-size: 11px; letter-spacing: .08em; }
	.ewc-empty { padding: 14px; gap: 6px; }
	.ewc-empty svg { width: 36px; height: 44px; }
	.ewc-empty b { font-size: 18px; }
	.ewc-empty span { font-size: 12px; }
	.ewc-page .ewc-cta .ewc-wrap { gap: 24px; }
	.ewc-page .ewc-cta .ewc-btn { width: 100%; }
	.ewc-prod { padding: 24px 0 56px; }
	.ewc-prod .ewc-crumb { margin-bottom: 16px; }
	.ewc-prod .ewc-thumbs { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 8px; margin-top: 8px; }
	.ewc-prod .ewc-specs > div { grid-template-columns: 110px 1fr; gap: 12px; }
	.ewc-prod .ewc-cta-row .ewc-btn { flex: 1 1 100%; }
	.ewc-prod .ewc-playbtn { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
	.ewc-prod .ewc-playbtn svg { width: 24px; height: 24px; }
	.ewc-prod .ewc-desc { margin-top: 44px; padding-top: 28px; }
}
@media (max-width: 360px) {
	.ewc-prod .ewc-specs > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.ewc-card .ewc-ph img, .ewc-page .ewc-chip, .ewc-btn { transition: none !important; }
}
