:root {
	--bg: #090b10;
	--panel: #171b27;
	--panel-soft: rgba(24,28,40,.82);
	--text: #fff;
	--muted: #9aa3b8;
	--line: rgba(255,255,255,.08);
	--accent: #7c5cff;
	--accent-2: #00e5ff;
	--green: #24e288;
	--yellow: #ffd84d;
	--radius: 22px;
	--shadow: 0 28px 80px rgba(0,0,0,.45);
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: Inter,system-ui,sans-serif;
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(circle at 20% 5%,rgba(124,92,255,.30),transparent 27%),radial-gradient(circle at 85% 15%,rgba(0,229,255,.16),transparent 25%),linear-gradient(rgba(9,11,16,.72),rgba(9,11,16,.96)),url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1800&q=70") center/cover;
	z-index: -2;
}

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

button,input,select {
	font: inherit;
}

.container {
	width: min(1480px,calc(100% - 48px));
	margin: auto;
}

.topbar {
	position: sticky;
	top: 18px;
	z-index: 50;
	margin-top: 18px;
}

.nav {
	min-height: 74px;
	padding: 0 22px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(20,24,36,.78);
	backdrop-filter: blur(18px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: var(--shadow);
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -.04em;
}

.mark {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	background: conic-gradient(from 180deg,var(--accent),var(--accent-2),#8cff9a,var(--accent));
	box-shadow: 0 0 28px rgba(124,92,255,.55);
}

.menu {
	display: flex;
	gap: 30px;
	align-items: center;
}

.menu a {
	font-size: 14px;
	font-weight: 700;
	color: #dfe4f5;
	opacity: .9;
}

.menu a.active {
	color: #fff;
	position: relative;
}

.menu a.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -12px;
	height: 3px;
	background: linear-gradient(90deg,var(--accent),var(--accent-2));
	border-radius: 99px;
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.support {
	text-align: right;
	font-size: 12px;
	color: var(--muted);
}

.support strong {
	display: block;
	color: #fff;
	font-size: 15px;
}

.pill,.icon-btn {
	height: 42px;
	border: 1px solid var(--line);
	background: rgba(255,255,255,.06);
	color: #fff;
	border-radius: 12px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 13px;
	cursor: pointer;
}

.icon-btn {
	width: 42px;
	justify-content: center;
	padding: 0;
}

.hero {
	padding: 78px 0 26px;
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255,255,255,.06);
	color: #cfd6eb;
	font-weight: 800;
	font-size: 13px;
	margin-bottom: 22px;
}

.hero h1 {
	font-size: clamp(48px,8vw,106px);
	line-height: .88;
	letter-spacing: -0.04em;
	max-width: 980px;
	margin: auto;
}

.hero h1 span {
	background: linear-gradient(90deg,#fff,#b8c4ff 38%,#73f4ff);
	-webkit-background-clip: text;
	color: transparent;
}

.hero p {
	margin: 24px auto 0;
	max-width: 680px;
	color: var(--muted);
	font-size: 18px;
	line-height: 1.7;
}

.categories {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 44px auto 26px;
}

.cat {
	border: 1px solid rgba(255,255,255,.09);
	background: linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.035));
	color: #e9ecf7;
	min-height: 50px;
	padding: 0 20px;
	border-radius: 17px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
	transition: transform .25s ease,border-color .25s ease,background .25s ease;
}

.cat::before {
	content: "◆";
	color: var(--accent-2);
	font-size: 11px;
	text-shadow: 0 0 18px rgba(0,229,255,.8);
}

.cat:hover,.cat.active {
	transform: translateY(-4px);
	border-color: rgba(124,92,255,.65);
	background: linear-gradient(135deg,rgba(124,92,255,.24),rgba(0,229,255,.10));
}

.shop-area {
	margin-top: 28px;
}

.shop-top {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	align-items: center;
	margin-bottom: 24px;
	padding: 18px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(17,20,30,.72);
	backdrop-filter: blur(14px);
}

.shop-title h2 {
	font-size: 28px;
	letter-spacing: -.04em;
}

.shop-title p {
	color: var(--muted);
	font-size: 14px;
	margin-top: 5px;
	font-weight: 600;
}

.controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.search {
	width: min(320px,100%);
	height: 46px;
	border: 1px solid var(--line);
	background: #111622;
	color: #fff;
	border-radius: 14px;
	padding: 0 16px;
	outline: none;
}

.search:focus {
	border-color: rgba(124,92,255,.72);
	box-shadow: 0 0 0 4px rgba(124,92,255,.12);
}

