:root {
  --background: #0b0c0e;
  --background-soft: #111316;
  --panel: #15171a;
  --panel-light: #1c1f23;
  --panel-hover: #23272c;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);

  --text: #f5f5f5;
  --muted: #949aa3;
  --muted-light: #b9bdc4;

  --accent: #d5d7da;
  --accent-hover: #ffffff;
  --accent-text: #111214;

  --danger: #e26f6f;
  --success: #8fc7a3;

  --radius-small: 12px;
  --radius-medium: 17px;
  --radius-large: 24px;

  --shadow:
    0 30px 90px
    rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(87, 92, 101, 0.28),
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 35%,
      rgba(49, 52, 58, 0.18),
      transparent 30%
    ),
    var(--background);

  color: var(--text);

  font-family:
    "Inter",
    Arial,
    sans-serif;

  -webkit-font-smoothing:
    antialiased;
}

body,
button,
select,
textarea {
  font-family:
    "Inter",
    Arial,
    sans-serif;
}

button,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color:
    transparent;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
}

.noise {
  position: fixed;
  inset: 0;

  z-index: -1;

  opacity: 0.035;
  pointer-events: none;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.75'/%3E%3C/svg%3E");
}

.shell {
  width:
    min(
      1180px,
      calc(100% - 40px)
    );

  margin-inline: auto;
}

.hidden {
  display: none !important;
}

/* Header */

.nav {
  position: relative;
  z-index: 20;

  min-height: 86px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 26px;

  border-bottom:
    1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  color: var(--text);
  text-decoration: none;

  font-size: 19px;
  font-weight: 800;

  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #eeeeef,
      #7a7f86
    );

  color: #121315;

  font-size: 18px;
  font-weight: 800;

  box-shadow:
    0 10px 30px
    rgba(255, 255, 255, 0.07);
}

.nav-links {
  display: flex;
  align-items: center;

  gap: 29px;
}

.nav-links a {
  position: relative;

  padding: 10px 0;

  color: var(--muted);

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;

  transition:
    color 0.2s ease;
}

.nav-links a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;

  height: 1px;

  background: var(--accent);

  transform: scaleX(0);
  transform-origin: center;

  transition:
    transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.auth-area {
  min-width: 150px;

  display: flex;
  justify-content: flex-end;
}

/* Buttons */

.btn,
.cart-button {
  min-height: 47px;

  padding: 11px 19px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  border-radius: 13px;

  font-size: 14px;
  font-weight: 700;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.cart-button:hover {
  transform: translateY(-2px);
}

.btn:active,
.cart-button:active {
  transform: translateY(0);
}

.primary {
  border:
    1px solid transparent;

  background: var(--accent);
  color: var(--accent-text);

  box-shadow:
    0 12px 35px
    rgba(255, 255, 255, 0.08);
}

.primary:hover {
  background: var(--accent-hover);

  box-shadow:
    0 16px 40px
    rgba(255, 255, 255, 0.12);
}

.ghost {
  border:
    1px solid var(--border);

  background:
    rgba(255, 255, 255, 0.025);

  color: var(--text);
}

.ghost:hover {
  border-color:
    var(--border-strong);

  background:
    rgba(255, 255, 255, 0.05);
}

.full {
  width: 100%;
}

/* Authentication */

.user-chip {
  display: flex;
  align-items: center;

  gap: 10px;

  padding:
    7px 9px;

  border:
    1px solid var(--border);

  border-radius: 14px;

  background:
    rgba(21, 23, 26, 0.86);

  backdrop-filter:
    blur(12px);
}

.user-chip img {
  width: 33px;
  height: 33px;

  flex-shrink: 0;

  border-radius: 10px;

  object-fit: cover;
}

.user-chip span {
  max-width: 130px;

  overflow: hidden;

  color: var(--text);

  font-size: 13px;
  font-weight: 600;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip button {
  border: 0;

  padding: 6px;

  background: transparent;
  color: var(--muted);

  font-size: 12px;

  cursor: pointer;

  transition:
    color 0.2s ease;
}

.user-chip button:hover {
  color: var(--text);
}

.avatar-fallback {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  background:
    linear-gradient(
      145deg,
      #555a61,
      #1b1e22
    );

  color: #e4e4e4;

  font-weight: 800;
}

/* Hero */

.hero {
  min-height:
    calc(100vh - 86px);

  padding:
    90px 0;

  display: grid;

  grid-template-columns:
    1.08fr 0.92fr;

  align-items: center;

  gap: 74px;
}

.eyebrow {
  display: inline-block;

  margin-bottom: 14px;

  color: var(--muted-light);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.hero h1 {
  margin:
    0 0 24px;

  font-size:
    clamp(
      44px,
      6vw,
      69px
    );

  line-height: 1.06;

  letter-spacing: -3px;
}

.hero h1 span {
  color: #8e939a;
}

.hero p {
  max-width: 640px;

  margin: 0;

  color: var(--muted);

  font-size: 17px;

  line-height: 1.85;
}

.hero-actions {
  margin-top: 30px;

  display: flex;

  gap: 12px;
}

.stats {
  margin-top: 48px;

  display: flex;

  gap: 36px;
}

.stats div {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.stats strong {
  color: var(--text);

  font-size: 18px;
}

.stats span {
  color: var(--muted);

  font-size: 12px;
}

/* Hero preview */

.hero-card {
  position: relative;
}

.hero-card::before {
  content: "";

  position: absolute;
  inset: 14%;

  background: #838891;

  opacity: 0.22;

  filter: blur(75px);
}

.dashboard-window {
  position: relative;

  padding: 18px;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.13);

  border-radius: 29px;

  background:
    rgba(23, 25, 28, 0.88);

  box-shadow: var(--shadow);

  backdrop-filter:
    blur(20px);

  transform:
    perspective(1000px)
    rotateY(-6deg)
    rotateX(2deg);
}

.window-top {
  display: flex;

  gap: 7px;

  padding:
    5px 5px 18px;
}

.window-top span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #666a70;
}

.window-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 12px;
}

.mini-card {
  min-height: 120px;

  padding: 20px;

  border:
    1px solid var(--border);

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      #22252a,
      #16181b
    );
}

