:root {
  --charcoal: #171e19;
  --sage: #b7c6c2;
  --red: #ca0013;
  --off-white: #eeebe3;
  --white: #ffffff;
  --success-green: #16a34a;
  --shadow-soft: 0 20px 50px -12px rgba(0,0,0,.08);
  --border-soft: rgba(183,198,194,.32);
}

* { box-sizing: border-box; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .25s;
  animation-timing-function: ease-in-out;
}

body {
  margin: 0;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  background: var(--off-white);
  color: var(--charcoal);
  padding-bottom: 96px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.label {
  color: var(--sage);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header { padding: 56px 0 20px; }
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.header-copy { min-width: 0; }
.brand { display: inline-flex; align-items: center; margin-top: 4px; }
.logo { max-height: 48px; }
.logo-text {
  color: var(--charcoal);
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}
.profile-bubble {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 2px solid var(--white);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.profile-bubble small {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--off-white);
}
.search-wrap { margin-top: 22px; }
.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.search-box input,
.search-box button,
input,
select {
  min-height: 54px;
  border: 0;
  font: inherit;
}
.search-box input {
  min-width: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--charcoal);
  font-weight: 800;
}
.search-box button,
.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 24px;
  padding: 13px 20px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 14px 30px -14px rgba(202,0,19,.55);
}
.search-box button { border-radius: 24px 0 0 24px; }
.btn-secondary,
.btn-outline {
  background: var(--white);
  color: var(--charcoal);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 13px 18px;
  font-weight: 900;
  display: inline-flex;
  justify-content: center;
}

.category-selector {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 22px 0 8px;
}
.selector-item {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--sage);
  display: grid;
  place-items: center;
  scroll-snap-align: start;
  font-weight: 900;
  position: relative;
}
.selector-item small { display: none; }
.selector-item.active {
  flex-basis: 160px;
  width: 160px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--white);
  grid-template-columns: 40px 1fr;
  justify-items: start;
  gap: 10px;
  padding: 8px;
}
.selector-item.active span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}
.selector-item.active strong { line-height: 1; }
.selector-item.active small {
  display: block;
  grid-column: 2;
  color: var(--sage);
  font-size: 10px;
  margin-top: -18px;
}

.home-shell {
  display: grid;
  gap: 18px;
  padding: 10px 0 28px;
}
.hero-feature {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: 40px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.decor-blob {
  position: absolute;
  right: -48px;
  top: -54px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(183,198,194,.2);
}
.icon-holder {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--white);
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  position: relative;
}
.hero-feature h1 {
  margin: 10px 0;
  font-size: clamp(32px, 8vw, 54px);
  line-height: .98;
  font-weight: 900;
  max-width: 760px;
}
.hero-feature p {
  color: rgba(23,30,25,.72);
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 18px;
  max-width: 680px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.metric-card {
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 12px;
}
.metric-card span {
  display: block;
  color: var(--sage);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 900;
}
.hero-alert {
  background: rgba(183,198,194,.2);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  gap: 4px;
}
.hero-alert strong { font-weight: 900; }
.hero-alert span { color: rgba(23,30,25,.68); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.feed-list { display: grid; gap: 12px; }
.feed-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 14px;
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  gap: 14px;
  align-items: center;
}
.feed-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(202,0,19,.1);
  display: grid;
  place-items: center;
  font-size: 24px;
}
.feed-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
.feed-card p {
  margin: 3px 0 0;
  color: rgba(23,30,25,.66);
  line-height: 1.25;
}
.feed-card > a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: grid;
  place-items: center;
  color: var(--sage);
  font-weight: 900;
}
.feed-card > a:hover {
  background: var(--red);
  color: var(--white);
}

.product-section { padding: 24px 0; }
.section-title {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}
.section-title h2,
.catalog-header h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}
.section-title a {
  width: fit-content;
  color: var(--red);
  font-weight: 900;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .72;
  background: rgba(183,198,194,.14);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--red);
  color: var(--white);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.product-body { padding: 16px; }
