/*
 * DavidSW Theme - Thanksgiving / Black Friday / Cyber Monday 2026 sections
 * ([dsw_sale_strip], [dsw_sale_grid]). Loaded only on pages that carry them
 * (inc/sale/bfcm.php). The page's look comes from body.dsw-sale--{theme}:
 * vip, thanksgiving, bf, sat, sun, cm. Only the sale sections are themed; the
 * header, menus and footer stay the site's own. The discounts strip follows the
 * day's banner (dark on Black Friday and the VIP day); the watch grid is light
 * on every day, only its accent follows the day (David's choice, 2026-11-18).
 *
 * No animation here: the banner above carries the motion (css/dsw-motion.css).
 */

body.dsw-sale {
	--sale-bg: #f6f3ee;
	--sale-band: #efe8de;
	--sale-card: #ffffff;
	--sale-line: #e2d9cc;
	--sale-text: #1a1714;
	--sale-muted: #5f5448;
	--sale-accent: #9a4a12;
	--sale-tag: #ff6200;
	--sale-tag-text: #170900;
	--sale-photo: #f3f1ed;
}

/* Black Friday: near-black bands, gold type, orange tags. */
body.dsw-sale--bf {
	--sale-bg: #0b0a09;
	--sale-band: #131210;
	--sale-card: #171512;
	--sale-line: #2a2620;
	--sale-text: #f4efe6;
	--sale-muted: #b8ad99;
	--sale-accent: #d1ad66;
}

/* VIP: black with the banner's red. */
body.dsw-sale--vip {
	--sale-bg: #0d0909;
	--sale-band: #160d0d;
	--sale-card: #1a1111;
	--sale-line: #3a2222;
	--sale-text: #f6efee;
	--sale-muted: #c3aeab;
	--sale-accent: #ff4d4d;
}

/* Cyber Monday: warm light ground, copper accents. */
body.dsw-sale--cm {
	--sale-bg: #faf7f2;
	--sale-band: #f2e9df;
	--sale-line: #e6ddd2;
	--sale-text: #1a1714;
	--sale-muted: #6b5e51;
	--sale-accent: #b4521a;
}

/* Saturday and Sunday follow their banners: blue, gold. */
body.dsw-sale--sat {
	--sale-band: #e9eef6;
	--sale-line: #d6deea;
	--sale-accent: #1d5fbf;
}
body.dsw-sale--sun {
	--sale-band: #f1ebdc;
	--sale-line: #e3d8c0;
	--sale-accent: #7d5f24;
}

/* The watch grid: light on every day; its accent is the day's, darkened
   where the banner colour is too light to read on white (4.5:1 or better). */
