@charset "UTF-8";
/**
 * layout-apparel.css — Prism preset "apparel" (LIGHT / Northline).
 *
 * Per-preset homepage-body skin for layouts/apparel.php. ENQUEUED ONLY when
 * the active preset's layout slug is `apparel` (see inc/preset-resolver.php →
 * tct_prism_enqueue_preset()), deps ['tct-theme','tct-shop'].
 *
 * Built MOCKUP-FAITHFUL (S8 lesson). The palette is SAMPLED from Clothing.png:
 *   page  #F9F8F6 (warm off-white)   card media tile #E6E1DB (warm grey, DISTINCT
 *   from the card so product bounds + size read clearly — Sean's note), trust
 *   band #F1EEE9, newsletter band #55533C (olive), footer chrome ~#1B1B1B.
 * Olive accent + Playfair Display serif headings come from the preset tokens
 * (--tct-brand #6B6B4B / Playfair). Everything is scoped under `.tc-ap` so the
 * light palette never leaks into chrome or other presets.
 *
 * @package TitanCart_Prism
 */

/* ═══════════════════════════════════════════════════════════════════════════
   ROOT — local warm-neutral palette (sampled) + base
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap {
	--ap-bg:        #F9F8F6;
	--ap-surface:   #FFFFFF;
	--ap-surface-2: #F1EEE9;
	--ap-media:     #E6E1DB; /* product-image tile — DISTINCT from card (Sean's fix) */
	--ap-media-2:   #DCD6CE; /* media edge / placeholder */
	--ap-border:    #E6E1DA;
	--ap-border-2:  #D6CFC6;
	--ap-text:      #2A2620;
	--ap-heading:   #1C1A15;
	--ap-muted:     #8A8378;

	/* Accents track the preset tokens, with literal olive fallbacks. */
	--ap-brand:       var(--tct-brand, #6B6B4B);
	--ap-brand-hover: var(--tct-brand-hover, #565640);
	--ap-brand-soft:  #F2F2EB;

	--ap-sale:   #B23A2E;
	--ap-star:   #C99A2E;
	--ap-badge:  #1F1D18; /* solid dark badge (New / In Stock) */
	--ap-olive-band: #55533C; /* newsletter band (sampled) */

	--ap-r:    2px;
	--ap-r-sm: 2px;
	--ap-r-lg: 3px;

	--ap-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

	background: var(--ap-bg);
	color: var(--ap-text);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.tc-ap *,
.tc-ap *::before,
.tc-ap *::after { box-sizing: border-box; }
.tc-ap a { color: inherit; text-decoration: none; }
.tc-ap img { max-width: 100%; display: block; }
.tc-ap ul { list-style: none; margin: 0; padding: 0; }

.tc-ap__container {
	width: 100%;
	max-width: 1440px;   /* full 1440 design width; no gutters — full-bleed to the 1440 frame (S19) */
	margin-inline: auto;
	padding-inline: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS — squared, uppercase letter-spaced (sans, not serif)
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1;
	border-radius: var(--ap-r-sm);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.tc-ap-btn:hover { transform: translateY(-1px); }
.tc-ap-btn:active { transform: translateY(0); }

.tc-ap-btn--primary { background: var(--ap-brand); color: #fff; }
.tc-ap-btn--primary:hover { background: var(--ap-brand-hover); }

.tc-ap-btn--outline { background: transparent; color: var(--ap-heading); border-color: var(--ap-heading); }
.tc-ap-btn--outline:hover { background: var(--ap-heading); color: #fff; }

.tc-ap-btn--light { background: #fff; color: var(--ap-heading); }
.tc-ap-btn--light:hover { background: var(--ap-bg); }

/* ═══════════════════════════════════════════════════════════════════════════
   1. HERO — serif display, copy left + warm visual panel right
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap-hero {
	background:
		radial-gradient(120% 130% at 88% 12%, rgba(107,107,75,.10), transparent 55%),
		linear-gradient(180deg, #FBFAF7, var(--ap-bg));
	border-bottom: 1px solid var(--ap-border);
}
.tc-ap-hero__inner {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: 48px;
	padding-block: 72px;
}
.tc-ap-hero__copy { max-width: 540px; }
.tc-ap-hero__eyebrow {
	display: inline-block;
	margin-bottom: 18px;
	font-weight: 600;
	font-size: .72rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ap-brand);
}
.tc-ap-hero__title {
	margin: 0 0 20px;
	font-family: var(--ap-display);
	font-weight: 600;
	line-height: 1.05;
	font-size: clamp(2.6rem, 5.4vw, 4.4rem);
	color: var(--ap-heading);
	letter-spacing: -.005em;
}
.tc-ap-hero__sub {
	margin: 0 0 30px;
	color: var(--ap-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}
.tc-ap-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.tc-ap-hero__visual {
	position: relative;
	min-height: 380px;
	border-radius: var(--ap-r-lg);
	background:
		radial-gradient(circle at 50% 42%, #EFEBE5, var(--ap-media) 78%);
	border: 1px solid var(--ap-border);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.tc-ap-hero__motif {
	font-size: 11rem;
	line-height: 1;
	color: var(--ap-brand);
	opacity: .16;
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. CATEGORY TILES (REAL) — photo with bottom label bar
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap-cats { padding-block: clamp(1rem, 0.7rem + 1vw, 1.5rem); }
.tc-ap-cats__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
.tc-ap-cat {
	position: relative;
	display: block;
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-r);
	overflow: hidden;
	background: var(--ap-media);
	transition: transform .18s ease, box-shadow .2s ease;
}
.tc-ap-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -18px rgba(28,26,21,.4); }
.tc-ap-cat__media {
	display: block;
	aspect-ratio: 3 / 4;
	background-size: cover;
	background-position: center;
	background-color: var(--ap-media);
}
.tc-ap-cat__media--ph {
	display: grid;
	place-items: center;
	font-size: 2.6rem;
	color: var(--ap-media-2);
	background: var(--ap-media);
}
.tc-ap-cat__label {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	padding: 9px 10px;
	text-align: center;
	background: rgba(249,248,246,.94);
	color: var(--ap-heading);
	font-weight: 600;
	font-size: .76rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	border-radius: var(--ap-r-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. MAIN — Filter sidebar + FEATURED grid
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap-main { padding-block: clamp(1rem, 0.7rem + 1vw, 1.5rem); }
.tc-ap-main__grid {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 32px;
}

/* ── FEATURED PRODUCTS ── */
.tc-ap-featured { min-width: 0; }
.tc-ap-featured__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.tc-ap-featured__title {
	margin: 0;
	font-weight: 600;
	font-size: .92rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ap-heading);
}
.tc-ap-featured__all {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--ap-brand); font-weight: 600; font-size: .82rem;
	letter-spacing: .04em; white-space: nowrap;
}
.tc-ap-featured__all i { transition: transform .15s ease; }
.tc-ap-featured__all:hover i { transform: translateX(4px); }
.tc-ap-featured__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}
.tc-ap-featured__empty {
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	padding: 64px 24px; text-align: center;
	background: var(--ap-surface); border: 1px dashed var(--ap-border-2);
	border-radius: var(--ap-r-lg); color: var(--ap-muted);
}
.tc-ap-featured__empty i { font-size: 2.6rem; color: var(--ap-border-2); }
.tc-ap-featured__empty p { margin: 0; }
/* ── PRODUCT CARD ── */
.tc-ap-card {
	display: flex;
	flex-direction: column;
	background: var(--ap-surface);
	border: 1px solid var(--ap-border);
	border-radius: var(--ap-r);
	overflow: hidden;
	transition: border-color .18s ease, box-shadow .2s ease, transform .18s ease;
}
.tc-ap-card:hover {
	transform: translateY(-3px);
	border-color: var(--ap-border-2);
	box-shadow: 0 16px 32px -20px rgba(28,26,21,.5);
}
/* media tile — DISTINCT warm-grey background so the product image + its size read clearly */
.tc-ap-card__media {
	position: relative;
	aspect-ratio: var(--tc-img-ratio, 3 / 4);
	background: var(--ap-media);
	overflow: hidden;
}
.tc-ap-card__imglink { position: absolute; inset: 0; display: block; }
.tc-ap-card__imglink img { width: 100%; height: 100%; object-fit: cover; }
.tc-ap-card__ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	color: var(--ap-media-2); font-size: 2.4rem; background: var(--ap-media);
}
.tc-ap-card__badges { position: absolute; top: 10px; left: 10px; z-index: 2; }
.tc-ap-badge {
	display: inline-flex; align-items: center;
	padding: 4px 9px;
	font-weight: 600; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
	border-radius: var(--ap-r-sm); line-height: 1.2; color: #fff;
}
.tc-ap-badge--sale  { background: var(--ap-sale); }
.tc-ap-badge--new   { background: var(--ap-badge); }
.tc-ap-badge--stock { background: var(--ap-badge); }
.tc-ap-badge--out   { background: rgba(138,131,120,.92); }

.tc-ap-card__body {
	display: flex; flex-direction: column; gap: 7px;
	padding: 14px 14px 16px; flex: 1 1 auto;
}
.tc-ap-card__brand {
	font-family: var(--ap-display);
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ap-brand);
	margin-bottom: -2px;
}
.tc-ap-card__name {
	color: var(--ap-heading);
	font-weight: 500;
	font-size: .92rem;
	line-height: 1.35;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	transition: color .15s ease;
}
.tc-ap-card__name:hover { color: var(--ap-brand); }
.tc-ap-card__rating { display: flex; align-items: center; gap: 6px; }
.tc-ap-card__stars { display: inline-flex; gap: 1px; color: var(--ap-star); font-size: .8rem; }
.tc-ap-card__stars .bi-star { color: var(--ap-border-2); }
.tc-ap-card__rcount { color: var(--ap-muted); font-size: .74rem; }
.tc-ap-card__price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.tc-ap-card__now { font-weight: 600; font-size: 1rem; color: var(--ap-heading); }
/* sale price reads red when an original (struck) price is present (mockup) */
.tc-ap-card__price:has(.tc-ap-card__was) .tc-ap-card__now { color: var(--ap-sale); }
.tc-ap-card__was { font-size: .82rem; color: var(--ap-muted); text-decoration: line-through; }
.tc-ap-card__login { font-size: .84rem; color: var(--ap-brand); font-weight: 600; }

.tc-ap-card__foot { display: flex; align-items: stretch; gap: 8px; margin-top: 10px; }
.tc-ap-card__cart {
	flex: 1 1 auto;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 12px;
	border: 1px solid var(--ap-heading);
	border-radius: var(--ap-r-sm);
	background: transparent;
	color: var(--ap-heading);
	font-family: 'Inter', sans-serif;
	font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tc-ap-card__cart:hover { background: var(--ap-brand); border-color: var(--ap-brand); color: #fff; }
.tc-ap-card__heart {
	flex: 0 0 auto;
	display: grid; place-items: center;
	width: 38px;
	border: 1px solid var(--ap-border-2);
	border-radius: var(--ap-r-sm);
	background: transparent;
	color: var(--ap-text);
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}
.tc-ap-card__heart:hover { color: var(--ap-sale); border-color: var(--ap-sale); }
.tc-ap-card__heart.is-active,
.tc-ap-card__heart[aria-pressed="true"] { color: var(--ap-sale); border-color: var(--ap-sale); }
.tc-ap-card__heart.is-active .bi-heart::before { content: "\f415"; } /* bi-heart-fill */

/* ═══════════════════════════════════════════════════════════════════════════
   4. TRUST BAR
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap-trust__grid {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
	padding: clamp(1rem, 0.7rem + 1vw, 1.5rem) 24px;
	background: var(--ap-surface-2);
	border-block: 1px solid var(--ap-border);
}
.tc-ap-trust__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 13px; align-items: center; }
.tc-ap-trust__item i {
	grid-row: 1 / span 2;
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%;
	background: var(--ap-brand-soft); color: var(--ap-brand); font-size: 1.2rem;
}
.tc-ap-trust__t { align-self: end; font-weight: 600; color: var(--ap-heading); font-size: .9rem; }
.tc-ap-trust__d { align-self: start; color: var(--ap-muted); font-size: .8rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   5. DUAL PROMO BANNERS (warm dark panels — no countdown)
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap-promos { padding-block: clamp(1rem, 0.7rem + 1vw, 1.5rem); }
.tc-ap-promos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tc-ap-promo {
	position: relative; overflow: hidden;
	border-radius: var(--ap-r-lg);
	padding: 36px 40px; min-height: 190px;
	display: flex; align-items: center;
}
.tc-ap-promo--spring { background: linear-gradient(120deg, #4A4A36, #5E5E44); }
.tc-ap-promo--best   { background: linear-gradient(120deg, #463B30, #5A4D3E); }
.tc-ap-promo__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 76%; }
.tc-ap-promo__title {
	margin: 0; font-family: var(--ap-display); font-weight: 600;
	font-size: 1.7rem; color: #fff; line-height: 1.1;
}
.tc-ap-promo__sub { margin: 0 0 4px; color: rgba(255,255,255,.82); font-size: .95rem; }
.tc-ap-promo__art {
	position: absolute; right: -8px; bottom: -16px;
	font-size: 7.5rem; line-height: 1; color: #fff; opacity: .08; z-index: 0; pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. NEWSLETTER BAND (REAL — bound by theme.js) — olive band
   ══════════════════════════════════════════════════════════════════════════ */
.tc-ap-news { background: var(--ap-olive-band); }
.tc-ap-news__inner {
	display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
	gap: 36px; padding-block: 38px;
}
.tc-ap-news__copy { display: flex; align-items: center; gap: 16px; }
.tc-ap-news__icon {
	flex: 0 0 auto; display: grid; place-items: center;
	width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem;
}
.tc-ap-news__title {
	margin: 0 0 4px; font-family: var(--ap-display); font-weight: 600;
	font-size: 1.5rem; color: #fff;
}
.tc-ap-news__sub { margin: 0; color: rgba(255,255,255,.82); font-size: .9rem; }
.tc-ap-news__action { display: flex; flex-direction: column; gap: 8px; }
.tc-ap-news__form { display: flex; gap: 10px; }
.tc-ap-news__input {
	flex: 1 1 auto; min-width: 0; padding: 13px 16px;
	background: #fff; border: 1px solid transparent; border-radius: var(--ap-r-sm);
	color: var(--ap-heading); font: inherit; outline: none;
	transition: box-shadow .15s ease;
}
.tc-ap-news__input::placeholder { color: var(--ap-muted); }
.tc-ap-news__input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.tc-ap-news__btn { flex: 0 0 auto; }
.tc-ap-news__msg { margin: 0; min-height: 1em; font-size: .82rem; color: rgba(255,255,255,.85); }
.tc-ap-news__msg.is-success { color: #DDE8C6; }
.tc-ap-news__msg.is-error   { color: #F2C7C1; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
	.tc-ap-featured__grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
	.tc-ap-main__grid { grid-template-columns: 1fr; }
	.tc-ap-cats__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.tc-ap-featured__grid { grid-template-columns: repeat(3, 1fr); }
	.tc-ap-hero__inner { grid-template-columns: 1fr; padding-block: 52px; }
	.tc-ap-hero__visual { min-height: 240px; order: -1; }
	.tc-ap-trust__grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
	.tc-ap-promos__grid { grid-template-columns: 1fr; }
	.tc-ap-promo__copy { max-width: 100%; }
	.tc-ap-news__inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 520px) {
	.tc-ap__container { padding-inline: 0; }
	.tc-ap-cats__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.tc-ap-featured__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.tc-ap-featured__head { flex-direction: column; align-items: flex-start; gap: 6px; }
	.tc-ap-hero__cta { width: 100%; }
	.tc-ap-hero__cta .tc-ap-btn { flex: 1 1 auto; }
	.tc-ap-promo { padding: 28px; }
	.tc-ap-trust__grid { grid-template-columns: 1fr; }
	.tc-ap-news__form { flex-direction: column; }
}