select {
	height: 46px;
	background: #1c2130;
	color: white;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 0 16px;
	font-weight: 800;
	outline: none;
	cursor: pointer;
}

.grid {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 24px;
}

.card {
	display: block;
	opacity: 1!important;
	visibility: visible!important;
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(180deg,rgba(37,42,58,.95),rgba(26,30,43,.98));
	border: 1px solid rgba(255,255,255,.08);
	box-shadow: 0 18px 44px rgba(0,0,0,.26);
	transition: opacity .2s ease,transform .25s ease;
}

.card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at var(--mx,50%) var(--my,20%),rgba(124,92,255,.22),transparent 34%);
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

.card:hover::before {
	opacity: 1;
}

.thumb {
	height: 218px;
	position: relative;
	overflow: hidden;
	background: #121722;
}

.thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .55s ease;
}

.card:hover .thumb img {
	transform: scale(1.08);
}

.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 7px 10px;
	border-radius: 8px;
	background: var(--green);
	color: #03130b;
	font-size: 10px;
	font-weight: 1000;
}

.quick {
	position: absolute;
	right: 12px;
	top: 12px;
	display: flex;
	gap: 8px;
	opacity: 0;
	transform: translateY(-8px);
	transition: .25s ease;
}

.card:hover .quick {
	opacity: 1;
	transform: translateY(0);
}

.quick button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,.92);
	cursor: pointer;
}

.card-body {
	padding: 18px;
}

.title {
	min-height: 44px;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 900;
	color: #fff;
	margin-bottom: 10px;
}

.desc {
	color: #aeb6cc;
	font-size: 13px;
	line-height: 1.55;
	margin: -3px 0 12px;
	min-height: 40px;
}

.rating {
	color: var(--yellow);
	font-size: 13px;
	margin-bottom: 12px;
}

.meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.price {
	font-size: 17px;
	font-weight: 1000;
	white-space: nowrap;
}

.old {
	color: #7d879f;
	text-decoration: line-through;
	font-weight: 700;
	margin-left: 6px;
	font-size: 13px;
}

.stock {
	color: var(--green);
	background: rgba(36,226,136,.1);
	border: 1px solid rgba(36,226,136,.22);
	padding: 6px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 1000;
	white-space: nowrap;
}

.stock.out {
	color: #ff7189;
	background: rgba(255,79,109,.10);
	border-color: rgba(255,79,109,.22);
}

.buy {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 13px;
	color: #fff;
	font-weight: 1000;
	cursor: pointer;
	background: linear-gradient(135deg,var(--accent),#4d8dff 55%,var(--accent-2));
	box-shadow: 0 14px 28px rgba(124,92,255,.24);
	transition: .25s ease;
}

.buy:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 42px rgba(0,229,255,.20);
}

.buy:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.empty {
	text-align: center;
	color: var(--muted);
	padding: 60px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(17,20,30,.72);
	font-weight: 800;
}

.promo {
	margin: 96px auto 0;
	border-radius: 34px;
	border: 1px solid var(--line);
	background: linear-gradient(135deg,rgba(124,92,255,.22),rgba(0,229,255,.08)),rgba(24,28,40,.82);
	padding: 56px;
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 30px;
	align-items: center;
	overflow: hidden;
}

.promo h2 {
	font-size: clamp(34px,5vw,68px);
	letter-spacing: -.07em;
	line-height: .96;
}

.promo p {
	color: #c0c8dd;
	line-height: 1.7;
	margin: 18px 0 28px;
	max-width: 580px;
}

.cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 54px;
	padding: 0 24px;
	border-radius: 15px;
	background: white;
	color: #070911;
	font-weight: 1000;
}

.stats {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 14px;
}

.stat {
	padding: 24px;
	border-radius: 22px;
	background: rgba(255,255,255,.07);
	border: 1px solid var(--line);
}

.stat strong {
	font-size: 34px;
	display: block;
}

.stat span {
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

footer {
	margin-top: 92px;
	background: rgba(24,28,40,.92);
	border-top: 1px solid var(--line);
	padding: 64px 0 34px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3,1fr);
	gap: 42px;
}

footer p,footer a {
	color: #aab2c6;
	font-size: 14px;
	line-height: 2;
	font-weight: 600;
}

