:root {
  --bg: #f4f2f4;
  --surface: #ffffff;
  --surface-rose: #fff3f9;
  --surface-violet: #f8e8f1;
  --ink: #111111;
  --muted: #777077;
  --soft: #92878f;
  --line: #e4dce2;
  --line-strong: #151515;
  --pink: #ff3aa7;
  --pink-dark: #d9147e;
  --violet: #9e0c62;
  --violet-dark: #151515;
  --green: #2b9b72;
  --gold: #d79526;
  --shadow: none;
  --pad: 16px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a,
button,
input,
textarea {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

svg {
  display: block;
  fill: currentColor;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 242, 244, 0.95);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.header-phone {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: right;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.app-main {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 18px var(--pad) 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-strip,
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 22px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-right: 0;
  border-left: 0;
  background: transparent;
  box-shadow: var(--shadow);
}

.page-title {
  display: block;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 5px;
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero-strip h1,
.page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 0.96;
}

.age-badge {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.category-panel,
.catalog-panel,
.surface-panel,
.total-panel,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.category-panel,
.catalog-panel,
.surface-panel,
.total-panel {
  padding: 16px;
}

.category-panel {
  margin-bottom: 16px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.2;
}

.admin-link,
.soft-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-rose);
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

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

.category-card {
  display: grid;
  min-height: 82px;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.category-card span {
  font-size: 0.96rem;
  font-weight: 900;
  line-height: 1.18;
}

.category-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.category-card.active,
.category-card:hover {
  border-color: var(--ink);
  background: #fff6fb;
  transform: translateY(-1px);
}

.subcategory-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.subcategory-row::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

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

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.product-card-main,
.product-card-copy {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.product-card-main {
  width: 100%;
}

.product-card-copy {
  gap: 4px;
}

.product-card-copy strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
}

.product-card-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-card-copy span {
  color: var(--pink-dark);
  font-size: 0.98rem;
  font-weight: 900;
}

.product-add-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.product-add-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--pink);
}

.product-add-button:hover {
  border-color: var(--pink-dark);
  background: var(--pink-dark);
  color: #ffffff;
}

.product-add-button:hover svg {
  color: #ffffff;
}

.product-media {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf8fa;
}

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

.product-media.placeholder .bottle {
  transform: scale(0.92);
}

.product-media.small {
  width: 44px;
  height: 44px;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.product-media.small .bottle {
  transform: scale(0.74);
}

.product-media.large {
  width: min(100%, 220px);
  height: auto;
  margin: 0 auto 12px;
}

.product-media.large .bottle {
  transform: scale(1);
}

.bottle {
  --accent: var(--pink);
  position: relative;
  display: grid;
  width: 48px;
  height: 78px;
  justify-items: center;
  align-items: end;
  filter: drop-shadow(0 8px 12px rgba(255, 47, 159, 0.18));
}

.bottle.small {
  width: 38px;
  height: 60px;
}

.bottle.large {
  width: 86px;
  height: 132px;
  margin: 0 auto 12px;
}

.bottle-neck {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 20px;
  border: 2px solid color-mix(in srgb, var(--accent), #ffffff 26%);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: color-mix(in srgb, var(--accent), #ffffff 76%);
}

.bottle-body {
  display: grid;
  width: 38px;
  height: 58px;
  place-items: end center;
  border: 2px solid color-mix(in srgb, var(--accent), #8a164d 18%);
  border-radius: 12px 12px 8px 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent), #ffffff 42%), var(--accent));
}

.bottle.small .bottle-body {
  width: 30px;
  height: 45px;
  border-radius: 10px 10px 7px 7px;
}

.bottle.large .bottle-neck {
  width: 26px;
  height: 34px;
  border-radius: 8px 8px 0 0;
}

.bottle.large .bottle-body {
  width: 70px;
  height: 98px;
  border-radius: 20px 20px 10px 10px;
}

.bottle-label {
  width: 76%;
  margin-bottom: 10px;
  padding: 4px 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--violet-dark);
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.bottle.large .bottle-label {
  margin-bottom: 16px;
  font-size: 0.76rem;
}

.accent-rose {
  --accent: #ff2f9f;
}

.accent-lilac {
  --accent: #ff8fcb;
}

.accent-berry {
  --accent: #b80068;
}

.accent-violet {
  --accent: #d20a72;
}

.accent-amber {
  --accent: #b66a24;
}

.accent-gold {
  --accent: #d79526;
}

.accent-green {
  --accent: #2b9b72;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
}

.nav-button {
  position: relative;
  display: grid;
  min-height: 58px;
  place-items: center;
  gap: 3px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.nav-button svg {
  width: 21px;
  height: 21px;
}

.nav-button.active {
  background: var(--surface-rose);
  color: var(--ink);
}

.cart-count {
  position: absolute;
  top: 4px;
  right: calc(50% - 28px);
  display: none;
  min-width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink-dark);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 19px;
}

.cart-count.visible {
  display: inline-flex;
}

.floating-cart {
  position: fixed;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 29;
  display: none;
  width: min(calc(100% - 32px), 430px);
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.18);
}

.floating-cart.visible {
  display: flex;
}

.floating-cart span,
.floating-cart b {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.floating-cart svg {
  width: 20px;
  height: 20px;
  color: var(--pink);
}

.stack {
  display: grid;
  gap: 14px;
}

.cart-list,
.option-list,
.saved-addresses,
.address-list,
.order-list {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.cart-line-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.cart-line-copy strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
}

.cart-line-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.stepper {
  display: grid;
  grid-template-columns: 32px 28px 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
}

.stepper button {
  height: 34px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.stepper b {
  color: var(--ink);
  font-size: 0.86rem;
  text-align: center;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.option-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.option-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
}

.option-row span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.option-row strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.option-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.payment-box,
.empty-inline,
.address-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-rose);
}

.payment-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payment-box span,
.empty-inline {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.payment-box strong,
.address-item {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.new-address-fields.is-hidden,
.selected-address-card.is-hidden {
  display: none;
}

.selected-address-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-rose);
}

.selected-address-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.selected-address-card strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.25;
}

.total-panel {
  position: sticky;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 5;
}

.total-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.total-rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.total-rows span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.total-rows strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.grand-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.grand-total strong {
  color: var(--pink-dark);
  font-size: 1.42rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.primary-button {
  background: var(--ink);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
}

.secondary-button.tiny {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.full-width {
  width: 100%;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input {
  min-height: 48px;
  padding: 0 12px;
}

.field textarea {
  resize: vertical;
  padding: 12px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 58, 167, 0.14);
}

.compact-field {
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
}

.checkout-actions {
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  gap: 10px;
}

.profile-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.profile-avatar {
  width: 74px;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: cover;
}

.profile-card h2 {
  margin: 0 0 3px;
  color: var(--violet-dark);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.18;
}

.profile-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.contact-logo {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.contact-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-panel h2,
.contact-panel p {
  margin: 0;
}

.contact-panel h2 {
  color: var(--violet-dark);
  font-size: 1.2rem;
  font-weight: 900;
}

.contact-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-actions {
  display: grid;
  gap: 10px;
}

.contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.contact-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-rose);
  color: var(--pink-dark);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.contact-card strong {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

.contact-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.order-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.order-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-top div {
  display: grid;
  gap: 2px;
}

.order-top strong,
.order-top b {
  color: var(--violet-dark);
  font-size: 0.92rem;
  font-weight: 900;
}

.order-top span,
.order-card small,
.order-card p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.order-card p {
  margin: 0;
}

.modal,
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 17, 17, 0.16);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal.open,
.age-gate.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card,
.age-card {
  position: relative;
  width: min(100%, 460px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(17, 17, 17, 0.16);
}

.modal-card {
  padding: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.product-detail {
  padding-top: 22px;
  text-align: center;
}

.product-detail h2 {
  margin: 0;
  color: var(--violet-dark);
  font-size: 1.42rem;
  font-weight: 900;
  line-height: 1.18;
}

.product-detail p:not(.panel-kicker) {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.detail-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-rose);
}

.detail-meta span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-meta strong {
  color: var(--pink-dark);
  font-size: 1.28rem;
  font-weight: 900;
}

.age-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 26px 22px 22px;
  text-align: center;
}

.age-card img {
  width: 120px;
  max-width: 60%;
  height: auto;
}

.age-card h2 {
  margin: 0;
  color: var(--violet-dark);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.2;
}

.age-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.age-actions {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 120;
  max-width: 420px;
  margin: 0 auto;
  padding: 13px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.product-grid .empty-state {
  grid-column: 1 / -1;
}

.empty-state h3 {
  margin: 0;
  color: var(--violet-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.empty-state p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (min-width: 760px) {
  :root {
    --pad: 22px;
  }

  .hero-strip,
  .page-title {
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .app-main {
    padding-top: 14px;
  }

  .header-phone {
    font-size: 0.8rem;
  }

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

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

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

@media (max-width: 430px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 0.9rem;
  }

  .hero-strip h1,
  .page-title h1 {
    font-size: 1.42rem;
  }

  .category-grid {
    gap: 8px;
  }

  .category-card {
    min-height: 76px;
    padding: 10px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    padding: 8px;
  }

  .product-add-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .product-card-copy strong {
    font-size: 0.82rem;
  }

  .product-card-copy small {
    font-size: 0.66rem;
  }

  .product-card-copy span {
    font-size: 0.88rem;
  }

  .cart-line {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .remove-button {
    grid-column: 3;
    grid-row: 2;
    width: 100%;
    height: 32px;
  }

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

/* Only-like editorial storefront */
:root {
  --bg: #f1f1f1;
  --surface: #f7f7f7;
  --surface-rose: #fff4fa;
  --surface-violet: #f4eaf0;
  --ink: #0c0c0c;
  --muted: #747474;
  --soft: #9a9a9a;
  --line: #d6d6d6;
  --line-strong: #0c0c0c;
  --pink: #ff2f9f;
  --pink-dark: #d9147e;
  --violet: #831054;
  --violet-dark: #0c0c0c;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
.app-shell {
  background: var(--bg);
}

.app-header {
  min-height: 52px;
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 241, 241, 0.94);
}

.brand-logo {
  display: none;
}

.brand-copy {
  display: block;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-copy small {
  display: none;
}

.header-phone {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
}

.app-main {
  width: min(100%, 1160px);
  padding: 0 var(--pad);
}

.hero-strip,
.page-title {
  min-height: 255px;
  margin: 0;
  padding: 30px 0;
  align-items: stretch;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.hero-strip > div:first-child {
  display: grid;
  align-content: start;
  gap: 12px;
}

.hero-kicker {
  margin: 0;
  color: var(--pink-dark);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  text-transform: lowercase;
}

.hero-strip h1,
.page-title h1 {
  max-width: 8ch;
  color: var(--ink);
  font-size: clamp(3.4rem, 15vw, 8.5rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.86;
}

.hero-meta {
  display: grid;
  min-width: 132px;
  align-content: end;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.hero-meta span:first-child {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.age-badge {
  display: none;
}

.category-panel,
.catalog-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.category-panel {
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.catalog-panel {
  padding: 22px 0 0;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: lowercase;
}

.category-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.category-grid::-webkit-scrollbar {
  display: none;
}

.category-card {
  min-width: max-content;
  min-height: 40px;
  align-content: center;
  gap: 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.category-card span {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.category-card small {
  display: none;
}

.category-card.active,
.category-card:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  transform: none;
}

.subcategory-row {
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 2px;
}

.chip {
  min-height: 34px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.chip.active {
  border-color: var(--pink);
  background: var(--surface-rose);
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.product-card {
  min-height: 100%;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.product-card:hover {
  background: #f7f7f7;
  transform: none;
}

.product-media {
  border: 0;
  border-radius: 0;
  background: #e9e9e9;
}

.product-media img {
  padding: 10px;
  object-fit: contain;
}

.product-card-copy {
  min-height: 104px;
  align-content: start;
  gap: 6px;
}

.product-card-copy strong {
  color: var(--ink);
  font-size: clamp(0.9rem, 3.5vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0;
}

.product-card-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.product-card-copy span {
  margin-top: 2px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.product-add-button {
  min-height: 42px;
  margin-top: auto;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.product-add-button svg {
  color: var(--pink);
}

.product-add-button:hover {
  background: var(--ink);
  color: #ffffff;
}

.bottom-nav {
  width: min(100%, 1160px);
  gap: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  background: rgba(241, 241, 241, 0.96);
}

.nav-button {
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
}

.nav-button.active {
  background: #ffffff;
  color: var(--ink);
}

.floating-cart {
  bottom: calc(86px + env(safe-area-inset-bottom));
  border-radius: 999px;
}

.surface-panel,
.total-panel,
.profile-card,
.cart-line,
.option-row,
.payment-box,
.empty-inline,
.address-item,
.selected-address-card,
.order-card,
.contact-card,
.modal-card,
.age-card {
  border-color: var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.primary-button {
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
}

.secondary-button {
  border-color: var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
}

.toast {
  border-radius: 999px;
  background: var(--ink);
}

@media (max-width: 680px) {
  .app-header {
    min-height: 50px;
  }

  .hero-strip,
  .page-title {
    min-height: 235px;
    padding: 24px 0;
  }

  .hero-strip h1,
  .page-title h1 {
    font-size: clamp(3.1rem, 16vw, 4.8rem);
  }

  .hero-meta {
    min-width: 96px;
    font-size: 0.72rem;
  }

  .hero-meta span:first-child {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 430px) {
  .hero-strip,
  .page-title {
    min-height: 218px;
  }

  .hero-strip h1,
  .page-title h1 {
    font-size: 3.05rem;
  }

  .product-card {
    padding: 10px;
  }

  .product-card-copy {
    min-height: 112px;
  }

  .product-add-button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.72rem;
  }
}

/* Clean studio theme inspired by only.digital */
:root {
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-rose: #fff4fa;
  --surface-violet: #f7edf3;
  --ink: #0f0f0f;
  --muted: #777777;
  --soft: #9a9a9a;
  --line: #d9d9d9;
  --line-strong: #0f0f0f;
  --pink: #ff3aa7;
  --pink-dark: #d9147e;
  --violet: #9e0c62;
  --violet-dark: #0f0f0f;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
.app-shell {
  background: var(--bg);
}

.app-shell {
  padding-bottom: calc(110px + env(safe-area-inset-bottom));
}

.app-header {
  min-height: 58px;
  padding: 8px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(241, 241, 241, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 9px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-color: transparent;
  border-radius: 8px;
  background: #ffffff;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: none;
}

.header-phone {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration-color: var(--pink);
}

.app-main {
  width: min(100%, 1080px);
  padding-top: 0;
}

.hero-strip,
.page-title {
  margin: 0 0 18px;
  padding: 30px 0 34px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.hero-strip h1,
.page-title h1 {
  max-width: 9ch;
  color: var(--ink);
  font-size: clamp(2.55rem, 13vw, 5.7rem);
  font-weight: 800;
  line-height: 0.94;
}

.eyebrow,
.panel-kicker {
  color: var(--pink-dark);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.age-badge {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.category-panel,
.catalog-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.category-panel {
  margin-bottom: 26px;
}

.surface-panel,
.total-panel,
.profile-card,
.modal-card,
.age-card {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.category-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.category-card {
  min-height: 78px;
  border: 0;
  border-radius: 0;
  background: #fbfbfb;
  color: var(--ink);
}

.category-card span {
  font-size: 0.92rem;
  font-weight: 800;
}

.category-card small {
  color: var(--muted);
  font-weight: 700;
}

.category-card.active,
.category-card:hover {
  background: var(--ink);
  color: #ffffff;
  transform: none;
}

.category-card.active small,
.category-card:hover small {
  color: rgba(255, 255, 255, 0.72);
}

.subcategory-row {
  margin-bottom: 12px;
}

.chip {
  min-height: 36px;
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.product-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.product-card {
  gap: 11px;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.product-card:hover {
  background: #fffafd;
  transform: none;
}

.product-media {
  border: 0;
  border-bottom: 1px solid #ededed;
  border-radius: 0;
  background: #fbfbfb;
}

.product-card-copy strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.product-card-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.product-card-copy span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.product-add-button {
  min-height: 40px;
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.product-add-button svg {
  color: var(--pink);
}

.bottom-nav {
  width: min(100%, 1080px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.nav-button {
  color: var(--muted);
  font-weight: 800;
}

.nav-button.active {
  background: #f6f6f6;
  color: var(--ink);
}

.floating-cart {
  bottom: calc(86px + env(safe-area-inset-bottom));
  border-color: var(--ink);
  background: var(--ink);
}

.cart-line,
.option-row,
.order-card,
.contact-card {
  background: #ffffff;
}

.payment-box,
.empty-inline,
.address-item,
.selected-address-card,
.detail-meta {
  background: #fbfbfb;
}

.primary-button {
  background: var(--ink);
  color: #ffffff;
}

.secondary-button {
  border-color: var(--ink);
  background: #ffffff;
  color: var(--ink);
}

.toast {
  background: var(--ink);
}

@media (max-width: 680px) {
  .hero-strip,
  .page-title {
    padding: 24px 0 28px;
  }

  .hero-strip h1,
  .page-title h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

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

@media (max-width: 430px) {
  .hero-strip h1,
  .page-title h1 {
    font-size: 2.48rem;
  }

  .product-card {
    padding: 10px;
  }

  .product-add-button {
    min-height: 38px;
    font-size: 0.72rem;
  }
}

/* Premium editorial bento storefront */
:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-rose: #fff7fb;
  --surface-violet: #f6eff4;
  --ink: #111111;
  --muted: #747474;
  --soft: #9a9a9a;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.72);
  --pink: #ff3aa7;
  --pink-dark: #c91478;
  --violet: #8d1b63;
  --violet-dark: #111111;
  --shadow: none;
  --pad: clamp(24px, 5vw, 72px);
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  letter-spacing: 0;
}

body,
.app-shell {
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  min-height: 100svh;
  padding-bottom: calc(116px + env(safe-area-inset-bottom));
}

.app-header {
  min-height: 74px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 243, 241, 0.92);
  backdrop-filter: blur(20px);
}

.brand {
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.brand-copy strong {
  color: var(--ink);
  font-size: clamp(1.18rem, 3.7vw, 1.85rem);
  font-weight: 800;
  line-height: 0.98;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
}

.header-phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: clamp(0.82rem, 2.7vw, 1rem);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:focus-visible,
.nav-button:focus-visible,
.chip:focus-visible,
.category-card:focus-visible,
.product-card-main:focus-visible,
.product-card-copy:focus-visible,
.product-add-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.icon-button:focus-visible,
.option-row:focus-within,
.contact-card:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.app-main {
  width: min(100%, 1180px);
  padding: 0 var(--pad);
}

.view.active {
  display: block;
}

.hero-strip,
.page-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: end;
  margin: 0;
  padding: clamp(38px, 8vw, 92px) 0 clamp(34px, 6vw, 70px);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

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

.hero-kicker,
.eyebrow,
.panel-kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-kicker::before,
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--pink);
  vertical-align: middle;
}

.hero-strip h1,
.page-title h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.2rem, 10vw, 7.8rem);
  font-weight: 800;
  line-height: 0.96;
}

.page-title h1 {
  max-width: 12ch;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: stretch;
}

.hero-meta span {
  display: grid;
  min-height: 76px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.16;
}

.hero-meta span:first-child {
  grid-row: span 2;
  min-height: 162px;
  align-items: center;
  justify-items: center;
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-size: clamp(1.6rem, 4vw, 3.15rem);
}

.category-panel,
.catalog-panel,
.surface-panel,
.total-panel,
.profile-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.category-panel,
.catalog-panel,
.surface-panel,
.total-panel {
  padding: 0;
}

.category-panel {
  margin: 0;
  padding: clamp(30px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.catalog-panel {
  padding: clamp(30px, 6vw, 74px) 0 18px;
}

.section-head {
  margin: 0 0 18px;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 4.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1;
}

.soft-count,
.admin-link {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.category-card {
  position: relative;
  min-height: 116px;
  align-content: space-between;
  gap: 24px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transform: none;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.category-card::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.3;
}

.category-card:nth-child(4n + 1)::before,
.category-card:nth-child(4n + 3)::before {
  border-radius: 2px;
  transform: rotate(45deg);
}

.category-card span {
  color: inherit;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 800;
  line-height: 1;
}

.category-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.category-card.active,
.category-card:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
  transform: none;
}

.category-card.active::before,
.category-card:hover::before {
  border-color: var(--pink);
  background: var(--pink);
  opacity: 1;
}

.category-card.active small,
.category-card:hover small {
  color: rgba(255, 255, 255, 0.7);
}

.subcategory-row {
  gap: 8px;
  margin: 0 0 18px;
  padding: 0 0 8px;
}

.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip.active,
.chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.product-card {
  display: grid;
  min-width: 0;
  min-height: 100%;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  transform: none;
  transition: border-color 0.22s ease, background 0.22s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  background: #fffafd;
  transform: none;
}

.product-card-main,
.product-card-copy {
  border-radius: 8px;
}

.product-media {
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  background: #f7f7f5;
}

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

.product-card-copy {
  gap: 8px;
  min-height: 118px;
}

.product-card-copy strong {
  color: var(--ink);
  font-size: clamp(0.94rem, 2.8vw, 1.18rem);
  font-weight: 800;
  line-height: 1.06;
}

.product-card-copy small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}

.product-card-copy span {
  margin-top: auto;
  color: var(--pink-dark);
  font-size: clamp(1.02rem, 3.2vw, 1.3rem);
  font-weight: 800;
  line-height: 1;
}

.product-add-button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
}

.product-add-button svg {
  width: 18px;
  height: 18px;
  color: var(--pink);
}

.product-add-button:hover {
  border-color: var(--pink-dark);
  background: var(--pink-dark);
}

.product-add-button:hover svg {
  color: #ffffff;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.product-grid .empty-state {
  grid-column: 1 / -1;
}

.stack {
  gap: 14px;
}

.surface-panel,
.total-panel,
.modal-card,
.age-card,
.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.surface-panel,
.total-panel {
  padding: clamp(16px, 4vw, 24px);
}

.cart-line,
.option-row,
.order-card,
.contact-card,
.payment-box,
.address-item,
.selected-address-card,
.empty-inline,
.detail-meta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.cart-line {
  padding: 12px;
}

.option-row {
  min-height: 68px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option-row:hover {
  border-color: var(--line-strong);
  background: #fbfbfa;
}

.option-row input {
  accent-color: var(--ink);
}

.payment-box {
  background: #f8f8f6;
}

.total-line,
.cart-line-copy span,
.option-row small,
.contact-card small,
.address-item,
.selected-address-card span,
.detail-meta,
.profile-card p {
  color: var(--muted);
}

.total-line strong,
.cart-line-copy strong,
.option-row strong,
.contact-card strong,
.selected-address-card strong {
  color: var(--ink);
}

.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.primary-button:hover {
  border-color: var(--pink-dark);
  background: var(--pink-dark);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.icon-button,
.remove-button,
.stepper button {
  border-radius: 999px;
}

.stepper {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f7f5;
}

.bottom-nav {
  right: auto;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 28px), 620px);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%);
}

.nav-button {
  min-height: 54px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-button svg {
  width: 22px;
  height: 22px;
}

.nav-button.active {
  background: var(--ink);
  color: #ffffff;
}

.cart-count {
  background: var(--pink);
  color: #ffffff;
}

.floating-cart {
  bottom: calc(94px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 36px), 420px);
  min-height: 54px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  transform: translate(-50%, 18px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.floating-cart.visible {
  transform: translate(-50%, 0);
}

.toast {
  border-radius: 999px;
  background: var(--ink);
}

.modal {
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(10px);
}

.modal-card {
  width: min(100% - 28px, 520px);
  max-height: min(84vh, 780px);
  overflow: auto;
}

.age-gate {
  background: rgba(243, 243, 241, 0.96);
}

.age-card img {
  border-radius: 8px;
}

input,
textarea,
select {
  border-color: var(--line);
  border-radius: 8px;
  background: #fbfbfa;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  outline: 2px solid rgba(255, 58, 167, 0.2);
}

@media (min-width: 760px) {
  .category-card:nth-child(1),
  .category-card:nth-child(5),
  .category-card:nth-child(9) {
    grid-column: span 2;
  }

  .category-card:nth-child(4),
  .category-card:nth-child(10) {
    min-height: 158px;
  }

  .product-card {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 268px;
    padding: 14px;
  }

  .product-card-main {
    grid-row: 1 / span 2;
  }

  .product-card-copy {
    min-height: 0;
    align-content: start;
  }

  .product-add-button {
    align-self: end;
  }
}

@media (max-width: 900px) {
  .hero-strip {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-meta span:first-child {
    grid-row: auto;
    min-height: 76px;
    font-size: 1.4rem;
  }

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

@media (max-width: 680px) {
  :root {
    --pad: 24px;
  }

  .app-header {
    min-height: 68px;
    gap: 10px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-copy strong {
    font-size: 1.12rem;
  }

  .brand-copy small {
    display: none;
  }

  .header-phone {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero-strip,
  .page-title {
    padding: 34px 0 36px;
  }

  .hero-strip h1,
  .page-title h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

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

  .hero-meta span {
    min-height: 68px;
  }

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

  .category-card {
    min-height: 104px;
    padding: 14px;
  }

  .section-head h2 {
    font-size: 1.6rem;
  }

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

  .product-card {
    gap: 10px;
    padding: 10px;
  }

  .product-card-copy {
    min-height: 116px;
  }

  .product-add-button {
    min-height: 42px;
    padding: 0 11px;
    font-size: 0.76rem;
  }

  .bottom-nav {
    width: min(calc(100% - 18px), 560px);
    padding: 6px;
  }

  .nav-button {
    min-height: 52px;
    font-size: 0.66rem;
  }
}

@media (max-width: 380px) {
  :root {
    --pad: 18px;
  }

  .header-phone {
    font-size: 0.72rem;
  }

  .hero-strip h1,
  .page-title h1 {
    font-size: 2.75rem;
  }

  .category-card span,
  .product-card-copy strong {
    font-size: 0.9rem;
  }

  .product-card-copy {
    min-height: 126px;
  }

  .product-add-button {
    font-size: 0.7rem;
  }
}

/* Layout stability pass for Telegram storefront */
:root {
  --pad: clamp(16px, 4.5vw, 32px);
}

.app-shell {
  overflow-x: hidden;
}

.app-header {
  min-height: 64px;
  padding: 10px var(--pad);
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-logo {
  width: 34px;
  height: 34px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  max-width: 38vw;
  font-size: 1.05rem;
  line-height: 1.05;
}

.header-phone {
  flex: 0 0 auto;
  min-height: 38px;
  max-width: 48vw;
  padding: 0 11px;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
}

.app-main {
  width: 100%;
  max-width: 980px;
  padding: 0 var(--pad);
}

.hero-strip,
.page-title {
  display: block;
  padding: 28px 0 24px;
}

.hero-kicker,
.eyebrow {
  margin-bottom: 9px;
}

.hero-strip h1,
.page-title h1 {
  max-width: 100%;
  font-size: clamp(2.35rem, 12vw, 4.45rem);
  line-height: 1;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-meta span,
.hero-meta span:first-child {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
}

.hero-meta span:first-child {
  min-height: 38px;
  background: var(--ink);
  color: #ffffff;
}

.category-panel {
  padding: 24px 0;
}

.catalog-panel {
  padding: 26px 0 12px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.38rem, 6vw, 2rem);
  line-height: 1.08;
}

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

.category-card,
.category-card:nth-child(4),
.category-card:nth-child(10) {
  grid-column: auto;
  min-height: 92px;
  padding: 13px;
}

.category-card::before {
  width: 16px;
  height: 16px;
}

.category-card span {
  font-size: 0.98rem;
  line-height: 1.08;
}

.category-card small {
  font-size: 0.7rem;
}

.subcategory-row {
  margin-bottom: 14px;
}

.chip {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.8rem;
}

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

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 0;
  gap: 9px;
  padding: 9px;
}

.product-card-main {
  grid-row: auto;
}

.product-card-copy {
  min-height: 96px;
  gap: 5px;
  align-content: start;
}

.product-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.14;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card-copy small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.66rem;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-copy span {
  font-size: 0.95rem;
}

.product-add-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 0.68rem;
}

.product-add-button svg {
  width: 15px;
  height: 15px;
}

.surface-panel,
.total-panel {
  padding: 14px;
}

.cart-line {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
}

.cart-line .stepper,
.cart-line .remove-button {
  grid-column: 2;
}

.bottom-nav {
  right: 9px;
  bottom: calc(9px + env(safe-area-inset-bottom));
  left: 9px;
  width: auto;
  max-width: none;
  transform: none;
}

.nav-button {
  min-width: 0;
  min-height: 50px;
  padding: 4px 3px;
  font-size: 0.62rem;
}

.nav-button svg {
  width: 20px;
  height: 20px;
}

.floating-cart {
  right: 18px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 18px;
  width: auto;
  transform: translateY(18px);
}

.floating-cart.visible {
  transform: translateY(0);
}

@media (min-width: 760px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-card:nth-child(1),
  .category-card:nth-child(5),
  .category-card:nth-child(9) {
    grid-column: auto;
  }

  .product-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    min-height: 0;
  }

  .product-card-main {
    grid-row: auto;
  }

  .product-card-copy {
    min-height: 96px;
  }
}

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

/* Pink storefront restore */
:root {
  --bg: #fff6fb;
  --surface: #ffffff;
  --surface-rose: #fff0f8;
  --surface-violet: #f8e7f2;
  --ink: #321326;
  --muted: #7d5d71;
  --soft: #9b8494;
  --line: #ffd4e7;
  --line-strong: #ff9ccc;
  --pink: #ff2f9f;
  --pink-dark: #d20a72;
  --violet: #c30068;
  --violet-dark: #79003f;
  --pad: clamp(14px, 4vw, 22px);
}

body,
.app-shell {
  background: var(--bg);
  color: var(--ink);
}

.app-header {
  border-bottom-color: var(--line);
  background: rgba(255, 246, 251, 0.96);
}

.brand-logo {
  border-color: var(--line);
  background: #ffffff;
}

.brand-copy strong {
  color: var(--violet-dark);
}

.brand-copy small,
.hero-kicker,
.eyebrow,
.panel-kicker {
  color: var(--pink-dark);
}

.hero-kicker::before,
.eyebrow::before {
  background: var(--pink);
}

.header-phone {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--pink-dark);
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-strip,
.page-title {
  border-bottom-color: var(--line);
}

.hero-strip h1,
.page-title h1,
.section-head h2 {
  color: var(--violet-dark);
}

.hero-meta {
  margin-top: 14px;
}

.hero-meta span,
.hero-meta span:first-child {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--pink-dark);
}

.category-panel {
  border-bottom-color: var(--line);
}

.category-card,
.product-card,
.surface-panel,
.total-panel,
.modal-card,
.age-card,
.profile-card,
.cart-line,
.option-row,
.order-card,
.contact-card,
.payment-box,
.address-item,
.selected-address-card,
.empty-inline,
.detail-meta,
.empty-state {
  border-color: var(--line);
  background: #ffffff;
}

.category-card::before {
  border-color: var(--pink);
  background: var(--surface-rose);
  opacity: 1;
}

.category-card.active,
.category-card:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #ffffff;
}

.category-card.active::before,
.category-card:hover::before {
  border-color: #ffffff;
  background: #ffffff;
}

.category-card small,
.product-card-copy small,
.option-row small,
.cart-line-copy span,
.contact-card small {
  color: var(--muted);
}

.chip {
  border-color: var(--line);
  background: #ffffff;
  color: var(--pink-dark);
}

.chip.active,
.chip:hover {
  border-color: var(--pink);
  background: var(--pink);
  color: #ffffff;
}

.product-card:hover {
  border-color: var(--pink);
  background: #fffafd;
}

.product-media,
.payment-box,
.stepper {
  border-color: var(--line);
  background: #fff8fc;
}

.product-card-copy strong,
.cart-line-copy strong,
.option-row strong,
.contact-card strong,
.selected-address-card strong {
  color: var(--ink);
}

.product-card-copy span,
.total-line strong {
  color: var(--pink-dark);
}

.product-add-button,
.primary-button,
.nav-button.active,
.floating-cart {
  border-color: var(--pink);
  background: var(--pink);
  color: #ffffff;
}

.product-add-button:hover,
.primary-button:hover {
  border-color: var(--violet);
  background: var(--violet);
}

.product-add-button svg {
  color: #ffffff;
}

.secondary-button {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--pink-dark);
}

.bottom-nav {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(255, 47, 159, 0.16);
}

.nav-button {
  color: var(--muted);
}

.cart-count {
  background: var(--violet);
  color: #ffffff;
}

.toast {
  background: var(--pink-dark);
}

input,
textarea,
select {
  border-color: var(--line);
  background: #fffafd;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--pink);
  outline-color: rgba(255, 47, 159, 0.22);
}

/* Compact product title blocks */
.product-card {
  gap: 7px;
  padding: 8px;
}

.product-card-copy {
  min-height: 54px;
  gap: 3px;
}

.product-card-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-copy small {
  display: none;
}

.product-card-copy span {
  margin-top: 1px;
  font-size: 0.84rem;
  line-height: 1;
}

.product-add-button {
  min-height: 34px;
  padding: 0 9px;
  font-size: 0.64rem;
}

.product-add-button svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 760px) {
  .product-card-copy {
    min-height: 54px;
  }
}

/* Compact home header and categories */
.header-phone {
  min-height: auto;
  max-width: 48vw;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pink-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-strip {
  display: block;
  padding: 18px 0 10px;
  border: 0;
}

.hero-kicker {
  margin: 0;
  color: var(--violet-dark);
  font-size: clamp(1.58rem, 8vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.hero-kicker::before {
  display: none;
}

.hero-strip h1,
.hero-meta {
  display: none;
}

.category-panel {
  padding: 10px 0 18px;
  border-bottom: 0;
}

.category-panel .section-head {
  display: none;
}

.category-grid {
  gap: 7px;
}

.category-card,
.category-card:nth-child(4),
.category-card:nth-child(10) {
  min-height: 58px;
  gap: 5px;
  padding: 9px 10px;
}

.category-card::before {
  display: none;
}

.category-card span {
  font-size: 0.86rem;
  line-height: 1.05;
}

.category-card small {
  font-size: 0.62rem;
  line-height: 1;
}

.catalog-panel {
  padding-top: 10px;
}

.catalog-panel .section-head {
  margin-bottom: 10px;
}

.catalog-panel .section-head h2 {
  font-size: 1.22rem;
}

@media (min-width: 760px) {
  .category-card,
  .category-card:nth-child(4),
  .category-card:nth-child(10) {
    min-height: 64px;
  }
}

/* Header-only home start */
.header-phone {
  max-width: 52vw;
  font-size: clamp(0.98rem, 4vw, 1.18rem);
  font-weight: 800;
  line-height: 1.05;
}

#home-view > .hero-strip {
  display: none;
}

#home-view > .category-panel {
  padding-top: 14px;
}

/* Checkout layout repair */
#checkout-form {
  gap: 12px;
  padding-bottom: 18px;
}

#checkout-form .surface-panel,
#checkout-form .total-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

#checkout-form .section-head {
  margin-bottom: 0;
}

#checkout-form .section-head h2 {
  font-size: 1.12rem;
  line-height: 1.1;
}

#checkout-form .total-panel {
  position: static;
  bottom: auto;
  z-index: auto;
}

#checkout-form .form-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

#checkout-form .saved-addresses {
  gap: 8px;
}

#checkout-form .option-row {
  min-height: auto;
  align-items: start;
  padding: 10px;
}

#checkout-form .option-row input {
  margin-top: 2px;
}

#checkout-form .selected-address-card {
  margin-top: -2px;
}

#checkout-form .field textarea {
  min-height: 86px;
  resize: vertical;
}

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

#checkout-form .checkout-actions .primary-button,
#checkout-form .checkout-actions .secondary-button {
  width: 100%;
}

/* Cart and profile layout repair */
#cart-view .page-title {
  display: none;
}

#cart-content {
  padding-top: 12px;
}

#cart-content > .stack {
  gap: 10px;
}

#cart-content .surface-panel,
#cart-content .total-panel {
  padding: 14px;
}

#cart-content .section-head {
  margin-bottom: 8px;
}

#cart-content .section-head h2 {
  font-size: 1.28rem;
  line-height: 1;
  text-transform: uppercase;
}

#cart-content .total-panel {
  position: static;
  bottom: auto;
  z-index: auto;
}

#cart-content .cart-line {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
}

#cart-content .cart-line .product-media.small {
  width: 54px;
  height: 54px;
}

#cart-content .cart-line-copy strong {
  font-size: 0.94rem;
  line-height: 1.12;
}

#cart-content .cart-line-copy span {
  color: var(--pink-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

#cart-content .stepper {
  grid-column: 2;
  width: 128px;
  grid-template-columns: 38px 1fr 38px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8fc;
}

#cart-content .stepper button {
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
}

#cart-content .stepper b {
  font-size: 0.9rem;
}

#cart-content .remove-button {
  grid-column: 2;
  width: 128px;
  min-height: 34px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

#cart-content .option-list {
  gap: 8px;
}

#cart-content .option-row {
  min-height: auto;
  align-items: start;
  gap: 10px;
  padding: 11px;
  overflow: hidden;
}

#cart-content .option-row input {
  flex: 0 0 auto;
  margin-top: 2px;
}

#cart-content .option-row strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.12;
}

#cart-content .option-row small {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.15;
}

#profile-view .page-title {
  margin-bottom: 0;
  padding: 18px 0 10px;
  border-bottom: 0;
}

#profile-view .page-title .eyebrow {
  display: none;
}

#profile-view .page-title h1 {
  font-size: clamp(1.65rem, 7vw, 2.35rem);
}

#profile-content {
  padding-top: 0;
}

