@font-face {
  font-family: "Comfortaa";
  src:
    url("/fonts/Comfortaa-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 220;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  width: min(500px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(212, 175, 55, 0.46);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.18), transparent 38%),
    linear-gradient(135deg, #850f18, var(--brand-red));
  color: var(--white);
  box-shadow: 0 20px 52px rgba(65, 0, 0, 0.27);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.cookie-notice-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-notice-leaving {
  opacity: 0;
  transform: translateY(18px);
}

.cookie-notice-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.cookie-notice-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--white);
  font-size: 16px;
}

.cookie-notice-copy p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-notice-copy a {
  color: var(--white);
  text-decoration: underline;
}

.cookie-notice-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-notice-actions button {
  min-height: 38px;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.cookie-notice-settings {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: transparent;
  color: var(--white);
}

.cookie-notice-settings:hover,
.cookie-notice-settings:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.cookie-notice-accept {
  border: 1px solid var(--brand-gold);
  background: var(--brand-gold);
  color: #3e2500;
}

.cookie-notice-accept:hover,
.cookie-notice-accept:focus-visible {
  background: #e6c65c;
  border-color: #e6c65c;
}

.footer-cookie-settings {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-policy {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.privacy-policy-head {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.privacy-policy-head h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.privacy-policy-head p {
  color: var(--text-muted);
}

.privacy-policy section + section {
  margin-top: 28px;
}

.privacy-policy h2 {
  margin-bottom: 12px;
  color: var(--brand-red);
  font-size: 21px;
}

.privacy-policy p + p,
.privacy-policy p + ul {
  margin-top: 12px;
}

.privacy-policy ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-secondary);
}

.privacy-policy li + li {
  margin-top: 6px;
}

.privacy-policy a {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand-red);
}

.privacy-consent a {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-facts {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--brand-gold);
  border-radius: 0 12px 12px 0;
  background: var(--surface-soft);
  color: var(--text-secondary);
  font-size: 14px;
}

.product-facts strong {
  color: var(--text-primary);
}

@media (max-width: 560px) {
  .cookie-notice {
    right: 16px;
    bottom: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 15px;
  }

  .cookie-notice-actions {
    justify-content: stretch;
  }

  .cookie-notice-actions button {
    flex: 1 1 180px;
  }
}

@font-face {
  font-family: "Sangha Kali";
  src:
    url("/fonts/SanghaKali-Regular.woff2") format("woff2"),
    url("/fonts/SanghaKali-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand-red: #750000;
  --brand-red-dark: #7e0d16;
  --brand-red-soft: #f8ecee;
  --brand-gold: #D4AF37;
  --text-primary: #111111;
  --text-secondary: #5e5e5e;
  --text-muted: #787878;
  --surface: #ffffff;
  --surface-alt: #f6f6f6;
  --surface-soft: #faf7f7;
  --border: #dddddd;
  --border-strong: #cfcfcf;
  --white: #ffffff;
  --black: #0f0f10;
  --success: #2e8b57;
  --danger: #7b7b7b;
  --radius-card: 18px;
  --radius-pill: 999px;
  --container: 1280px;
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.06);
  --shadow-card: 0 16px 40px rgba(17, 17, 17, 0.08);
  --transition-fast: 180ms ease;
  --transition-slow: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --font-base: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent-hero: "Comfortaa", "Sangha Kali", "Segoe Script", cursive;
  --home-hero-background:
    linear-gradient(180deg, rgba(15, 15, 16, 0.05) 0%, rgba(15, 15, 16, 0.18) 100%),
    radial-gradient(circle at 22% 22%, rgba(180, 40, 40, 0.45), transparent 38%),
    radial-gradient(circle at 50% 44%, rgba(150, 25, 30, 0.22), transparent 40%),
    radial-gradient(circle at 78% 68%, rgba(200, 70, 50, 0.14), transparent 35%),
    linear-gradient(135deg, #943838, #7a2828 72%);
  --pattern-sakura:
    radial-gradient(circle at 18px 16px, rgba(230, 100, 140, 0.10) 0 5px, transparent 5.5px),
    radial-gradient(circle at 28px 24px, rgba(255, 180, 200, 0.09) 0 3px, transparent 3.5px),
    radial-gradient(circle at 54px 42px, rgba(230, 100, 140, 0.09) 0 5px, transparent 5.5px),
    radial-gradient(circle at 66px 18px, rgba(255, 180, 200, 0.08) 0 3px, transparent 3.5px),
    radial-gradient(circle at 94px 34px, rgba(230, 100, 140, 0.09) 0 5px, transparent 5.5px),
    radial-gradient(circle at 106px 46px, rgba(255, 180, 200, 0.08) 0 3px, transparent 3.5px);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: 15px;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

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

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

a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="file"],
label[for],
summary,
select {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.12;
}

h1 {
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 20px;
  font-weight: 500;
}

p {
  margin: 0;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    opacity var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

a:hover {
  color: var(--brand-red);
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.site-header {
  position: static;
  z-index: 90;
}

.header-inner {
  position: relative;
  z-index: 91;
}

.header-inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
  z-index: -1;
}

.header-inner-spacer {
  display: none;
}

.header-inner-spacer.header-inner-spacer-active {
  display: block;
}

.header-inner.header-inner-pinned {
  position: fixed;
  top: 0;
}

.header-topbar {
  background: linear-gradient(135deg, #943838, #7a2828 72%);
  color: var(--white);
}

.header-topbar-inner {
  position: relative;
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.header-topbar-socials {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.header-topbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  font-family: "Comfortaa", var(--font-base);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-topbar-inner .header-contact {
  position: relative;
  justify-self: end;
  min-height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  font-size: 13px !important;
  letter-spacing: 0.04em;
}

.header-topbar-inner .header-contact::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.header-topbar-inner .header-contact:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.78) !important;
  transform: none;
  box-shadow: none;
}

.header-topbar-inner .header-contact:hover::after {
  transform: scaleX(1);
}

.header-topbar-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0.95;
}

.header-topbar-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-topbar-icon:hover {
  color: var(--white);
  opacity: 0.75;
  transform: translateY(-1px);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(320px, 1fr) auto;
  grid-template-areas: "logo search nav";
  align-items: center;
  gap: 28px;
}

.header-inner.header-no-search {
  grid-template-columns: minmax(180px, 260px) 1fr;
  grid-template-areas: "logo nav";
}

.header-contact {
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--black);
  font-size: 15px !important;
  white-space: nowrap;
}

.header-contact:hover {
  background: var(--black);
  color: var(--white) !important;
}

.nav-links a.header-contact {
  padding: 0 18px;
}

.logo-link {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.logo {
  width: min(100%, 233px);
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.search-form {
  grid-area: search;
  position: relative;
  width: 100%;
  z-index: 120;
}

.search-form-placeholder {
  grid-area: search;
  width: 100%;
  min-height: 48px;
}

.search-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #d5d5d5;
  border-radius: var(--radius-pill);
  background: var(--white);
  padding: 0 20px 0 54px;
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: 16px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    background-color var(--transition-fast),
    filter var(--transition-fast);
}

.search-input::placeholder {
  color: #5d5d5d;
  font-family: var(--font-accent-hero);
}

.search-form:hover .search-input,
.search-form:focus-within .search-input {
  border-color: #111111;
}

.search-input:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.search-btn {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-50%);
  text-indent: -9999px;
  overflow: hidden;
}

.search-btn::before,
.search-btn::after {
  content: "";
  position: absolute;
}

.search-btn::before {
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.search-btn::after {
  top: 15px;
  left: 15px;
  width: 8px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17, 17, 17, 0.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity var(--transition-fast),
    backdrop-filter var(--transition-fast),
    -webkit-backdrop-filter var(--transition-fast);
}

body.search-active .site-search-overlay {
  opacity: 1;
  pointer-events: auto;
}

.site-search-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.search-form-active {
  z-index: 141;
}

.search-form-detached {
  position: fixed;
  margin: 0;
  pointer-events: auto;
}

.search-form-active .search-input,
body.search-active .search-input:focus {
  background: var(--white);
  border-color: #151515;
  box-shadow:
    0 0 0 1px rgba(17, 17, 17, 0.9),
    0 18px 42px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
  filter: none;
}

.search-form-active .search-btn {
  color: #111111;
}

body.search-active .search-suggest {
  z-index: 2;
}

.nav-links {
  grid-area: nav;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.nav-links.nav-authenticated {
  width: 100%;
  justify-content: flex-end;
}

.nav-links.nav-authenticated a[href="/catalog"] {
  margin-right: auto;
}

.nav-links .nav-account-link {
  margin-left: 0;
  font-family: "Comfortaa", var(--font-base);
}

.nav-links a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.nav-links a[href="/register"],
.nav-links a[href="/"],
.nav-links a[href="/account"],
.nav-links a[href="/admin"] {
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--black);
}

.nav-links a[href="/cart"] {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
}

.nav-links a.nav-admin-action {
  background: var(--brand-red);
  color: var(--white);
  border: 1.5px solid var(--brand-red);
}

.nav-links a.nav-logout-action {
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--black);
}

.nav-links a[href="/register"]:hover,
.nav-links a[href="/"]:hover,
.nav-links a[href="/account"]:hover,
.nav-links a[href="/admin"]:hover,
.nav-links a.nav-logout-action:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.nav-links a[href="/cart"]:hover,
.nav-links a.nav-admin-action:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--white);
  opacity: 0.92;
  box-shadow: var(--shadow-soft);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  flex: 0 0 auto;
}

.nav-cart-count {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-secondary {
  position: relative;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--white);
}

.page-cart .header-secondary {
  display: none;
}

.header-secondary.catalog-menu-open {
  border-bottom-color: transparent;
}

.header-secondary-inner {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.header-secondary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.header-secondary-nav a {
  position: relative;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.header-secondary-nav a[href="/catalog"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-secondary-nav a[href="/catalog"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.header-secondary.catalog-menu-open .header-secondary-nav a[href="/catalog"]::before {
  transform: translateY(1px) rotate(-135deg);
}

.header-secondary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.header-secondary-nav a:hover::after {
  transform: scaleX(1);
}

.catalog-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 35;
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(15, 15, 16, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.header-secondary.catalog-menu-open .catalog-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.catalog-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 500;
}

.catalog-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.catalog-content-wide {
  width: 100%;
}


.search-suggest {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-suggest-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
}

.search-suggest-item:hover {
  background: var(--surface-alt);
}

.search-suggest-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-suggest-main > span {
  color: var(--text-primary);
  font-weight: 600;
}

.search-suggest-item small,
.search-suggest-empty {
  color: var(--text-secondary);
  font-size: 13px;
}

.search-suggest-empty {
  padding: 12px 14px;
}

.search-stock-yes {
  color: var(--success) !important;
}

.search-stock-no {
  color: var(--danger) !important;
}

.breadcrumbs-wrap {
  padding-top: 20px;
  padding-bottom: 8px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-family: "Comfortaa", var(--font-base);
  font-size: 15px;
  line-height: 1.4;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--text-primary);
}

.breadcrumb-item a:hover {
  color: var(--brand-red);
}

.breadcrumb-item-current span {
  color: var(--text-primary);
}

.breadcrumb-separator {
  color: var(--text-secondary);
}

.main-section {
  padding: 40px 0 88px;
}

.page-home .main-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.home-main {
  display: grid;
  gap: 72px;
}

.page-home .home-backdrop {
  background: var(--home-hero-background);
}

.hero {
  position: relative;
}

.page-home .hero {
  width: 100vw;
  max-width: none;
  min-height: 720px;
  margin: 0 calc(50% - 50vw);
}

.page-home .hero-sakura {
  position: absolute;
  top: 0;
  z-index: 1;
  width: min(31vw, 430px);
  color: rgba(255, 233, 239, 0.56);
  opacity: 0.92;
  pointer-events: none;
  filter:
    drop-shadow(0 12px 34px rgba(255, 232, 238, 0.1))
    drop-shadow(0 0 14px rgba(255, 244, 247, 0.06));
}

.page-home .hero-sakura svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .hero-sakura-left {
  top: 26px;
  left: 0;
}

.page-home .hero-sakura-right {
  top: 34px;
  right: 0;
  transform: scaleX(-1);
}

.page-home .hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: min(100% - 48px, 900px);
  margin: auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  color: var(--white);
}

.page-home .hero .label-kicker,
.page-home .hero .hero-title,
.page-home .hero .hero-subtitle {
  color: var(--white);
}

.page-home .hero .label-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-home .hero-title {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-accent-hero);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  text-wrap: balance;
}

.page-home .hero-subtitle {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-accent-hero);
  font-size: 17px;
}

.hero-watermark,
.hero-card-copy {
  display: none;
}

.hero-visual {
  position: relative;
}

.hero-card {
  position: relative;
  overflow: visible;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.page-home .hero-card-large {
  min-height: 720px;
  position: relative;
  border-radius: 0;
  isolation: isolate;
  background: transparent;
}

.page-home .hero-card-large::before,
.page-home .hero-card-large::after {
  content: "";
  position: absolute;
  inset: 0 -30px -60px -30px;
  pointer-events: none;
}

.page-home .hero-card-large::before {
  z-index: 0;
  background:
    radial-gradient(ellipse at 8% 14%, rgba(255, 221, 230, 0.26) 0 9px, transparent 10px),
    radial-gradient(ellipse at 13% 20%, rgba(255, 236, 241, 0.16) 0 5px, transparent 6px),
    radial-gradient(ellipse at 18% 11%, rgba(255, 214, 226, 0.24) 0 10px, transparent 11px),
    radial-gradient(ellipse at 24% 17%, rgba(255, 226, 234, 0.18) 0 7px, transparent 8px),
    radial-gradient(ellipse at 70% 16%, rgba(255, 221, 230, 0.24) 0 9px, transparent 10px),
    radial-gradient(ellipse at 77% 23%, rgba(255, 236, 241, 0.16) 0 5px, transparent 6px),
    radial-gradient(ellipse at 84% 13%, rgba(255, 214, 226, 0.22) 0 10px, transparent 11px),
    radial-gradient(ellipse at 88% 20%, rgba(255, 226, 234, 0.16) 0 7px, transparent 8px),
    radial-gradient(ellipse at 12% 74%, rgba(255, 221, 230, 0.18) 0 8px, transparent 9px),
    radial-gradient(ellipse at 18% 82%, rgba(255, 214, 226, 0.16) 0 9px, transparent 10px),
    radial-gradient(ellipse at 80% 80%, rgba(255, 214, 226, 0.16) 0 9px, transparent 10px),
    radial-gradient(ellipse at 86% 72%, rgba(255, 236, 241, 0.14) 0 7px, transparent 8px),
    radial-gradient(circle at 14% 16%, rgba(255, 190, 208, 0.14), transparent 18%),
    radial-gradient(circle at 80% 18%, rgba(255, 190, 208, 0.12), transparent 18%),
    radial-gradient(circle at 16% 80%, rgba(255, 210, 220, 0.08), transparent 16%);
  opacity: 0.9;
  filter: blur(0.5px);
}

.page-home .hero-card-large::after {
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 243, 246, 0.22), transparent 14%),
    radial-gradient(circle at 80% 18%, rgba(255, 243, 246, 0.18), transparent 13%),
    radial-gradient(circle at 18% 80%, rgba(255, 243, 246, 0.12), transparent 12%),
    radial-gradient(circle at 84% 76%, rgba(255, 232, 238, 0.1), transparent 12%);
  mix-blend-mode: screen;
}

