/*
Theme Name: Shopogi
Theme URI: https://www.shopogi.com/
Author: Shopogi
Description: Hand-written neo-brutalist theme for Shopogi.com, a multilingual shopping deals affiliate site.
Version: 1.0.0
Text Domain: shopogi
*/

:root {
	--color-orange: #FF4C29;
	--color-orange-hover: #C93410;
	--color-yellow: #FFB800;
	--color-blue: #3E63DD;
	--color-cream: #FFF8EF;
	--color-ink: #1B1B1F;
	--color-muted: #6B6B76;
	--color-muted-light: #A6A6AE;
	--color-placeholder-bg: #F3E6D2;
	--color-placeholder-text: #A99878;
	--color-hero-bg: #9FB8C9;
	--color-divider: #E8D9C2;
	--font-heading: 'Space Grotesk', sans-serif;
	--font-body: 'Sora', sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-body);
	background: var(--color-cream);
	color: var(--color-ink);
}

a {
	color: inherit;
	text-decoration: none;
}

a.textlink {
	color: var(--color-orange);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a.textlink:hover {
	color: var(--color-orange-hover);
}

button {
	font-family: var(--font-body);
	cursor: pointer;
	border: none;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

img {
	display: block;
	max-width: 100%;
}

.site-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
	width: 100%;
	padding: 18px 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--color-cream);
	border-bottom: 2px solid var(--color-ink);
	position: sticky;
	top: 0;
	z-index: 10;
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-header__mark {
	width: 42px;
	height: 42px;
	background: var(--color-orange);
	border: 2px solid var(--color-ink);
	border-radius: 12px;
	box-shadow: 3px 3px 0 var(--color-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.site-header__wordmark {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 26px;
	letter-spacing: -0.5px;
}

.site-header__wordmark-accent {
	color: var(--color-orange);
}

.site-nav__list {
	display: flex;
	gap: 36px;
	align-items: center;
}

.site-nav__list a {
	font-weight: 600;
	font-size: 15px;
}

.site-nav__list a:hover {
	color: var(--color-orange);
}

.lang-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border: 2px solid var(--color-ink);
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	order: 3;
}

/*
 * .site-header__top wraps the brand + lang pill so that, on mobile, it can
 * become its own sticky element while the nav row scrolls away with the
 * page. On desktop it collapses via `display: contents` so brand/nav/pill
 * remain direct flex children of .site-header exactly as before; the
 * `order` values reproduce the original DOM order (brand, nav, pill) in
 * that flattened context and are inert where DOM order already matches.
 */
.site-header__top {
	display: contents;
}

.site-header__brand {
	order: 1;
}

.site-nav {
	order: 2;
}

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

.hero {
	position: relative;
	width: 100%;
	height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-hero-bg);
	background-size: cover;
	background-position: center;
}

.hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(27, 27, 31, 0.18);
}

.hero__sticker {
	position: absolute;
	font-weight: 700;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 12px;
	z-index: 1;
}

.hero__sticker--deal {
	top: 14%;
	left: 8%;
	background: var(--color-ink);
	color: var(--color-cream);
	transform: rotate(-6deg);
	box-shadow: 3px 3px 0 var(--color-orange);
}

.hero__sticker--new {
	bottom: 16%;
	right: 9%;
	background: var(--color-yellow);
	border: 2px solid var(--color-ink);
	color: var(--color-ink);
	font-size: 13px;
	padding: 8px 14px;
	transform: rotate(7deg);
}

.hero__card {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	max-width: 560px;
	background: rgba(255, 248, 239, 0.45);
	backdrop-filter: blur(3px);
	border: 2px solid var(--color-ink);
	border-radius: 14px;
	box-shadow: 4px 4px 0 rgba(27, 27, 31, 0.5);
	padding: 16px 22px;
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--color-cream);
	border: 2px solid var(--color-ink);
	border-radius: 999px;
	padding: 6px 14px;
	font-weight: 700;
	font-size: 12px;
	transform: rotate(-2deg);
}

.hero__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 38px;
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.12;
	color: #000000;
}

.hero__title-highlight {
	position: relative;
	display: inline-block;
}

.hero__title-highlight svg {
	position: absolute;
	left: 0;
	bottom: -8px;
	width: 100%;
	height: 12px;
}

