:root {
  color-scheme: dark;
  --bg: #09111f;
  --bg-deep: #060b14;
  --panel: #101b2d;
  --panel-soft: #14233a;
  --panel-glass: rgba(14, 25, 42, 0.88);
  --text: #f4f8ff;
  --muted: #a9b8cb;
  --muted-strong: #cfdae8;
  --line: rgba(169, 207, 238, 0.15);
  --line-strong: rgba(169, 207, 238, 0.28);
  --cyan: #49d9ff;
  --cyan-soft: #9beaff;
  --pink: #ff4fd8;
  --violet: #8f6cff;
  --green: #35e58d;
  --warning: #ffc45c;
  --danger: #ff7693;
  --shadow: 0 30px 80px rgba(0, 6, 18, 0.46);
  --shadow-soft: 0 18px 48px rgba(0, 6, 18, 0.28);
  --radius-sm: 0.7rem;
  --radius-md: 1.05rem;
  --radius-lg: 1.5rem;
  --page: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 6%, rgba(73, 217, 255, 0.15), transparent 27rem),
    radial-gradient(circle at 91% 17%, rgba(255, 79, 216, 0.1), transparent 31rem),
    linear-gradient(180deg, #0a1424 0%, var(--bg) 36%, var(--bg-deep) 100%);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.38;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(119, 190, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 190, 228, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

body.drawer-open {
  overflow: hidden;
}

::selection {
  color: #03131a;
  background: var(--cyan);
}

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

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(73, 217, 255, 0.45);
  outline-offset: 3px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #04121a;
  background: var(--cyan);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.trust-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  min-height: 2.55rem;
  padding: 0.55rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(5, 12, 23, 0.88);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trust-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--muted-strong);
}

.trust-bar strong::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 14px rgba(53, 229, 141, 0.7);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5rem;
  padding: 0.75rem max(clamp(1rem, 3vw, 2rem), calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(9, 17, 31, 0.88);
  box-shadow: 0 16px 42px rgba(0, 5, 14, 0.24);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  filter: drop-shadow(0 0 16px rgba(73, 217, 255, 0.24));
}

.brand-mark img,
.auth-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy strong,
.brand-copy small,
.footer-brand strong,
.footer-brand small {
  display: block;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy small,
.footer-brand small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.8rem);
}