.mini-card.wide {
  min-height: 175px;

  grid-column:
    span 2;
}

.mini-card small {
  display: block;

  margin-bottom: 9px;

  color: var(--muted);

  font-size: 12px;
}

.mini-card strong {
  font-size: 22px;
}

.spark {
  height: 58px;

  margin-top: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.15),
      transparent
    );

  clip-path:
    polygon(
      0 82%,
      10% 52%,
      23% 66%,
      35% 18%,
      47% 53%,
      59% 29%,
      72% 55%,
      85% 12%,
      100% 36%,
      100% 100%,
      0 100%
    );
}

.product-preview {
  display: flex;
  align-items: center;

  gap: 14px;
}

.preview-img {
  width: 60px;
  height: 60px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      #d9dade,
      #565b62
    );

  color: #131416;

  font-size: 20px;
  font-weight: 800;
}

/* Sections */

.section {
  padding:
    84px 0;
}

.section-head {
  margin-bottom: 34px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;
}

.section-head h2 {
  margin:
    0 0 10px;

  font-size:
    clamp(
      30px,
      4vw,
      40px
    );

  letter-spacing: -1.5px;
}

.section-description {
  max-width: 610px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.75;
}

/* Cart button */

.cart-button {
  flex-shrink: 0;

  border:
    1px solid var(--border);

  background:
    var(--panel-light);

  color: var(--text);
}

.cart-button:hover {
  border-color:
    var(--border-strong);

  background:
    var(--panel-hover);
}

.cart-button span {
  min-width: 24px;
  height: 24px;

  margin-left: 5px;

  padding:
    0 7px;

  display: inline-grid;
  place-items: center;

  border-radius: 50px;

  background: var(--accent);
  color: var(--accent-text);

  font-size: 12px;
  font-weight: 800;
}

/* Products */

.products-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 19px;
}

.product-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-large);

  background:
    linear-gradient(
      160deg,
      rgba(34, 37, 42, 0.96),
      rgba(17, 19, 22, 0.98)
    );

  box-shadow:
    0 18px 55px
    rgba(0, 0, 0, 0.15);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform:
    translateY(-6px);

  border-color:
    var(--border-strong);

  box-shadow:
    0 25px 65px
    rgba(0, 0, 0, 0.25);
}

.product-image {
  position: relative;

  height: 228px;

  display: grid;
  place-items: center;

  overflow: hidden;

  background:
    #25282d
    center /
    cover
    no-repeat;
}

.product-image::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      180deg,
      transparent 52%,
      rgba(8, 9, 10, 0.45)
    );

  pointer-events: none;
}

.product-fallback {
  background:
    linear-gradient(
      145deg,
      #565b62,
      #1c1f23
    );

  color: #e7e7e7;

  font-size: 25px;
  font-weight: 800;

  letter-spacing: 5px;
}