.hero-showcase-image {
  width: 100%;
  display: block;
}

.page-home .hero-showcase-image {
  display: none;
}

.label-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.btn,
button.btn {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 38px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--brand-gold);
  color: var(--black);
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(255, 190, 20, 0.26);
}

.btn:hover,
button.btn:hover {
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 190, 20, 0.32);
}

.btn:disabled,
button.btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-outline,
a.btn.btn-outline,
button.btn.btn-outline,
.table-wrap .btn.btn-outline,
.form-card .btn.btn-outline {
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--black) !important;
  background: var(--white) !important;
  color: var(--black) !important;
  box-shadow: none;
}

.btn-outline:hover,
a.btn.btn-outline:hover,
button.btn.btn-outline:hover {
  color: var(--black) !important;
  background: var(--surface-alt) !important;
}

.auth-actions a.btn.btn-outline.register-link:hover,
.auth-actions a.btn.btn-outline[data-open-login-panel="true"]:hover {
  color: var(--white) !important;
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  transform: none;
  box-shadow: none;
}

.auth-actions .btn,
.auth-actions button.btn {
  transition:
    background-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-actions .btn:hover,
.auth-actions button.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 190, 20, 0.28);
}

.auth-actions .btn.btn-outline:hover,
.auth-actions button.btn.btn-outline:hover {
  transform: none;
  box-shadow: none;
}

