@import url("https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap");

:root {
	--bg: #ece7ff;
	--ink: #16101f;
	--paper: #ffffff;

	--violet: #8b5cf6;
	--pink: #ff4d97;
	--teal: #14d6c4;
	--yellow: #ffd633;
	--lime: #b4e82a;
	--orange: #ff7a3d;

	--bd: 3px solid var(--ink);
	--sh: 6px 6px 0 var(--ink);
	--sh-lg: 9px 9px 0 var(--ink);
	--sh-sm: 4px 4px 0 var(--ink);

	--display: "Syne", sans-serif;
	--sans: "Space Grotesk", system-ui, sans-serif;
	--mono: "DM Mono", monospace;
}

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

body {
	background: var(--bg);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	background-image: radial-gradient(var(--ink) 1.2px, transparent 1.2px);
	background-size: 26px 26px;
	background-position: -13px -13px;
}

a {
	color: inherit;
	text-decoration: none;
}
button {
	font-family: inherit;
	cursor: pointer;
}
img {
	display: block;
	max-width: 100%;
}
::selection {
	background: var(--yellow);
	color: var(--ink);
}

/* ══ MARQUEE ══ */
.marquee {
	background: var(--ink);
	color: var(--bg);
	border-bottom: var(--bd);
	overflow: hidden;
	white-space: nowrap;
	padding: 9px 0;
}
.marquee-track {
	display: inline-flex;
	gap: 40px;
	animation: scroll 22s linear infinite;
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.1em;
	padding-left: 40px;
}
@keyframes scroll {
	to {
		transform: translateX(-50%);
	}
}

/* ══ HEADER ══ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 26px;
	background: var(--bg);
	border-bottom: var(--bd);
}
.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.02em;
}
.logo-icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	background: var(--yellow);
	border: var(--bd);
	box-shadow: var(--sh-sm);
	transform: rotate(-4deg);
}
.logo-icon svg {
	fill: var(--ink);
}

.main-nav {
	display: flex;
	gap: 6px;
}
.main-nav a {
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	padding: 8px 14px;
	border: 2px solid transparent;
	transition: all 0.15s;
}
.main-nav a:hover {
	border-color: var(--ink);
	background: var(--paper);
}
.main-nav a.active {
	background: var(--violet);
	color: var(--paper);
	border-color: var(--ink);
	box-shadow: var(--sh-sm);
}

.cart-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--pink);
	color: var(--ink);
	border: var(--bd);
	box-shadow: var(--sh-sm);
	padding: 10px 16px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.04em;
	transition: all 0.12s;
}
.cart-toggle:hover {
	transform: translate(-2px, -2px);
	box-shadow: var(--sh);
}
.cart-toggle:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--ink);
}
.cart-badge {
	background: var(--ink);
	color: var(--paper);
	min-width: 24px;
	height: 24px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-family: var(--mono);
	font-size: 12px;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-badge.bump {
	transform: scale(1.4) rotate(8deg);
}

/* ══ HERO ══ */
.hero {
	max-width: 1240px;
	margin: 0 auto;
	padding: 40px 26px 30px;
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 26px;
	align-items: stretch;
}
.hero-main {
	position: relative;
}
.hero-sticker {
	position: absolute;
	top: -6px;
	right: 20px;
	background: var(--lime);
	border: var(--bd);
	box-shadow: var(--sh-sm);
	font-family: var(--display);
	font-weight: 800;
	font-size: 16px;
	line-height: 0.95;
	text-align: center;
	padding: 12px 14px;
	transform: rotate(8deg);
	z-index: 2;
}
.hero-title {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(3.2rem, 11vw, 8rem);
	line-height: 0.86;
	letter-spacing: -0.03em;
}
.hero-title .outline {
	color: transparent;
	-webkit-text-stroke: 3px var(--ink);
}
.hero-sub {
	margin-top: 22px;
	font-size: 17px;
	max-width: 460px;
	font-weight: 500;
}
.hero-sub b {
	background: var(--yellow);
	padding: 0 4px;
	box-decoration-break: clone;
}

.hero-card {
	background: var(--violet);
	border: var(--bd);
	box-shadow: var(--sh);
	color: var(--paper);
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.hc-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--mono);
	font-size: 12px;
	padding: 7px 0;
	border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
}
.hc-row b {
	font-weight: 500;
}
.hc-big {
	font-family: var(--display);
	font-weight: 800;
	font-size: 2.6rem;
	margin-top: auto;
	padding-top: 16px;
	line-height: 1;
}
.hc-cat {
	font-size: 13px;
	opacity: 0.85;
	margin-top: 4px;
}

