
.promotions
{
	display: grid;
	width: var(--content-width);
	padding: var(--content-padding);
	margin: auto;	
	--bg: #fafbfa;
    --page: #FFFFFF;
    --surface: #ffffff;
    --fg: #333333;
    --muted: #595959;
    --fg-strong: #1A1A1A;
    --border: #dde4df;
    --accent: #278536;
    --font-display: "Figtree", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, sans-serif;
    --container: 1360px;
    --gutter: clamp(16px, 3vw, 40px);
    --radius: 12px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --accent-hover: color-mix(in oklch, var(--accent) 88%, black);
    --accent-active: color-mix(in oklch, var(--accent) 76%, black);
    --danger: oklch(0.61 0.2 28);
    --highlight: oklch(0.84 0.16 95);
    --devon-green: #83B727;
    --heading-gap: clamp(24px, 2.6vw, 32px);
    --content-max: 1280px;
    --section-pad: clamp(2.5rem, 1.36rem + 4.29vw, 5.5rem);
    --radius-sm: 8px;
    --radius-md: 8px;
    --radius-lg: 8px;
    --shadow-sm: 0 2px 8px oklch(0.24 0.02 154 / .035);
    --shadow-hover: 0 6px 16px oklch(0.24 0.02 154 / .07);
    --control-height: 48px;
    --font-mono: "IBM Plex Mono", Consolas, monospace;	
}

.promotions > h1,
.promotions > h2
{
    max-width: 15ch;
    margin: 0;
    color: var(--fg-strong);
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.028em;
    text-wrap: balance;	
}

.promotions > .description
{
    max-width: 44ch;
    margin: 16px 0px 0px;	
}
.promotions > .description,
.promotions > .description > *
{
    color: var(--fg);
    font-size: 18px;
    line-height: 1.5;	
}

.promotions > .list
{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 423px;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;    
    padding: 12px 16px 20px;
	margin-top: calc(12px + var(--heading-gap));    
}

.promotions > .list.is-dragging
{
	cursor: grabbing; 
	scroll-snap-type: none; 
	user-select: none; 
}

.promotions > .controls
{
    display: flex;
    gap: 8px;	
	justify-content: flex-end;
}

.promotions > .controls > a
{
	display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--fg);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms var(--ease);
	position: relative;
}
.promotions > .controls > a:hover
{
	background: var(--accent);		
}
.promotions > .controls > a:after
{
	content: '';
	position: absolute;
	display: block;
    width: 15px;
    height: 15px;			
	background-color: var(--fg);
	mask-image: url(/index/down.svg);
	mask-position: 50% 50%;
	mask-size: 100%; 100%;
	opacity: 0.6;
}
.promotions > .controls > a:hover:after
{
	opacity: 1.0;
	background-color: var(--surface);
}
.promotions > .controls > a.left:after
{   
    mask-repeat: no-repeat;
    transform: rotateZ(90deg);    
}
.promotions > .controls > a.right:after
{    
    mask-repeat: no-repeat;
	transform: rotateZ(-90deg);
}

@media (max-width: 420px) 
{
    .promotions > .list 
	{
        grid-auto-columns: 88vw;
        gap: 14px;
    }	
}
@media (max-width: 780px) 
{
    .promotions > .list 
	{
        grid-auto-columns: min(86vw, 430px);
        gap: 16px;
    }	
}
@media (max-width: 1149px) 
{
    .promotions > .list 
	{
        grid-auto-columns: 375px;
        gap: 20px;
    }
}

.promotions > .list > article
{
    position: relative;    
    min-width: 0;    
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--fg);
    box-shadow: var(--shadow-product);
    scroll-snap-align: start;
    transition: border-color 180ms ease, box-shadow 180ms ease;	
	display: grid;
	justify-items: start;
	grid-template-columns: 1fr;
	grid-template-rows: auto 1fr auto auto auto;
    grid-template-areas: "tag" "title" "description" "link";	
	width: 100%;
	height: auto;
    aspect-ratio: 3 / 4;		
}

.promotions > .list > article > *
{
	z-index: 2;
    margin-left: clamp(20px, 3vw, 28px);
    margin-right: clamp(20px, 3vw, 28px);	
}

.promotions > .list > article > picture
{
	position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: var(--fg);
	grid-column: header-start / main-end;
	grid-row: header-start / main-end;    
    z-index: 0;	
	margin: 0;
	transition: transform 800ms var(--ease);
}
.promotions > .list > article > picture img
{
    width: 100%;
    height: 100%;	
}
.promotions > .list > article:hover > picture
{
	transform: scale(1.035);
}
.promotions > .list > article:after
{
	content: ""; 
	position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, oklch(0.12 0.03 151 / .72) 0%, oklch(0.12 0.03 151 / .45) 35%, transparent 65%);
	z-index: 1;	
}

.promotions > .list > article > h2,
.promotions > .list > article > h3
{
	grid-area: title;
	align-content: end;
	margin-bottom: 8px;
	color: var(--surface);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.02em;    
    overflow: hidden;	
	text-shadow: 1px 1px 2px #0003;
}

.promotions > .list > article > div
{
	grid-area: description;
	margin-bottom: 16px;	
}
.promotions > .list > article > div,
.promotions > .list > article > div > *
{
	color: var(--surface);
    font-size: 16px;
    line-height: 1.5;    
    overflow: hidden;	
	text-shadow: 1px 1px 2px #0003;
}

.promotions > .list > article > a
{
	grid-area: link;
    margin-bottom: clamp(20px, 3vw, 28px);	
    display: inline-flex;
    min-height: var(--control-height);
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    padding-inline: 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--fg);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms var(--ease);	
}
.promotions > .list > article > a:hover,
.promotions > .list > article > a:focus-visible
{
    background: var(--accent);
    color: var(--surface);
    border-color: transparent;
    transform: translateY(-2px);
}

.promotions > .list > article > span
{
	grid-area: tag;
    z-index: 2;
    display: inline-flex;
    height: 30px;
    align-items: center;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
    margin: 14px 14px 0px 14px;	
}

.promotions > .list > article > span.event
{
	background: oklch(0.72 0.19 55);
    color: var(--surface);
}
.promotions > .list > article > span.new
{
	background: var(--devon-green);
    color: var(--surface);
}
.promotions > .list > article > span.sale
{
	background: var(--danger);
    color: var(--surface);
}

@media print
{		
	.promotions > .list
	{
		overflow-x: visible;
		display: flex;
		flex-wrap: wrap;
		gap: 0.5cm;
	}
	.promotions > .list > article
	{		
		width: calc(50% - 0.5cm);
		page-break-inside: avoid;
		print-color-adjust: exact;  
		-webkit-print-color-adjust: exact;
	}
	.promotions > .controls,
	.promotions > .list > article > a,
	.promotions > .list > article.clone
	{
		display: none;
	}	
}

@media print and (orientation: landscape)
{
	.promotions > .list > article
	{
		width: calc(33% - 1cm);
	}
}