.btn-danger {
  min-height: 48px;
  padding: 0 24px;
  background: var(--black);
  color: var(--white);
  box-shadow: none;
}

.btn-danger:hover {
  color: var(--white);
}

.category-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

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

.category-subcategory-overview-title,
.category-subcategory-heading {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.category-subcategory-container {
  display: grid;
  gap: 16px;
}

.category-subcategory-group {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-subcategory-group .category-subcategory-heading {
  width: fit-content;
  color: var(--text-primary);
  text-decoration: none;
}

.category-subcategory-group .category-subcategory-heading:hover {
  color: var(--brand-red);
}

.category-subcategory-pills {
  margin-top: 8px;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
}

.category-pill-active {
  border-color: var(--brand-red);
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.section-rule {
  height: 1px;
  background: rgba(17, 17, 17, 0.08);
}

.page-home .section-rule {
  background: rgba(255, 255, 255, 0.14);
}

.feature-section {
  display: grid;
  gap: 28px;
}

.section-heading {
  display: grid;
  gap: 8px;
}

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

.feature-card,
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.feature-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card-large {
  grid-row: auto;
}

.feature-media,
.product-image-wrap {
  display: block;
  aspect-ratio: 1 / 0.98;
  padding: 18px;
  background: var(--surface-soft);
}

.feature-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.feature-content,
.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 22px;
}

.product-body {
  min-height: 100%;
}

.product-body > a,
.feature-content h3 {
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.product-price,
.feature-price {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 500;
}

.price-note {
  color: var(--text-muted);
  font-size: 13px;
}

.stock-status {
  font-size: 13px;
  font-weight: 500;
}

.stock-status-yes {
  color: var(--success);
}

.stock-status-no {
  color: var(--danger);
}

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-cookie,
.badge-mochi {
  background: var(--brand-red-soft);
  color: var(--brand-red);
}

.badge-processing {
  background: rgba(151, 17, 27, 0.12);
  color: var(--brand-red);
}

.product-card:has(.btn[disabled])::after {
  content: "SOLD OUT";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  background: #7f7f7f;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-row label {
  color: var(--text-secondary);
  font-size: 13px;
}

.qty-input {
  width: 92px;
}

.product-card .btn {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 24px;
  font-size: 15px;
  box-shadow: none;
}

.product-card .btn:hover {
  box-shadow: none;
}

.page-catalog .grid-products {
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  justify-content: start;
  gap: 20px;
}

.page-catalog .product-card {
  border-radius: 16px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.page-catalog .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.12);
  border-color: rgba(151, 17, 27, 0.18);
}

.page-catalog .product-image-wrap {
  aspect-ratio: 1 / 0.94;
  padding: 0;
  overflow: hidden;
  transition: background-color 220ms ease;
}

.page-catalog .product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease;
}

.page-catalog .product-image-unavailable {
  filter: grayscale(1);
  opacity: 0.68;
}

.page-catalog .product-card:hover .product-image {
  transform: scale(1.04);
}

.page-catalog .product-body {
  gap: 8px;
  padding: 16px 16px 18px;
  min-height: auto;
}

.page-catalog .product-card-actions {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.page-catalog .product-body > a {
  font-size: 17px;
}

.page-catalog .product-price {
  font-size: 16px;
}

.page-catalog .price-note,
.page-catalog .stock-status,
.page-catalog .qty-row label {
  font-size: 12px;
}

.page-catalog .qty-row {
  gap: 10px;
}

.page-catalog .qty-input {
  width: 78px;
}

.page-catalog .product-card .btn {
  min-height: 42px;
  display: inline-flex;
  width: 100%;
  margin-top: 12px;
  padding: 0 18px;
  font-size: 14px;
}

.page-catalog .product-card .product-card-buy-btn {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.page-catalog .product-card .product-card-buy-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(117, 0, 0, 0.18);
}

.page-catalog .product-card .product-card-buy-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(117, 0, 0, 0.14);
}

.page-catalog .product-card .product-card-buy-btn:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.page-catalog .product-card-cart-inline {
  display: grid;
  gap: 10px;
}

.page-catalog .product-card-cart-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--brand-red);
  color: var(--white);
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(117, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.page-catalog .product-card-cart-link:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(117, 0, 0, 0.22);
}

.page-catalog .product-card-stepper {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.page-catalog .product-card-stepper-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-gold);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.page-catalog .product-card-stepper-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.14);
  transform: scale(1.06);
}

.page-catalog .product-card-stepper-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.page-catalog .product-card-stepper-value {
  min-width: 28px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-card-editorial {
  background:
    linear-gradient(135deg, rgba(151, 17, 27, 0.92), rgba(126, 13, 22, 0.96)),
    var(--brand-red);
  color: var(--white);
}

.feature-card-editorial h3,
.feature-card-editorial p,
.feature-card-editorial .label-kicker {
  color: var(--white);
}

.editorial-banner {
  padding: 40px 48px;
  border-radius: 28px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.editorial-banner p {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-primary);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--surface-alt);
}

.page-home .marquee {
  border-top-color: rgba(17, 17, 17, 0.08);
  border-bottom-color: rgba(17, 17, 17, 0.08);
  background: var(--white);
}

.marquee-content {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: marquee 36s linear infinite;
}