.top-nav a {
  position: relative;
  padding: 0.65rem 0.2rem;
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.top-nav a::after {
  position: absolute;
  right: 0.2rem;
  bottom: 0.4rem;
  left: 0.2rem;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.top-nav a:hover::after,
.top-nav a:focus-visible::after {
  transform: scaleX(1);
}

.cart-button,
.icon-button,
.chip,
.text-button {
  border: 0;
  color: inherit;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.72rem 0.65rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 39, 62, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.cart-button:hover {
  border-color: rgba(73, 217, 255, 0.62);
  background: rgba(29, 50, 78, 0.95);
  transform: translateY(-1px);
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 0.35rem;
  border-radius: 50%;
  color: #07111e;
  background: var(--cyan);
  font-size: 0.72rem;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  min-height: min(50rem, calc(100vh - 7.5rem));
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 3vw, 2rem);
}

.hero::after {
  position: absolute;
  right: 12%;
  bottom: 1.5rem;
  left: 12%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 7.2vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  background: linear-gradient(100deg, var(--cyan) 8%, #a8edff 52%, var(--pink) 125%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 46rem;
  margin: 1.7rem 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.78rem 1.2rem;
  border-radius: 0.82rem;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid rgba(170, 242, 255, 0.38);
  color: #06131b;
  background: linear-gradient(135deg, var(--cyan), #9deaff);
  box-shadow: 0 12px 34px rgba(73, 217, 255, 0.16);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 18px 44px rgba(73, 217, 255, 0.25);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(20, 35, 57, 0.72);
}

.secondary-button:hover {
  border-color: rgba(73, 217, 255, 0.54);
  background: rgba(27, 48, 76, 0.84);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 3rem;
}

.hero-metrics article {
  min-width: 8rem;
  padding: 0 1.25rem;
  border-left: 1px solid var(--line-strong);
}

.hero-metrics article:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-size: 1.15rem;
}

.hero-metrics span {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 31rem;
  isolation: isolate;
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  content: "";
  filter: blur(8px);
}

.hero-panel::before {
  width: 22rem;
  height: 22rem;
  background: rgba(73, 217, 255, 0.12);
  box-shadow: 0 0 100px rgba(73, 217, 255, 0.17);
}

.hero-panel::after {
  width: 11rem;
  height: 11rem;
  right: 6%;
  bottom: 5%;
  background: rgba(255, 79, 216, 0.13);
  box-shadow: 0 0 80px rgba(255, 79, 216, 0.16);
}

.panel-orbit {
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(132, 214, 255, 0.15);
  border-radius: 50%;
}

.panel-orbit::before {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(73, 217, 255, 0.8);
}

.orbit-one {
  transform: rotate(-17deg);
}

.orbit-one::before {
  top: 3.4rem;
  right: 3.8rem;
}

.orbit-two {
  width: 20rem;
  height: 20rem;
  border-style: dashed;
  transform: rotate(27deg);
}

.orbit-two::before {
  bottom: 1.75rem;
  left: 5rem;
  background: var(--pink);
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.75);
}

.hero-search-card {
  width: min(100%, 24rem);
  padding: 2rem;
  border: 1px solid rgba(153, 222, 255, 0.24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(28, 49, 76, 0.9), rgba(12, 23, 40, 0.94)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  transform: rotate(-1.2deg);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(53, 229, 141, 0.24);
  border-radius: 999px;
  color: #bffada;
  background: rgba(53, 229, 141, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
}

.status-pill i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(53, 229, 141, 0.8);
}

.hero-search-card > p {
  margin: 2rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.search-examples {
  display: grid;
  gap: 0.55rem;
}

.search-examples span {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--muted-strong);
  background: rgba(7, 15, 27, 0.44);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-search-card > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.3rem;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: calc(var(--page) - 4rem);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(14, 25, 42, 0.58);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.benefit-strip article {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border-left: 1px solid var(--line);
}

.benefit-strip article:first-child {
  border-left: 0;
}

.benefit-number {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.benefit-strip strong,
.benefit-strip small {
  display: block;
}

.benefit-strip strong {
  font-size: 0.83rem;
}

.benefit-strip small {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.catalog-section,
.how-section {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) clamp(1rem, 3vw, 2rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.7rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.section-heading > p,
#resultSummary {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: right;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) repeat(3, minmax(9.5rem, auto));
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.search-field,
.select-field {
  position: relative;
  min-width: 0;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.65rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.78rem;
  background: rgba(5, 12, 23, 0.55);
}

.search-field:focus-within {
  border-color: rgba(73, 217, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(73, 217, 255, 0.08);
}

.search-field i {
  position: relative;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-field i::after {
  position: absolute;
  right: -0.3rem;
  bottom: -0.2rem;
  width: 0.45rem;
  height: 2px;
  content: "";
  background: var(--muted);
  transform: rotate(45deg);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.82rem;
}

.search-field input::placeholder {
  color: #8190a5;
}

.search-field kbd {
  flex: 0 0 auto;
  padding: 0.28rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.35rem;
  color: var(--muted);
  background: rgba(26, 43, 68, 0.78);
  font-family: inherit;
  font-size: 0.6rem;
}

.select-field {
  display: grid;
  align-content: center;
  min-height: 3.65rem;
  padding: 0.45rem 0.8rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  background: rgba(18, 32, 52, 0.72);
}

.select-field span {
  margin-left: 0.2rem;
  color: #7f91a9;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.select-field select {
  width: 100%;
  margin-top: 0.2rem;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
}

.select-field select option {
  color: var(--text);
  background: var(--panel);
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 2rem;
}

.chip {
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(14, 26, 43, 0.58);
  font-size: 0.7rem;
  font-weight: 800;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chip:hover,
.chip.active {
  border-color: rgba(73, 217, 255, 0.42);
  color: var(--text);
  background: rgba(73, 217, 255, 0.11);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.catalog-aside {
  position: sticky;
  top: 6.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 25rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(160deg, rgba(73, 217, 255, 0.1), transparent 42%),
    rgba(16, 29, 48, 0.82);
  box-shadow: var(--shadow-soft);
}

.aside-label {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-aside h3 {
  margin: 1rem 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.catalog-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

.catalog-aside a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.catalog-aside small {
  color: #718198;
  font-size: 0.59rem;
  line-height: 1.55;
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 27, 45, 0.76);
  box-shadow: 0 10px 28px rgba(0, 5, 14, 0.16);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  border-color: rgba(73, 217, 255, 0.36);
  box-shadow: 0 18px 44px rgba(0, 5, 14, 0.3);
  transform: translateY(-3px);
}

.product-image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: inherit;
  background: #f1f5f8;
  aspect-ratio: 1 / 0.82;
}

.product-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 240ms ease;
}

.product-image-button img.is-illustrative {
  object-fit: cover;
  padding: 0;
}

.illustrative-badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(4, 10, 20, 0.8);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.product-card:hover .product-image-button img {
  transform: scale(1.035);
}

.product-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  color: #73859a;
  background:
    linear-gradient(135deg, rgba(73, 217, 255, 0.08), rgba(143, 108, 255, 0.1)),
    #111f33;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.product-badges {
  position: absolute;
  z-index: 2;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: calc(100% - 1.3rem);
  pointer-events: none;
}

.badge {
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #08111f;
  background: rgba(247, 251, 255, 0.9);
  box-shadow: 0 4px 14px rgba(0, 8, 20, 0.12);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.badge.offer {
  color: #27071e;
  background: #ff9de8;
}

.badge.featured {
  color: #071722;
  background: #99ebff;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  color: #8799af;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-button {
  padding: 0;
  margin: 0.75rem 0 0;
  border: 0;
  color: var(--text);
  background: none;
  font-weight: 800;
  line-height: 1.38;
  text-align: left;
}

.product-title-button:hover {
  color: var(--cyan-soft);
}

.product-sku {
  margin: 0.45rem 0 0;
  color: #718399;
  font-size: 0.62rem;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.price-stack span,
.price-stack strong {
  display: block;
}

.old-price {
  min-height: 0.85rem;
  color: #7d8b9f;
  font-size: 0.62rem;
  text-decoration: line-through;
}

.price-stack strong {
  margin-top: 0.16rem;
  font-size: 1.04rem;
  letter-spacing: -0.035em;
}

.stock-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #a5efc7;
  font-size: 0.58rem;
  font-weight: 800;
  text-align: right;
}

.stock-label::before {
  flex: 0 0 auto;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  content: "";
  background: var(--green);
}

.stock-label.consult {
  color: #ffd998;
}

.stock-label.consult::before {
  background: var(--warning);
}

.stock-label.out {
  color: #ff9eb2;
}

.stock-label.out::before {
  background: var(--danger);
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.add-button,
.details-button {
  min-height: 2.55rem;
  border-radius: 0.7rem;
  font-size: 0.68rem;
  font-weight: 900;
}

.add-button {
  border: 1px solid rgba(73, 217, 255, 0.38);
  color: #06131d;
  background: var(--cyan);
}

.add-button:hover {
  background: #94ebff;
}

.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.details-button {
  width: 2.55rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(27, 47, 74, 0.7);
}

.details-button:hover {
  border-color: rgba(73, 217, 255, 0.55);
}

.skeleton-card {
  min-height: 23rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(15, 27, 45, 0.72);
}

.skeleton-image,
.skeleton-line {
  position: relative;
  overflow: hidden;
  background: #17273d;
}

.skeleton-image::after,
.skeleton-line::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.075), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.4s infinite;
}

.skeleton-image {
  height: 12rem;
}

.skeleton-body {
  padding: 1rem;
}

.skeleton-line {
  height: 0.75rem;
  margin: 0.7rem 0;
  border-radius: 99px;
}

.skeleton-line.short {
  width: 44%;
}

.skeleton-line.medium {
  width: 72%;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 24rem;
  padding: 3rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(14, 25, 42, 0.5);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state > span {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  background: rgba(73, 217, 255, 0.07);
  font-size: 2rem;
}

.empty-state h3 {
  margin: 1rem 0 0.5rem;
}

.empty-state p {
  max-width: 28rem;
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
}

.load-more-wrap[hidden] {
  display: none;
}

.how-section {
  border-top: 1px solid var(--line);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(14, 25, 42, 0.58);
}

.steps-grid article {
  min-height: 15rem;
  padding: 1.5rem;
  border-left: 1px solid var(--line);
}

.steps-grid article:first-child {
  border-left: 0;
}

.steps-grid span {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.steps-grid h3 {
  margin: 4rem 0 0.7rem;
  font-size: 1.2rem;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
}

.footer-brand .brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  font-size: 0.78rem;
}

.footer-brand strong {
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.footer-links a,
.site-footer > p {
  color: var(--muted);
  font-size: 0.68rem;
}

.footer-links a:hover {
  color: var(--cyan-soft);
}

.site-footer > p {
  margin: 0;
  text-align: right;
}

.drawer-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(1, 5, 12, 0.7);
  backdrop-filter: blur(5px);
}

.drawer-backdrop[hidden] {
  display: none;
}

.cart-drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 30rem);
  height: 100dvh;
  border-left: 1px solid var(--line-strong);
  background: #0d1828;
  box-shadow: -24px 0 70px rgba(0, 4, 12, 0.42);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

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

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.drawer-header .eyebrow {
  margin-bottom: 0.45rem;
}

.drawer-header h2 {
  font-size: 1.8rem;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(24, 43, 67, 0.8);
  font-size: 1.45rem;
  line-height: 1;
}

.icon-button:hover {
  border-color: rgba(73, 217, 255, 0.6);
  color: var(--cyan);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.6rem 1.4rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-row-image {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 0.65rem;
  color: #74869c;
  background: #eef3f7;
  font-size: 0.55rem;
  font-weight: 800;
  text-align: center;
}

.cart-row-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.cart-row strong,
.cart-row small {
  display: block;
}

.cart-row strong {
  font-size: 0.73rem;
  line-height: 1.35;
}

.cart-row small {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.62rem;
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 1.9rem minmax(1.7rem, auto) 1.9rem;
  align-items: center;
  margin-top: 0.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.quantity-control button {
  height: 1.8rem;
  border: 0;
  color: var(--text);
  background: rgba(32, 53, 81, 0.7);
}

.quantity-control span {
  padding: 0 0.35rem;
  font-size: 0.65rem;
  text-align: center;
}

.remove-button {
  padding: 0.4rem;
  border: 0;
  color: #ff9eb2;
  background: none;
  font-size: 1rem;
}

.cart-empty {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 2rem;
  text-align: center;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty > span {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 2rem;
}

.cart-empty h3 {
  margin: 1rem 0 0.4rem;
}

.cart-empty p {
  max-width: 20rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.drawer-footer {
  padding: 1.2rem 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
  background: #101d30;
}

.drawer-footer[hidden] {
  display: none;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.cart-total span {
  color: var(--muted);
  font-size: 0.72rem;
}

.cart-total strong {
  font-size: 1.25rem;
}

.drawer-footer > p {
  margin: 0.7rem 0 1rem;
  color: #7f90a6;
  font-size: 0.62rem;
  line-height: 1.5;
}

.full-button {
  width: 100%;
}

.text-button {
  display: block;
  margin: 0.85rem auto 0;
  color: var(--muted);
  background: none;
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.product-dialog {
  width: min(58rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: #0f1b2d;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(1, 5, 12, 0.78);
  backdrop-filter: blur(7px);
}

.dialog-close {
  position: sticky;
  z-index: 2;
  top: 0.9rem;
  float: right;
  margin: 0.9rem 0.9rem -3.5rem 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  min-height: 32rem;
}

.product-detail-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 30rem;
  color: #75879c;
  background: #eef3f7;
  font-weight: 800;
  text-align: center;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  max-height: 34rem;
  object-fit: contain;
  padding: 2rem;
}

.product-detail-image.is-illustrative img {
  object-fit: cover;
  padding: 0;
}

.product-detail-copy {
  padding: 2.2rem;
}

.detail-category {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-detail h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.detail-description {
  margin: 1rem 0 0;
  color: var(--muted-strong);
  font-size: 0.8rem;
  line-height: 1.7;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1.2rem 0;
}

.detail-facts div {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(23, 41, 65, 0.62);
}

.detail-facts span,
.detail-facts strong {
  display: block;
}

.detail-facts span {
  color: #7f90a7;
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-facts strong {
  margin-top: 0.3rem;
  font-size: 0.7rem;
}

.detail-price {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.detail-price .price-stack strong {
  font-size: 1.65rem;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1rem;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 1rem;
  bottom: 1rem;
  max-width: min(24rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid rgba(73, 217, 255, 0.36);
  border-radius: 0.75rem;
  color: var(--text);
  background: rgba(15, 30, 49, 0.95);
  box-shadow: var(--shadow-soft);
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.toast[hidden] {
  display: none;
}

.noscript-message {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 1rem;
  border: 1px solid var(--warning);
  border-radius: 0.7rem;
  color: #211706;
  background: #ffe2a8;
  font-weight: 800;
  text-align: center;
}

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

  .catalog-toolbar {
    grid-template-columns: minmax(18rem, 1fr) repeat(3, minmax(8rem, auto));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 48rem;
  }

  .hero-panel {
    min-height: 24rem;
  }

  .benefit-strip {
    max-width: calc(100% - 2rem);
  }

  .catalog-toolbar {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .catalog-aside {
    position: static;
    min-height: auto;
  }

  .catalog-aside small {
    margin-top: 2rem;
  }

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

  .steps-grid article:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .steps-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

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

  .site-footer > p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .trust-bar > span,
  .trust-bar strong:nth-of-type(2) {
    display: none;
  }

  .site-header {
    min-height: 4.5rem;
  }

  .brand-copy small,
  .cart-button span {
    display: none;
  }

  .brand-mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .hero {
    padding-top: 3.7rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 5rem);
  }

  .hero-metrics article {
    min-width: 33.333%;
    padding: 0 0.7rem;
  }

  .hero-panel {
    min-height: 21rem;
  }

  .panel-orbit {
    width: 21rem;
    height: 21rem;
  }

  .orbit-two {
    width: 15rem;
    height: 15rem;
  }

  .hero-search-card {
    width: min(90%, 22rem);
    padding: 1.4rem;
  }

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

  .benefit-strip article,
  .benefit-strip article:first-child {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .benefit-strip article:first-child {
    border-top: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p,
  #resultSummary {
    margin-top: 1rem;
    text-align: left;
  }

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

  .search-field {
    grid-column: auto;
  }

  .search-field kbd {
    display: none;
  }

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

  .product-body {
    padding: 0.8rem;
  }

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

  .details-button {
    width: 100%;
  }

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

  .steps-grid article,
  .steps-grid article:nth-child(3),
  .steps-grid article:nth-child(4) {
    min-height: 12rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .steps-grid article:first-child {
    border-top: 0;
  }

  .steps-grid h3 {
    margin-top: 2.8rem;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

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

  .product-detail-image {
    min-height: 17rem;
  }

  .product-detail-copy {
    padding: 1.3rem;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    display: grid;
  }

  .hero-metrics strong {
    font-size: 0.95rem;
  }

  .hero-metrics span {
    font-size: 0.58rem;
  }

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

  .product-image-button {
    aspect-ratio: 1.25 / 1;
  }

  .detail-facts,
  .detail-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Area profissional autenticada */
body.auth-pending {
  overflow: hidden;
}

.auth-gate[hidden],
.account-popover[hidden],
.register-form[hidden],
.register-success[hidden] {
  display: none;
}

.auth-gate {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
  min-height: 100dvh;
  overflow: auto;
  background:
    radial-gradient(circle at 15% 20%, rgba(73, 217, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 80% 80%, rgba(255, 79, 216, 0.13), transparent 32rem),
    #07101d;
}

.auth-visual,
.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
}

.auth-visual {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  min-height: 100dvh;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(rgba(119, 190, 228, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119, 190, 228, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: clamp(3rem, 9vh, 7rem);
  filter: drop-shadow(0 0 28px rgba(73, 217, 255, 0.28));
}

.auth-visual h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.auth-visual > div > p:last-child {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.7;
}

.auth-card {
  align-items: stretch;
  width: min(100%, 39rem);
  margin: auto;
}

.auth-back {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3rem);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-mobile-logo {
  display: none;
  width: 5rem;
  height: 5rem;
  margin: 0 0 1.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(73, 217, 255, 0.25));
}

.auth-card-copy {
  margin-bottom: 2rem;
}

.auth-card-copy h2 {
  margin: 1.15rem 0 0.55rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.05em;
}

.auth-card-copy > p {
  margin: 0;
  color: var(--muted);
}

.auth-field,
.checkout-text-field {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--muted-strong);
  font-size: 0.74rem;
  font-weight: 800;
}

.auth-field > input,
.auth-field > select,
.password-field,
.checkout-text-field input,
.checkout-text-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  color: var(--text);
  background: rgba(18, 33, 54, 0.9);
}

.auth-field > input,
.auth-field > select,
.checkout-text-field input,
.checkout-text-field textarea {
  padding: 1rem;
}

.auth-field > select {
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  color: var(--text);
  background: rgba(18, 33, 54, 0.9);
}

.password-field {
  display: flex;
  align-items: center;
}

.password-field input {
  min-width: 0;
  flex: 1;
  padding: 1rem;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.password-field button {
  padding: 0.65rem 0.9rem;
  border: 0;
  color: var(--cyan-soft);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
}

.auth-submit {
  margin-top: 0.35rem;
}

.auth-switch-button {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.8rem;
  border: 0;
  color: var(--cyan-soft);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-gate.registration-mode {
  grid-template-columns: minmax(18rem, 0.68fr) minmax(38rem, 1.32fr);
}

.registration-mode .auth-visual h1 {
  font-size: clamp(2.3rem, 4vw, 4.5rem);
}

.registration-mode .auth-card {
  width: min(100%, 54rem);
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.register-section {
  margin-bottom: 1.25rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(11, 23, 39, 0.66);
}

.register-section h3 {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.85rem;
}

.register-grid .auth-field {
  min-width: 0;
}

.register-wide {
  grid-column: 1 / -1;
}

.legal-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.legal-check input {
  margin-top: 0.2rem;
  accent-color: var(--cyan);
}

.legal-check a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.register-success {
  display: grid;
  place-items: center;
  padding: 2rem 0;
  text-align: center;
}

.register-success > span {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #04160d;
  background: var(--green);
  font-size: 2rem;
  font-weight: 900;
}

.register-success h3 {
  margin: 0;
  font-size: 2rem;
}

.register-success p {
  max-width: 32rem;
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.auth-error,
.checkout-error {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 118, 147, 0.35);
  border-radius: 0.8rem;
  color: #ffd8e1;
  background: rgba(255, 118, 147, 0.1);
  font-size: 0.78rem;
  line-height: 1.5;
}

.auth-help {
  margin-top: 1.5rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  background: rgba(11, 23, 39, 0.68);
  font-size: 0.78rem;
}

.auth-help strong {
  color: var(--text);
}

.auth-help p {
  margin: 0.35rem 0 0.8rem;
}

.auth-help a {
  color: var(--cyan);
  font-weight: 800;
}

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

.account-menu {
  position: relative;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.7rem 0.42rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(16, 30, 49, 0.78);
}

.account-button > span:first-child {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  color: #06101b;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  font-size: 0.65rem;
  font-weight: 900;
}

.account-button small,
.account-button strong {
  display: block;
  max-width: 9rem;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-button small {
  color: var(--green);
  font-size: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-button strong {
  font-size: 0.7rem;
}

.account-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 0.65rem);
  right: 0;
  display: grid;
  width: 16rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  background: #111f33;
  box-shadow: var(--shadow-soft);
}

.account-popover > small {
  margin: 0.25rem 0 0.85rem;
  color: var(--muted);
}

.account-popover button {
  padding: 0.75rem 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--muted-strong);
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.checkout-dialog,
.orders-dialog {
  width: min(70rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--text);
  background: #0d192a;
  box-shadow: var(--shadow);
}

.orders-dialog {
  width: min(38rem, calc(100% - 2rem));
}

.checkout-dialog::backdrop,
.orders-dialog::backdrop {
  background: rgba(1, 5, 12, 0.82);
  backdrop-filter: blur(7px);
}

.checkout-heading {
  padding: 2.25rem 2.25rem 1rem;
}

.checkout-heading h2,
.orders-content h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.checkout-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: 1px;
  background: var(--line);
}

.checkout-fields,
.checkout-summary {
  padding: 2.25rem;
  background: #0d192a;
}

.checkout-fields fieldset {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.checkout-fields legend {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.choice-card {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(18, 34, 56, 0.76);
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: rgba(73, 217, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(73, 217, 255, 0.16);
}

.choice-card input {
  accent-color: var(--cyan);
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card small {
  margin-top: 0.25rem;
  color: var(--muted);
}

.address-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--cyan);
  color: var(--muted);
  background: rgba(73, 217, 255, 0.07);
  font-size: 0.75rem;
  line-height: 1.5;
}

.address-card[hidden] {
  display: none;
}

.address-card strong {
  color: var(--text);
}

.checkout-text-field textarea {
  resize: vertical;
  font: inherit;
}

.checkout-summary {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100%;
  background: #101e31;
}

.checkout-summary h3 {
  margin: 0 0 1rem;
}

.checkout-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
}

.checkout-item span,
.checkout-item small {
  color: var(--muted);
}

.checkout-summary dl {
  margin: 1.25rem 0;
}

.checkout-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.checkout-summary .checkout-total {
  margin-top: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.checkout-summary > small {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.order-success {
  display: grid;
  place-items: center;
  min-height: 34rem;
  padding: 3rem;
  text-align: center;
}

.order-success > span {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  color: #04160d;
  background: var(--green);
  font-size: 2.2rem;
  font-weight: 900;
  box-shadow: 0 0 55px rgba(53, 229, 141, 0.25);
}

.order-success h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

.order-success > p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--muted);
  line-height: 1.7;
}

.order-success > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.orders-content {
  padding: 2.5rem;
}

.order-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.order-row strong,
.order-row small {
  display: block;
}

.order-row small {
  margin-top: 0.3rem;
  color: var(--muted);
  text-transform: capitalize;
}

.orders-empty {
  display: grid;
  place-items: center;
  min-height: 14rem;
  color: var(--muted);
  text-align: center;
}

.orders-empty span {
  font-size: 2rem;
}

@media (max-width: 1050px) {
  .account-button > span:last-child,
  .top-nav {
    display: none;
  }

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

@media (max-width: 820px) {
  .auth-gate {
    grid-template-columns: 1fr;
  }

  .auth-gate.registration-mode {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-mobile-logo {
    display: block;
  }

  .auth-card {
    min-height: 100dvh;
    padding: 5rem 1.25rem 2rem;
  }

  .registration-mode .auth-card {
    width: min(100%, 44rem);
    padding: 5rem 1.25rem 2rem;
  }

  .auth-back {
    top: 1.5rem;
  }

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

  .checkout-heading,
  .checkout-fields,
  .checkout-summary,
  .orders-content {
    padding: 1.35rem;
  }

  .checkout-summary {
    position: static;
  }
}

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

  .register-wide {
    grid-column: auto;
  }

  .register-section {
    padding: 0.9rem;
  }
}

@media (max-width: 520px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .checkout-dialog,
  .orders-dialog {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }
}