.btn-cta {
	display: inline-block;
	font-weight: 700;
	font-size: 15px;
	border-radius: 12px;
	border: 2px solid var(--color-ink);
	transition: transform 0.1s ease;
}

.hero__cta {
	background: var(--color-orange);
	color: var(--color-cream);
	padding: 13px 26px;
	box-shadow: 4px 4px 0 var(--color-ink);
}

.hero__cta:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--color-ink);
}

/* ---------- Generic section ---------- */

.section {
	width: 100%;
	padding: 64px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	background: var(--color-cream);
}

.section--deals {
	padding: 40px 64px 56px;
	gap: 8px;
}

.section--arrivals {
	background: #FFFFFF;
}

.section__header {
	display: flex;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.section__title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 40px;
	font-weight: 700;
	letter-spacing: -0.8px;
}

.section--categories .section__title,
.section--arrivals .section__title,
.section--bestsellers .section__title,
.section--codes .section__title {
	font-size: 34px;
	letter-spacing: -0.5px;
}

.badge--updated {
	background: var(--color-orange);
	color: var(--color-cream);
	font-weight: 700;
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transform: rotate(-2deg);
}

.section__subtitle {
	margin: 0 0 28px;
	font-size: 16px;
	color: var(--color-muted);
	max-width: 620px;
}

/* ---------- Deal cards ---------- */

.deal-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.deal-card {
	display: flex;
	flex-direction: column;
	background: #FFFFFF;
	border: 2px solid var(--color-ink);
	border-radius: 20px;
	box-shadow: 6px 6px 0 var(--color-ink);
	overflow: hidden;
}

.deal-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--color-placeholder-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-placeholder-text);
	font-size: 13px;
	font-weight: 600;
}

.deal-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.deal-card__discount {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--color-orange);
	color: var(--color-cream);
	font-weight: 700;
	font-size: 13px;
	padding: 5px 10px;
	border-radius: 8px;
	transform: rotate(-5deg);
}

.deal-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.deal-card__store {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #C98A00;
}

.deal-card__name {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.3;
}

.deal-card__prices {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.deal-card__price-current {
	font-weight: 700;
	font-size: 18px;
}

.deal-card__price-original {
	font-size: 14px;
	color: var(--color-muted-light);
	text-decoration: line-through;
}

.dealbtn {
	margin-top: 4px;
	padding: 10px;
	box-shadow: 3px 3px 0 var(--color-ink);
	width: 100%;
	text-align: center;
}

.dealbtn:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--color-ink) !important;
}

.btn-cta--blue {
	background: var(--color-blue);
	color: var(--color-cream);
}

.btn-cta--orange {
	background: var(--color-orange);
	color: var(--color-cream);
}

/* ---------- Trust strip ---------- */

.trust-strip {
	width: 100%;
	padding: 20px 64px;
	background: var(--color-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 48px;
	flex-wrap: wrap;
}

.trust-strip__item {
	color: var(--color-cream);
	font-weight: 600;
	font-size: 14px;
}

/* ---------- Categories ---------- */

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

.category-tile {
	display: block;
	background: #FFFFFF;
	border: 2px solid var(--color-ink);
	border-radius: 16px;
	box-shadow: 4px 4px 0 var(--color-ink);
	padding: 20px;
	font-weight: 700;
	font-size: 15px;
	text-align: center;
}

.category-tile--highlight {
	background: var(--color-orange);
	color: var(--color-cream);
}

/* ---------- Arrivals ---------- */

.arrival-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

.arrival-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.arrival-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: var(--color-placeholder-bg);
	border: 2px solid var(--color-ink);
	border-radius: 14px;
	box-shadow: 4px 4px 0 var(--color-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-placeholder-text);
	font-size: 12px;
	font-weight: 600;
}

.arrival-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 11px;
}

.arrival-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--color-yellow);
	border: 2px solid var(--color-ink);
	color: var(--color-ink);
	font-weight: 700;
	font-size: 11px;
	padding: 4px 8px;
	border-radius: 6px;
	transform: rotate(-4deg);
}

.arrival-card__name {
	font-weight: 700;
	font-size: 13px;
}