.marquee-track {
  flex: 0 0 auto;
  min-width: max-content;
  color: var(--text-secondary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-home .marquee-track {
  color: var(--text-secondary);
}

.home-bestsellers {
  display: grid;
  gap: 24px;
  padding: 20px 0 0;
  position: relative;
  z-index: 1;
}

.home-bestsellers-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.home-bestsellers-head h2 {
  color: var(--white);
  font-family: var(--font-accent-hero);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-bestsellers-head .btn.btn-outline {
  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-bestsellers-head .btn.btn-outline:hover {
  color: var(--white) !important;
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  box-shadow: 0 14px 28px rgba(117, 0, 0, 0.24);
}

.home-bestsellers .label-kicker {
  color: var(--brand-gold);
  font-family: var(--font-accent-hero);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.home-bestsellers-lead {
  max-width: 640px;
}

.home-bestsellers-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 284px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scroll-snap-type: x proximity;
}

.home-bestsellers-strip::-webkit-scrollbar {
  height: 8px;
}

.home-bestsellers-strip::-webkit-scrollbar-thumb {
  background: rgba(117, 0, 0, 0.2);
  border-radius: 999px;
}

.home-bestseller-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  scroll-snap-align: start;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.home-bestseller-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(117, 0, 0, 0.16);
}

.home-bestseller-media {
  aspect-ratio: 1 / 0.94;
  background: var(--surface-soft);
  overflow: hidden;
}

.home-bestseller-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-bestseller-body {
  display: grid;
  gap: 12px;
  padding: 16px 16px 18px;
}

.home-bestseller-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-bestseller-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.14);
  color: var(--brand-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-bestseller-meta {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.home-bestseller-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.16;
}

.home-bestseller-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.home-bestseller-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.home-bestseller-price {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
}

.home-bestseller-link {
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 700;
}

.home-order-benefits {
  width: 100vw;
  max-width: none;
  margin: 0 calc(50% - 50vw);
  padding: 48px 0;
  background: var(--white);
}

.home-order-benefits-inner {
  display: grid;
  gap: 20px;
}

.home-order-benefits .label-kicker {
  color: #8b6c08;
}

.home-order-benefits-head h2 {
  margin: 6px 0 0;
  color: var(--text-primary);
  font-family: var(--font-accent-hero);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
}

.home-order-benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--brand-gold);
  border-bottom: 1px solid var(--brand-gold);
}

.home-order-benefits-grid article {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 20px;
  border-right: 1px solid var(--brand-gold);
}

.home-order-benefits-grid article:last-child {
  border-right: 0;
}

.home-order-benefits-grid strong {
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.15;
}

.home-order-benefits-grid span,
.home-order-benefits-note {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.45;
}

.home-order-benefits-note {
  margin: 0;
}

.home-order-benefits .btn.btn-outline {
  width: fit-content;
  border-color: var(--brand-gold);
  color: var(--text-primary);
}

.home-order-benefits .btn.btn-outline:hover {
  border-color: var(--brand-gold);
  background: var(--brand-gold);
  color: var(--text-primary);
}

.home-stories {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.home-editorial-decor-wrap {
  position: relative;
  height: 0;
  z-index: 0;
}

.home-editorial-sakura {
  position: absolute;
  right: 8px;
  top: -18px;
  width: min(28vw, 340px);
  color: rgba(142, 61, 79, 0.2);
  opacity: 0.9;
  pointer-events: none;
  filter:
    drop-shadow(0 10px 24px rgba(117, 0, 0, 0.05))
    drop-shadow(0 0 12px rgba(244, 209, 221, 0.08));
}

.home-editorial-sakura svg {
  display: block;
  width: 100%;
  height: auto;
}

.home-stories-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.home-stories-head h2 {
  color: var(--white);
  font-family: var(--font-accent-hero);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-stories .label-kicker {
  color: var(--brand-gold);
  font-family: var(--font-accent-hero);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.home-stories-lead {
  max-width: 760px;
  text-transform: uppercase;
}

.home-stories-head .btn.btn-outline {
  min-width: 172px;
  padding-inline: 28px;
  white-space: nowrap;
  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-stories-head .btn.btn-outline:hover {
  color: var(--white) !important;
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  box-shadow: 0 14px 28px rgba(117, 0, 0, 0.24);
}

.home-stories-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 284px);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scroll-snap-type: x proximity;
}

.home-stories-grid::-webkit-scrollbar {
  height: 8px;
}

.home-stories-grid::-webkit-scrollbar-thumb {
  background: rgba(117, 0, 0, 0.2);
  border-radius: 999px;
}

.home-story-card,
.article-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.home-story-card:hover,
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(117, 0, 0, 0.18);
}

.home-story-card {
  min-height: 100%;
  scroll-snap-align: start;
}

.home-story-media,
.article-card-media {
  aspect-ratio: 1 / 0.72;
  background: var(--surface-soft);
  overflow: hidden;
}

.home-story-image,
.article-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 260ms ease;
}

.home-story-card:hover .home-story-image,
.article-card:hover .article-card-image {
  transform: scale(1.03);
}

.home-story-body,
.article-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.home-story-body {
  padding: 16px 16px 18px;
}

.home-story-badge,
.article-card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.14);
  color: var(--brand-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-story-title,
.article-card h2 {
  font-size: 22px;
  line-height: 1.18;
}

.home-story-title {
  font-size: 20px;
  font-weight: 600;
}

.home-story-excerpt,
.article-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.home-story-link,
.article-card-link {
  margin-top: auto;
  color: var(--brand-red);
  font-size: 14px;
  font-weight: 700;
}

.articles-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.articles-hero .label-kicker,
.article-detail .label-kicker {
  color: var(--brand-gold);
  font-family: var(--font-accent-hero);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.article-card-date {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.article-detail {
  display: grid;
  gap: 24px;
}

.article-detail-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--brand-gold);
  font-family: var(--font-accent-hero);
  font-weight: 400;
  letter-spacing: 0.06em;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.article-detail-back:hover {
  color: var(--white);
  transform: translateX(-2px);
}

.article-detail-media {
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.article-detail-image {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.article-detail-copy {
  display: grid;
  gap: 16px;
}

.article-detail-copy h1 {
  color: var(--text-primary);
  font-family: var(--font-accent-hero);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.04;
  text-transform: uppercase;
}

.article-detail-meta {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-detail-excerpt {
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.7;
}

.article-detail-content {
  display: grid;
  gap: 14px;
}

.article-detail-content h2 {
  margin-top: 0;
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.2;
}

.article-detail-content p {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.75;
}

.article-detail-note {
  padding: 18px 20px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 22px;
  background: rgba(212, 175, 55, 0.08);
  color: var(--text-primary);
  line-height: 1.7;
}

.article-detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--text-secondary);
}

.article-detail-list li {
  line-height: 1.8;
}

.article-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.article-detail-actions .btn.btn-outline {
  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.article-detail-actions .btn.btn-outline:hover {
  color: var(--white) !important;
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  box-shadow: 0 14px 28px rgba(117, 0, 0, 0.24);
}

.admin-article-content {
  min-height: 320px;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-25%);
  }
}

.catalog-shell,
.account-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.catalog-sidebar,
.account-sidebar {
  position: sticky;
  top: 168px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.catalog-filter-group {
  display: grid;
  gap: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.filter-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-red);
}

.filter-slider-visual {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #ededed;
}

.filter-slider-visual span {
  position: absolute;
  inset: 0 28% 0 14%;
  border-radius: inherit;
  background: var(--brand-red);
}

.filter-range-copy,
.filter-clear-link {
  color: var(--text-secondary);
  font-size: 13px;
}

.filter-clear-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--text-secondary);
  font-size: 13px;
}