#profile-content > .stack {
  gap: 10px;
}

#profile-content .profile-card {
  padding: 12px;
}

#profile-content .panel-kicker,
#profile-content .section-head h2 {
  text-transform: uppercase;
}

/* Cart item controls polish */
#cart-content .cart-line {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px 12px;
  padding: 11px;
}

#cart-content .cart-line .product-media.small {
  width: 58px;
  height: 58px;
  grid-row: 1 / span 2;
}

#cart-content .cart-line-copy {
  align-self: start;
}

#cart-content .cart-line-copy strong {
  font-size: 0.92rem;
}

#cart-content .cart-line-controls {
  display: grid;
  grid-template-columns: minmax(118px, 0.78fr) minmax(86px, 0.62fr);
  grid-column: 2;
  gap: 8px;
  align-items: center;
}

#cart-content .stepper {
  width: 100%;
  margin: 0;
  border-color: var(--line-strong);
  background: #ffffff;
}

#cart-content .stepper button {
  height: 38px;
  background: #fff0f8;
  color: var(--pink-dark);
  font-size: 1.05rem;
}

#cart-content .stepper b {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

#cart-content .remove-button {
  width: 100%;
  min-height: 38px;
  margin: 0;
  border-color: var(--line);
  background: #fff8fc;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

#cart-content .remove-button:hover {
  border-color: var(--pink);
  color: var(--pink-dark);
}

