/*
Theme Name: Emily Bargains
Author: Emily Bargains
Description: A video-first deals theme. Deals, shoppable videos, coupon codes and a US sale calendar, built light for shared hosting.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emily-bargains
*/

:root {
	--eb-ink: #14142b;
	--eb-ink-soft: #2a2a40;
	--eb-paper: #f3f4ee;
	--eb-white: #ffffff;
	--eb-yellow: #ffd23f;
	--eb-red: #d7301a;
	--eb-red-deep: #b3260f;
	--eb-grey: #5b5f6e;
	--eb-mist: #c9cbdc;
	--eb-night: #0b0b10;
	--eb-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
	--eb-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--eb-mono: 'Space Mono', ui-monospace, 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--eb-paper);
	color: var(--eb-ink);
	font-family: var(--eb-body);
	font-size: 16px;
	line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--eb-ink); }
a:hover { color: var(--eb-red-deep); }
:focus-visible { outline: 3px solid var(--eb-red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--eb-display); letter-spacing: -0.02em; line-height: 1.1; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.eb-skip { position: absolute; left: -9999px; top: 0; background: var(--eb-yellow); padding: 12px 16px; z-index: 10; font-weight: 700; }
.eb-skip:focus { left: 8px; top: 8px; }

.eb-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eb-section { padding-top: 64px; padding-bottom: 24px; }
main > .eb-section:last-child { padding-bottom: 72px; }

/* Top notice */
.eb-disclosure { background: var(--eb-ink); color: #e7e8f2; font-size: 13px; padding: 8px 24px; text-align: center; }

/* Header */
.eb-header { background: var(--eb-white); border-bottom: 2px solid var(--eb-ink); }
.eb-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 16px; padding-bottom: 16px; }
.eb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--eb-ink); }
.eb-logo:hover { color: var(--eb-ink); }
.eb-logo__mark {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	background: var(--eb-yellow); border: 2px solid var(--eb-ink); border-radius: 10px 10px 10px 2px;
	transform: rotate(-6deg); font-family: var(--eb-display); font-weight: 800; font-size: 24px;
}
.eb-logo__text { font-family: var(--eb-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.custom-logo { max-height: 52px; width: auto; }

.eb-search {
	flex: 1 1 240px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	background: var(--eb-paper); border: 2px solid var(--eb-ink); border-radius: 999px;
}
.eb-search:focus-within { outline: 3px solid var(--eb-red); outline-offset: 2px; }
.eb-search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--eb-ink); outline: none; }

.eb-nav__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin: 0; padding: 0; list-style: none; font-weight: 600; font-size: 15px; }
.eb-nav__list a { display: inline-block; padding: 10px 0; text-decoration: none; }
.eb-nav__hot a { padding: 6px 12px; background: var(--eb-ink); color: var(--eb-yellow); border-radius: 8px; }
.eb-nav__hot a:hover { color: var(--eb-white); }

/* Buttons, pills, chips */
.eb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
	border: 2px solid transparent; border-radius: 10px; font: inherit; font-weight: 700; font-size: 15px;
	text-decoration: none; cursor: pointer;
}
.eb-btn--pill { min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; }
.eb-btn--block { display: flex; width: 100%; }
.eb-btn--tall { min-height: 56px; font-size: 17px; }
.eb-btn--dark { background: var(--eb-ink); color: var(--eb-white); }
.eb-btn--dark:hover { background: #2b2b55; color: var(--eb-white); }
.eb-btn--light { background: var(--eb-white); color: var(--eb-ink); border-color: var(--eb-ink); }
.eb-btn--light:hover { background: var(--eb-paper); color: var(--eb-ink); }
.eb-btn--red { background: var(--eb-red); color: var(--eb-white); }
.eb-btn--red:hover { background: var(--eb-red-deep); color: var(--eb-white); }
.eb-btn--yellow { background: var(--eb-yellow); color: var(--eb-ink); }
.eb-btn--yellow:hover { background: #ffdf70; color: var(--eb-ink); }

.eb-pill {
	display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 16px; border-radius: 999px;
	font-family: var(--eb-mono); font-size: 14px; font-weight: 700; text-transform: uppercase; text-decoration: none;
}
.eb-pill--dark { background: var(--eb-ink); color: var(--eb-white); }
.eb-pill--dark:hover { color: var(--eb-yellow); }
.eb-pill--outline { border: 2px solid var(--eb-yellow); color: var(--eb-yellow); padding: 6px 16px; }
.eb-pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--eb-yellow); }