.catalog-content,
.account-content,
.auth-shell,
.auth-head {
  display: grid;
  gap: 20px;
}

.catalog-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.catalog-lead {
  max-width: 620px;
  margin-top: 8px;
}

.catalog-seo-copy {
  max-width: 820px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.catalog-seo-copy h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.catalog-seo-copy p {
  margin: 0;
}

.catalog-sort {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.catalog-sort-box {
  min-width: 190px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
}

.catalog-warehouse-picker .catalog-sort-box {
  min-width: 190px;
  cursor: pointer;
}

.info-box,
.error-box,
.success-box,
.warning-box {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-alt);
  color: var(--text-secondary);
}

.success-box {
  color: var(--success);
}

.error-box {
  color: var(--brand-red);
}

.warning-box {
  color: var(--text-secondary);
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  color: var(--text-primary);
  font-size: 15px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(151, 17, 27, 0.1);
}

.select option {
  background: var(--white);
  color: var(--text-primary);
}

.form-card {
  width: 100%;
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.page-admin .form-card,
.page-account .form-card,
.account-panel {
  max-width: none;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-row label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.required-mark {
  color: var(--brand-red);
  font-weight: 700;
}

.auth-main {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.auth-shell {
  max-width: 440px;
}

.auth-card-mark {
  display: flex;
  justify-content: center;
}

.auth-mark-logo {
  width: 96px;
  height: 96px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-alt);
  object-fit: contain;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

body.auth-panel-open {
  overflow: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 15, 16, 0.46);
  backdrop-filter: blur(10px);
  visibility: visible;
  opacity: 1;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.auth-overlay.auth-overlay-closed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 420ms;
}

.auth-panel-shell {
  width: min(100%, 460px);
  transform: translateY(0) scale(1);
  opacity: 1;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-overlay.auth-overlay-closed .auth-panel-shell {
  transform: translateY(28px) scale(0.965);
  opacity: 0;
}

.auth-panel-card {
  position: relative;
  max-width: none;
  padding: 32px 28px 28px;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 15, 16, 0.22);
}

.auth-panel-form {
  max-width: none;
}

.auth-panel-head {
  margin-bottom: 20px;
  text-align: center;
}

.auth-panel-kicker {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  margin: 0 0 12px;
  color: var(--brand-gold);
  font-family: var(--font-accent-hero);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel-head h1 {
  margin: 0 0 12px;
  color: var(--brand-red);
  font-size: clamp(40px, 6vw, 56px);
  line-height: 0.96;
  text-wrap: balance;
}

.auth-panel-head p {
  max-width: 360px;
  margin: 0 auto;
  font-weight: 600;
}

.auth-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.auth-panel-close:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: scale(1.03);
}

.auth-panel-note {
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.register-panel-shell {
  width: min(100%, 560px);
}

.register-panel-card {
  padding-bottom: 24px;
}

.register-panel-form {
  max-width: none;
}

.register-panel-form .auth-panel-kicker {
  font-size: 27px;
}

.page-product [data-product-wrapper] .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 32px;
  align-items: start;
  min-height: auto;
}

.page-product [data-product-wrapper] .hero-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-soft);
}

.page-product [data-product-wrapper] .product-image {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: var(--surface-soft);
}

.page-product [data-product-wrapper] .hero > div:last-child {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-product [data-product-wrapper] .product-cart-actions {
  display: grid;
  gap: 12px;
}

.page-product [data-product-wrapper] .product-cart-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-product [data-product-wrapper] .product-cart-link {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--brand-red);
  color: var(--white);
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(117, 0, 0, 0.22);
}

.page-product [data-product-wrapper] .product-cart-link:hover {
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(117, 0, 0, 0.28);
}

.page-product [data-product-wrapper] .product-cart-stepper {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.page-product [data-product-wrapper] .product-cart-stepper-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--brand-gold);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.page-product [data-product-wrapper] .product-cart-stepper-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.14);
  transform: scale(1.06);
}

.page-product [data-product-wrapper] .product-cart-stepper-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.page-product [data-product-wrapper] .product-cart-stepper-value {
  min-width: 34px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-product [data-product-wrapper] #add-to-cart {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.page-product [data-product-wrapper] #add-to-cart:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 190, 20, 0.32);
}

.page-product [data-product-wrapper] #add-to-cart:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(255, 190, 20, 0.22);
}

@media (max-width: 560px) {
  .page-product [data-product-wrapper] .product-cart-inline {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-product [data-product-wrapper] .product-cart-link,
  .page-product [data-product-wrapper] .product-cart-stepper {
    width: 100%;
    justify-content: center;
  }
}

.page-cart {
  background: linear-gradient(180deg, #fcfbf8, var(--white) 24%);
}

.cart-page-shell {
  display: grid;
  min-height: calc(100vh - 180px);
  align-content: start;
}

.cart-page {
  display: grid;
  gap: 40px;
}

.cart-page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.cart-page-heading {
  display: grid;
  gap: 10px;
}

.cart-page-heading h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.cart-back-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: var(--text-secondary);
  font-size: 14px;
}

.cart-back-link::after,
.cart-empty-state a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-fast);
}

.cart-back-link:hover::after,
.cart-empty-state a:hover::after {
  transform: scaleX(0.96);
}

.cart-page-meta {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: start;
}

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

.cart-item-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
}

.cart-item-media {
  display: block;
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
}

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

.cart-item-title {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.cart-item-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.cart-item-price,
.cart-item-subtotal {
  color: var(--text-primary);
  font-size: 20px;
}

.cart-item-subtotal {
  font-weight: 700;
}

.cart-item-actions {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  gap: 14px;
  align-items: end;
}

.cart-item-qty {
  margin-bottom: 0;
}

.cart-item-remove {
  min-width: 140px;
}

.cart-item-remove,
[data-cart-checkout] {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.cart-item-remove:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.cart-item-remove:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(17, 17, 17, 0.06);
}

.cart-summary-card {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

[data-cart-checkout]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(255, 190, 20, 0.32);
}

[data-cart-checkout]:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(255, 190, 20, 0.22);
}

.cart-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.cart-warehouse-choice {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-warehouse-status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.cart-warehouse-status-success {
  color: #23613b;
  background: #edf8f0;
}

.cart-warehouse-status-warning {
  color: #8a3b12;
  background: #fff1e8;
}

.cart-summary-top span {
  color: var(--text-secondary);
}

.cart-summary-top strong {
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.cart-continue-link {
  text-align: center;
  color: var(--text-secondary);
}

.cart-checkout-panel,
.cart-checkout-success {
  display: grid;
  gap: 18px;
}

.cart-checkout-mode .info-box {
  display: grid;
  gap: 14px;
}

.cart-checkout-guest-actions,
.cart-checkout-actions,
.cart-checkout-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-checkout-form {
  display: grid;
  gap: 18px;
}

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

.cart-checkout-summary,
.cart-checkout-success-copy {
  display: grid;
  gap: 12px;
}

.cart-empty-state {
  min-height: 360px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.cart-empty-icon {
  width: 82px;
  height: 82px;
  color: #cdcdcd;
}

.cart-empty-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-empty-state h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(22px, 3.1vw, 32px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.cart-empty-state p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.cart-empty-state a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: var(--brand-gold);
  transition: color var(--transition-fast);
}

.cart-empty-state a:hover {
  color: var(--brand-red);
}

.cart-recommendations {
  display: grid;
  gap: 22px;
  padding-top: 8px;
}

.cart-recommendations-head {
  display: grid;
  gap: 8px;
}

.cart-recommendations-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.cart-recommendations-head p {
  margin: 0;
  color: var(--text-secondary);
}

.cart-recommendations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 26px;
  overflow: hidden;
  background: var(--white);
}

.cart-recommendation-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-right: 1px solid rgba(17, 17, 17, 0.08);
}

.cart-recommendation-card:last-child {
  border-right: none;
}

.cart-recommendation-media {
  display: block;
  aspect-ratio: 1 / 1;
  padding: 8px;
}

.cart-recommendation-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.cart-recommendation-title {
  font-size: 16px;
  line-height: 1.35;
}

.cart-recommendation-price {
  color: var(--text-primary);
  font-size: 16px;
}

.cart-recommendation-link {
  width: fit-content;
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.account-avatar-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.account-avatar-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
  filter: saturate(1.06);
}

.account-avatar-button.is-success {
  animation: accountAvatarPulse 0.7s ease;
}

.account-avatar-image,
.account-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: inherit;
}

