@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap");

:root {
  --bg: #0b0d10;
  --bg-2: #12161c;
  --bg-3: #1a2028;
  --surface: #ffffff;
  --text: #12151a;
  --muted: #5b6675;
  --line: #e6eaf0;
  --accent: #f40045;
  --accent-2: #ff2a63;
  --accent-dark: #af0032;
  --ok: #1f9d55;
  --shadow: 0 18px 50px rgba(10, 14, 20, 0.16);
  --radius: 18px;
  --container: 1180px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--text);
  background: #f4f6f8;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: #fff;
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 6px 4px;
  font-weight: 600;
}

.cart-btn .cart-icon-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.cart-btn .cart-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.cart-btn .cart-meta strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.icon-btn {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-btn:hover {
  border-color: #cfd6df;
}

.site-header .icon-btn {
  border-color: rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
}

.site-header .icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px 18px;
  z-index: 60;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.mobile-nav a {
  color: #fff;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a.active {
  color: var(--accent);
}

.mobile-nav.open {
  display: flex;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  color: #fff;
  overflow: hidden;
  background: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.65) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, #f4f6f8, transparent);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 96px;
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Unbounded, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;
  max-width: 18ch;
}

.hero p {
  margin: 18px auto 28px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.55;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px rgba(244, 0, 69, 0.35);
  border-radius: 4px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 16px 36px rgba(244, 0, 69, 0.42);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-dark {
  background: var(--bg);
  color: #fff;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero .btn-primary {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.92rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 56px;
  width: min(760px, 100%);
}

.stat {
  padding: 0;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.stat strong {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 700;
}

.stat span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-head p,
.muted {
  color: var(--muted);
}

.promo {
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.promo-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.promo-copy {
  padding: 36px;
}

.promo-copy .tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffe8ea;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.promo-copy h2 {
  margin: 0 0 12px;
  font-family: Unbounded, sans-serif;
  letter-spacing: -0.03em;
}

.promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.banner-strip {
  margin: 28px 0 0;
  border-radius: 18px;
  overflow: hidden;
}

.banner-strip img {
  width: 100%;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.chip.active {
  background: var(--bg);
  color: #fff;
  border-color: var(--bg);
}

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

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
  animation: rise 0.55s ease both;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #f7f8fa, #eef1f5);
  display: grid;
  place-items: center;
  padding: 18px;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.badge.out {
  background: #697280;
}

.product-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-cat {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b8860b;
  font-size: 0.88rem;
  font-weight: 700;
}

.rating span {
  color: var(--muted);
  font-weight: 500;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.price {
  font-family: Unbounded, sans-serif;
  font-size: 1.05rem;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .product-actions {
    grid-template-columns: 1fr;
  }
}

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

.gallery-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  transition: 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(10, 14, 20, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 10px;
}

.gallery-item span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

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

.pay-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
}

.pay-card img {
  height: 42px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.pay-card h3 {
  margin: 0 0 8px;
  font-family: Unbounded, sans-serif;
  font-size: 1rem;
}

.tech {
  background: var(--bg);
  color: #fff;
  overflow: hidden;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.tech h2 {
  font-family: Unbounded, sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

.tech p {
  color: rgba(255, 255, 255, 0.78);
}

.tech-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-media img,
.tech-media video {
  width: 100%;
  display: block;
}

.video-section video {
  width: 100%;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

.reviews-section {
  background: #0e1217;
  color: #fff;
}

.reviews-section .section-head h2 {
  color: #fff;
}

.reviews-section .muted {
  color: rgba(255, 255, 255, 0.6);
}

.reviews-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 32px;
}

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

.review-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
  min-height: 100%;
}

.review-card p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  font-size: 0.95rem;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-top img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(244, 0, 69, 0.45);
}

.review-top strong {
  display: block;
  color: #fff;
}

.review-top span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.review-stars {
  color: #f5b301;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: #0e1217;
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-family: Unbounded, sans-serif;
  color: #fff;
  font-size: 1rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 80;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.18);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h3,
.modal-head h3 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: 1.05rem;
}

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

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 48px 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f3f5f7;
  border-radius: 12px;
}

.cart-item h4 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f7f8fa;
  cursor: pointer;
}

.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.remove-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
}

.drawer-foot {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-weight: 700;
}

.total-row strong {
  font-family: Unbounded, sans-serif;
  font-size: 1.15rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(780px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
}

.checkout-form,
.checkout-summary {
  padding: 20px;
}

.checkout-form {
  border-right: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfcfd;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #b8c0cc;
  background: #fff;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.success-box {
  display: none;
  padding: 28px 20px 32px;
  text-align: center;
}

.success-box.open {
  display: block;
}

.success-box h3 {
  font-family: Unbounded, sans-serif;
  margin: 10px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 120;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .menu-toggle {
    display: grid;
  }

  .cart-btn .cart-meta {
    display: none;
  }

  .promo-card,
  .tech-grid,
  .footer-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

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

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

  .stats {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .grid,
  .gallery-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .hero-content {
    padding: 48px 0 72px;
  }
}