.arrival-card__price {
	font-weight: 700;
	font-size: 14px;
}

/* ---------- Best sellers ---------- */

.bestseller-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bestseller-item {
	display: flex;
	align-items: center;
	gap: 20px;
	background: #FFFFFF;
	border: 2px solid var(--color-ink);
	border-radius: 18px;
	box-shadow: 5px 5px 0 var(--color-ink);
	padding: 16px 20px;
}

.bestseller-item__rank {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 32px;
	color: var(--color-orange);
	width: 44px;
}

.bestseller-item__image {
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	background: var(--color-placeholder-bg);
	border: 2px solid var(--color-ink);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-placeholder-text);
	font-size: 10px;
	font-weight: 600;
	overflow: hidden;
}

.bestseller-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bestseller-item__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-grow: 1;
}

.bestseller-item__name {
	font-weight: 700;
	font-size: 16px;
}

.bestseller-item__blurb {
	font-size: 14px;
	color: var(--color-muted);
}

.bestseller-item__price {
	font-weight: 700;
	font-size: 17px;
	width: 70px;
	text-align: right;
}

.bestseller-item__cta {
	padding: 10px 18px;
	box-shadow: 3px 3px 0 var(--color-ink);
	white-space: nowrap;
}

.bestseller-item__cta:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--color-ink) !important;
}

/* ---------- Promo codes ---------- */

.section--codes {
	background: var(--color-ink);
}

.section--codes .section__title {
	color: var(--color-cream);
}

.promo-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.promo-card {
	background: var(--color-cream);
	border-radius: 18px;
	box-shadow: 5px 5px 0 var(--color-orange);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.promo-card__store {
	font-weight: 700;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.promo-card__discount {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--color-orange);
}

.promo-card__code-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 2px dashed var(--color-ink);
	border-radius: 10px;
	padding: 10px 14px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1px;
}

.codebtn {
	background: var(--color-ink);
	color: var(--color-cream);
	font-weight: 700;
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 8px;
}

.codebtn:hover {
	background: var(--color-orange);
}

.promo-card__expiry {
	font-size: 12px;
	color: var(--color-muted);
}

/* ---------- Footer ---------- */