.account-avatar-image {
  object-fit: cover;
}

.account-brand-card {
  overflow: hidden;
}

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

.account-name-wrap {
  width: 100%;
  max-width: 100%;
  min-height: 118px;
  display: block;
}

.account-name-heading {
  margin: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--white) !important;
  font-family: "Comfortaa", var(--font-base);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-wrap: nowrap;
  transform-origin: left center;
}

.account-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.account-nav {
  display: grid;
  gap: 8px;
}

.account-nav-link {
  position: relative;
  padding: 10px 0 10px 16px;
  color: var(--text-secondary);
  border-radius: 12px;
}

.account-nav-link::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.account-nav-link-active,
.account-nav-link:hover {
  color: var(--text-primary);
  background: var(--surface-alt);
}

.account-nav-link-active::before,
.account-nav-link:hover::before {
  background: var(--brand-red);
}

.account-order-table {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
}

.account-order-row {
  display: grid;
  grid-template-columns: 120px 1fr 120px 120px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.account-order-head {
  border: none;
  background: transparent;
  padding: 0 4px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-thumb-strip {
  display: flex;
  gap: 8px;
}

.account-thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-alt);
}

.account-order-meta,
.account-order-main {
  display: grid;
  gap: 4px;
}

.account-order-meta span,
.account-order-main span {
  color: var(--text-secondary);
  font-size: 13px;
}

.account-order-total {
  font-weight: 700;
}

.account-empty-box {
  margin-top: 12px;
}

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

.account-form-grid .form-row:last-child {
  grid-column: 1 / -1;
}

.account-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}

.account-save-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    filter var(--transition-fast),
    background-color var(--transition-fast);
}

.account-save-btn:hover {
  filter: saturate(1.06);
}

.account-save-btn.is-success {
  animation: accountSavePulse 0.9s ease;
}

@keyframes accountSavePulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 24px rgba(255, 190, 20, 0.26);
  }

  40% {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 18px 36px rgba(255, 190, 20, 0.34);
  }

  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 24px rgba(255, 190, 20, 0.26);
  }
}

@keyframes accountAvatarPulse {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

th {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody tr:hover {
  background: var(--surface-soft);
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-alt);
}

.badge-success,
.badge-warning,
.badge-muted,
.badge-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-success {
  background: rgba(46, 139, 87, 0.12);
  color: var(--success);
}

.badge-warning {
  background: rgba(212, 175, 55, 0.16);
  color: #8d6700;
}

.badge-muted {
  background: rgba(17, 17, 17, 0.08);
  color: var(--text-secondary);
}

.badge-dark {
  background: rgba(15, 15, 16, 0.92);
  color: var(--white);
}

.admin-shell {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 168px;
  display: grid;
  gap: 14px;
}

.admin-brand-card,
.admin-toolbar-card,
.admin-panel-card,
.admin-hero-card {
  border: 1px solid rgba(117, 0, 0, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.96)),
    var(--pattern-sakura);
  box-shadow: var(--shadow-card);
}

.admin-brand-card {
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(28, 10, 11, 0.98), rgba(73, 10, 12, 0.94)),
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent);
  color: var(--white);
}

.admin-brand-card h2,
.admin-brand-card p,
.admin-brand-card .label-kicker {
  color: inherit;
}

.admin-avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(255, 241, 181, 0.9));
  color: #3a090b;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.admin-side-nav {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.admin-side-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px 0 22px;
  border-radius: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  transition:
    color 220ms ease,
    background 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms ease;
}

.admin-side-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 241, 181, 0.2), rgba(212, 175, 55, 0.04) 60%, rgba(255, 255, 255, 0));
  opacity: 0;
  transition:
    opacity 320ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.admin-side-link::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  bottom: 11px;
  width: 4px;
  border-radius: 999px;
  background: transparent;
  transition:
    background 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0;
  transform: scaleY(0.72);
}

.admin-side-link-active,
.admin-side-link:hover {
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(117, 0, 0, 0.06), rgba(212, 175, 55, 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.16),
    0 8px 18px rgba(212, 175, 55, 0.08);
}

.admin-side-link-active::before,
.admin-side-link:hover::before {
  background: linear-gradient(180deg, #f2d36a, var(--brand-gold));
  opacity: 1;
  transform: scaleY(1);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.admin-side-link-active::after,
.admin-side-link:hover::after {
  opacity: 1;
  filter: saturate(110%);
}

.admin-side-exit {
  width: 100%;
  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 320ms ease;
}

.page-admin button.btn.btn-outline.admin-side-exit:hover,
.page-admin .admin-side-exit:hover {
  color: var(--white) !important;
  transform: none !important;
  background: var(--brand-red) !important;
  background-color: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  box-shadow: none !important;
}

.admin-content {
  display: grid;
  gap: 16px;
}

.admin-hero-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(117, 0, 0, 0.94), rgba(24, 9, 10, 0.96)),
    linear-gradient(180deg, rgba(212, 175, 55, 0.2), transparent);
}

.admin-hero-card h1 {
  font-size: clamp(28px, 3.5vw, 42px);
}

.admin-hero-card p {
  font-size: 14px;
}

.admin-hero-card h1,
.admin-hero-card p,
.admin-hero-card .label-kicker {
  color: var(--white);
}

.admin-hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  min-width: 220px;
}

.admin-hero-card .btn.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-hero-actions .btn {
  width: 100%;
  justify-content: center;
  transition:
    color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-hero-actions .btn:hover {
  transform: translateY(-1px);
}

.admin-hero-actions .btn.btn-outline:hover {
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.12);
}

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

.admin-metric-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.admin-metric-card-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-metric-card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(25, 14, 12, 0.08);
  border-color: rgba(126, 36, 22, 0.24);
}

.admin-metric-card span,
.admin-metric-card small {
  color: var(--text-secondary);
}

.admin-metric-card strong {
  font-size: 26px;
  line-height: 1;
}

.admin-metric-action {
  margin-top: 6px;
  color: var(--brand-red);
  font-style: normal;
  font-weight: 700;
}

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

.admin-panel-grid-wide {
  grid-template-columns: 1.1fr 1fr;
}

.admin-panel-card,
.admin-toolbar-card {
  padding: 18px;
}

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

.admin-inline-link {
  color: var(--brand-red);
  font-weight: 700;
}

.admin-inline-link:hover {
  color: var(--black);
}