.category-chip {
  color: var(--sage);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.product-card h3 {
  margin: 8px 0 5px;
  font-size: 20px;
  line-height: 1.08;
  font-weight: 900;
}
.product-card p {
  color: rgba(23,30,25,.68);
  margin: 0 0 10px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.product-tags span {
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 8px;
  color: rgba(23,30,25,.72);
  font-size: 11px;
  font-weight: 900;
}
.product-tags .stock-ok {
  color: var(--success-green);
  border-color: rgba(22,163,74,.22);
}
.product-price,
.detail-price {
  display: block;
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
  margin: 12px 0;
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.catalog-header,
.catalog-layout,
.product-detail,
.checkout-layout,
.auth-screen,
.content-section {
  padding: 24px 0;
}
.catalog-header {
  display: grid;
  gap: 12px;
}
.sort-form select,
.form-panel input,
.form-panel select,
.summary-box input {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--white);
  padding: 0 14px;
}
.catalog-layout {
  display: grid;
  gap: 16px;
}
.filters,
.gallery,
.product-info,
.product-specs,
.form-panel,
.summary-box,
.content-section {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.filters {
  border-radius: 24px;
  display: grid;
  gap: 10px;
}
.filters h2 { margin: 0; }
.filters a { color: var(--charcoal); font-weight: 900; }
.product-detail,
.checkout-layout {
  display: grid;
  gap: 16px;
}
.gallery img { width: 100%; max-height: 420px; object-fit: contain; }
.breadcrumbs,
.sku { color: rgba(23,30,25,.62); }
.price-table,
.spec-grid {
  display: grid;
  gap: 8px;
  background: rgba(183,198,194,.2);
  border-radius: 24px;
  padding: 16px;
  margin: 14px 0;
}
.form-panel {
  display: grid;
  gap: 12px;
}
.form-panel label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}
.notice {
  background: rgba(183,198,194,.2);
  border-left: 4px solid var(--red);
  padding: 14px;
  border-radius: 16px;
}
.notice.error { background: rgba(202,0,19,.08); }
.order-success { border-top: 6px solid var(--red); }
.success-kicker {
  width: fit-content;
  background: rgba(202,0,19,.08);
  color: var(--red);
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
}
.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 12px;
  margin-bottom: 10px;
}
.cart-row img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(183,198,194,.14);
}
.cart-row input,
.cart-row button { grid-column: span 2; }
.auth-screen {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.auth-screen .form-panel { width: min(500px, 100%); }

.static-hero {
  padding: 24px 0;
}
.static-hero .container {
  background: var(--white);
  border-radius: 40px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.static-hero h1 {
  font-size: 32px;
  line-height: 1;
  margin: 0 0 10px;
}
.benefit-list,
.steps-grid {
  display: grid;
  gap: 12px;
}
.benefit-list span,
.steps-grid article {
  background: rgba(183,198,194,.16);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 16px;
}

.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: 36px 0 96px;
}
.footer-grid {
  display: grid;
  gap: 22px;
}
.footer-grid a {
  display: block;
  color: var(--sage);
  margin: 8px 0;
  font-weight: 800;
}
.footer-logo .logo-text { color: var(--white); font-size: 28px; }

.floating-nav {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 64px;
  z-index: 50;
  background: var(--charcoal);
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 12px;
  box-shadow: 0 20px 50px -10px rgba(23,30,25,.38);
}
.floating-nav a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: center;
  color: var(--sage);
  font-size: 22px;
  font-weight: 900;
}
.floating-nav a.active { color: var(--white); }
.floating-nav .nav-fab {
  width: 56px;
  height: 56px;
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--off-white);
  transform: translateY(-32px);
  box-shadow: 0 18px 34px -16px rgba(202,0,19,.75);
}