@media (max-width: 370px) {
  #cart-content .cart-line-controls {
    grid-template-columns: 1fr;
  }
}

/* Tight profile and contacts spacing */
#contacts-view .page-title,
#profile-view .page-title {
  min-height: 0;
  margin-bottom: 6px;
  padding: 8px 0 6px;
  border: 0;
}

#contacts-view .page-title .eyebrow,
#profile-view .page-title .eyebrow {
  display: none;
}

#contacts-view .page-title h1,
#profile-view .page-title h1 {
  font-size: clamp(1.62rem, 7vw, 2.25rem);
  line-height: 1;
}

#contacts-content,
#profile-content {
  padding-top: 0;
}

#contacts-content > .stack,
#profile-content > .stack {
  gap: 8px;
}

#contacts-content .contact-panel {
  gap: 6px;
  padding: 12px;
}

#contacts-content .contact-logo {
  width: 74px;
  height: 74px;
}

#contacts-content .contact-panel h2 {
  font-size: 1.05rem;
  line-height: 1.1;
}

#contacts-content .contact-panel p {
  font-size: 0.82rem;
  line-height: 1.25;
}

#contacts-content .contact-actions {
  gap: 8px;
}

#contacts-content .contact-card {
  min-height: 64px;
  padding: 10px;
}

#contacts-content .contact-card[href^="tel:"] small {
  color: var(--pink-dark);
  text-decoration: none;
}

#profile-content .profile-card {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

#profile-content .profile-avatar {
  width: 62px;
  height: 62px;
}

#profile-content .panel-kicker {
  margin-bottom: 3px;
}

#profile-content .profile-card h2 {
  font-size: 1.05rem;
  line-height: 1.12;
}

#profile-content .surface-panel {
  padding: 12px;
}

#profile-content .section-head {
  margin-bottom: 8px;
}

/* Final override for Telegram cached editorial title heights */
#contacts-view > .page-title,
#profile-view > .page-title {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 8px !important;
  padding: 8px 0 6px !important;
  border: 0 !important;
}

#contacts-content > .stack,
#profile-content > .stack {
  margin-top: 0 !important;
}