.site-footer {
	width: 100%;
	padding: 56px 64px 40px;
	background: var(--color-cream);
	border-top: 2px solid var(--color-ink);
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.footer__top {
	display: flex;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.footer__brand-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 320px;
}

.footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__mark {
	width: 32px;
	height: 32px;
	background: var(--color-orange);
	border: 2px solid var(--color-ink);
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.footer__wordmark {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
}

.footer__tagline {
	margin: 0;
	font-size: 13px;
	color: var(--color-muted);
	line-height: 1.5;
}

.footer__col {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer__col-title {
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--color-muted-light);
}

.footer__col a {
	font-size: 14px;
}

.footer__col a:hover {
	color: var(--color-orange);
}

.lang-list__item {
	font-size: 14px;
}

.lang-list__item a:hover {
	color: var(--color-orange);
}

.lang-list__item--current {
	font-weight: 700;
}

.footer__bottom {
	border-top: 1px solid var(--color-divider);
	padding-top: 20px;
	font-size: 12px;
	color: var(--color-muted-light);
}

/* ======================================================================
   Responsive (mobile/tablet). Desktop (1100px+) is unchanged above this
   point; everything below only applies at narrower widths.
   ====================================================================== */

html, body {
	max-width: 100%;
	overflow-x: hidden;
}

.bestseller-item__top,
.bestseller-item__bottom {
	display: contents;
}

@media (max-width: 1024px) {

	:root {
		--section-pad-x: clamp(16px, 5vw, 64px);
	}

	.section,
	.section--deals,
	.trust-strip,
	.site-footer {
		padding-left: var(--section-pad-x);
		padding-right: var(--section-pad-x);
	}

	/* Headings scale down together on tablet/mobile */
	.section__title,
	.section--categories .section__title,
	.section--arrivals .section__title,
	.section--bestsellers .section__title,
	.section--codes .section__title {
		font-size: clamp(26px, 4vw, 34px);
	}

	/* ---- Header: only the top row (logo + lang pill) stays sticky; the
	       nav row is a normal sibling that scrolls away with the page ---- */

	.site-header {
		flex-direction: column;
		align-items: stretch;
		padding: 0;
		border-bottom: none;
		row-gap: 0;
	}

	.site-header__top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		z-index: 10;
		background: var(--color-cream);
		padding: 12px var(--section-pad-x);
		border-bottom: 2px solid var(--color-ink);
	}

	.lang-pill {
		font-size: 13px;
		padding: 6px 12px;
		white-space: nowrap;
		flex-shrink: 0;
	}

	.site-header__mark {
		width: 36px;
		height: 36px;
	}

	.site-header__wordmark {
		font-size: 22px;
	}

	.site-nav {
		position: relative;
		width: 100%;
	}

	/* Soft fade on the right edge hints that the row scrolls sideways */
	.site-nav::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		width: 36px;
		background: linear-gradient(to right, rgba(255, 248, 239, 0), var(--color-cream));
		pointer-events: none;
	}

	.site-nav__list {
		flex-wrap: nowrap;
		gap: 22px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		padding: 10px var(--section-pad-x) 12px;
	}

	.site-nav__list a {
		white-space: nowrap;
		font-size: 14px;
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	/* ---- Grids: tablet column counts ---- */

	.deal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.arrival-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.promo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.category-tile {
		height: 100%;
		min-height: 56px;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* ---- Footer: 2 columns from tablet down to 480px ---- */

	.footer__top {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px;
	}

	.footer__brand-col {
		max-width: none;
	}

	.lang-list li {
		margin-bottom: 6px;
	}

	/* ---- Tap targets ---- */

	.dealbtn,
	.codebtn,
	.bestseller-item__cta,
	.hero__cta {
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

@media (max-width: 768px) {

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

	.hero {
		height: auto;
		min-height: 420px;
		padding: 32px 0;
	}

	.hero__card {
		width: calc(100% - 32px);
		margin: 0 16px;
		padding: 14px 16px;
		gap: 10px;
	}

	.hero__title {
		font-size: clamp(28px, 7vw, 30px);
	}

	.hero__eyebrow {
		max-width: 100%;
		box-sizing: border-box;
		font-size: 11px;
		padding: 6px 10px;
		text-align: center;
	}

	.hero__sticker {
		font-size: 11px;
		padding: 6px 10px;
	}

	.hero__sticker--deal {
		top: 5%;
		left: 5%;
	}

	.hero__sticker--new {
		bottom: 5%;
		right: 5%;
	}

	.hero__cta {
		padding: 11px 22px;
	}

	/* ---- Deal cards: breathing room at 2-up ---- */

	.deal-grid {
		gap: 16px;
	}

	.deal-card__body {
		padding: 12px;
	}

	/* ---- Trust strip: stacked ---- */

	.trust-strip {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 10px;
		padding-top: 16px;
		padding-bottom: 16px;
	}

	/* ---- Categories / Arrivals: 2-up on phones ---- */

	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.arrival-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* ---- Best sellers: stack rank/image/name, then price + CTA ---- */

	.bestseller-item {
		flex-wrap: wrap;
		align-items: stretch;
		gap: 10px;
		padding: 14px;
	}

	.bestseller-item__top,
	.bestseller-item__bottom {
		display: flex;
		width: 100%;
	}

	.bestseller-item__top {
		align-items: center;
		gap: 12px;
	}

	.bestseller-item__rank {
		flex-shrink: 0;
	}

	.bestseller-item__bottom {
		justify-content: space-between;
		align-items: center;
		gap: 12px;
	}

	.bestseller-item__body {
		min-width: 0;
	}

	.bestseller-item__price {
		width: auto;
		text-align: left;
	}

	.bestseller-item__cta {
		flex-shrink: 0;
	}

	/* ---- Promo codes: 1-up, code row never clips ---- */

	.promo-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.promo-card__code-row {
		flex-wrap: wrap;
		gap: 8px;
		font-size: 13px;
		letter-spacing: 0.5px;
	}

	.promo-card__code-row span {
		overflow-wrap: anywhere;
	}

	.codebtn {
		flex-shrink: 0;
	}
}

@media (max-width: 480px) {

	.footer__top {
		grid-template-columns: minmax(0, 1fr);
	}
}
