:root {
  --color-accent: #f2384f;
  --color-accent-dark: #d92740;
  --color-text: #181818;
  --color-muted: #717171;
  --color-page: #f5f5f3;
  --color-surface: #ffffff;
  --color-soft: #f4f1ec;
  --color-border: #e9e9e7;
  --color-shadow: rgb(32 32 32 / 9%);
  --content-width: 1180px;
  --mobile-nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-page);
}

svg {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(239 45 79 / 24%);
  outline-offset: 3px;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 12px 16px;
}

.logo {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 2px;
  color: var(--color-accent);
}

.logo-name {
  font-size: 27px;
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.logo-caption {
  color: var(--color-text);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-form {
  flex: 1 1 auto;
  max-width: 720px;
  margin: 0 auto;
}

.search-form input {
  width: 100%;
  height: 44px;
  padding: 0 18px 0 44px;
  color: var(--color-text);
  background-color: #f3f3f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23727272' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  border: 1px solid transparent;
  border-radius: 12px;
  outline: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.search-form input:focus {
  background-color: var(--color-surface);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(239 45 79 / 12%);
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 16px;
  color: var(--color-surface);
  background: var(--color-accent);
  border-radius: 12px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.account-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: var(--color-muted);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.account-button:hover {
  color: var(--color-accent);
  background: rgb(239 45 79 / 7%);
}

.account-button > span:first-child {
  font-size: 21px;
  line-height: 1;
}

.cart-button:hover {
  background: #d92343;
}

.cart-button:active {
  transform: translateY(1px);
}

.cart-icon {
  line-height: 1;
}

.cart-count {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  color: var(--color-accent);
  background: var(--color-surface);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.page-content {
  flex: 1 0 auto;
  width: min(100%, var(--content-width));
  min-height: calc(100vh - 170px);
  margin: 0 auto;
  padding: 28px 16px 72px;
}

.site-footer {
  flex: 0 0 auto;
  padding: 24px 16px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  color: #555;
  font-size: 14px;
}

.footer-container a:hover {
  color: var(--color-accent);
}

.mobile-bottom-nav {
  display: none;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  padding: 12px 16px;
  margin: 0;
  background: #eef8ea;
  border: 1px solid #cfe7c5;
  border-radius: 12px;
  color: #315b24;
  font-size: 14px;
}

.hero {
  padding: 52px 24px;
  margin-bottom: 36px;
  text-align: center;
  background: var(--color-surface);
  border-radius: 24px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
}

.hero p {
  margin: 0 0 24px;
  color: var(--color-muted);
  font-size: 18px;
}

.hero a {
  display: inline-flex;
  padding: 12px 20px;
  color: var(--color-surface);
  background: var(--color-accent);
  border-radius: 14px;
  font-weight: 700;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.categories a {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 14px;
  text-align: center;
  background: var(--color-surface);
  border-radius: 18px;
  font-weight: 700;
}

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

.home-product-card,
.product-card {
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 20px;
}

.home-product-visual {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-soft);
  border-radius: 16px;
  font-size: 56px;
}

.home-product-visual img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.home-product-card h3 {
  min-height: 44px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.3;
}

.home-product-card strong {
  font-size: 22px;
}

.catalog-page {
  padding-bottom: 32px;
}

.catalog-header {
  margin-bottom: 24px;
}

.catalog-header h1,
.simple-page h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.catalog-section {
  margin-bottom: 34px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 0.72;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-soft);
  border-radius: 16px;
}

.product-image img {
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.product-image span {
  font-size: 58px;
}

.product-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 150px;
}

.product-info h3 {
  min-height: 42px;
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
}

.product-category,
.product-stock {
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 13px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.product-bottom strong {
  min-width: 0;
  font-size: 22px;
  white-space: nowrap;
}

.product-bottom button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 0;
  border-radius: 13px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.add-to-cart-form {
  flex: 0 0 auto;
  margin: 0;
}

.product-bottom .add-to-cart-disabled {
  color: var(--color-muted);
  background: var(--color-border);
  cursor: not-allowed;
}

.empty-message,
.simple-page {
  padding: 24px;
  background: var(--color-surface);
  border-radius: 18px;
}

.information-page {
  max-width: 900px;
  margin: 0 auto;
}

.information-page > h1 {
  margin-bottom: 24px;
}

.information-lead {
  margin-bottom: 28px;
  padding: 20px 22px;
  background: var(--color-soft);
  border-radius: 14px;
  font-size: 18px;
  line-height: 1.65;
}

.information-lead p,
.information-section p {
  margin: 0;
}

.information-section {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.information-section h2,
.contact-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.information-section p,
.information-section li,
.contact-card {
  line-height: 1.65;
}

.information-section p + p {
  margin-top: 12px;
}

.information-section ul,
.information-section ol {
  margin: 0;
  padding-left: 22px;
}

.information-section li + li {
  margin-top: 7px;
}

.information-section a,
.contact-card a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.information-action {
  display: inline-flex;
  margin-top: 20px;
  padding: 11px 16px;
  color: var(--color-surface) !important;
  background: var(--color-accent);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

.information-note {
  margin-top: 18px !important;
  padding: 14px 16px;
  background: #fff7e6;
  border-left: 4px solid #e4a11b;
  border-radius: 8px;
}

.information-requisites dl {
  margin: 0;
}

.information-requisites dl div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.information-requisites dl div:last-child {
  border-bottom: 0;
}

.information-requisites dt {
  color: var(--color-muted);
}

.information-requisites dd {
  margin: 0;
  font-weight: 650;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.contact-card {
  padding: 20px;
  background: var(--color-soft);
  border-radius: 14px;
}

.contact-card-wide {
  grid-column: 1 / -1;
}

.contact-card address {
  font-style: normal;
}

.information-updated {
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--color-muted);
  font-size: 14px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 32px;
}

.product-detail-image,
.product-detail-info {
  padding: 24px;
  background: var(--color-surface);
  border-radius: 22px;
}

.product-detail-image {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.product-detail-image img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.product-detail-image span {
  font-size: 96px;
}

.product-detail-info h1 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.1;
}

.product-detail-price {
  margin: 0 0 20px;
  font-size: 30px;
  font-weight: 800;
}

.product-detail-cart-form {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.product-detail-cart-label {
  font-size: 14px;
  font-weight: 700;
}

.product-detail-add-form {
  margin: 0;
}

.product-detail-add-form > button {
  width: 100%;
  min-height: 48px;
  padding: 10px 20px;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
}

.product-detail-stepper {
  display: grid;
  grid-template-columns: 52px minmax(60px, 1fr) 52px;
  min-height: 50px;
  overflow: hidden;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 13px;
  box-shadow: 0 7px 18px rgb(242 56 79 / 16%);
}

.product-detail-stepper form {
  margin: 0;
}

.product-detail-stepper button {
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 0;
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
}

.product-detail-stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-detail-stepper strong {
  display: grid;
  place-items: center;
  font-size: 18px;
}

.product-unavailable {
  padding: 12px 16px;
  margin-top: 24px;
  color: var(--color-muted);
  background: var(--color-page);
  border-radius: 12px;
}

.product-description {
  margin-top: 28px;
}

.product-description h2 {
  margin-bottom: 10px;
  font-size: 20px;
}

.cart-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-page-header h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.cart-page-header span {
  color: var(--color-muted);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: var(--color-surface);
  border-radius: 18px;
}

.cart-item-image {
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: var(--color-soft);
  border-radius: 14px;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.cart-item-image span {
  font-size: 48px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h2 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.3;
}

.cart-item-info > p {
  margin: 0 0 16px;
  color: var(--color-muted);
  font-size: 13px;
}

.cart-item-actions,
.cart-quantity-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-quantity-form input {
  width: 68px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}

.cart-quantity-form button,
.cart-remove-button {
  min-height: 38px;
  padding: 8px 12px;
  background: var(--color-page);
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.cart-remove-button {
  color: var(--color-accent);
}

.cart-item-total {
  font-size: 19px;
  white-space: nowrap;
}

.cart-summary {
  position: sticky;
  top: 92px;
  padding: 22px;
  background: var(--color-surface);
  border-radius: 18px;
}

.cart-summary h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cart-summary > div span {
  color: var(--color-muted);
}

.cart-summary > div strong {
  font-size: 22px;
  white-space: nowrap;
}

.cart-summary > a,
.empty-cart > a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: var(--color-surface);
  background: var(--color-accent);
  border-radius: 13px;
  font-weight: 800;
}

.cart-summary > p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  text-align: center;
}

.empty-cart {
  display: grid;
  max-width: 540px;
  justify-items: center;
  padding: 56px 24px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border-radius: 22px;
}

.empty-cart > span {
  margin-bottom: 12px;
  font-size: 52px;
}

.empty-cart h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.empty-cart p {
  margin: 0 0 22px;
  color: var(--color-muted);
}

.checkout-header {
  margin-bottom: 24px;
}

.checkout-header > a {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 14px;
}

.checkout-header h1 {
  margin: 0 0 6px;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.checkout-header p {
  margin: 0;
  color: var(--color-muted);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.checkout-form-card,
.checkout-summary,
.order-success {
  padding: 24px;
  background: var(--color-surface);
  border-radius: 20px;
}

.checkout-form-card h2,
.checkout-summary h2 {
  margin: 0 0 22px;
  font-size: 22px;
}

.checkout-field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.checkout-field:last-child {
  margin-bottom: 0;
}

.checkout-field label {
  font-size: 14px;
  font-weight: 700;
}

.checkout-field label span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 400;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  outline: none;
}

.checkout-field input {
  min-height: 46px;
}

.checkout-field textarea {
  min-height: 110px;
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(239 45 79 / 10%);
}

.checkout-field-error input,
.checkout-field-error textarea {
  border-color: var(--color-accent);
}

.checkout-error,
.checkout-form-errors {
  color: #a71934;
  font-size: 13px;
}

.checkout-error ul,
.checkout-form-errors ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.checkout-form-errors {
  padding: 12px 14px;
  margin-bottom: 18px;
  background: #fff0f3;
  border-radius: 12px;
}

.checkout-summary {
  position: sticky;
  top: 92px;
}

.checkout-order-items {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.checkout-order-item,
.checkout-total,
.order-success-details > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.checkout-order-item {
  color: var(--color-muted);
  font-size: 14px;
}

.checkout-order-item span,
.order-success-details span {
  min-width: 0;
}

.checkout-order-item strong {
  color: var(--color-text);
  white-space: nowrap;
}

.checkout-total {
  align-items: baseline;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 800;
}

.checkout-total strong {
  font-size: 25px;
  white-space: nowrap;
}

.checkout-summary > button {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
}

.checkout-summary > button:hover,
.order-success > a:hover {
  background: #d92343;
}

.checkout-summary > p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.checkout-summary > p a {
  text-decoration: underline;
}

.order-success {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.order-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  place-items: center;
  color: var(--color-surface);
  background: #42a846;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 800;
}

.order-success-label {
  margin: 0 0 6px;
  color: #368b3a;
  font-weight: 800;
}

.order-success h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.order-success > p:not(.order-success-label) {
  max-width: 540px;
  margin: 0 auto;
  color: var(--color-muted);
}

.order-success-details {
  display: grid;
  gap: 12px;
  padding: 20px;
  margin: 28px 0 20px;
  text-align: left;
  background: var(--color-page);
  border-radius: 14px;
}

.order-success-details h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.order-success-details strong {
  white-space: nowrap;
}

.order-success > a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  color: var(--color-surface);
  background: var(--color-accent);
  border-radius: 13px;
  font-weight: 800;
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 230px);
  place-items: center;
}

.auth-card {
  width: min(100%, 430px);
  padding: 32px;
  background: var(--color-surface);
  border-radius: 22px;
  box-shadow: 0 14px 44px var(--color-shadow);
}

.auth-card-wide {
  width: min(100%, 520px);
}

.auth-eyebrow {
  margin: 0 0 6px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.auth-intro {
  margin: 0 0 24px;
  color: var(--color-muted);
}

.auth-form {
  display: grid;
  gap: 17px;
}

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

.auth-field label {
  font-size: 14px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgb(239 45 79 / 10%);
}

.auth-field-error input {
  border-color: var(--color-accent);
}

.auth-help {
  color: var(--color-muted);
  font-size: 12px;
}

.auth-help ul {
  padding-left: 18px;
  margin: 3px 0 0;
}

.auth-error,
.auth-form-errors {
  color: #a71934;
  font-size: 13px;
}

.auth-error ul,
.auth-form-errors ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.auth-form-errors {
  padding: 12px 14px;
  background: #fff0f3;
  border-radius: 12px;
}

.auth-form > button {
  min-height: 50px;
  padding: 12px 18px;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 0;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-form > button:hover {
  background: #d92343;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
}

.auth-switch a,
.auth-back {
  color: var(--color-accent);
  font-weight: 700;
}

.auth-back {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 14px;
}

.cabinet-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.cabinet-header p {
  margin: 0 0 5px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cabinet-header h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.04em;
}

.cabinet-header button {
  min-height: 40px;
  padding: 8px 15px;
  color: var(--color-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.profile-card {
  padding: 24px;
  text-align: center;
  background: var(--color-surface);
  border-radius: 20px;
}

.profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  place-items: center;
  color: var(--color-surface);
  background: linear-gradient(145deg, var(--color-accent), #ff6b82);
  border-radius: 50%;
  font-size: 30px;
  font-weight: 850;
}

.profile-card h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.profile-card p {
  margin: 0 0 18px;
  overflow-wrap: anywhere;
  color: var(--color-muted);
  font-size: 13px;
}

.profile-card > a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  color: var(--color-accent);
  background: rgb(239 45 79 / 8%);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
}

.order-history {
  min-width: 0;
}

.order-history-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.order-history-header h2 {
  margin: 0;
  font-size: 24px;
}

.order-history-header > span {
  display: grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  color: var(--color-muted);
  background: var(--color-surface);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.account-order-card {
  padding: 20px;
  margin-bottom: 12px;
  background: var(--color-surface);
  border-radius: 18px;
}

.account-order-header,
.account-order-total,
.account-order-items p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.account-order-header {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.account-order-header > div {
  display: grid;
  gap: 2px;
}

.account-order-header > div span {
  color: var(--color-muted);
  font-size: 12px;
}

.order-status {
  padding: 5px 9px;
  color: #805600;
  background: #fff2ca;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.order-status-completed {
  color: #315b24;
  background: #e9f7e4;
}

.order-status-canceled {
  color: #8f2338;
  background: #fff0f3;
}

.account-order-items {
  padding: 13px 0;
}

.account-order-items p {
  margin: 7px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.account-order-items strong,
.account-order-total strong {
  color: var(--color-text);
  white-space: nowrap;
}

.account-order-total {
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-weight: 800;
}

.account-orders-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--color-surface);
  border-radius: 20px;
}

.account-orders-empty > span {
  font-size: 46px;
}

.account-orders-empty h3 {
  margin: 8px 0 5px;
  font-size: 21px;
}

.account-orders-empty p {
  margin: 0 0 20px;
  color: var(--color-muted);
}

.account-orders-empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 9px 17px;
  color: var(--color-surface);
  background: var(--color-accent);
  border-radius: 12px;
  font-weight: 800;
}

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

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .account-button > span:last-child {
    display: none;
  }

  .cabinet-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(
      var(--mobile-nav-height) + env(safe-area-inset-bottom)
    );
  }

  .header-container {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 62px;
    padding: 10px 12px;
  }

  .logo-name {
    font-size: 25px;
  }

  .logo-caption {
    font-size: 9px;
  }

  .search-form {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
    margin: 0;
  }

  .search-form input {
    height: 42px;
  }

  .cart-button {
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    margin-left: auto;
    padding: 9px 11px;
  }

  .account-button {
    display: none;
  }

  .cart-label {
    display: none;
  }

  .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    color: var(--color-surface);
    background: var(--color-accent);
    border: 2px solid var(--color-surface);
    font-size: 10px;
  }

  .page-content {
    min-height: auto;
    padding: 20px 12px 28px;
  }

  .site-footer {
    display: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: var(--mobile-nav-height);
    padding: 5px 4px max(5px, env(safe-area-inset-bottom));
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 24px var(--color-shadow);
  }

  .mobile-nav-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 3px 2px;
    color: #666;
    border-radius: 10px;
  }

  .mobile-nav-item span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
  }

  .mobile-nav-item .mobile-cart-icon {
    position: relative;
  }

  .mobile-cart-icon b {
    position: absolute;
    top: -5px;
    right: -9px;
    display: grid;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    place-items: center;
    color: var(--color-surface);
    background: var(--color-accent);
    border-radius: 999px;
    font-size: 9px;
    line-height: 1;
  }

  .mobile-nav-item small {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-item-disabled {
    color: #aaa;
  }

  .mobile-nav-item:not(.mobile-nav-item-disabled):active {
    color: var(--color-accent);
    background: rgb(239 45 79 / 8%);
  }

  .hero {
    padding: 36px 18px;
    margin-bottom: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .categories {
    display: flex;
    gap: 10px;
    margin: 0 -12px 28px;
    padding: 0 12px 6px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .categories a {
    flex: 0 0 116px;
    min-height: 76px;
    padding: 12px 10px;
    font-size: 13px;
  }

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

  .home-product-card,
  .product-card {
    padding: 10px;
    border-radius: 18px;
  }

  .home-product-visual {
    height: 115px;
    font-size: 48px;
  }

  .home-product-card h3,
  .product-info h3 {
    min-height: 46px;
    font-size: 13px;
  }

  .product-image {
    margin-bottom: 10px;
  }

  .product-image img {
    padding: 6px;
  }

  .product-info {
    min-height: 132px;
  }

  .product-category,
  .product-stock {
    font-size: 12px;
  }

  .home-product-card strong,
  .product-bottom strong {
    font-size: 17px;
  }

  .product-bottom button {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 23px;
  }

  .catalog-header h1,
  .simple-page h1 {
    font-size: 28px;
  }

  .simple-page {
    padding: 20px 16px;
  }

  .information-lead {
    padding: 16px;
    font-size: 16px;
  }

  .information-section {
    padding: 20px 0;
  }

  .information-section h2,
  .contact-card h2 {
    font-size: 20px;
  }

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

  .contact-card-wide {
    grid-column: auto;
  }

  .information-requisites dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-detail-image,
  .product-detail-info {
    padding: 16px;
    border-radius: 18px;
  }

  .product-detail-image {
    min-height: 280px;
  }

  .product-detail-info h1 {
    font-size: 28px;
  }

  .cart-page-header {
    margin-bottom: 16px;
  }

  .cart-page-header h1 {
    font-size: 28px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .cart-item-image {
    width: 82px;
  }

  .cart-item-image span {
    font-size: 38px;
  }

  .cart-item-info h2 {
    font-size: 14px;
  }

  .cart-item-info > p {
    margin-bottom: 10px;
  }

  .cart-item-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-quantity-form {
    width: 100%;
  }

  .cart-quantity-form input {
    flex: 0 0 62px;
  }

  .cart-quantity-form button,
  .cart-item-actions > form:last-child,
  .cart-remove-button {
    flex: 1 1 auto;
    width: 100%;
  }

  .cart-item-total {
    grid-column: 2;
    font-size: 17px;
  }

  .cart-summary {
    position: static;
    padding: 18px;
  }

  .empty-cart {
    padding: 44px 18px;
  }

  .checkout-header {
    margin-bottom: 16px;
  }

  .checkout-header h1 {
    font-size: 28px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .checkout-form-card,
  .checkout-summary,
  .order-success {
    padding: 18px;
    border-radius: 18px;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-summary > button {
    min-height: 52px;
  }

  .order-success h1 {
    font-size: 28px;
  }

  .order-success-details {
    padding: 16px;
  }

  .auth-page {
    min-height: auto;
    place-items: start stretch;
  }

  .auth-card,
  .auth-card-wide {
    width: 100%;
    padding: 22px 18px;
    border-radius: 18px;
    box-shadow: none;
  }

  .auth-card h1 {
    font-size: 28px;
  }

  .cabinet-header {
    align-items: flex-start;
    margin-bottom: 16px;
  }

  .cabinet-header h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .cabinet-header button {
    min-height: 36px;
    padding: 7px 11px;
  }

  .cabinet-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 3px 13px;
    padding: 16px;
    text-align: left;
  }

  .profile-avatar {
    grid-row: 1 / span 3;
    width: 58px;
    height: 58px;
    margin: 0;
    font-size: 24px;
  }

  .profile-card h2 {
    align-self: end;
    font-size: 17px;
  }

  .profile-card p {
    margin: 0;
  }

  .profile-card > a {
    grid-column: 1 / -1;
    margin-top: 10px;
  }

  .order-history-header h2 {
    font-size: 21px;
  }

  .account-order-card {
    padding: 16px;
  }

  .account-order-header {
    gap: 10px;
  }

  .account-order-items p {
    font-size: 13px;
  }
}

/* 2026 storefront refresh */

.site-header {
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-container {
  min-height: 72px;
}

.header-menu {
  position: relative;
  display: none;
  flex: 0 0 auto;
}

.header-menu summary {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 9px;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  list-style: none;
}

.header-menu summary::-webkit-details-marker {
  display: none;
}

.header-menu summary:hover {
  background: var(--color-page);
}

.header-menu summary svg,
.account-button svg,
.cart-button svg {
  width: 24px;
  height: 24px;
}

.header-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 220px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgb(0 0 0 / 14%);
}

.header-menu-panel a {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

.header-menu-panel a:hover {
  color: var(--color-accent);
  background: rgb(242 56 79 / 7%);
}

.logo {
  align-items: center;
}

.logo-name {
  color: #e72b35;
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.logo-caption {
  margin-top: 3px;
  font-size: 8px;
}

.search-form input {
  height: 48px;
  background-color: #f7f7f7;
  border-color: #ededed;
  border-radius: 14px;
}

.account-button svg {
  flex: 0 0 auto;
}

.cart-button {
  color: var(--color-text);
  background: transparent;
}

.cart-button:hover {
  color: var(--color-accent);
  background: rgb(242 56 79 / 7%);
}

.cart-count {
  color: var(--color-surface);
  background: var(--color-accent);
}

.page-content {
  padding-top: 24px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  min-height: 360px;
  padding: 48px;
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(circle at 78% 30%, rgb(107 124 60 / 35%), transparent 20%),
    linear-gradient(135deg, #0b0c0a, #171914 58%, #060706);
  border-radius: 26px;
  box-shadow: 0 20px 46px rgb(0 0 0 / 12%);
}

.hero::after {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 420px;
  height: 260px;
  background: radial-gradient(ellipse, rgb(116 76 38 / 44%), transparent 68%);
  content: "";
  transform: rotate(-10deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-eyebrow {
  margin: 0 0 12px !important;
  color: #d7ddbd !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 16px;
  color: var(--color-surface);
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.045em;
}

.hero .hero-description {
  max-width: 520px;
  margin: 0 0 28px;
  color: #c5c6c1;
}

.hero a {
  min-height: 48px;
  align-items: center;
  padding: 12px 22px;
  border-radius: 13px;
}

.hero-placeholder {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 250px;
  color: #8f9387;
}

.hero-placeholder small {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-can {
  position: relative;
  display: block;
  width: 176px;
  height: 156px;
  background:
    linear-gradient(90deg, transparent, rgb(255 255 255 / 10%), transparent),
    linear-gradient(#4d5147, #282b25 15%, #363a32 85%, #1f211d);
  border: 2px solid #666b5f;
  border-radius: 50% / 11%;
  box-shadow:
    0 22px 35px rgb(0 0 0 / 50%),
    inset 0 0 30px rgb(0 0 0 / 45%);
}

.placeholder-can::before,
.placeholder-can::after {
  position: absolute;
  right: -2px;
  left: -2px;
  height: 22px;
  border: 2px solid #777c6e;
  border-radius: 50%;
  content: "";
}

.placeholder-can::before {
  top: -5px;
  background: #454941;
}

.placeholder-can::after {
  bottom: -5px;
  background: #242720;
}

.home-section {
  margin-top: 34px;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-section-header h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.home-section-header > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-accent);
  font-weight: 800;
}

.home-section-header > a span {
  font-size: 25px;
  line-height: 1;
}

.category-showcase {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 0 7px;
  overflow-x: auto;
  scrollbar-color: #d5d5d5 transparent;
}

.categories .category-card {
  display: flex;
  flex: 0 0 142px;
  min-height: 0;
  flex-direction: column;
  gap: 9px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.category-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 1.42;
  place-items: center;
  color: #8f8072;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 8%, transparent 9%),
    linear-gradient(145deg, #f8f4ee, #ece6dd);
  border: 1px solid #e8e1d8;
  border-radius: 17px;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.category-card:hover .category-placeholder {
  border-color: rgb(242 56 79 / 45%);
  transform: translateY(-2px);
}

.category-card strong {
  min-height: 38px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.home-product-grid,
.product-grid {
  gap: 16px;
}

.home-product-card,
.product-card {
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 19px;
  box-shadow: 0 8px 25px rgb(32 32 32 / 4%);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.product-card:hover {
  border-color: #ddd;
  box-shadow: 0 12px 32px rgb(32 32 32 / 9%);
  transform: translateY(-2px);
}

.product-image {
  aspect-ratio: 1.34;
  margin: 0;
  background: linear-gradient(145deg, #f6f2ec, #ede8df);
  border-radius: 18px 18px 0 0;
}

.product-image img {
  padding: 14px;
}

.product-placeholder {
  display: grid;
  justify-items: center;
  color: #aaa298;
}

.product-placeholder svg {
  width: 64px;
  height: 64px;
  stroke-width: 1.5;
}

.product-placeholder small {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-placeholder-large svg {
  width: 112px;
  height: 112px;
}

.product-placeholder-large small {
  font-size: 12px;
}

.product-info {
  min-height: 145px;
  padding: 14px;
}

.product-info h3 {
  display: -webkit-box;
  min-height: 42px;
  margin-bottom: 7px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 15px;
  line-height: 1.35;
}

.product-meta {
  min-height: 19px;
  margin: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-bottom {
  padding-top: 13px;
}

.product-bottom strong {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.product-bottom button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgb(242 56 79 / 24%);
}

.product-bottom button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

.product-bottom .add-to-cart-disabled {
  box-shadow: none;
}

.catalog-header h1,
.cart-page-header h1,
.checkout-header h1,
.cabinet-header h1,
.simple-page h1 {
  letter-spacing: -0.045em;
}

.product-detail-image,
.product-detail-info,
.cart-item,
.cart-summary,
.checkout-form-card,
.checkout-summary,
.order-success,
.profile-card,
.account-order-card,
.auth-card,
.simple-page {
  border: 1px solid var(--color-border);
  box-shadow: 0 9px 28px rgb(32 32 32 / 4%);
}

@media (max-width: 767px) {
  .site-header {
    position: sticky;
  }

  .header-container {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    min-height: 126px;
    padding: 8px 14px 12px;
  }

  .header-menu {
    display: block;
  }

  .header-menu-panel {
    top: calc(100% + 5px);
  }

  .logo {
    justify-self: center;
  }

  .logo-name {
    font-size: 28px;
  }

  .logo-caption {
    display: none;
  }

  .search-form {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-form input {
    height: 46px;
    padding-left: 45px;
  }

  .cart-button {
    justify-self: end;
    min-width: 42px;
    margin: 0;
    padding: 9px;
  }

  .cart-count {
    top: -2px;
    right: -3px;
  }

  .page-content {
    padding: 16px 14px 34px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(100px, 0.75fr);
    min-height: 188px;
    padding: 22px;
    margin-bottom: 0;
    border-radius: 17px;
  }

  .hero h1 {
    max-width: 230px;
    margin-bottom: 9px;
    font-size: clamp(23px, 7vw, 31px);
    line-height: 1.05;
  }

  .hero-eyebrow,
  .hero .hero-description {
    display: none;
  }

  .hero a {
    min-height: 39px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
  }

  .hero-placeholder {
    min-height: 130px;
  }

  .hero-placeholder small {
    display: none;
  }

  .placeholder-can {
    width: 100px;
    height: 91px;
  }

  .placeholder-can::before,
  .placeholder-can::after {
    height: 14px;
  }

  .home-section {
    margin-top: 25px;
  }

  .home-section-header {
    margin-bottom: 12px;
  }

  .home-section-header h2,
  .section-title h2 {
    font-size: 21px;
  }

  .home-section-header > a {
    font-size: 14px;
  }

  .category-showcase,
  .categories.category-showcase {
    gap: 10px;
    margin: 0 -14px;
    padding: 0 14px 5px;
  }

  .categories .category-card {
    flex-basis: 92px;
  }

  .category-placeholder {
    aspect-ratio: 1.15;
    border-radius: 13px;
    font-size: 18px;
  }

  .category-card strong {
    min-height: 34px;
    font-size: 11px;
  }

  .home-product-grid,
  .product-grid {
    gap: 10px;
  }

  .home-product-card,
  .product-card {
    border-radius: 15px;
  }

  .product-image {
    aspect-ratio: 1.18;
    border-radius: 14px 14px 0 0;
  }

  .product-image img {
    padding: 8px;
  }

  .product-placeholder svg {
    width: 48px;
    height: 48px;
  }

  .product-info {
    min-height: 130px;
    padding: 10px;
  }

  .product-info h3 {
    min-height: 39px;
    margin-bottom: 5px;
    font-size: 13px;
  }

  .product-meta {
    font-size: 10px;
  }

  .product-bottom {
    padding-top: 10px;
  }

  .product-bottom strong {
    font-size: 17px;
  }

  .product-bottom button {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .mobile-bottom-nav {
    padding: 6px 5px max(6px, env(safe-area-inset-bottom));
  }

  .mobile-nav-item {
    gap: 3px;
    color: #696969;
  }

  .mobile-nav-item > svg,
  .mobile-cart-icon,
  .mobile-cart-icon svg {
    width: 25px;
    height: 25px;
  }

  .mobile-nav-item > svg,
  .mobile-cart-icon svg {
    stroke-width: 1.8;
  }

  .mobile-nav-item span {
    display: block;
  }

  .mobile-nav-item small {
    font-size: 10px;
  }

  .mobile-nav-item-active {
    color: var(--color-accent);
    font-weight: 800;
  }

  .mobile-nav-item-active svg {
    stroke-width: 2.3;
  }

  .mobile-cart-icon b {
    top: -6px;
    right: -8px;
  }

  .catalog-page .category-showcase {
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) {
  .header-menu {
    display: block;
  }
}

/* Category detail */

.category-mobile-header {
  display: none;
}

.category-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.category-control {
  position: relative;
}

.category-control summary {
  display: flex;
  min-width: 170px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgb(32 32 32 / 4%);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  list-style: none;
}

.category-control summary::-webkit-details-marker {
  display: none;
}

.category-control summary svg {
  width: 20px;
  height: 20px;
}

.control-dot {
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
}

.category-control-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  display: grid;
  width: 230px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgb(0 0 0 / 14%);
}

.category-control-panel a,
.category-control-panel span {
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--color-muted);
  font-size: 13px;
}

.category-control-panel a:hover,
.category-control-panel .is-selected {
  color: var(--color-accent);
  background: rgb(242 56 79 / 8%);
  font-weight: 750;
}

.category-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.category-layout:not(:has(.category-sidebar)) {
  grid-template-columns: 1fr;
}

.category-sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 17px;
  box-shadow: 0 8px 26px rgb(32 32 32 / 4%);
}

.category-sidebar a {
  padding: 12px 14px;
  border-radius: 11px;
  color: #4f4f4f;
  font-size: 14px;
  font-weight: 650;
}

.category-sidebar a:hover,
.category-sidebar .is-active {
  color: var(--color-accent);
  background: linear-gradient(90deg, rgb(242 56 79 / 12%), rgb(242 56 79 / 4%));
}

.category-desktop-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.category-desktop-heading a {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--color-muted);
  font-size: 13px;
}

.category-desktop-heading h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -0.045em;
}

.category-desktop-heading > span {
  color: var(--color-muted);
  font-size: 14px;
}

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

.category-product {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgb(32 32 32 / 4%);
}

.category-product-image {
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #f6f2ec, #ede8df);
  border-radius: 14px;
}

.category-product-image img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.category-product-image .product-placeholder svg {
  width: 52px;
  height: 52px;
}

.category-product-info {
  min-width: 0;
  padding-bottom: 46px;
}

.category-product-info h2 {
  display: -webkit-box;
  margin: 3px 0 7px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 16px;
  line-height: 1.3;
}

.category-product-info p {
  margin: 0 0 11px;
  color: var(--color-muted);
  font-size: 12px;
}

.category-product-info strong {
  font-size: 21px;
  letter-spacing: -0.025em;
}

.category-product-action {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.category-product-action > form {
  margin: 0;
}

.category-add-button,
.quantity-stepper button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgb(242 56 79 / 24%);
  cursor: pointer;
  font-size: 22px;
}

.category-add-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.3;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 36px 38px 36px;
  align-items: center;
  overflow: hidden;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 11px;
  box-shadow: 0 6px 14px rgb(242 56 79 / 18%);
}

.quantity-stepper form {
  margin: 0;
}

.quantity-stepper button {
  width: 36px;
  height: 36px;
  border-radius: 0;
  box-shadow: none;
}

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

.quantity-stepper span {
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.category-product-unavailable {
  color: var(--color-muted);
  font-size: 11px;
}

@media (max-width: 1024px) and (min-width: 768px) {
  .category-product-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .category-view .site-header {
    display: none;
  }

  .category-view .page-content {
    width: 100%;
    padding: 0 0 26px;
  }

  .category-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 68px;
    align-items: center;
    padding: 8px 14px;
    background: rgb(255 255 255 / 97%);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
  }

  .category-mobile-header a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
  }

  .category-mobile-header a:last-child {
    justify-self: end;
  }

  .category-mobile-header svg {
    width: 25px;
    height: 25px;
    stroke-width: 2.2;
  }

  .category-mobile-header h1 {
    margin: 0;
    overflow: hidden;
    font-size: 19px;
    letter-spacing: -0.02em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .category-toolbar {
    position: sticky;
    top: 68px;
    z-index: 24;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px;
    margin: 0;
    background: rgb(255 255 255 / 97%);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
  }

  .category-control summary {
    min-width: 0;
    min-height: 45px;
    padding: 8px 10px;
    background: #f7f7f7;
    border: 0;
    box-shadow: none;
    font-size: 13px;
  }

  .category-control-panel {
    right: auto;
    left: 0;
    width: min(230px, calc(100vw - 28px));
  }

  .category-sort-control .category-control-panel {
    right: 0;
    left: auto;
  }

  .category-layout {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 0;
  }

  .category-layout:not(:has(.category-sidebar)) {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: sticky;
    top: 138px;
    align-self: start;
    max-height: calc(100vh - 210px);
    padding: 7px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fff8f8, #f7f7f7 17%);
    border: 0;
    border-right: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
  }

  .category-sidebar a {
    min-height: 54px;
    padding: 10px 8px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.25;
  }

  .category-sidebar a:hover,
  .category-sidebar .is-active {
    background: rgb(242 56 79 / 9%);
  }

  .category-results {
    min-width: 0;
    padding: 0 12px;
  }

  .category-desktop-heading {
    display: none;
  }

  .category-product-list {
    display: block;
  }

  .category-product {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 12px;
    min-height: 154px;
    padding: 16px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
  }

  .category-product-image {
    width: 98px;
    margin-top: 2px;
    border-radius: 12px;
  }

  .category-product-image img {
    padding: 5px;
  }

  .category-product-info {
    padding-bottom: 42px;
  }

  .category-product-info h2 {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.32;
  }

  .category-product-info p {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .category-product-info strong {
    font-size: 18px;
  }

  .category-product-action {
    right: 0;
    bottom: 16px;
  }

  .category-add-button {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .quantity-stepper {
    grid-template-columns: 31px 32px 31px;
  }

  .quantity-stepper button {
    width: 31px;
    height: 34px;
  }

  .quantity-stepper span {
    font-size: 13px;
  }

  .category-layout:not(:has(.category-sidebar)) .category-results {
    padding: 0 14px;
  }
}

@media (max-width: 359px) {
  .category-layout {
    display: block;
  }

  .category-sidebar {
    position: static;
    display: flex;
    max-height: none;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    background: var(--color-surface);
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .category-sidebar a {
    flex: 0 0 auto;
    min-height: 0;
    padding: 8px 11px;
  }
}
