:root {
  --ink: #432934;
  --body: #634b4e;
  --muted: #75595e;
  --rose: #a12648;
  --pale: #faeaf0;
  --line: #e4ccd5;
  --white: #fdf7f9;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #784053; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(1.05rem, 3vw, 1.35rem); font-weight: 800; letter-spacing: -.04em; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--rose); }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; background: var(--rose); font-size: .875rem; letter-spacing: 0; margin-right: 4px; }
nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 34px); }
nav a { text-decoration: none; color: var(--body); font-weight: 650; }
nav a:hover { color: var(--rose); }
h1, h2 { font-family: Georgia, Cambria, serif; font-weight: 500; letter-spacing: -.055em; margin: 0; }
h1 { font-size: clamp(3rem, 6.2vw, 5.35rem); line-height: .98; }
.button, .product-link { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 10px 20px; border-radius: 999px; text-decoration: none; font-weight: 750; }
.button { background: var(--rose); color: white; }
.button:hover { background: #851c3b; }
.catalog { padding-block: 29px 60px; scroll-margin-top: 16px; }
h2 { font-size: clamp(2.4rem, 4.7vw, 3.6rem); line-height: 1.02; }
.search { position: relative; display: block; min-width: 0; }
.search input { padding: 12px 16px 12px 42px; width: 100%; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: white; min-height: 46px; }
.search input::placeholder { color: var(--muted); }
.search-icon { position: absolute; top: 14px; left: 16px; width: 14px; height: 14px; border: 1.6px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; top: 10px; left: 10px; height: 7px; width: 1.6px; background: var(--muted); transform: rotate(-45deg); }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(160px, 1fr)); align-items: center; gap: 10px; margin: 16px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: white; border-radius: 19px; overflow: hidden; }
.product-image { width: 100%; height: auto; aspect-ratio: 6 / 5; background: #faf1ed; object-fit: contain; }
.product-image.fashion { object-fit: cover; object-position: center 38%; }
.card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 21px; }
.card h3 { font-size: 1.14rem; margin: 0; line-height: 1.25; }
.card p { margin: 10px 0 19px; color: var(--body); line-height: 1.48; }
.card .category { margin: 0 0 8px; color: var(--rose); font-size: .875rem; font-weight: 750; }
.product-link { color: var(--rose); background: #fff0f2; margin-top: auto; }
.product-link:hover { background: #f9dce4; }
.empty button { min-height: 42px; border-radius: 10px; padding: 8px 16px; color: var(--ink); border: 1px solid var(--line); background: white; font-weight: 650; }
.empty { padding: 25px; background: var(--pale); border-radius: 18px; }
.empty p { margin-top: 0; }
footer { background: var(--pale); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 28px; display: flex; justify-content: space-between; gap: 12px 24px; align-items: center; }
.footer-inner p { margin: 0; color: var(--body); font-size: .875rem; line-height: 1.55; max-width: 57ch; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: block; padding: 10px 14px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 36px); }
}
@media (max-width: 680px) {
  .header-inner { min-height: 65px; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .catalog { padding-block: 23px 50px; }
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-copy { padding: 13px; }
  .card h3 { font-size: 1rem; }
  .product-link { padding-inline: 13px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}

.admin { padding-block: clamp(26px, 5vw, 54px) 70px; }
.admin h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 28px; }
.admin h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.admin-toolbar, .editor-actions, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.admin-toolbar { justify-content: space-between; margin-bottom: 18px; }
.admin .button { border: 0; }
.feedback, .editor, .product-rows { border: 1px solid var(--line); border-radius: 16px; }
.feedback { padding: 12px 16px; background: var(--pale); }
.feedback.error { color: var(--rose); font-weight: 700; }
.editor { width: min(100%, 610px); padding: clamp(16px, 4vw, 28px); background: white; }
.editor form { display: grid; gap: 14px; margin-top: 18px; }
.editor label { display: grid; gap: 6px; color: var(--ink); font-weight: 650; }
.editor label span { color: var(--muted); font-size: .875rem; }
.editor input:not([type="hidden"]), .editor textarea, .editor select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b89ca1; border-radius: 8px; color: var(--ink); background: var(--white); font: inherit; font-weight: 400; }
.category-select { min-width: 0; width: 100%; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; font: inherit; }
.category-select, .editor select {
  appearance: none;
  padding-inline-end: 36px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 19px center, right 14px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.category-select:disabled, .editor select:disabled { color: var(--muted); background-color: var(--pale); opacity: 1; }
.editor textarea { resize: vertical; }
.editor fieldset { min-width: 0; margin: 0; padding: 10px 12px 12px; border: 1px solid #b89ca1; border-radius: 8px; }
.editor legend { padding-inline: 4px; font-weight: 650; }
.editor fieldset p { color: var(--muted); margin: 0 0 8px; font-size: .875rem; }
.category-group p { font-weight: 700; }
.category-group + .category-group { margin-top: 12px; }
.category-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 4px 10px; }
.editor .category-choices label { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.editor .category-choices input[type="checkbox"] { width: 18px; min-height: 18px; margin: 0; accent-color: var(--rose); }
.editor-actions a, .row-actions a { min-height: 42px; display: inline-flex; align-items: center; color: var(--rose); font-weight: 650; }
.product-rows { list-style: none; padding: 0; margin: 0; }
.product-rows li { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 20px; }
.product-rows li + li { border-top: 1px solid var(--line); }
.product-rows li span { display: block; color: var(--muted); margin-top: 3px; font-size: .875rem; }

.intro-rosa {
  background: linear-gradient(111deg, #fce7ee 0%, #f7d2e1 60%, #f2bfd2 100%);
  text-align: center;
  padding: clamp(22px, 4vw, 47px) 0;
}
.intro-rosa h1 { font-size: clamp(2.35rem, 5.5vw, 4.75rem); line-height: 1.05; }
.intro-rosa p { margin: 12px auto 15px; color: #5f3a4a; line-height: 1.55; }
.intro-rosa .button { border-radius: 10px; background: #9b365a; }
.intro-rosa .button:hover { background: #812744; }
.catalog h2 { font-size: clamp(1.95rem, 3.6vw, 2.8rem); }