.eb-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--eb-white);
	border: 2px solid var(--eb-ink); border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
}
.eb-chip:hover { background: var(--eb-yellow); color: var(--eb-ink); }
.eb-chip--on, .eb-chip--on:hover { background: var(--eb-ink); color: var(--eb-white); }

/* Section headings */
.eb-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.eb-kicker { font-family: var(--eb-mono); font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--eb-red-deep); }
.eb-kicker--ink { color: var(--eb-ink); margin-right: 8px; }
.eb-kicker--yellow { color: var(--eb-yellow); }
.eb-kicker--row { display: inline-flex; gap: 8px; }
.eb-h2 { margin: 4px 0 0; font-weight: 800; font-size: clamp(30px, 4vw, 40px); }
.eb-h2--big { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.eb-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.eb-more--light, .eb-more--light:hover { color: var(--eb-white); }
.eb-empty { font-size: 18px; color: var(--eb-ink-soft); }
.eb-small { font-size: 13px; color: var(--eb-grey); }

/* Hero */
.eb-hero { background: var(--eb-yellow); border-bottom: 2px solid var(--eb-ink); }
.eb-hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 64px; }
.eb-hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eb-hero__title { margin: 0; font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.03em; max-width: 11em; }
.eb-hero__text { margin: 0; font-size: 19px; max-width: 520px; color: var(--eb-ink-soft); }
.eb-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eb-hero__video { flex: 0 1 430px; min-width: 280px; position: relative; padding-bottom: 36px; }
.eb-hero__frame { position: relative; width: 78%; border: 2px solid var(--eb-ink); border-radius: 28px; overflow: hidden; box-shadow: 10px 10px 0 var(--eb-ink); }
.eb-hero__caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; color: var(--eb-white); font-weight: 600;
	font-size: 15px; text-decoration: none; background: linear-gradient(to top, rgba(11, 11, 16, 0.85), rgba(11, 11, 16, 0)); pointer-events: none;
}
.eb-tag {
	position: absolute; right: 0; bottom: 0; width: 58%; display: flex; flex-direction: column; gap: 8px; padding: 16px;
	background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 16px; transform: rotate(3deg);
	box-shadow: 6px 6px 0 var(--eb-ink);
}
.eb-tag__title { font-weight: 700; font-size: 16px; line-height: 1.25; text-decoration: none; }

/* Video player */
.eb-player { position: relative; aspect-ratio: 9 / 16; background: repeating-linear-gradient(135deg, #24244a 0 14px, #1c1c3c 14px 28px); }
.eb-player__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.eb-player__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eb-player__play, .eb-vtile__play {
	position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--eb-white); color: var(--eb-ink);
}
.eb-player__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* Store bar */
.eb-stores { background: var(--eb-white); border-bottom: 2px solid var(--eb-ink); }
.eb-stores__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 20px; padding-bottom: 20px; }

/* Featured sale events */
.eb-event { border-bottom: 2px solid var(--eb-ink); padding: 64px 0; }
.eb-event--dark { background: var(--eb-night); color: var(--eb-white); }
.eb-event--red { background: var(--eb-red-deep); color: var(--eb-white); margin-top: 56px; border-top: 2px solid var(--eb-ink); }
.eb-event__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.eb-event__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.eb-event__title { margin: 0; font-weight: 800; font-size: clamp(44px, 7vw, 92px); line-height: 0.92; letter-spacing: -0.04em; color: var(--eb-yellow); }
.eb-event__text { margin: 0; font-size: 18px; max-width: 460px; color: var(--eb-mist); }
.eb-event__tiles { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.eb-storetile {
	display: flex; flex-direction: column; gap: 18px; padding: 18px; background: #17171f; border: 2px solid #3a3a4a;
	border-radius: 16px; color: var(--eb-white); text-decoration: none;
}
.eb-storetile:hover { border-color: var(--eb-yellow); color: var(--eb-white); }
.eb-storetile__name { font-family: var(--eb-display); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.02em; }
.eb-storetile__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--eb-mist); }