/* ══ GRID ══ */
.grid {
	max-width: 1240px;
	margin: 0 auto;
	padding: 10px 26px 60px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

/* ══ ITEM CARD ══ */
.item {
	background: var(--c, var(--paper));
	border: var(--bd);
	box-shadow: var(--sh);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.15s, box-shadow 0.15s;
	grid-column: span 1;
}
.item:hover {
	transform: translate(-3px, -3px);
	box-shadow: var(--sh-lg);
}
.item-wide {
	grid-column: span 2;
}

.item-media {
	position: relative;
	border-bottom: var(--bd);
	background: var(--paper);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.item-wide .item-media {
	aspect-ratio: 2 / 1;
}
.item-media figure {
	width: 100%;
	height: 100%;
}
.item-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.item:hover .item-media img {
	transform: scale(1.07) rotate(-1deg);
}

.tag {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.04em;
	padding: 6px 10px;
	border: var(--bd);
	box-shadow: var(--sh-sm);
	z-index: 2;
	transform: rotate(-4deg);
}
.tag-new {
	background: var(--lime);
}
.tag-ship {
	background: var(--teal);
}
.tag-hot {
	background: var(--pink);
	color: var(--paper);
}
.tag-limited {
	background: var(--orange);
}

.item-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}
.item-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
}
.item-head h3 {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.5rem;
	line-height: 1;
	letter-spacing: -0.02em;
}
.price-tag {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.1rem;
	background: var(--ink);
	color: var(--paper);
	padding: 5px 10px;
	transform: rotate(3deg);
	white-space: nowrap;
	box-shadow: var(--sh-sm);
}

.description {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── OPTIONS ── */
.item-options {
	display: grid;
	grid-template-columns: 1fr 64px;
	gap: 8px;
	margin-top: auto;
}
.item-options.three {
	grid-template-columns: 1fr 1fr 56px;
}
.item-options.solo {
	grid-template-columns: 90px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.field label {
	font-family: var(--mono);
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.field select,
.field input {
	appearance: none;
	width: 100%;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
	background: var(--paper);
	border: var(--bd);
	padding: 8px 9px;
	cursor: pointer;
	transition: box-shadow 0.12s, transform 0.12s;
}
.field select {
	padding-right: 24px;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316101f' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 10px;
}
.field input {
	text-align: center;
	text-transform: uppercase;
	cursor: text;
}
.field select:focus,
.field input:focus {
	outline: none;
	box-shadow: var(--sh-sm);
	transform: translate(-1px, -1px);
}
.field.invalid select,
.field.invalid input {
	background: #ffe0e0;
	animation: shake 0.4s;
}
@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-4px);
	}
	75% {
		transform: translateX(4px);
	}
}

/* ── ADD BUTTON ── */
.add-btn {
	width: 100%;
	background: var(--ink);
	color: var(--paper);
	border: var(--bd);
	box-shadow: var(--sh-sm);
	padding: 13px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 0.04em;
	transition: all 0.12s;
}
.add-btn:hover {
	transform: translate(-2px, -2px);
	box-shadow: var(--sh);
	background: var(--paper);
	color: var(--ink);
}
.add-btn:active {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--ink);
}
.add-btn.added {
	background: var(--lime) !important;
	color: var(--ink) !important;
	pointer-events: none;
}

/* ══ FOOTER ══ */
.site-footer {
	background: var(--ink);
	color: var(--bg);
	border-top: var(--bd);
	padding: 44px 26px 26px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: start;
}
.ft-big {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(2.5rem, 8vw, 5rem);
	line-height: 0.85;
	letter-spacing: -0.03em;
	color: transparent;
	-webkit-text-stroke: 2px var(--bg);
}
.ft-cols {
	display: flex;
	gap: 44px;
}
.ft-cols h4 {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	margin-bottom: 12px;
	color: var(--yellow);
}
.ft-cols a {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 8px;
	opacity: 0.85;
	transition: opacity 0.2s, transform 0.2s;
}
.ft-cols a:hover {
	opacity: 1;
	transform: translateX(3px);
}
.ft-note {
	grid-column: 1 / -1;
	font-family: var(--mono);
	font-size: 12px;
	opacity: 0.5;
	border-top: 1.5px solid rgba(255, 255, 255, 0.2);
	padding-top: 18px;
}

/* ══ CART DRAWER ══ */
.cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(22, 16, 31, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s, visibility 0.3s;
	z-index: 90;
}
.cart-overlay.open {
	opacity: 1;
	visibility: visible;
}

.cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 400px;
	max-width: 92vw;
	background: var(--bg);
	border-left: var(--bd);
	z-index: 100;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
	transform: translateX(0);
}

.cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 20px;
	border-bottom: var(--bd);
	background: var(--violet);
	color: var(--paper);
}
.cart-header h3 {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.4rem;
}
.cart-header span {
	font-family: var(--mono);
	font-size: 0.9rem;
	opacity: 0.8;
}
.cart-close {
	background: var(--paper);
	color: var(--ink);
	border: var(--bd);
	box-shadow: var(--sh-sm);
	width: 36px;
	height: 36px;
	font-size: 16px;
	transition: all 0.12s;
}
.cart-close:hover {
	transform: translate(-2px, -2px);
	box-shadow: var(--sh);
}

.cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
}

.cart-empty {
	text-align: center;
	padding: 60px 20px;
}
.empty-emoji {
	font-size: 3.5rem;
	margin-bottom: 12px;
}
.cart-empty p {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.3rem;
}
.cart-empty span {
	font-size: 13px;
	opacity: 0.6;
}

.cart-line {
	display: flex;
	gap: 12px;
	padding: 12px;
	margin-bottom: 12px;
	background: var(--paper);
	border: var(--bd);
	box-shadow: var(--sh-sm);
	animation: lineIn 0.3s;
}
@keyframes lineIn {
	from {
		opacity: 0;
		transform: translateX(20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}
.cart-line img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border: var(--bd);
	flex-shrink: 0;
}
.cl-info {
	flex: 1;
	min-width: 0;
}
.cl-name {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.05rem;
}
.cl-opts {
	font-family: var(--mono);
	font-size: 11px;
	opacity: 0.6;
	text-transform: capitalize;
	margin: 2px 0 6px;
}
.cl-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.cl-price {
	font-family: var(--display);
	font-weight: 800;
}
.cl-remove {
	background: none;
	border: none;
	font-family: var(--mono);
	font-size: 11px;
	text-decoration: underline;
	opacity: 0.6;
	transition: opacity 0.2s, color 0.2s;
}
.cl-remove:hover {
	opacity: 1;
	color: var(--pink);
}

.cart-footer {
	border-top: var(--bd);
	padding: 18px 20px 20px;
	background: var(--paper);
}
.ship-meter {
	margin-bottom: 14px;
}
.ship-bar {
	height: 12px;
	border: var(--bd);
	background: var(--bg);
	overflow: hidden;
	margin-bottom: 6px;
}
.ship-bar span {
	display: block;
	height: 100%;
	width: 0%;
	background: var(--lime);
	transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#ship-note {
	font-family: var(--mono);
	font-size: 11.5px;
}
#ship-note b {
	color: var(--pink);
}
#ship-note.free {
	color: var(--ink);
	font-weight: 500;
}

.cart-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}
.cart-total span {
	font-family: var(--mono);
	font-size: 13px;
}
.cart-total b {
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.8rem;
}
.checkout-btn {
	width: 100%;
	background: var(--pink);
	color: var(--ink);
	border: var(--bd);
	box-shadow: var(--sh);
	padding: 15px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.04em;
	transition: all 0.12s;
}
.checkout-btn:hover {
	transform: translate(-2px, -2px);
	box-shadow: var(--sh-lg);
}
.checkout-btn:active {
	transform: translate(3px, 3px);
	box-shadow: 3px 3px 0 var(--ink);
}

/* ══ TOAST ══ */
.toast {
	position: fixed;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%) translateY(150%) rotate(-2deg);
	background: var(--lime);
	color: var(--ink);
	border: var(--bd);
	box-shadow: var(--sh);
	padding: 13px 22px;
	font-family: var(--display);
	font-weight: 800;
	font-size: 15px;
	z-index: 110;
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.show {
	transform: translateX(-50%) translateY(0) rotate(-2deg);
}

/* ══ FLYING IMG ══ */
.fly-img {
	position: fixed;
	z-index: 200;
	border: var(--bd);
	object-fit: cover;
	pointer-events: none;
	transition: all 0.7s cubic-bezier(0.5, -0.2, 0.7, 1);
}
.fly-img.go {
	opacity: 0.3;
	transform: rotate(220deg);
}

/* ══ CONFETTI ══ */
.confetti {
	position: fixed;
	pointer-events: none;
	z-index: 199;
	border: 2px solid var(--ink);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1080px) {
	.grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.item-wide {
		grid-column: span 2;
	}
}
@media (max-width: 860px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.item-wide {
		grid-column: span 2;
	}
	.item-wide .item-media {
		aspect-ratio: 1/1;
	}
	.hero {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.marquee-track {
		font-size: 11px;
	}
	.main-nav {
		display: none;
	}
	.grid {
		grid-template-columns: 1fr;
		padding: 10px 18px 48px;
	}
	.item-wide {
		grid-column: span 1;
	}
	.site-header {
		padding: 12px 18px;
	}
	.hero {
		padding: 28px 18px 20px;
	}
	.site-footer {
		grid-template-columns: 1fr;
		gap: 28px;
	}
	.ft-cols {
		flex-wrap: wrap;
		gap: 28px;
	}
}