.admin-order-list,
.admin-alert-list,
.admin-order-items,
.admin-summary-list {
  display: grid;
  gap: 10px;
}

.admin-order-link,
.admin-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.admin-order-link,
.admin-alert-item {
  color: inherit;
  text-decoration: none;
}

.admin-order-link:hover,
.admin-alert-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.admin-order-link strong,
.admin-alert-item strong {
  color: var(--text-primary);
}

.admin-order-link p,
.admin-alert-item span {
  color: var(--text-secondary);
}

.admin-order-link-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-order-detail {
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-order-link-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-alert-group {
  display: grid;
  gap: 14px;
}

.admin-alert-section {
  display: grid;
  gap: 10px;
}

.admin-alert-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-alert-list {
  display: grid;
  gap: 10px;
}

.admin-alert-item.is-critical {
  border-color: rgba(126, 36, 22, 0.2);
}

.admin-alert-item.is-warning {
  border-color: rgba(176, 124, 33, 0.22);
}

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

.admin-products-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, 0.8fr) minmax(150px, 0.75fr) minmax(200px, 0.95fr);
  gap: 12px;
  align-items: end;
}

.admin-ingredients-status {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-ingredients-status-ok {
  color: var(--success);
}

.admin-ingredients-status-missing {
  color: #8d6700;
}

.admin-products-meta {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 14px;
}

.admin-table-title {
  font-weight: 700;
}

.admin-table-note {
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-article-row-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    color 280ms ease,
    opacity 280ms ease;
}

.admin-article-row-link:hover {
  color: inherit;
}

.admin-article-row-link-thumb {
  width: fit-content;
}

.admin-article-row-link-copy {
  display: grid;
  gap: 4px;
}

.admin-article-row-link-copy:hover .admin-table-title {
  color: var(--brand-red);
}

.admin-product-row-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition:
    color 280ms ease,
    opacity 280ms ease;
}

.admin-product-row-link:hover {
  color: inherit;
}

.admin-product-row-link-thumb {
  width: fit-content;
}

.admin-product-row-link-copy {
  display: grid;
  gap: 4px;
}

