/**
 * DeeToo category collection pages.
 *
 * Hero band, type filters, grouped product rows, promo pair and the closing
 * reason-to-buy row. Palette and easing come from the shared tokens.
 */

.dtc {
	--dt-orange: #f4511e;
	--dt-orange-dark: #d93d0c;
	--dt-ink: #16181d;
	--dt-muted: #6b7280;
	--dt-line: #e6e7eb;
	--dt-soft: #f7f8fa;
	--dt-dark: #14161a;
	--dtc-ease: cubic-bezier(.22, 1, .36, 1);
	color: var(--dt-ink);
	/* The theme wrapper is full-bleed on these pages, so the gutter is ours. */
	padding: 14px clamp(14px, 2.2vw, 34px) 34px;
	max-width: 2560px; margin: 0 auto;
}
.dtc * { box-sizing: border-box; }
.dtc > section,
.dtc > nav,
.dtc .dtc-hero { margin-bottom: 22px; }

/* ---------- Hero ---------- */

.dtc-hero {
	position: relative; overflow: hidden;
	border-radius: 14px;
	padding: 30px 34px 26px;
	background: linear-gradient(105deg, #eef1f6 0%, #e6eaf1 46%, #dfe4ec 100%);
}
/* When the client uploads artwork it sits on the right, behind the copy. */
.dtc-hero--art::after {
	content: ""; position: absolute; inset: 0 0 0 38%;
	background-image: var(--dtc-art); background-size: cover; background-position: center right;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
	        mask-image: linear-gradient(90deg, transparent, #000 22%);
}
.dtc-hero__in { position: relative; z-index: 2; max-width: 62%; }

.dtc-hero__eyebrow {
	margin: 0 0 4px; font-size: 12.5px; font-weight: 800;
	letter-spacing: .1em; color: var(--dt-orange); text-transform: uppercase;
}
.dtc-hero__h1 {
	margin: 0; font-size: clamp(28px, 3.6vw, 50px); line-height: 1.06;
	font-weight: 800; letter-spacing: -1px; color: var(--dt-ink);
}
.dtc-hero__h1 span { color: var(--dt-orange); }
.dtc-hero__sub {
	margin: 8px 0 0; font-size: clamp(14px, 1.35vw, 19px);
	font-weight: 600; color: #333941;
}

/* One line: six or seven promises should read as a row, not five and a
   stranded sixth. The columns share the space so they shrink together. */
.dtc-hero__feats {
	list-style: none; margin: 20px 0 0; padding: 0;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	gap: 22px 18px; max-width: 660px;
}
.dtc-hero__feats li {
	display: flex; flex-direction: column; align-items: center;
	gap: 6px; min-width: 0; text-align: center;
}
.dtc-hero__fi { color: var(--dt-ink); line-height: 0; }
.dtc-hero__fl { font-size: 11px; font-weight: 700; line-height: 1.25; color: #2b3038; }

.dtc-hero__script {
	position: absolute; z-index: 3; right: 30px; top: 50%; transform: translateY(-50%);
	margin: 0; text-align: center;
	font-family: "Segoe Script", "Brush Script MT", cursive;
	font-size: clamp(18px, 2.1vw, 30px); line-height: 1.18;
	color: var(--dt-orange); text-shadow: 0 1px 10px rgba(255,255,255,.55);
}

/* ---------- Type filters ---------- */

.dtc-types__head { margin-bottom: 12px; }
.dtc-types__head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.dtc-types__head p { margin: 3px 0 0; font-size: 13px; color: var(--dt-orange); font-weight: 600; }

.dtc-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.dtc-pill {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 18px; border-radius: 9px;
	border: 1px solid var(--dt-line); background: #fff;
	font-size: 13px; font-weight: 600; color: #2b3038; text-decoration: none;
	white-space: nowrap;
	transition: border-color .3s var(--dtc-ease), color .3s var(--dtc-ease),
	            background .3s var(--dtc-ease);
}
.dtc-pill:hover { border-color: var(--dt-orange); color: var(--dt-orange); }
.dtc-pill.is-active {
	border-color: var(--dt-orange); color: var(--dt-orange);
	background: #fff3ee; font-weight: 700;
}

/* ---------- Finder + assurance ---------- */

/* Find Your Phone */
.dtc-find {
	display: grid; align-items: end;
	grid-template-columns: minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
	gap: 16px;
	background: var(--dt-soft); border: 1px solid var(--dt-line);
	border-radius: 14px; padding: 16px 18px;
}
.dtc-find__lead { display: flex; align-items: center; gap: 12px; }
.dtc-find__ico {
	flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center;
	border-radius: 11px; line-height: 0; background: var(--dt-orange); color: #fff;
}
.dtc-find__lead strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.3px; }
.dtc-find__lead em { display: block; font-style: normal; font-size: 12px; color: var(--dt-muted); margin-top: 2px; }

.dtc-find__f { display: block; min-width: 0; }
.dtc-find__f > span { display: block; font-size: 11.5px; color: var(--dt-muted); margin-bottom: 5px; }
/* The theme puts a fixed height on select, which crops the label. Reset it and
   draw our own arrow, since appearance:none takes the native one away. */
.dtc-find__f select,
.dtc-sort select {
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	height: auto; min-height: 0; line-height: 1.3;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}
.dtc-find__f select {
	width: 100%; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--dt-ink);
	padding: 12px 32px 12px 12px; border: 1px solid var(--dt-line); border-radius: 9px;
	background-color: #fff; cursor: pointer;
}
.dtc-find__f select:disabled { color: var(--dt-muted); cursor: not-allowed; }

.dtc-find__go {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: inherit; font-size: 13.5px; font-weight: 700; color: #fff;
	background: var(--dt-orange); border: none; border-radius: 9px;
	padding: 12px 22px; cursor: pointer; white-space: nowrap;
	transition: background .3s var(--dtc-ease);
}
.dtc-find__go:hover { background: var(--dt-orange-dark); }

.dtc-assure {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	gap: 1px; background: #ffe2d5;
	border: 1px solid #ffe2d5; border-radius: 12px; overflow: hidden;
}
.dtc-assure li { display: flex; align-items: center; gap: 11px; padding: 15px 18px; background: #fff7f3; }
.dtc-assure__i { color: var(--dt-orange); flex: 0 0 auto; line-height: 0; }
.dtc-assure strong { display: block; font-size: 13px; font-weight: 700; }
.dtc-assure em { display: block; font-style: normal; font-size: 11.5px; color: var(--dt-muted); margin-top: 1px; }

/* ---------- Product rows ---------- */

.dtc-row { margin-bottom: 26px; }
.dtc-row__head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 16px; margin-bottom: 12px;
}
.dtc-row__head h2 {
	margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px;
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.dtc-row__head h2 em {
	font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--dt-orange);
}

.dtc-grid { display: grid; gap: 12px; }
.dtc-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Flat grid ---------- */

.dtc-flat__bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap; margin-bottom: 12px; min-width: 0;
}
.dtc-sort select { max-width: 100%; }
.dtc-flat__count { margin: 0; font-size: 13px; font-weight: 700; color: var(--dt-ink); }
.dtc-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dt-muted); }
.dtc-sort select {
	font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--dt-ink);
	padding: 10px 32px 10px 12px; border: 1px solid var(--dt-line); border-radius: 9px;
	background-color: #fff; cursor: pointer;
}