.product-body {
  padding: 23px;

  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-body h3 {
  margin:
    0 0 9px;

  color: var(--text);

  font-size: 20px;

  letter-spacing: -0.4px;
}

.product-body p {
  min-height: 54px;

  margin: 0;

  overflow: hidden;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.75;
}

.product-meta {
  margin:
    20px 0 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.product-price {
  color: var(--text);

  font-size: 18px;
  font-weight: 800;
}

.stock {
  padding:
    5px 9px;

  border:
    1px solid var(--border);

  border-radius: 20px;

  color: var(--muted-light);

  font-size: 11px;
}

.variant-label {
  display: block;

  margin-bottom: 8px;

  color: var(--muted);

  font-size: 11px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.8px;
}

.variant-select {
  width: 100%;
  height: 47px;

  margin-bottom: 12px;
  padding:
    0 13px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  outline: none;

  background: #101215;
  color: var(--text);

  font-size: 13px;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.variant-select:hover {
  border-color:
    var(--border-strong);
}

.variant-select:focus {
  border-color:
    rgba(255, 255, 255, 0.35);

  background: #131518;
}

.variant-select option {
  background: #15171a;
  color: var(--text);
}

.product-card .btn {
  width: 100%;

  margin-top: auto;
}

/* Empty state */

.empty {
  padding: 45px 25px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 9px;

  border:
    1px dashed
    var(--border-strong);

  border-radius:
    var(--radius-large);

  background:
    rgba(255, 255, 255, 0.02);

  color: var(--muted);

  text-align: center;
}

.empty strong {
  color: var(--text);

  font-size: 17px;
}

.empty span {
  font-size: 13px;
}

/* Features */

.feature-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 18px;
}

.feature-grid article {
  padding: 30px;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-large);

  background:
    linear-gradient(
      145deg,
      #17191c,
      #121416
    );

  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.feature-grid article:hover {
  transform:
    translateY(-4px);

  border-color:
    var(--border-strong);
}

.feature-number {
  color: #70757d;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1px;
}

.feature-grid h3 {
  margin:
    19px 0 11px;

  font-size: 20px;
}

.feature-grid p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.8;
}

/* Orders */

.orders-grid {
  display: grid;

  gap: 12px;
}

.order-row {
  padding:
    18px 20px;

  display: grid;

  grid-template-columns:
    1fr auto auto;

  align-items: center;

  gap: 20px;

  border:
    1px solid var(--border);

  border-radius:
    var(--radius-medium);

  background:
    linear-gradient(
      145deg,
      #17191c,
      #121416
    );
}

.order-row strong {
  font-size: 14px;
}

.order-row small {
  display: block;

  margin-top: 5px;

  color: var(--muted);

  font-size: 11px;
}

.status {
  padding:
    7px 11px;

  border:
    1px solid var(--border);

  border-radius: 20px;

  background: #24272c;

  color: var(--muted-light);

  font-size: 11px;
  font-weight: 600;

  white-space: nowrap;
}

/* Footer */

footer {
  padding:
    36px 0 48px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-top:
    1px solid var(--border);

  color: #72777f;

  font-size: 12px;
}

footer div {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

footer strong {
  color: var(--muted-light);

  font-size: 13px;
}

/* Drawer */

.drawer {
  position: fixed;
  inset: 0;

  z-index: 100;

  pointer-events: none;
}

.drawer.open {
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;

  background:
    rgba(0, 0, 0, 0.68);

  opacity: 0;

  backdrop-filter:
    blur(3px);

  transition:
    opacity 0.25s ease;
}

.drawer.open
.drawer-backdrop {
  opacity: 1;
}

.drawer aside {
  position: absolute;
  top: 0;
  right: 0;

  width:
    min(
      460px,
      100%
    );

  height: 100%;

  display: flex;
  flex-direction: column;

  border-left:
    1px solid var(--border);

  background:
    rgba(16, 18, 20, 0.98);

  box-shadow:
    -25px 0 80px
    rgba(0, 0, 0, 0.42);

  transform:
    translateX(100%);

  transition:
    transform 0.3s ease;
}

.drawer.open aside {
  transform:
    translateX(0);
}

.drawer-head {
  min-height: 95px;

  padding:
    22px 23px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-bottom:
    1px solid var(--border);
}

.drawer-head .eyebrow {
  margin-bottom: 5px;
}

.drawer-head h3 {
  margin: 0;

  font-size: 21px;
}

.drawer-close {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border:
    1px solid var(--border);

  border-radius: 12px;

  background:
    var(--panel);

  color: var(--text);

  font-size: 24px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.drawer-close:hover {
  border-color:
    var(--border-strong);

  background:
    var(--panel-hover);
}

.cart-items {
  flex: 1;

  overflow-y: auto;

  padding:
    17px 21px;
}

.cart-items::-webkit-scrollbar {
  width: 7px;
}

.cart-items::-webkit-scrollbar-thumb {
  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.13);
}

.cart-item {
  padding:
    14px 0;

  display: grid;

  grid-template-columns:
    58px 1fr auto;

  align-items: center;

  gap: 13px;

  border-bottom:
    1px solid var(--border);
}

.cart-thumb {
  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  overflow: hidden;

  border:
    1px solid var(--border);

  border-radius: 13px;

  background:
    #2a2d31
    center /
    cover
    no-repeat;

  color: var(--text);

  font-weight: 800;
}

.cart-item strong {
  display: block;

  margin-bottom: 5px;

  color: var(--text);

  font-size: 13px;
}

.cart-item small {
  display: block;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.5;
}

.qty {
  display: flex;
  align-items: center;

  gap: 8px;
}

.qty button {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  border:
    1px solid var(--border);

  border-radius: 8px;

  background: #22252a;
  color: var(--text);

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.qty button:hover {
  border-color:
    var(--border-strong);

  background:
    #2a2e33;
}

.qty span {
  min-width: 18px;

  color: var(--text);

  font-size: 12px;
  font-weight: 700;

  text-align: center;
}

.drawer-footer {
  padding:
    20px 22px 23px;

  border-top:
    1px solid var(--border);

  background:
    rgba(13, 15, 17, 0.96);
}

.order-note-label {
  display: block;

  margin-bottom: 8px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 600;
}

.drawer-footer textarea {
  width: 100%;
  min-height: 83px;

  padding: 12px 13px;

  resize: vertical;

  border:
    1px solid var(--border);

  border-radius: 12px;

  outline: none;

  background: #0b0d0f;
  color: var(--text);

  font-size: 13px;

  line-height: 1.55;

  transition:
    border-color 0.2s ease;
}

.drawer-footer textarea::placeholder {
  color: #666c74;
}

.drawer-footer textarea:focus {
  border-color:
    rgba(255, 255, 255, 0.35);
}

.cart-total {
  margin:
    18px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.cart-total span {
  color: var(--muted);

  font-size: 13px;
}

.cart-total strong {
  color: var(--text);

  font-size: 17px;
}

.message {
  min-height: 20px;

  margin-top: 13px;

  color: var(--muted-light);

  font-size: 12px;

  line-height: 1.7;

  text-align: center;
}

.order-success {
  display: block;

  margin-bottom: 5px;

  color: var(--success);

  font-weight: 700;
}

.order-code {
  display: block;

  margin:
    11px 0;

  padding:
    12px;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-radius: 12px;

  background: #090b0c;
  color: var(--text);

  font-size: 19px;
  font-weight: 800;

  letter-spacing: 2px;

  user-select: all;
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns:
      1fr;

    min-height: auto;

    padding:
      80px 0;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-card {
    display: none;
  }

  .products-grid,
  .feature-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: 76px;
  }

  .nav-links {
    display: none;
  }

  .auth-area {
    min-width: auto;
  }

  .hero {
    padding:
      65px 0;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .stats {
    gap: 23px;
  }

  .section {
    padding:
      64px 0;
  }

  .section-head {
    align-items: flex-start;
  }

  .order-row {
    grid-template-columns:
      1fr auto;
  }

  .order-row .status {
    grid-column:
      1 / -1;

    width: fit-content;
  }
}

@media (max-width: 620px) {
  .shell {
    width:
      min(
        calc(100% - 24px),
        1180px
      );
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .user-chip span {
    display: none;
  }

  .hero {
    padding:
      55px 0;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .stats {
    flex-direction: column;

    gap: 15px;
  }

  .products-grid,
  .feature-grid {
    grid-template-columns:
      1fr;
  }

  .section-head {
    flex-direction: column;

    margin-bottom: 25px;
  }

  .cart-button {
    width: 100%;
  }

  .product-image {
    height: 205px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .drawer aside {
    width: 100%;
  }

  .cart-item {
    grid-template-columns:
      52px 1fr;
  }

  .cart-thumb {
    width: 52px;
    height: 52px;
  }

  .qty {
    grid-column:
      1 / -1;

    justify-content: flex-end;
  }
}