.admin-product-row-link-copy:hover .admin-table-title {
  color: var(--brand-red);
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table-actions-articles {
  flex-direction: column;
  align-items: flex-end;
}

.admin-table-actions-products {
  flex-direction: column;
  align-items: flex-end;
}

.page-admin .admin-table-actions .btn,
.page-admin .admin-table-actions .btn.btn-outline,
.page-admin .admin-table-actions .btn.btn-danger {
  transition:
    color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-admin .admin-table-actions .btn:hover,
.page-admin .admin-table-actions .btn.btn-outline:hover,
.page-admin .admin-table-actions .btn.btn-danger:hover {
  transform: translateY(-1px);
}

.page-admin .admin-table-actions .btn.btn-outline:hover {
  color: var(--white) !important;
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  box-shadow: 0 14px 28px rgba(117, 0, 0, 0.22);
}

.page-admin .admin-table-actions .btn.btn-danger:hover {
  background: var(--brand-gold);
  color: var(--black);
  box-shadow: 0 14px 28px rgba(255, 190, 20, 0.28);
}

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

.admin-summary-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.admin-summary-item span {
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-summary-item strong {
  color: var(--text-primary);
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.admin-order-item-card,
.admin-stock-card {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
}

.admin-order-item-card .thumb,
.admin-stock-card .thumb {
  width: 60px;
  height: 60px;
  border-radius: 14px;
}

.admin-order-item-copy,
.admin-stock-copy,
.admin-stock-actions {
  display: grid;
  gap: 6px;
}

.admin-order-item-meta,
.admin-stock-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.admin-stock-card {
  grid-template-columns: 72px minmax(0, 1fr);
}

.admin-stock-level {
  color: var(--text-primary);
  font-weight: 700;
}

.admin-stock-level-low {
  color: #8d6700;
}

.admin-stock-level-empty {
  color: var(--brand-red);
}

.admin-stock-input {
  max-width: 140px;
}

.admin-editor-form,
.admin-embedded-form {
  max-width: none;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.admin-article-cover-card {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(117, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(255, 250, 250, 0.82);
}

.admin-article-cover-preview {
  width: min(100%, 420px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(117, 0, 0, 0.08);
  background: var(--surface-soft);
}

.admin-article-cover-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
  object-position: center;
}

.admin-category-create {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-category-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-category-divider {
  height: 1px;
  background: rgba(17, 17, 17, 0.08);
}

.admin-category-manage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-category-manage-meta {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.admin-category-manage-actions {
  margin-top: 2px;
}

.admin-category-create .btn {
  min-height: 42px;
  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease;
}

.page-admin .admin-editor-form [data-admin-category-save]:hover {
  transform: none !important;
  box-shadow: none !important;
}

.page-admin .admin-editor-form [data-admin-category-save]:disabled {
  opacity: 0.72;
  cursor: wait;
}

.page-admin .admin-editor-form [data-admin-category-rename-save]:disabled,
.page-admin .admin-editor-form [data-admin-category-delete]:disabled {
  opacity: 0.72;
  cursor: wait;
}

.admin-form-actions .btn {
  font-size: 15px;
  transition:
    color 240ms ease,
    background-color 240ms ease,
    border-color 240ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-form-actions .btn:hover {
  transform: translateY(-1px);
}

.admin-form-actions .btn.btn-outline:hover {
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.page-admin [data-admin-password-form] > .btn {
  transition:
    color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-admin [data-admin-password-form] > .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(255, 190, 20, 0.28);
}

.admin-empty-copy {
  color: var(--text-secondary);
}

.page-admin .table-wrap {
  padding: 10px;
  border-radius: 18px;
}

.page-admin th,
.page-admin td {
  padding: 12px 10px;
  font-size: 14px;
}

.page-admin th {
  font-size: 11px;
}


.page-admin .btn {
  min-height: 42px;
  padding: 0 18px;
}

.page-admin .btn.btn-outline,
.page-admin .btn.btn-danger {
  min-height: 38px;
  padding: 0 14px;
}

.page-admin .input,
.page-admin .textarea,
.page-admin .select {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
}

.page-admin .textarea {
  min-height: 108px;
}

.page-admin .admin-editor-form .admin-form-grid > .form-row:nth-child(-n + 2) {
  gap: 4px;
  align-content: start;
}

.page-admin .admin-editor-form .admin-form-grid > .form-row:nth-child(-n + 2) .input,
.page-admin .admin-editor-form .admin-form-grid > .form-row:nth-child(-n + 2) .select {
  min-height: 44px;
  height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-admin .admin-editor-form .admin-form-grid > .form-row:nth-child(2) .btn.btn-outline {
  margin-top: 8px;
  transition:
    color 280ms ease,
    background-color 280ms ease,
    border-color 280ms ease;
}

.page-admin .admin-editor-form [data-admin-category-toggle]:hover {
  color: var(--white) !important;
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  transform: none !important;
  box-shadow: none !important;
}

.toast-container {
  position: fixed;
  top: 160px;
  right: 20px;
  z-index: 100;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.toast-error {
  color: var(--brand-red);
}

.toast-success {
  color: var(--success);
}

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

.footer {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  background: var(--home-hero-background);
  color: var(--white);
}

.page-home .footer {
  margin-top: 0;
  background: transparent;
}

.footer::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 28px;
  width: 360px;
  height: 360px;
  background: url("/logo.png") center center / contain no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px;
  padding: 72px 0 56px;
}

.footer-grid > div {
  position: relative;
}

.footer-grid > div:not(:last-child) {
  padding-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-grid > div + div {
  padding-left: 28px;
}

.footer h3 {
  margin-bottom: 18px;
  color: var(--brand-gold);
  font-family: var(--font-accent-hero);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-transform: none;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.96);
  font-size: 16px;
}

.footer p + p {
  margin-top: 10px;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--white);
  opacity: 0.88;
}

.footer-grid > div:nth-child(2) a:hover {
  color: var(--brand-gold);
  opacity: 1;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  min-height: 72px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.footer-auto {
  margin-top: 72px;
}

.footer-legal {
  position: relative;
  z-index: 1;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-align: center;
}

.footer-legal p {
  margin: 0;
}

@media (max-width: 1180px) {
  .header-topbar-inner {
    grid-template-columns: minmax(160px, 220px) 1fr;
  }

  .header-inner {
    grid-template-columns: minmax(160px, 220px) 1fr;
    grid-template-areas:
      "logo nav"
      "search search";
    padding: 20px 0;
  }

  .header-secondary-inner {
    justify-content: center;
    padding: 16px 0;
  }

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

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

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

  .home-order-benefits-grid article:nth-child(2n) {
    border-right: 0;
  }

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

  .catalog-shell,
  .account-shell,
  .admin-shell,
  .page-product [data-product-wrapper] .hero {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar,
  .account-sidebar,
  .admin-sidebar {
    position: static;
  }

  .admin-metrics-grid,
  .admin-panel-grid,
  .admin-panel-grid-wide,
  .admin-stock-grid,
  .admin-order-items,
  .admin-summary-list {
    grid-template-columns: 1fr;
  }

  .admin-category-create-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-topbar-inner {
    min-height: 40px;
    padding: 0;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links.nav-authenticated {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links.nav-authenticated a[href="/catalog"] {
    order: 1;
    flex: 1 0 100%;
    margin-right: 0;
  }

  .nav-links.nav-authenticated .nav-account-link {
    order: 2;
  }

  .nav-links.nav-authenticated a[href="/cart"] {
    order: 3;
  }

  .nav-links.nav-authenticated a.nav-logout-action {
    order: 4;
  }

  .nav-links a {
    min-height: 46px;
    font-size: 15px;
  }

  .admin-hero-card,
  .admin-panel-head,
  .admin-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar-grid,
  .admin-form-grid,
  .admin-products-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-products-toolbar-actions {
    align-items: stretch;
  }

  .admin-order-link,
  .admin-alert-item {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-order-link-meta {
    justify-items: start;
  }

  .page-home .hero {
    min-height: 620px;
  }

  .page-home .hero-sakura {
    width: min(34vw, 340px);
    opacity: 0.76;
  }

  .home-editorial-sakura {
    width: min(32vw, 280px);
    opacity: 0.72;
  }

  .page-home .hero-card-large {
    min-height: 620px;
  }

  .page-home .hero-copy {
    width: min(100% - 40px, 900px);
  }

  .home-stories-head,
  .home-bestsellers-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-card,
  .page-home .hero-card-large {
    border-radius: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid > div {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .header-topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 8px 0;
  }

  .header-topbar-socials {
    justify-self: center;
  }

  .header-topbar-title {
    position: static;
    transform: none;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .header-topbar-inner .header-contact {
    justify-self: center;
    font-size: 11px !important;
  }

  .header-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "search"
      "nav";
    gap: 18px;
    padding: 18px 0;
  }

  .logo-link,
  .nav-links {
    justify-self: center;
  }

  .nav-links {
    justify-content: center;
  }

  .header-secondary-nav {
    gap: 18px 24px;
  }

  .main-section {
    padding: 28px 0 64px;
  }

  .home-main {
    gap: 52px;
  }

  .page-home .hero,
  .page-home .hero-card-large {
    min-height: 540px;
  }

  .page-home .hero-sakura {
    width: min(40vw, 260px);
    opacity: 0.58;
  }

  .home-editorial-sakura {
    width: min(42vw, 220px);
    top: -6px;
    opacity: 0.54;
  }

  .page-home .hero .label-kicker {
    margin-bottom: 12px;
  }

  .page-home .hero-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .page-home .hero-subtitle {
    font-size: 15px;
  }

  .home-bestsellers {
    gap: 18px;
  }

  .home-stories-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .home-order-benefits-grid {
    grid-template-columns: 1fr;
  }

  .home-order-benefits-grid article,
  .home-order-benefits-grid article:nth-child(2n) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--brand-gold);
  }

  .home-order-benefits-grid article:last-child {
    border-bottom: 0;
  }

  .home-story-body,
  .article-card-body {
    padding: 16px;
  }

  .home-story-title,
  .article-card h2 {
    font-size: 20px;
  }

  .home-bestsellers-strip {
    grid-auto-columns: minmax(224px, 82vw);
    padding-bottom: 10px;
  }

  .home-bestseller-body {
    padding: 14px;
  }

  .home-bestseller-title {
    font-size: 18px;
  }

  .feature-grid,
  .grid-products,
  .footer-grid,
  .auth-actions {
    grid-template-columns: 1fr;
  }

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

  .catalog-topbar {
    flex-direction: column;
    align-items: start;
  }

  .catalog-sort {
    justify-items: start;
  }

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

  .cart-summary-card {
    position: static;
  }

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

  .cart-recommendation-card:nth-child(2n) {
    border-right: none;
  }

  .footer::after {
    width: 260px;
    height: 260px;
    right: -10px;
    top: 22px;
  }

  .footer-grid {
    padding: 56px 0 40px;
  }

  .auth-overlay {
    padding: 16px;
    align-items: end;
  }

  .auth-panel-shell {
    width: 100%;
  }

  .auth-panel-card {
    padding: 28px 20px 20px;
    border-radius: 24px;
  }

  .cart-page {
    gap: 28px;
  }

  .cart-page-head {
    align-items: start;
  }

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

  .cart-item-media {
    max-width: 220px;
  }

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

  .cart-checkout-grid,
  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-name-wrap {
    min-height: 92px;
  }

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

  .cart-recommendation-card {
    border-right: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }

  .cart-recommendation-card:last-child {
    border-bottom: none;
  }
}

@media (max-width: 560px) {
  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 0 14px;
  }

  .nav-links.nav-authenticated a[href="/catalog"] {
    flex: 1 0 100%;
  }

  .nav-links.nav-authenticated .nav-account-link,
  .nav-links.nav-authenticated a[href="/cart"],
  .nav-links.nav-authenticated a.nav-logout-action {
    flex: 0 1 auto;
  }

  .auth-panel-close {
    top: 12px;
    right: 12px;
  }

  .header-secondary-inner {
    padding: 12px 0;
  }

  .page-home .hero,
  .page-home .hero-card-large {
    min-height: 500px;
  }

  .page-home .hero-sakura {
    width: 170px;
    opacity: 0.42;
  }

  .home-editorial-sakura {
    display: none;
  }

  .page-home .hero-sakura-left {
    top: 18px;
    left: -18px;
  }

  .page-home .hero-sakura-right {
    top: 24px;
    right: -18px;
  }

  .page-home .hero-copy {
    width: min(100% - 24px, 820px);
  }

  .hero-card,
  .page-home .hero-card-large {
    border-radius: 0;
  }

  .editorial-banner {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .account-order-row {
    grid-template-columns: 1fr;
  }

  .account-order-head {
    display: none;
  }

  .toast-container {
    top: 132px;
    right: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}