/* ---------- Promos ---------- */

.dtc-promos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dtc-promo {
	position: relative; overflow: hidden; border-radius: 12px;
	padding: 22px 24px; min-height: 132px;
	display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.dtc-promo--dark { background: linear-gradient(100deg, #101215 0%, #1c1f25 55%, #2a1a12 100%); color: #fff; }
.dtc-promo--soft { background: linear-gradient(100deg, #ffd9c4 0%, #ffcdb2 100%); color: var(--dt-ink); }
.dtc-promo[style*="--dtc-art"]::after {
	content: ""; position: absolute; inset: 0 0 0 34%;
	background-image: var(--dtc-art); background-size: cover; background-position: center;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 26%);
	        mask-image: linear-gradient(90deg, transparent, #000 26%);
}
.dtc-promo > * { position: relative; z-index: 2; }

.dtc-promo__txt h3 { margin: 0 0 12px; font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.4px; }
.dtc-promo__txt h3 span { display: block; color: var(--dt-orange); }
.dtc-promo--soft .dtc-promo__txt h3 span { color: #b3350c; }

.dtc-promo__btn {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--dt-orange); color: #fff; text-decoration: none;
	font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 999px;
	transition: background .35s var(--dtc-ease);
}
.dtc-promo__btn:hover { background: var(--dt-orange-dark); color: #fff; }

.dtc-promo__chips { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dtc-promo__chips li {
	display: flex; align-items: center; gap: 8px;
	font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.dtc-promo__chips span { line-height: 0; color: var(--dt-orange); }
.dtc-promo--soft .dtc-promo__chips span { color: #b3350c; }

/* ---------- Why choose ---------- */

.dtc-why__h { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.dtc-why ul {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	/* One row whatever the count — these lists run 5, 6 or 7 long. */
	grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
	gap: 1px; background: var(--dt-line);
	border: 1px solid var(--dt-line); border-radius: 12px; overflow: hidden;
}
.dtc-why li { display: flex; align-items: center; gap: 11px; padding: 16px 14px; background: #fff; min-width: 0; }
.dtc-why__i {
	flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
	border-radius: 10px; line-height: 0;
	background: #fff2ec; border: 1px solid #ffddcd; color: var(--dt-orange);
	transition: background .3s var(--dtc-ease), color .3s var(--dtc-ease), border-color .3s var(--dtc-ease);
}
.dtc-why li:hover .dtc-why__i { background: var(--dt-orange); border-color: var(--dt-orange); color: #fff; }
.dtc-why strong { display: block; font-size: 12.5px; font-weight: 700; color: var(--dt-orange); line-height: 1.3; }
.dtc-why em { display: block; font-style: normal; font-size: 11px; color: var(--dt-muted); margin-top: 2px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
	.dtc-hero__in { max-width: 100%; }
	.dtc-hero--art::after { opacity: .3; }
	.dtc-hero__script { display: none; }
}
@media (max-width: 900px) {
	.dtc-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dtc-why ul { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dtc-assure { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.dtc-find { grid-template-columns: 1fr 1fr; }
	.dtc-find__lead { grid-column: 1 / -1; }
	.dtc-find__go { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.dtc-hero { padding: 22px 20px 20px; }
	.dtc-hero__feats { gap: 16px 10px; max-width: none; }
	.dtc-hero__fl { font-size: 10px; }
	.dtc-promos { grid-template-columns: 1fr; }
	.dtc-promo { flex-direction: column; align-items: flex-start; }
	.dtc-promo__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dtc-why ul { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	/* Too narrow for one line at phone size; wrap to a tidy grid instead. */
	.dtc-hero__feats { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.dtc-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.dtc-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
	.dtc-pills::-webkit-scrollbar { display: none; }
	.dtc-pill { flex: 0 0 auto; }
	.dtc-assure { grid-auto-flow: row; grid-template-columns: 1fr; }
	.dtc-why ul { grid-auto-flow: row; grid-template-columns: 1fr; }
	.dtc-find { grid-template-columns: 1fr; }
	.dtc-flat__bar { gap: 10px; }
}

/* ---------- Mobile polish ---------- */

/* The theme sets its own heading colour, which landed near-black on the dark
   promo panel and all but erased the first line. */
.dtc-promo--dark .dtc-promo__txt h3 { color: #fff; }
.dtc-promo--soft .dtc-promo__txt h3 { color: var(--dt-ink); }

/* A row holding a single product should present that product, not one card
   marooned beside an empty half. */
.dtc-grid:has(> :only-child) {
	grid-template-columns: minmax(0, 240px);
	justify-content: center;
}

/* Four promises read better two-up than three-plus-one. */
.dtc-hero__feats:has(> :nth-child(4):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
	.dtc-hero__feats:has(> :nth-child(4):last-child) {
		grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Two up rather than a five-deep stack. The odd one out runs full width so
	   the row never ends on a gap. */
	.dtc-assure { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dtc-assure li { padding: 13px 12px; gap: 9px; }
	.dtc-assure li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.dtc-assure strong { font-size: 12px; }
	.dtc-assure em { font-size: 10.5px; }

	/* These carry long subtitles, so the icon goes above centred text instead of
	   squeezing the words into half a cell. */
	.dtc-why ul { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dtc-why li { flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 15px 10px; }
	/* An odd count would otherwise end the grid on an empty cell showing the
	   container's own background. */
	.dtc-why li:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.dtc-why strong { font-size: 12px; }
	.dtc-why em { font-size: 10.5px; }

	.dtc-promo__txt h3 { font-size: 19px; }
	.dtc-promo { padding: 18px 18px 20px; gap: 14px; }
}