.eb-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.eb-ctile {
	display: flex; flex-direction: column; overflow: hidden; background: var(--eb-white); border: 2px solid var(--eb-ink);
	border-radius: 16px; color: var(--eb-ink); text-decoration: none; box-shadow: 5px 5px 0 var(--eb-ink);
}
.eb-ctile__media { aspect-ratio: 1 / 1; background: repeating-linear-gradient(135deg, #ecede6 0 12px, #e3e4dc 12px 24px); }
.eb-ctile__media img { width: 100%; height: 100%; object-fit: cover; }
.eb-ctile__name { padding: 14px 16px; border-top: 2px solid var(--eb-ink); font-weight: 700; font-size: 16px; line-height: 1.25; }

/* Deal cards */
.eb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.eb-card { display: flex; flex-direction: column; overflow: hidden; background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 18px; }
.eb-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: repeating-linear-gradient(135deg, #ecede6 0 12px, #e3e4dc 12px 24px); }
.eb-card__media img { width: 100%; height: 100%; object-fit: cover; }
.eb-sticker {
	position: absolute; top: 12px; left: 12px; padding: 2px 10px; background: var(--eb-yellow); color: var(--eb-ink);
	border: 2px solid var(--eb-ink); border-radius: 8px; font-family: var(--eb-mono); font-weight: 700; font-size: 15px; transform: rotate(-4deg);
}
.eb-sticker--big { top: 18px; left: 18px; font-size: 22px; padding: 4px 14px; }
.eb-onvideo {
	position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
	background: var(--eb-ink); color: var(--eb-white); border-radius: 999px; font-size: 12px; font-weight: 600;
}
.eb-onvideo svg { width: 10px; height: 10px; }
.eb-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.eb-card__meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--eb-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.eb-card__ends { color: var(--eb-grey); font-weight: 400; text-transform: none; }
.eb-card__title { margin: 0; font-family: var(--eb-body); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.eb-card__title a { text-decoration: none; }
.eb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: auto; padding-top: 6px; font-family: var(--eb-mono); }
.eb-price__now { font-size: 26px; font-weight: 700; }
.eb-price__was { font-size: 14px; color: var(--eb-grey); text-decoration: line-through; }
.eb-price__check { font-family: var(--eb-body); font-size: 15px; font-weight: 600; color: var(--eb-ink-soft); }
.eb-price--big .eb-price__now { font-size: 44px; }
.eb-price--big .eb-price__was { font-size: 18px; }
.eb-card__foot { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; border-top: 2px dashed var(--eb-ink); }

.eb-code {
	display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px;
	background: var(--eb-paper); border: 2px dashed var(--eb-ink); border-radius: 10px; color: var(--eb-ink);
	font-family: var(--eb-mono); font-size: 15px; font-weight: 700; cursor: pointer;
}
.eb-code:hover { background: var(--eb-yellow); }
.eb-code__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eb-code__hint { font-family: var(--eb-body); font-size: 13px; }

/* Video reel */
.eb-reel { background: var(--eb-ink); color: var(--eb-white); padding: 64px 0; margin-top: 56px; }
.eb-reel .eb-kicker { color: var(--eb-yellow); }
.eb-reel .eb-more { color: var(--eb-white); }
.eb-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.eb-vtile {
	position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border: 2px solid #3a3a66; border-radius: 20px;
	background: repeating-linear-gradient(135deg, #24244a 0 14px, #1c1c3c 14px 28px); color: var(--eb-white); text-decoration: none;
}
.eb-vtile:hover { border-color: var(--eb-yellow); color: var(--eb-white); }
.eb-vtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eb-vtile__play { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.eb-vtile__text {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 40px 14px 14px;
	background: linear-gradient(to top, rgba(11, 11, 16, 0.85), rgba(11, 11, 16, 0));
}
.eb-vtile__store { font-family: var(--eb-mono); font-size: 12px; color: var(--eb-mist); text-transform: uppercase; }
.eb-vtile__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.eb-vgrid--light .eb-vtile { border-color: var(--eb-ink); }

.eb-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.eb-watch__player { flex: 0 1 340px; min-width: 240px; border: 2px solid #3a3a66; border-radius: 24px; overflow: hidden; }
.eb-watch__copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
main > .eb-reel:first-child { margin-top: 0; }

/* Gift finder */
.eb-budget { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.eb-budget__tile {
	display: flex; flex-direction: column; gap: 28px; min-height: 180px; padding: 24px; background: var(--eb-white);
	border: 2px solid var(--eb-ink); border-radius: 18px; text-decoration: none; color: var(--eb-ink);
}
.eb-budget__tile:first-child, .eb-budget__tile:hover { background: var(--eb-yellow); color: var(--eb-ink); }
.eb-budget__under { font-family: var(--eb-mono); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.eb-budget__amount { font-family: var(--eb-display); font-weight: 800; font-size: 72px; line-height: 0.9; letter-spacing: -0.03em; }
.eb-budget__label { font-weight: 600; font-size: 15px; }

/* Sale calendar */
.eb-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.eb-cal__card {
	position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 124px; padding: 16px;
	background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 14px; text-decoration: none; color: var(--eb-ink);
}
.eb-cal__card:hover { background: var(--eb-yellow); color: var(--eb-ink); }
.eb-cal__when { min-height: 18px; font-family: var(--eb-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--eb-grey); }
.eb-cal__card:hover .eb-cal__when { color: var(--eb-ink); }
.eb-cal__name { margin-top: auto; font-family: var(--eb-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.eb-cal__live {
	position: absolute; top: 12px; right: 12px; padding: 0 8px; background: var(--eb-yellow); border: 2px solid var(--eb-ink);
	border-radius: 6px; font-family: var(--eb-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; transform: rotate(4deg);
}

/* Coupons */
.eb-coupons { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.eb-coupon { display: flex; overflow: hidden; background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 16px; }
.eb-coupon__stub {
	flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px;
	background: var(--eb-red); color: var(--eb-white); border-right: 2px dashed var(--eb-ink);
	font-family: var(--eb-display); font-weight: 800; font-size: 30px; line-height: 1; text-align: center;
}
.eb-coupon__off { margin-top: 6px; font-family: var(--eb-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.eb-coupon__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.eb-coupon__title { font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; }
.eb-coupon__body .eb-code { margin-top: auto; }

/* Follow box */
.eb-follow {
	display: flex; flex-wrap: wrap; align-items: center; gap: 28px 48px; padding: 40px; background: var(--eb-yellow);
	border: 2px solid var(--eb-ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--eb-ink);
}
.eb-follow__copy { flex: 1 1 380px; min-width: 0; }
.eb-follow__copy p { margin: 8px 0 0; color: var(--eb-ink-soft); }
.eb-follow__form { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Archive and page headers */
.eb-archive-head { background: var(--eb-yellow); border-bottom: 2px solid var(--eb-ink); padding: 48px 0; }
.eb-archive-head__title { margin: 0; font-weight: 800; font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; line-height: 1; }
.eb-archive-head__text { max-width: 640px; font-size: 18px; color: var(--eb-ink-soft); }
.eb-archive-head--event { background: var(--eb-night); color: var(--eb-white); }
.eb-archive-head--event .eb-archive-head__title { margin-top: 16px; color: var(--eb-yellow); }
.eb-archive-head--event .eb-archive-head__text { color: var(--eb-mist); }

/* Single deal */
.eb-deal { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 48px; }
.eb-deal__media {
	position: relative; flex: 1 1 380px; min-width: 0; min-height: 240px; overflow: hidden; background: var(--eb-white);
	border: 2px solid var(--eb-ink); border-radius: 20px;
}
.eb-deal__media img { width: 100%; }
.eb-deal__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.eb-deal__title { margin: 0; font-weight: 800; font-size: clamp(28px, 4vw, 44px); }
.eb-deal__actions { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.eb-notice { margin: 0; padding: 12px 16px; background: var(--eb-white); border: 2px dashed var(--eb-ink); border-radius: 10px; font-weight: 600; }

/* Written content */
.eb-page { max-width: 760px; }
.eb-content { font-size: 17px; }
.eb-content > *:first-child { margin-top: 0; }
.eb-content a { color: var(--eb-red-deep); }
.eb-content--light, .eb-content--light a { color: var(--eb-mist); }
.eb-content img { border-radius: 12px; }

/* Pagination */
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 10px; font-weight: 700; text-decoration: none;
}
.page-numbers.current { background: var(--eb-ink); color: var(--eb-white); }

/* Footer */
.eb-footer { background: var(--eb-ink); color: var(--eb-mist); font-size: 14px; }
.eb-footer__in { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 48px; padding-bottom: 48px; }
.eb-footer__about { flex: 1 1 320px; min-width: 0; }
.eb-footer__name { margin-bottom: 10px; font-family: var(--eb-display); font-weight: 800; font-size: 22px; color: var(--eb-white); }
.eb-footer__nav ul { margin: 0; padding: 0; list-style: none; }
.eb-footer__nav a { display: inline-block; padding: 8px 0; color: var(--eb-white); }
.eb-footer__nav p { margin: 0; }

/* 1.1 additions */
.eb-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.eb-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--eb-ink); }
.eb-card__media img, .eb-ctile__media img { transition: transform 0.3s ease; }
.eb-card:hover .eb-card__media img { transform: scale(1.04); }
.eb-card__media { overflow: hidden; }
.eb-card__ends--soon { color: var(--eb-red-deep); font-weight: 700; }
.eb-code.is-copied { background: var(--eb-yellow); border-style: solid; }

.eb-sort { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 24px; background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 999px; }
.eb-sort__opt { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
.eb-sort__opt.is-on, .eb-sort__opt.is-on:hover { background: var(--eb-ink); color: var(--eb-white); }

.eb-share { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }

.eb-chip, .eb-btn, .eb-storetile, .eb-cal__card, .eb-budget__tile, .eb-ctile, .eb-vtile { transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease; }
.eb-budget__tile:hover, .eb-cal__card:hover, .eb-ctile:hover { transform: translateY(-3px); }

/* 1.2 additions */
.eb-mark { display: block; flex: 0 0 auto; }
.eb-logo:hover .eb-mark { transform: rotate(-6deg); }
.eb-mark { transition: transform 0.2s ease; }

.eb-announce { background: var(--eb-red); color: var(--eb-white); text-align: center; font-weight: 700; font-size: 14px; padding: 10px 24px; }
.eb-announce a { color: var(--eb-white); display: inline-flex; align-items: center; gap: 8px; text-decoration: underline; text-underline-offset: 3px; }

.eb-saved-link {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: 0 0 auto;
	border: 2px solid var(--eb-ink); border-radius: 50%; background: var(--eb-white); color: var(--eb-ink);
}
.eb-saved-link:hover { background: var(--eb-yellow); color: var(--eb-ink); }
.eb-saved-link__count {
	position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--eb-red); color: var(--eb-white); font-family: var(--eb-mono); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center;
}
.eb-saved-link__count[hidden] { display: none; }

.eb-card { position: relative; }
.eb-save {
	position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; padding: 0; border: 2px solid var(--eb-ink); border-radius: 50%; background: var(--eb-white);
	color: var(--eb-ink); cursor: pointer;
}
.eb-save:hover { background: var(--eb-yellow); }
.eb-save[aria-pressed="true"] { background: var(--eb-red); color: var(--eb-white); }
.eb-save[aria-pressed="true"] svg { fill: currentColor; }
.eb-save--inline { position: static; width: auto; height: 44px; gap: 8px; padding: 0 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; }
.eb-deal__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.eb-soon__box { padding: 28px; background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 24px; box-shadow: 8px 8px 0 var(--eb-red); }
.eb-soon .eb-kicker svg { vertical-align: -3px; }

.eb-cal__icon { display: flex; color: var(--eb-ink); }
.eb-cal__card { gap: 10px; }
.eb-cal__when { margin-top: auto; }
.eb-cal__name { margin-top: 0; }

/* Forms and alerts */
.eb-form { display: flex; flex-direction: column; gap: 4px; max-width: 640px; margin: 24px 0 40px; padding: 28px; background: var(--eb-white); border: 2px solid var(--eb-ink); border-radius: 20px; }
.eb-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.eb-field { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.eb-field label { font-weight: 600; font-size: 15px; }
.eb-field input, .eb-field select, .eb-field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--eb-ink); border-radius: 12px;
	background: var(--eb-paper); color: var(--eb-ink); font: inherit; font-size: 16px;
}
.eb-field textarea { resize: vertical; }
.eb-form .eb-btn { align-self: flex-start; }
.eb-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eb-alert { max-width: 640px; margin: 24px 0; padding: 16px 20px; border: 2px solid var(--eb-ink); border-radius: 14px; font-size: 16px; }
.eb-alert--ok { background: #d9f2df; }
.eb-alert--error { background: #fde2dd; }

/* Footer, 1.2 layout */
.eb-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px 48px; padding-top: 56px; padding-bottom: 40px; }
.eb-footer__brand p { margin: 14px 0 18px; max-width: 340px; }
.eb-logo--footer, .eb-logo--footer:hover { color: var(--eb-white); }
.eb-logo--footer .eb-logo__text { font-size: 22px; }
.eb-footer__title { margin: 0 0 10px; font-family: var(--eb-mono); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--eb-yellow); }
.eb-footer__col ul { margin: 0; padding: 0; list-style: none; }
.eb-footer__col a { display: inline-block; padding: 6px 0; color: var(--eb-white); text-decoration: none; }
.eb-footer__col a:hover { color: var(--eb-yellow); text-decoration: underline; }
.eb-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.eb-social a {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid #3a3a66;
	border-radius: 50%; color: var(--eb-white);
}
.eb-social a:hover { border-color: var(--eb-yellow); color: var(--eb-yellow); }
.eb-footer__legal { border-top: 1px solid #2c2c4a; font-size: 13px; }
.eb-footer__legal .eb-wrap { padding-top: 20px; padding-bottom: 28px; }
.eb-footer__legal p { margin: 0 0 6px; }

.eb-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 20; display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border: 2px solid var(--eb-ink); border-radius: 50%; background: var(--eb-yellow); color: var(--eb-ink);
	box-shadow: 4px 4px 0 var(--eb-ink);
}
.eb-top[hidden] { display: none; }

/* Written pages */
.eb-content h2 { font-size: 28px; margin: 36px 0 10px; }
.eb-content h3 { font-family: var(--eb-body); font-size: 19px; letter-spacing: 0; margin: 28px 0 6px; }
.eb-content li { margin-bottom: 6px; }

@media (max-width: 900px) {
	.eb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eb-footer__brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 640px) {
	.eb-disclosure { font-size: 11.5px; line-height: 1.4; padding: 6px 16px; }
	.eb-announce { font-size: 13px; padding: 8px 16px; }
	.eb-header__in { display: grid; grid-template-columns: 1fr auto; }
	.eb-search, .eb-nav { grid-column: 1 / -1; }
	.eb-saved-link { grid-row: 1; grid-column: 2; }
	.eb-save { width: 40px; height: 40px; top: 8px; right: 8px; }
	.eb-soon__box { padding: 16px; box-shadow: 5px 5px 0 var(--eb-red); }
	.eb-form { padding: 18px; }
	.eb-stores__in { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.eb-stores__in::-webkit-scrollbar { display: none; }
	.eb-stores__in > * { flex: 0 0 auto; scroll-snap-align: start; }
	.eb-card:hover { transform: none; box-shadow: none; }
	.eb-wrap { padding-left: 16px; padding-right: 16px; }
	.eb-section { padding-top: 44px; }
	.eb-hero__in { gap: 32px; padding-top: 36px; padding-bottom: 44px; }
	.eb-hero__video { flex-basis: 100%; }
	.eb-event, .eb-reel { padding: 44px 0; }
	.eb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.eb-card__body { padding: 12px; }
	.eb-card__foot { padding: 12px; }
	.eb-card__title { font-size: 15px; }
	.eb-card__meta { flex-direction: column; gap: 2px; }
	.eb-price__now { font-size: 21px; }
	.eb-btn { padding: 0 12px; font-size: 14px; }
	.eb-vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.eb-cal, .eb-cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.eb-follow { padding: 24px; }
	.eb-budget__amount { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
	.eb-card:hover, .eb-card:hover .eb-card__media img, .eb-budget__tile:hover, .eb-cal__card:hover, .eb-ctile:hover { transform: none; }
}