body.dsw-sale .dsw-sale-grid {
	--sale-bg: #ffffff;
	--sale-card: #ffffff;
	--sale-line: #e6e0d6;
	--sale-text: #1a1714;
	--sale-muted: #5f5448;
	--sale-photo: #f3f1ed;
	--sale-accent: var(--sale-grid-accent, #9a4a12);
}
body.dsw-sale--bf { --sale-grid-accent: #8a6a2a; }
body.dsw-sale--vip { --sale-grid-accent: #b3261e; }
body.dsw-sale--cm { --sale-grid-accent: #b4521a; }
body.dsw-sale--sat { --sale-grid-accent: #1d5fbf; }
body.dsw-sale--sun { --sale-grid-accent: #7d5f24; }

.dsw-sale-strip,
.dsw-sale-grid {
	max-width: 100%;
	overflow-wrap: break-word;
}
.dsw-sale-wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 32px;
	box-sizing: border-box;
}

/* The discounts strip under the banner. */
.dsw-sale-strip {
	background: var(--sale-band);
	color: var(--sale-text);
	border-bottom: 1px solid var(--sale-line);
	padding: 22px 0 18px;
}
.dsw-sale-strip__chips {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.dsw-sale-chip {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid var(--sale-line);
	border-radius: 2px;
	background: var(--sale-card);
	color: var(--sale-text);
	text-decoration: none;
}
a.dsw-sale-chip:hover,
a.dsw-sale-chip:focus {
	color: var(--sale-text);
	border-color: var(--sale-accent);
}
.dsw-sale-chip__off {
	font-family: "DSW Raleway", Raleway, Arial, sans-serif;
	font-weight: 700;
	font-size: 26px;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--sale-accent);
}
.dsw-sale-chip__range {
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--sale-muted);
}
.dsw-sale-strip__fine {
	margin: 12px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--sale-muted);
}

/* A bracket. */
.dsw-sale-grid {
	background: var(--sale-bg);
	color: var(--sale-text);
	padding: 56px 0;
	scroll-margin-top: 90px; /* the sticky header, when the chips jump here */
}
.dsw-sale-grid + .dsw-sale-grid {
	padding-top: 8px;
}
.dsw-sale-grid__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--sale-line);
	padding-bottom: 14px;
	margin-bottom: 24px;
}
.dsw-sale-grid__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--sale-accent);
}
.dsw-sale-grid__title {
	margin: 0;
	font-family: "DSW Raleway", Raleway, Arial, sans-serif;
	font-weight: 300;
	font-size: 36px;
	line-height: 1.15;
	letter-spacing: .01em;
	color: var(--sale-text);
	text-wrap: balance;
}
.dsw-sale-grid__all {
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sale-text);
	border-bottom: 1px solid var(--sale-accent);
	padding-bottom: 3px;
	text-decoration: none;
}
.dsw-sale-grid__all:hover,
.dsw-sale-grid__all:focus {
	color: var(--sale-accent);
}
.dsw-sale-grid__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* Flatsome indents and spaces content lists; the grid sets its own gaps. */
.dsw-sale-grid ul.dsw-sale-grid__list > li.dsw-sale-card {
	margin: 0;
	padding: 0;
	min-width: 0;
	list-style: none;
}
.dsw-sale-card > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--sale-card);
	border: 1px solid var(--sale-line);
	color: var(--sale-text);
	text-decoration: none;
}
.dsw-sale-card > a:hover,
.dsw-sale-card > a:focus {
	color: var(--sale-text);
	border-color: var(--sale-accent);
}
.dsw-sale-card > a:focus-visible {
	outline: 2px solid var(--sale-accent);
	outline-offset: 2px;
}
.dsw-sale-card__img {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: var(--sale-photo);
	overflow: hidden;
}
.dsw-sale-card__img img {
	width: 88%;
	height: 88%;
	object-fit: contain;
}
.dsw-sale-card__tag {
	position: absolute;
	top: 12px;
	left: 0;
	background: var(--sale-tag);
	color: var(--sale-tag-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	padding: 6px 12px 6px 10px;
	line-height: 1.2;
}
/* Hover (pointer devices only): the tag grows a little and a note opens
   under it. Transforms and opacity only, nothing that reflows the grid. */
.dsw-sale-card__tag {
	transform-origin: 0 50%;
	transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), box-shadow .25s ease;
}
.dsw-sale-card__pop {
	position: absolute;
	top: 48px;
	left: 10px;
	z-index: 2;
	max-width: calc(100% - 20px);
	padding: 7px 10px;
	background: var(--sale-text);
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	letter-spacing: .02em;
	border-radius: 2px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.dsw-sale-card__pop::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 14px;
	border: 5px solid transparent;
	border-top: 0;
	border-bottom-color: var(--sale-text);
}
@media (hover: hover) {
	.dsw-sale-card > a:hover .dsw-sale-card__tag,
	.dsw-sale-card > a:focus-visible .dsw-sale-card__tag {
		transform: scale(1.12);
		box-shadow: 0 4px 12px rgba(255, 98, 0, .35);
	}
	.dsw-sale-card > a:hover .dsw-sale-card__pop,
	.dsw-sale-card > a:focus-visible .dsw-sale-card__pop {
		opacity: 1;
		transform: none;
	}
}
@media (hover: none) {
	.dsw-sale-card__pop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.dsw-sale-card__tag,
	.dsw-sale-card__pop { transition: none; }
}

.dsw-sale-card__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 18px;
}
.dsw-sale-card__brand {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--sale-accent);
}
.dsw-sale-card__title {
	font-family: "DSW Raleway", Raleway, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.35;
}
.dsw-sale-card__prices {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	font-variant-numeric: lining-nums tabular-nums;
}
.dsw-sale-card__after {
	font-family: "DSW Raleway", Raleway, Arial, sans-serif;
	font-size: 19px;
	font-weight: 600;
}
.dsw-sale-card__was,
.dsw-sale-card__note {
	font-size: 13px;
	color: var(--sale-muted);
}
.dsw-sale-card__note {
	font-size: 12px;
}

/* Four columns down to tablet portrait, then two: a count of 8 or 12 fills
   every row at both. */
/* Phone. */
@media (max-width: 760px) {
	.dsw-sale-wrap { padding: 0 16px; }
	.dsw-sale-strip__chips { grid-template-columns: 1fr; gap: 8px; }
	.dsw-sale-chip { padding: 10px 14px; }
	.dsw-sale-chip__off { font-size: 22px; }
	.dsw-sale-grid { padding: 40px 0; }
	.dsw-sale-grid + .dsw-sale-grid { padding-top: 8px; }
	.dsw-sale-grid__title { font-size: 28px; }
	.dsw-sale-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.dsw-sale-card__text { padding: 10px 10px 14px; }
	.dsw-sale-card__title { font-size: 14px; }
	.dsw-sale-card__after { font-size: 16px; }
	.dsw-sale-card__tag { font-size: 11px; letter-spacing: .1em; top: 8px; padding: 5px 8px; }
}

@media print {
	.dsw-sale-card__tag { border: 1px solid #000; }
}