footer h4 {
	margin-bottom: 14px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.newsletter {
	display: flex;
	max-width: 380px;
	margin-top: 18px;
	background: #272d3e;
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
}

.newsletter input {
	flex: 1;
	background: transparent;
	border: 0;
	color: white;
	padding: 0 15px;
	outline: none;
	min-width: 0;
}

.newsletter button {
	border: 0;
	background: var(--accent);
	color: white;
	padding: 13px 18px;
	font-weight: 900;
}

.copyright {
	margin-top: 48px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
	color: #777f95;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	font-size: 13px;
}

@media (prefers-reduced-motion:reduce) {
	*,*::before,*::after {
		animation: none!important;
		transition: none!important;
		scroll-behavior: auto!important;
	}
}

@media (max-width:1200px) {
	.grid {
		grid-template-columns: repeat(3,1fr);
	}

	.support {
		display: none;
	}
}

@media (max-width:900px) {
	.menu {
		display: none;
	}

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

	.promo,.footer-grid {
		grid-template-columns: 1fr;
	}

	.nav {
		min-height: 64px;
	}

	.shop-top {
		grid-template-columns: 1fr;
	}

	.controls {
		justify-content: stretch;
	}

	.search,select {
		flex: 1;
		min-width: 190px;
	}
}

@media (max-width:560px) {
	.container {
		width: min(100% - 28px,1480px);
	}

	.categories {
    display: flex;
    flex-wrap: wrap; /* allow wrapping */
    justify-content: center;
    gap: 10px;
    overflow: visible; /* remove scroll */
    padding-bottom: 0;
  }

  .cat {
    flex: 0 1 calc(50% - 10px); /* 2 per row */
    text-align: center;
    justify-content: center;
  }

	.grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding-top: 48px;
	}

	.promo {
		padding: 30px;
	}

	.nav-actions .pill {
		display: none;
	}

	.copyright {
		flex-direction: column;
	}
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  width: min(720px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1b2030, #131722);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  padding: 28px;
  position: relative;
  box-shadow: 0 35px 100px rgba(0,0,0,.65);
}

.close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.close:hover {
  background: #ff4f6d;
}

.modal-content img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 24px;
}

#modalTitle {
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 8px;
}

#modalRating {
  color: #ffd84d;
  margin-bottom: 18px;
}

#modalDesc {
  color: #d7dbea;
  line-height: 1.8;
  font-size: 18px;
  margin-bottom: 28px;
  white-space: pre-line;
}

.modal-bottom {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

#modalPrice {
  font-size: 32px;
  font-weight: 900;
  white-space: nowrap;
}

.modal-bottom .buy {
  width: 100%;
  margin: 0;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 18px;
    border-radius: 22px;
  }

  .modal-content img {
    height: 220px;
  }

  #modalTitle {
    font-size: 26px;
  }

  .modal-bottom {
    grid-template-columns: 1fr;
  }

  #modalPrice {
    font-size: 28px;
  }
}
.view-btn {
  width: 100%;
  height: 44px;
  border-radius: 13px;
  border: 0;
  background: linear-gradient(135deg, #2b3348, #1b2130);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.view-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,92,255,.4), rgba(0,229,255,.3));
  opacity: 0;
  transition: .3s;
}

.view-btn:hover::before {
  opacity: 1;
}

.view-btn:hover {
  transform: translateY(-2px);
}

.order-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.order-form input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #111622;
  color: #fff;
  padding: 0 15px;
  outline: none;
}

.order-form input:focus {
  border-color: rgba(124,92,255,.65);
  box-shadow: 0 0 0 4px rgba(124,92,255,.12);
}

.order-select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: #111622;
  color: #fff;
  padding: 0 15px;
  outline: none;
}

.buy.loading {
  pointer-events: none;
  opacity: .85;
  position: relative;
}

.buy.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#orderMessage {
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 800;
  display: none;
}

#orderMessage.success {
  display: block;
  color: #24e288;
  background: rgba(36,226,136,.12);
  border: 1px solid rgba(36,226,136,.25);
}

#orderMessage.error {
  display: block;
  color: #ff7189;
  background: rgba(255,79,109,.12);
  border: 1px solid rgba(255,79,109,.25);
}
.modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,255,.8) rgba(255,255,255,.05);
}

.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,.05);
  border-radius: 999px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7c5cff, #00e5ff);
  border-radius: 999px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9b8cff, #29efff);
}
.order-head {
  margin-bottom: 18px;
}

.order-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #00e5ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.order-head h3 {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}

.order-head p {
  color: #9aa3b8;
  font-weight: 700;
}

.order-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(0,229,255,.08));
  border: 1px solid rgba(255,255,255,.08);
}

.order-summary span {
  color: #aeb6cc;
  font-weight: 800;
}

.order-summary strong {
  font-size: 24px;
  white-space: nowrap;
}

.order-submit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.order-submit.loading .btn-loader {
  display: inline-block;
}

.order-submit.loading {
  opacity: .85;
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}