:root {
  --orange: #f47b20;
  --orange-dark: #d75b0a;
  --orange-soft: #fff0df;
  --purple: #6e35b5;
  --purple-dark: #442067;
  --purple-soft: #f1e9fb;
  --cream: #fff9ef;
  --cream-deep: #f9efdf;
  --ink: #2d2635;
  --muted: #716a78;
  --border: #e8ded3;
  --white: #ffffff;
  --green: #267a56;
  --green-soft: #e8f6ef;
  --red: #b42318;
  --red-soft: #fff0ee;
  --blue-focus: #157daf;
  --shadow-sm: 0 8px 24px rgb(65 39 22 / 7%);
  --shadow-md: 0 18px 50px rgb(65 39 22 / 11%);
  --shadow-lg: 0 28px 70px rgb(68 32 103 / 15%);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shell: 1180px;
  --font:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  background: var(--cream);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 7% 10%, rgb(244 123 32 / 5%), transparent 30rem),
    var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font);
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
}

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

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--purple-dark);
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: -0.018em;
}

p {
  color: var(--muted);
}

::selection {
  background: var(--purple);
  color: var(--white);
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--blue-focus);
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgb(110 53 181 / 12%);
  outline: 0;
}

noscript {
  display: block;
  width: min(var(--shell), calc(100% - 32px));
  margin: 24px auto;
  padding: 16px 18px;
  border: 1px solid #efb5ae;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 750;
  text-align: center;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 10px;
  left: 10px;
  padding: 12px 17px;
  border-radius: 10px;
  background: var(--purple-dark);
  color: var(--white);
  font-weight: 850;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--orange-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.115em;
  line-height: 1.25;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.add-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.primary-button,
.add-button {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgb(215 91 10 / 19%);
}

.primary-button:hover,
.add-button:hover {
  background: var(--orange-dark);
  box-shadow: 0 13px 30px rgb(215 91 10 / 25%);
  transform: translateY(-2px);
}

.secondary-button {
  border-color: rgb(110 53 181 / 48%);
  background: rgb(255 255 255 / 72%);
  color: var(--purple);
}

.secondary-button:hover {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 10px 26px rgb(68 32 103 / 10%);
  transform: translateY(-2px);
}

.primary-button:disabled,
.secondary-button:disabled,
.add-button:disabled {
  border-color: #d5cec7;
  background: #ded8d1;
  color: #7d7771;
  box-shadow: none;
  opacity: 0.86;
  transform: none;
}

.wide {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgb(110 53 181 / 28%);
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--orange-dark);
  text-decoration-color: currentColor;
}

/* Header */

