:root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f5f6f7;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #0b0f19, #010306 60%);
}

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

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #4ade80, #22d3ee);
  border-radius: 999px;
  display: inline-block;
}

.topbar__links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.topbar__logout {
  margin: 0;
}

.topbar__toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f6f7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.topbar__toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.topbar__toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #10b981;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid #0b0f19;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}


.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.marquee {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #a5f3fc;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.hero {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
}

.hero__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 40%);
  pointer-events: none;
}

.hero__fullscreen {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.hero__text {
  position: absolute;
  bottom: 1.75rem;
  left: 1.5rem;
  right: 1.5rem;
  pointer-events: none;
  display: grid;
  gap: 0.35rem;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #4ade80;
  margin: 0;
}

.lede {
  color: #cbd5e1;
  margin: 0;
  max-width: 70ch;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
}

.hero--placeholder {
  padding: 2rem;
}

.hero__placeholder {
  display: grid;
  gap: 0.5rem;
}

.card {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.card h2 {
  margin: 0.25rem 0;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
}

.card__text {
  max-width: 640px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  position: relative;
}

.btn--solid {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn--solid:hover {
  opacity: 0.9;
}

.btn--ghost {
  background: transparent;
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.product-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  text-decoration: none;
  color: inherit;
}

.product-card__media {
  background-size: cover;
  background-position: center;
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.product-card__body {
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
  flex: 1 1 auto;
}

.product-card__body h3 {
  margin: 0;
  font-size: 1.2rem;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.muted {
  color: #cbd5e1;
}

.card--muted {
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.product-detail {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.product-detail__media {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.product-detail__body {
  padding: 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.product-detail__form {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field select,
.field input[type="number"] {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #000;
  padding: 0.65rem 0.75rem;
}

.stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkout-card.stack {
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.checkout-card .form-field {
  padding: 0.25rem 0;
}

.form-row__item {
  display: grid;
  gap: 0.35rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="tel"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: #fff;
}


.card-number-field {
  position: relative;
}

.card-number-field input {
  padding-right: 3rem;
}

.card-brand {
  display: none;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80% 80%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  opacity: 0.95;
  pointer-events: none;
}

.card-brand.is-visible {
  display: block;
}

.card-brand.visa {
  background-image: url("/images/cardlogo/visa-logo.svg");
}

.card-brand.mastercard {
  background-image: url("/images/cardlogo/mc-logo.svg");
}

.card-brand.amex {
  background-image: url("/images/cardlogo/amex-logo.svg");
}

.card-brand.discover {
  background-image: url("/images/cardlogo/discover-logo.svg");
}

.card-brand.maestro {
  background-image: url("/images/cardlogo/maestro-logo.svg");
}

.card-brand.diners {
  background-image: url("/images/cardlogo/dc-logo-2.svg");
}

.card-brand.jcb {
  background-image: url("/images/cardlogo/jcb-logo-2.svg");
}

.form-error {
  margin: 0;
  color: #fda4af;
  font-size: 0.85rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
}

.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.form-row__item {
  flex: 1;
  min-width: min(240px, 100%);
}

.form-row__item--small {
  flex: 0 0 140px;
  min-width: 120px;
}

.cart-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  min-width: 0;
}

.cart-items {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  min-width: 0;
}

.checkout-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: block;
  align-items: stretch;
  justify-items: stretch;
  padding: 1.25rem;
}

.checkout-card .form-field {
  min-width: 0;
}

.checkout-card input:not([type="checkbox"]):not([type="radio"]),
.checkout-card select,
.checkout-card textarea {
  width: 100%;
  box-sizing: border-box;
}

.checkout-card input[type="checkbox"],
.checkout-card input[type="radio"] {
  width: auto;
  height: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr 120px;
  gap: 0.5rem;
  min-height: 80px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.75rem;
}

.cart-item__media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
}

.cart-item__body {
  align-self: flex-start;
  border-radius: 10px;
  display: grid;
  gap: 0.25rem;
}

.cart-item__body h3 {
  margin: 0 0 0.25rem;
}

.cart-item__controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.quantity-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.quantity-form input[type="number"] {
  width: 70px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  color: #fff;
}

.cart-item__price {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  font-weight: 700;
}

.cart-summary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
  align-content: end;
  align-items: start;
  min-width: 0;
}

.pill--active {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 8px 30px rgba(56, 189, 248, 0.12);
}

.mono {
  font-family: 'Inter', 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.06em;
}

.status-panel {
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(0, 0, 0, 0.4));
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.status-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.status-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.status-stat {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
}

.status-panel__shipping {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
}

.item-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.25rem;
}

.item-list li {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.status-pill--success {
  border-color: rgba(74, 222, 128, 0.6);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.18);
}

.status-pill--warning {
  border-color: rgba(251, 191, 36, 0.6);
  color: #fef08a;
  background: rgba(250, 204, 21, 0.18);
}

.status-pill--danger {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fecdd3;
  background: rgba(239, 68, 68, 0.16);
}

.status-pill--muted {
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.14);
}

.status-pill--info {
  border-color: rgba(56, 189, 248, 0.6);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.14);
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.order-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.35));
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.teya-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.teya-logo {
  display: inline-block;
  width: 64px;
  height: 44px;
  background: url("/images/teya.png") center/contain no-repeat;
  flex-shrink: 0;
  align-self: flex-start;
}

.teya-card {
  background: #fff;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.order-card__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.order-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.5rem;
  flex-wrap: wrap;
}

.order-card__contact {
  text-align: right;
}

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

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

@media (max-width: 640px) {
  .hero__text {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }

  .eyebrow {
    letter-spacing: 0.25em;
  }
}

@media (max-width: 720px) {
  .form-row {
    flex-direction: column;
  }

  .form-row__item,
  .form-row__item--small {
    width: 100%;
    flex: 1;
  }

  .checkout-card {
    padding: 1rem;
    margin-top: 0.25rem;
    min-width: 0;
  }
}

.prose {
  margin-top: 1.5rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.prose p {
  margin-bottom: 1rem;
}

.prose figure {
  margin: 1.5rem 0;
}

.prose img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prose figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-align: center;
}

/* Store lock overlay */
.store-lock {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.store-lock.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.store-lock__blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(12px);
  background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.12), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(34, 197, 94, 0.1), transparent 40%),
    rgba(0, 0, 0, 0.7);
}

.store-lock__panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  color: #e2e8f0;
}

.store-lock__panel > div,
.store-lock__panel form {
  width: min(400px, 90vw);
}

.store-lock__eyebrow {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
}

.store-lock__title {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.store-lock__copy {
  margin: 0 0 1rem;
  color: #cbd5e1;
}

.store-lock__form {
  display: grid;
  gap: 0.6rem;
}

.store-lock__input {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.35em;
  text-align: center;
}

.store-lock__button {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #22d3ee, #10b981);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: #0b0f19;
}

.store-lock__feedback {
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.store-lock__feedback--error {
  color: #fca5a5;
}

.store-lock__feedback--ok {
  color: #bbf7d0;
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar__toggle {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
  }

  .topbar__links {
    width: 100%;
    flex-direction: column;
    display: none;
  }

  .topbar.is-open .topbar__links {
    display: flex;
  }

  .topbar__links .pill,
  .topbar__links form {
    width: 100%;
  }

  .checkout-card {
    padding: 1.1rem;
  }
}