.announcement {
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  background:
    linear-gradient(95deg, var(--purple-dark), #5f2d8d 55%, var(--purple));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.025em;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: rgb(255 249 239 / 96%);
  box-shadow: 0 5px 20px rgb(65 39 22 / 5%);
  backdrop-filter: blur(14px);
}

.header-main {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(290px, 570px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.92;
  white-space: nowrap;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.brand small {
  margin-top: 6px;
  color: var(--purple-dark);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 18px 18px;
  background:
    radial-gradient(circle at 28% 17%, #fff 0 5%, transparent 6%),
    linear-gradient(145deg, var(--purple), var(--purple-dark));
  color: var(--white);
  box-shadow: 0 8px 17px rgb(68 32 103 / 20%);
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -0.07em;
  transform: rotate(-4deg);
}

.header-search {
  height: 48px;
  display: flex;
  overflow: hidden;
  border: 1px solid #d9cfca;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 6px 20px rgb(65 39 22 / 6%);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.header-search:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgb(110 53 181 / 11%);
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  box-shadow: none;
}

.header-search input::placeholder,
.catalog-search input::placeholder,
.form-panel input::placeholder,
.form-panel textarea::placeholder {
  color: #928991;
  opacity: 1;
}

.header-search button {
  width: 44px;
  height: 40px;
  align-self: center;
  margin-right: 4px;
  border: 0;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
}

.header-search button:hover {
  background: var(--purple-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.action-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--purple-dark);
  font-size: 0.82rem;
  font-weight: 820;
  white-space: nowrap;
}

.action-link > span:first-child {
  color: var(--purple);
  font-size: 1.25rem;
}

.action-link:hover {
  color: var(--orange-dark);
}

.cart-link {
  position: relative;
}

.cart-link b {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  line-height: 1;
}

.main-nav {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  min-height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--purple-dark);
  font-size: 0.79rem;
  font-weight: 800;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.main-nav .manager-link {
  margin-left: auto;
  background: var(--purple-soft);
  color: var(--purple);
}

.main-nav .manager-link:hover {
  background: var(--purple);
  color: var(--white);
}

/* Home */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #eddcca;
  background:
    radial-gradient(circle at 10% 25%, rgb(255 255 255 / 75%), transparent 28rem),
    linear-gradient(112deg, #fff8e9, #fff0d7 54%, #f6e5fb);
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero::before {
  width: 330px;
  height: 330px;
  top: -210px;
  left: -110px;
  border: 55px solid rgb(244 123 32 / 8%);
}

.hero::after {
  width: 240px;
  height: 240px;
  right: -135px;
  bottom: -155px;
  border: 42px solid rgb(110 53 181 / 10%);
}

.hero-grid {
  min-height: clamp(540px, 58vw, 650px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(470px, 1.14fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: 48px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-block: 12px;
}

.hero-copy h1 {
  max-width: 660px;
  margin-bottom: 23px;
  color: var(--purple-dark);
}

.hero-copy h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy > p {
  max-width: 590px;
  margin-bottom: 28px;
  color: #5f5763;
  font-size: clamp(1rem, 1.55vw, 1.17rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  padding: 0;
  margin: 25px 0 0;
  color: #514855;
  font-size: 0.82rem;
  font-weight: 740;
  list-style: none;
}

.hero-points li::first-letter {
  color: var(--green);
}

.hero-visual {
  position: relative;
  min-width: 0;
  height: clamp(410px, 45vw, 540px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 42% 20% 35% 24% / 24% 35% 22% 36%;
  background: #fff4df;
  box-shadow: var(--shadow-lg);
  transform: rotate(0.7deg);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  border: 2px solid rgb(255 255 255 / 55%);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 71% center;
  transform: scale(1.015);
}

.hero-note {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 22px;
  min-width: 205px;
  display: flex;
  flex-direction: column;
  padding: 13px 17px;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 17px;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 10px 30px rgb(68 32 103 / 14%);
  backdrop-filter: blur(8px);
}

.hero-note b {
  color: var(--purple);
  font-size: 0.95rem;
}

.hero-note span {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 650;
}

.section {
  padding-block: clamp(58px, 7vw, 88px);
}

.section-soft {
  width: 100%;
  padding-inline: max(20px, calc((100vw - var(--shell)) / 2));
  background:
    radial-gradient(circle at 97% 10%, rgb(110 53 181 / 8%), transparent 27rem),
    var(--white);
}

.section-soft > .shell {
  width: 100%;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > a {
  min-height: 40px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 850;
}

.section-heading > a:hover {
  color: var(--orange-dark);
}

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

.category-tile {
  min-height: 174px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgb(255 255 255 / 90%), rgb(255 240 223 / 78%));
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.category-tile:nth-child(even) {
  background:
    linear-gradient(155deg, rgb(255 255 255 / 94%), rgb(241 233 251 / 90%));
}

.category-tile:hover {
  border-color: rgb(110 53 181 / 36%);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.category-tile > span {
  width: 51px;
  height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border-radius: 17px;
  background: var(--white);
  box-shadow: 0 8px 20px rgb(65 39 22 / 9%);
  font-size: 1.65rem;
}

.category-tile strong {
  margin-top: 20px;
  color: var(--purple-dark);
  font-size: 1.02rem;
}

.category-tile small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 23px);
}

.product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgb(65 39 22 / 6%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  border-color: rgb(244 123 32 / 38%);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.product-image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid #f1e9df;
  background:
    radial-gradient(circle at center, #fff 0 28%, #fff9f1 78%);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 17px;
  transition: transform 260ms ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.045);
}

.discount-badge,
.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1;
}

.discount-badge {
  left: 12px;
  background: var(--orange);
}

.product-badge {
  right: 12px;
  max-width: 56%;
  overflow: hidden;
  background: var(--purple);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-body {
  min-height: 238px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.product-meta {
  min-height: 18px;
  margin-bottom: 7px;
  overflow: hidden;
  color: var(--orange-dark);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card h3 {
  min-height: 2.4em;
  margin-bottom: 10px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.product-card h3 a:hover {
  color: var(--purple);
}

.stock-line {
  min-height: 20px;
  margin-bottom: 10px;
  font-size: 0.71rem;
  font-weight: 750;
}

.in-stock {
  color: var(--green);
}

.out-stock {
  color: var(--red);
}

.price-row {
  min-height: 30px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 13px;
}

.price-row strong {
  color: var(--ink);
  font-size: clamp(1.07rem, 2vw, 1.32rem);
  letter-spacing: -0.035em;
}

.price-row s {
  color: #968e94;
  font-size: 0.75rem;
}

.add-button {
  width: 100%;
  min-height: 43px;
  padding: 10px 14px;
  font-size: 0.81rem;
}

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

.service-grid article {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 74%);
}

.service-grid article > span {
  width: 47px;
  height: 47px;
  display: inline-flex;
  flex: 0 0 47px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--purple-soft);
  font-size: 1.4rem;
}

.service-grid h2 {
  margin: 1px 0 6px;
  font-size: 1rem;
}

.service-grid p {
  margin: 0;
  font-size: 0.82rem;
}

/* Shared interior pages */

.compact-page,
.catalog-main,
.product-main {
  min-height: 56vh;
  padding-top: 26px;
  padding-bottom: clamp(62px, 8vw, 96px);
}

.breadcrumbs {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.breadcrumbs a {
  color: var(--purple);
  font-weight: 750;
}

.breadcrumbs a:hover {
  color: var(--orange-dark);
}

.breadcrumbs > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-heading,
.catalog-title {
  margin: 10px 0 31px;
}

.page-heading h1,
.catalog-title h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 3.75rem);
}

.page-heading p,
.catalog-title p {
  max-width: 720px;
  margin-bottom: 0;
}

.page-heading.centered {
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 36px;
  text-align: center;
}

.centered p {
  margin-inline: auto;
}

.panel {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.panel > h2:first-child,
.form-panel > h2:first-child {
  margin-bottom: 22px;
  font-size: 1.35rem;
}

.empty-state {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 45px 24px;
  border: 1px dashed #d8c8b8;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at center top, var(--purple-soft), transparent 17rem),
    rgb(255 255 255 / 72%);
  text-align: center;
}

.empty-state > span {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--orange-soft);
  font-size: 2rem;
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 11px;
}

.empty-state p {
  max-width: 530px;
  margin-bottom: 23px;
}

.empty-inline {
  padding: 22px;
  border: 1px dashed #d8c8b8;
  border-radius: var(--radius-sm);
  background: var(--cream);
  text-align: center;
}

.empty-inline p {
  margin-bottom: 7px;
}

.empty-inline a {
  color: var(--purple);
  font-weight: 800;
}

/* Catalog */

.catalog-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  align-items: start;
  gap: 27px;
}

.filters {
  position: sticky;
  top: 160px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filters h2 {
  margin-bottom: 21px;
  font-size: 1.2rem;
}

.filters label,
.catalog-toolbar > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  color: #514855;
  font-size: 0.76rem;
  font-weight: 850;
}

.filters select,
.catalog-toolbar select {
  width: 100%;
  min-height: 45px;
  padding: 9px 35px 9px 12px;
  border: 1px solid #d9cfca;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.84rem;
}

.clear-filters {
  width: 100%;
  min-height: 41px;
  border: 1px solid rgb(110 53 181 / 35%);
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.79rem;
  font-weight: 850;
}

.clear-filters:hover {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

.catalog-toolbar {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 185px;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgb(255 255 255 / 72%);
}

.catalog-search {
  min-width: 0;
  height: 46px;
  display: flex;
  overflow: hidden;
  border: 1px solid #d9cfca;
  border-radius: 12px;
  background: var(--white);
}

.catalog-search:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgb(110 53 181 / 10%);
}

.catalog-search input {
  min-width: 0;
  flex: 1;
  padding-inline: 14px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  box-shadow: none;
}

.catalog-search button {
  min-width: 84px;
  margin: 4px;
  padding-inline: 13px;
  border: 0;
  border-radius: 9px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 850;
}

.catalog-search button:hover {
  background: var(--purple-dark);
}

.catalog-toolbar > label {
  gap: 4px;
  margin: 0;
}

.catalog-toolbar select {
  min-height: 46px;
}

.catalog-layout > div > .empty-state {
  min-height: 430px;
}

/* Product detail */

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  align-items: start;
  gap: clamp(34px, 6vw, 75px);
  padding: clamp(23px, 4vw, 46px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.product-gallery {
  position: sticky;
  top: 164px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #eee5dc;
  border-radius: 25px;
  background:
    radial-gradient(circle at center, #fff 0 28%, #fff8ef 76%);
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(19px, 4vw, 42px);
}

.product-info {
  padding-block: 12px;
}

.product-info h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 930;
  letter-spacing: -0.05em;
}

.detail-price s {
  color: #968e94;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.detail-stock {
  margin-bottom: 21px;
  font-size: 0.83rem;
  font-weight: 800;
}

.product-description {
  margin-bottom: 24px;
  color: #5e5661;
  font-size: 0.97rem;
  line-height: 1.75;
}

.purchase-box {
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--cream);
}

.purchase-box label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
  color: var(--purple-dark);
  font-size: 0.79rem;
  font-weight: 850;
}

.purchase-box input {
  width: 86px;
  min-height: 43px;
  padding: 8px;
  border: 1px solid #d9cfca;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
}

.detail-benefits {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 22px 0 0;
  color: #554d58;
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}

.detail-benefits li::first-letter {
  color: var(--green);
}

.related {
  padding-bottom: 0;
}

/* Cart */

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

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

.cart-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(160px, 1fr) auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px 18px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 5px 18px rgb(65 39 22 / 5%);
}

.cart-item > img {
  width: 112px;
  height: 112px;
  grid-row: 1 / 3;
  object-fit: contain;
  padding: 8px;
  border: 1px solid #eee5dc;
  border-radius: 15px;
  background: #fffaf3;
}

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

.cart-item-copy > span {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--orange-dark);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cart-item-copy h2 {
  margin-bottom: 7px;
  font-size: 1.02rem;
  line-height: 1.22;
}

.cart-item-copy h2 a:hover {
  color: var(--purple);
}

.cart-item-copy > strong {
  font-size: 0.87rem;
}

.quantity-control {
  min-width: 111px;
  height: 42px;
  display: grid;
  grid-template-columns: 36px 38px 36px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d9cfca;
  border-radius: 999px;
  background: var(--white);
}

.quantity-control button {
  width: 36px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple);
  font-size: 1.08rem;
  font-weight: 900;
}

.quantity-control button:hover {
  background: var(--purple-soft);
}

.quantity-control span {
  text-align: center;
  font-size: 0.83rem;
  font-weight: 850;
}

.line-total {
  min-width: 95px;
  color: var(--purple-dark);
  font-size: 0.98rem;
  text-align: right;
}

.remove-button {
  width: max-content;
  min-height: 34px;
  grid-column: 3 / 5;
  justify-self: end;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.71rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.remove-button:hover {
  color: #7b1812;
}

.order-summary {
  position: sticky;
  top: 160px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.order-summary h2 {
  margin-bottom: 21px;
  font-size: 1.3rem;
}

.order-summary > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 17px;
  padding-block: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.order-summary > div span:first-child {
  min-width: 0;
}

.order-summary > div strong {
  flex: 0 0 auto;
  color: var(--ink);
  text-align: right;
}

.order-summary hr {
  height: 1px;
  margin: 15px 0;
  border: 0;
  background: var(--border);
}

.order-summary .summary-total {
  align-items: baseline;
  color: var(--purple-dark);
  font-weight: 850;
}

.summary-total strong {
  color: var(--purple-dark) !important;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.order-summary .primary-button {
  margin-top: 19px;
}

.order-summary .text-link {
  width: 100%;
  margin-top: 7px;
}

.order-summary > p {
  margin: 17px 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
}

/* Forms, checkout and account */

.form-panel label:not(.radio-option):not(.terms) {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #504853;
  font-size: 0.77rem;
  font-weight: 820;
}

.form-panel input:not([type="radio"]):not([type="checkbox"]),
.form-panel textarea {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #d9cfca;
  border-radius: 11px;
  background: #fffdf9;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-panel textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.5;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.form-panel fieldset {
  display: grid;
  gap: 10px;
  padding: 18px;
  margin: 24px 0 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--cream);
}

.form-panel legend {
  padding-inline: 7px;
  color: var(--purple-dark);
  font-size: 0.85rem;
  font-weight: 880;
}

.radio-option {
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: rgb(110 53 181 / 40%);
  background: var(--purple-soft);
}

.radio-option input,
.terms input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--purple);
}

.radio-option span {
  display: flex;
  flex-direction: column;
}

.radio-option b {
  color: var(--purple-dark);
  font-size: 0.84rem;
}

.radio-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 17px 0;
  color: #554d58;
  font-size: 0.76rem;
  font-weight: 720;
  cursor: pointer;
}

.terms input {
  margin-top: 2px;
}

.form-status {
  min-height: 22px;
  margin: 13px 0 0;
  font-size: 0.76rem;
  font-weight: 780;
  text-align: center;
}

.form-status:empty {
  min-height: 0;
  margin-top: 0;
}

.form-status.success {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
}

.form-status.error {
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--red-soft);
  color: var(--red);
}

.auth-grid {
  max-width: 940px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 23px;
  margin-inline: auto;
}

.account-public {
  position: relative;
  isolation: isolate;
}

.account-public::before {
  position: absolute;
  z-index: -1;
  width: min(620px, 90vw);
  height: 360px;
  top: 20px;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(110 53 181 / 8%), transparent 70%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.account-gate {
  max-width: 700px;
  margin: 28px auto 0;
  padding: clamp(34px, 6vw, 58px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -8%, var(--orange-soft), transparent 21rem),
    var(--white);
  text-align: center;
}

.account-gate > span:first-child {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  box-shadow: 0 12px 27px rgb(68 32 103 / 13%);
  font-size: 2rem;
  font-weight: 900;
}

.account-gate h1 {
  max-width: 590px;
  margin: 0 auto 17px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.account-gate > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto 26px;
}

.account-gate > a {
  margin: 5px;
}

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

.auth-grid .form-panel h2 {
  margin-bottom: 3px;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 5px 0 29px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgb(110 53 181 / 18%);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 91% 15%, rgb(244 123 32 / 22%), transparent 16rem),
    linear-gradient(130deg, var(--purple-soft), #fff 72%);
}

.account-hero h1 {
  margin-bottom: 7px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.account-hero p {
  margin-bottom: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 22px;
}

.profile-list {
  margin-bottom: 0;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid #eee6de;
}

.profile-list > div:last-child {
  border-bottom: 0;
}

.profile-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.profile-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 720;
}

.account-order {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr 0.9fr;
  gap: 12px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--cream);
}

.account-order:last-child {
  margin-bottom: 0;
}

.account-order > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-order span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.account-order strong {
  overflow-wrap: anywhere;
  color: var(--purple-dark);
  font-size: 0.78rem;
}

.success-card {
  max-width: 670px;
  margin: 24px auto 0;
  padding: clamp(35px, 6vw, 64px);
  border: 1px solid rgb(38 122 86 / 23%);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% -5%, var(--green-soft), transparent 21rem),
    var(--white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-card > span:first-child {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 28px rgb(38 122 86 / 23%);
  font-size: 2rem;
  font-weight: 950;
}

.success-card h1 {
  margin-bottom: 17px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.success-card > p:not(.eyebrow) {
  max-width: 520px;
  margin-inline: auto;
}

.success-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 27px 0;
  padding: 17px 20px;
  border-radius: 13px;
  background: var(--cream);
}

.success-card > div strong {
  color: var(--purple-dark);
  font-size: 1.3rem;
}

.success-card > a {
  margin: 5px;
}

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 58px;
  background:
    radial-gradient(circle at 10% 0, rgb(244 123 32 / 18%), transparent 28rem),
    linear-gradient(135deg, #3e1b5f, var(--purple-dark) 60%, #29133d);
  color: var(--white);
}

.site-footer::after {
  position: absolute;
  width: 270px;
  height: 270px;
  right: -100px;
  bottom: -150px;
  border: 42px solid rgb(255 255 255 / 5%);
  border-radius: 50%;
  content: "";
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.55fr repeat(3, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 45px;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.brand-footer {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 2rem;
}

.brand-footer .brand-mark {
  background: var(--orange);
  box-shadow: none;
}

.footer-grid p {
  max-width: 360px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 0.83rem;
}

.footer-grid h2 {
  margin: 5px 0 10px;
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid a,
.footer-grid section > span {
  min-height: 28px;
  color: rgb(255 255 255 / 72%);
  font-size: 0.78rem;
}

.footer-grid a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 58%);
  font-size: 0.69rem;
}

/* Loading, notifications and errors */

.loading-screen {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 20px;
  background:
    radial-gradient(circle at center, var(--orange-soft), transparent 22rem),
    var(--cream);
  color: var(--purple-dark);
  text-align: center;
}

.loading-paw,
.error-screen > span:first-child {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-size: 2rem;
  animation: petty-pulse 1.35s ease-in-out infinite;
}

.loading-screen strong {
  font-size: 1.05rem;
}

.error-screen h1 {
  margin: 5px 0 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.error-screen p {
  max-width: 520px;
  margin-bottom: 10px;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 14px 17px;
  border: 1px solid rgb(38 122 86 / 24%);
  border-radius: 13px;
  background: #183f31;
  color: var(--white);
  box-shadow: 0 18px 50px rgb(25 20 27 / 25%);
  font-size: 0.84rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(22px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

.toast.error {
  border-color: rgb(255 255 255 / 16%);
  background: #8f2119;
}

@keyframes petty-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Tablet */

@media (max-width: 1080px) {
  .header-main {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 18px;
  }

  .action-link > span:nth-child(2) {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  }

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

  .category-tile {
    min-height: 155px;
  }

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

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

  .cart-item {
    grid-template-columns: 100px minmax(130px, 1fr) auto;
  }

  .cart-item > img {
    width: 100px;
    height: 100px;
  }

  .line-total {
    display: none;
  }

  .remove-button {
    grid-column: 3;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 185px;
  }

  .site-header {
    position: relative;
  }

  .header-main {
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    padding-block: 13px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .main-nav .manager-link {
    margin-left: 0;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 52px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: 100%;
    height: min(62vw, 510px);
    min-height: 360px;
    border-radius: 28px;
    transform: none;
  }

  .hero-visual img {
    object-position: 70% center;
  }

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

  .service-grid article {
    align-items: center;
  }

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

  .filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 12px;
  }

  .filters h2 {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .filters label {
    margin-bottom: 0;
  }

  .clear-filters {
    width: auto;
    min-width: 130px;
    min-height: 45px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
    width: min(620px, 100%);
    margin-inline: auto;
  }

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

  .order-summary {
    position: static;
  }

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

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

  .footer-grid section:first-child {
    grid-column: 1 / -1;
  }
}

/* Mobile */

@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .announcement {
    min-height: 32px;
    padding-inline: 12px;
    font-size: 0.66rem;
  }

  .header-main {
    min-height: auto;
    padding-block: 11px;
  }

  .brand {
    gap: 7px;
    font-size: 1.78rem;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
    border-radius: 12px;
    font-size: 1.2rem;
  }

  .brand small {
    display: none;
  }

  .header-actions {
    gap: 9px;
  }

  .action-link {
    gap: 3px;
  }

  .action-link > span:first-child {
    font-size: 1.15rem;
  }

  .header-search {
    height: 44px;
  }

  .header-search input {
    padding-left: 14px;
    font-size: 0.82rem;
  }

  .header-search button {
    width: 38px;
    height: 36px;
  }

  .main-nav {
    width: 100%;
    padding-inline: 14px;
  }

  .main-nav a {
    padding-inline: 11px;
    font-size: 0.73rem;
  }

  .hero-grid {
    width: min(100% - 28px, var(--shell));
    gap: 34px;
    padding-block: 42px 34px;
  }

  .hero-copy h1 {
    margin-bottom: 17px;
    font-size: clamp(2.45rem, 12vw, 3.55rem);
  }

  .hero-copy > p {
    margin-bottom: 22px;
    font-size: 0.94rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-points {
    gap: 7px 12px;
    font-size: 0.72rem;
  }

  .hero-visual {
    height: 320px;
    min-height: 0;
    border-radius: 23px;
  }

  .hero-visual img {
    object-position: 69% center;
  }

  .hero-note {
    left: 13px;
    bottom: 13px;
    min-width: 0;
    padding: 10px 12px;
  }

  .section {
    padding-block: 52px;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .section-heading > a {
    display: none;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

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

  .category-tile {
    min-height: 145px;
    padding: 16px;
    border-radius: 16px;
  }

  .category-tile > span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1.35rem;
  }

  .category-tile strong {
    margin-top: 14px;
    font-size: 0.91rem;
  }

  .category-tile small {
    font-size: 0.68rem;
  }

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

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

  .product-image-wrap img {
    padding: 10px;
  }

  .discount-badge,
  .product-badge {
    top: 8px;
    min-height: 23px;
    padding: 4px 7px;
    font-size: 0.58rem;
  }

  .discount-badge {
    left: 8px;
  }

  .product-badge {
    right: 8px;
  }

  .product-card-body {
    min-height: 215px;
    padding: 12px;
  }

  .product-meta {
    font-size: 0.59rem;
  }

  .product-card h3 {
    min-height: 2.55em;
    font-size: 0.83rem;
    line-height: 1.27;
  }

  .stock-line {
    font-size: 0.61rem;
  }

  .price-row {
    flex-wrap: wrap;
    gap: 3px 6px;
  }

  .price-row strong {
    font-size: 1rem;
  }

  .price-row s {
    font-size: 0.65rem;
  }

  .add-button {
    min-height: 41px;
    padding-inline: 8px;
    font-size: 0.72rem;
  }

  .service-grid article {
    padding: 19px;
  }

  .compact-page,
  .catalog-main,
  .product-main {
    padding-top: 17px;
    padding-bottom: 58px;
  }

  .breadcrumbs {
    margin-bottom: 16px;
  }

  .page-heading,
  .catalog-title {
    margin-bottom: 23px;
  }

  .page-heading h1,
  .catalog-title h1 {
    font-size: 2.25rem;
  }

  .panel {
    padding: 20px;
    border-radius: 16px;
  }

  .filters {
    grid-template-columns: 1fr;
    padding: 17px;
    border-radius: 16px;
  }

  .filters h2 {
    grid-column: auto;
  }

  .clear-filters {
    width: 100%;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .catalog-search {
    height: 44px;
  }

  .catalog-search input {
    font-size: 0.78rem;
  }

  .catalog-search button {
    min-width: 70px;
    font-size: 0.72rem;
  }

  .product-detail {
    gap: 24px;
    padding: 15px;
    border-radius: 21px;
  }

  .product-gallery {
    border-radius: 17px;
  }

  .product-info {
    padding: 4px 4px 7px;
  }

  .product-info h1 {
    font-size: 2.15rem;
  }

  .detail-price {
    font-size: 2rem;
  }

  .purchase-box {
    padding: 15px;
  }

  .related {
    padding-top: 52px;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 7px 11px;
    padding: 12px;
    border-radius: 16px;
  }

  .cart-item > img {
    width: 82px;
    height: 82px;
    grid-row: 1 / 3;
    padding: 5px;
    border-radius: 12px;
  }

  .cart-item-copy h2 {
    font-size: 0.85rem;
  }

  .quantity-control {
    min-width: 99px;
    height: 38px;
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: 32px 35px 32px;
  }

  .quantity-control button {
    width: 32px;
    height: 36px;
  }

  .remove-button {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
  }

  .order-summary {
    padding: 21px;
  }

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

  .form-grid .full {
    grid-column: auto;
  }

  .account-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
    border-radius: 20px;
  }

  .account-hero .secondary-button {
    width: 100%;
  }

  .account-gate {
    padding: 32px 19px;
  }

  .account-gate > a {
    width: 100%;
    margin: 5px 0;
  }

  .profile-list > div {
    grid-template-columns: 80px minmax(0, 1fr);
  }

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

  .success-card {
    padding: 32px 20px;
    border-radius: 21px;
  }

  .success-card > a {
    width: 100%;
    margin: 5px 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 22px;
  }

  .footer-grid section:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .shell {
    width: calc(100% - 22px);
  }

  .announcement {
    font-size: 0.61rem;
  }

  .brand {
    font-size: 1.62rem;
  }

  .header-actions {
    gap: 5px;
  }

  .cart-link b {
    min-width: 20px;
    height: 20px;
  }

  .hero-grid {
    width: calc(100% - 22px);
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    height: 285px;
  }

  .category-tile {
    min-height: 136px;
    padding: 13px;
  }

  .product-grid {
    gap: 8px;
  }

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

  .product-card h3 {
    font-size: 0.77rem;
  }

  .add-button {
    font-size: 0.67rem;
  }

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

  .cart-item > img {
    width: 72px;
    height: 72px;
  }

  .quantity-control {
    grid-column: 2;
  }

  .remove-button {
    grid-column: 2;
    grid-row: 3;
    justify-self: start;
  }

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

  .footer-grid section:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .announcement,
  .site-header,
  .site-footer,
  .toast,
  .primary-button,
  .secondary-button,
  .add-button,
  .remove-button,
  .quantity-control {
    display: none !important;
  }

  body {
    background: var(--white);
  }

  .shell {
    width: 100%;
  }

  .panel,
  .order-summary,
  .product-detail,
  .cart-item {
    box-shadow: none;
  }
}
