/* Fuentes locales: licencias OFL incluidas en /brand/. */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("/brand/cormorant-500-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("/brand/cormorant-500-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("/brand/cormorant-600-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("/brand/cormorant-600-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url("/brand/cormorant-500-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url("/brand/cormorant-500-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/brand/raleway-400-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("/brand/raleway-400-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("/brand/raleway-700-normal-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("/brand/raleway-700-normal-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --white: #fff;
  --ink: #153a5d;
  --muted: #5f7182;
  --line: #dbe1e6;
  --navy: #153a5d;
  --navy-deep: #0d2943;
  --navy-soft: #edf2f6;
  --gold: #e3be2f;
  --shadow: 0 8px 32px rgba(21, 58, 93, .045);
  font-family: "Raleway", "Segoe UI", sans-serif;
  --display-font: "Cormorant", Georgia, serif;
  --gold-hover: #d5ae21;
  --salmon-soft: #fbe8e2;
  font-size: 14px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); min-width: 320px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
input, textarea, select { color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #153a5d; outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.eyebrow { color: var(--navy); font-size: 10px; font-weight: 700; letter-spacing: .16em; margin: 0 0 12px; line-height: 1.6; }
.button { appearance: none; border: 1px solid transparent; min-height: 44px; padding: 0 18px; border-radius: 3px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; line-height: 1.4; transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.button:hover:not(:disabled) { transform: none; }
.button-primary { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.button-primary:hover:not(:disabled) { background: var(--gold-hover); border-color: var(--gold-hover); }
.button-secondary { color: var(--ink); background: var(--white); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { border-color: #91a3b3; background: #f6f8fa; }
.button-small { min-height: 37px; font-size: 12px; padding: 0 13px; }
.button-wide { width: 100%; justify-content: space-between; padding: 0 20px; height: 48px; }
.plus-icon { font-size: 22px; font-weight: 400; line-height: 1; margin-right: 2px; }
.quiet-button { border: 1px solid transparent; background: transparent; color: white; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.quiet-button:hover { color: var(--gold); border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.quiet-button svg { width: 17px; height: 17px; }
.text-button { background: none; border: 0; color: var(--navy); font-weight: 700; font-size: 13px; padding: 6px 0; }
.text-button:hover { text-decoration: underline; }

.topbar { min-height: 88px; border-bottom: 3px solid var(--gold); background: var(--navy); color: white; }
.topbar-inner { min-height: 85px; max-width: 1300px; margin: auto; padding: 10px 36px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.main-content { max-width: 1300px; margin: auto; padding: 38px 36px 32px; }
.catalog-switcher { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-select-field { flex: 1 1 240px; min-width: 0; }
.catalog-select-field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; }
.catalog-select-field select { width: 100%; max-width: 360px; min-height: 42px; padding: 8px 12px; border: 1px solid #bac7d1; border-radius: 3px; background: #fff; }
.catalog-select-field p { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#catalog-form .field { margin-bottom: 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.page-heading > div { min-width: 0; }
.page-heading h1 { margin: 0; font-family: var(--display-font); font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -.025em; font-weight: 500; }
.heading-dot { color: var(--gold); }
.page-subtitle { color: var(--muted); margin: 14px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.guest-notice { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin: -15px 0 26px; padding: 12px 16px; border: 1px solid #f5bbac; border-radius: 3px; background: var(--salmon-soft); color: var(--navy); font-size: 12px; font-weight: 700; }
.new-button { height: 46px; margin-top: 12px; }
.global-discount-panel { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 3px; background: white; }
.global-discount-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); font-family: var(--display-font); font-size: 30px; font-weight: 500; }
.global-discount-copy { min-width: 0; flex: 1; }
.global-discount-copy h2 { margin: 0 0 3px; font-family: var(--display-font); font-size: 25px; font-weight: 600; line-height: 1.1; }
.global-discount-copy p { margin: 0 0 7px; color: #536b80; font-size: 12px; line-height: 1.45; }
.global-discount-copy span { color: var(--navy); font-size: 11px; font-weight: 700; }
.global-discount-form { flex: none; }
.global-discount-form label { display: block; margin-bottom: 6px; color: #536b80; font-size: 11px; font-weight: 700; }
.global-discount-controls { display: flex; gap: 8px; align-items: center; }
.percent-input { display: flex; align-items: center; background: white; border: 1px solid #bac7d1; border-radius: 3px; overflow: hidden; }
.percent-input:focus-within { border-color: #153a5d; box-shadow: 0 0 0 3px rgba(21,58,93,.12); }
.percent-input input { width: 90px; min-height: 42px; border: 0; outline: none; background: transparent; padding: 0 8px 0 12px; text-align: right; font-size: 14px; font-weight: 700; }
.percent-input span { padding: 0 12px 0 3px; color: #536b80; font-size: 13px; font-weight: 700; }
.catalog-toolbar { display: flex; gap: 24px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.catalog-search { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; margin-bottom: 17px; }
.search-box { width: min(390px, 100%); min-width: 0; height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 13px; background: var(--white); border: 1px solid var(--line); border-radius: 3px; }
#location-filter { width: min(205px, 48%); flex: none; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--navy); font-size: 13px; font-weight: 700; text-overflow: ellipsis; }
.search-box:focus-within { border-color: #153a5d; box-shadow: 0 0 0 3px rgba(21,58,93,.12); }
.search-box svg { color: #536b80; width: 18px; height: 18px; flex: none; }
.search-box input { border: 0; outline: 0; min-width: 0; flex: 1; background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #647686; }
.search-hint { font-size: 10px; color: #647686; border: 1px solid #dbe1e6; padding: 3px 5px; border-radius: 4px; white-space: nowrap; }
.tabs { display: flex; align-self: stretch; align-items: end; gap: 25px; }
.tab { display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 3px solid transparent; padding: 0 1px 18px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; min-height: 44px; }
.tab.active { color: var(--navy); border-color: var(--gold); }
.tab-count { min-width: 20px; height: 20px; padding: 1px 5px; display: grid; place-items: center; border-radius: 6px; color: #5f7182; background: #edf2f6; font-size: 10px; }
.tab.active .tab-count { background: var(--navy-soft); color: var(--navy); }
.tag-toolbar { display: flex; align-items: center; gap: 15px; margin: -5px 0 20px; }
.tag-filters { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; padding: 4px 1px 8px; scrollbar-width: thin; }
.tag-filter { flex: none; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag-filter:hover { border-color: #91a3b3; color: var(--navy); }
.tag-filter.active { border-color: var(--navy); background: var(--navy); color: white; }
.manage-tags-button { flex: none; min-height: 36px; font-size: 12px; padding: 0 12px; }
.catalog-status { min-height: 20px; color: #5f7182; font-size: 12px; margin-bottom: 14px; }
.selection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.selection-summary { color: var(--muted); font-size: 13px; }
.item-card { position: relative; }
.item-card.is-selected { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.item-selection-mark { position: absolute; z-index: 1; top: 12px; left: 12px; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid var(--navy); border-radius: 50%; color: white; background: white; font-size: 18px; font-weight: 700; }
.is-selected .item-selection-mark { background: var(--navy); }
.copy-item-list { max-height: 180px; overflow-y: auto; padding-left: 20px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.field select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: white; }
#copy-form .field { margin: 18px 0; }
#copy-form .button[type="submit"] { margin-top: 12px; }
.item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.item-card { text-align: left; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--white); box-shadow: var(--shadow); color: inherit; width: 100%; display: flex; flex-direction: column; transition: transform .16s, box-shadow .16s, border-color .16s; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.item-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(21, 58, 93, .10); border-color: #91a3b3; }
.item-image { height: 220px; width: 100%; position: relative; background: var(--navy-soft); overflow: hidden; }
.item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--navy-soft); }
.item-placeholder svg { width: 50px; height: 50px; color: #70899e; stroke-width: 1.3; }
.item-card-body { padding: 16px 16px 17px; display: flex; flex: 1; flex-direction: column; }
.item-topline { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.item-title { margin: 0; font-family: var(--display-font); font-size: 25px; font-weight: 600; line-height: 1.08; letter-spacing: -.015em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.quantity-badge { position: absolute; top: 12px; right: 12px; max-width: calc(100% - 24px); background: white; color: var(--navy); border: 1px solid var(--line); border-radius: 2px; padding: 4px 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.quantity-badge.unknown { background: #edf2f6; color: #5f7182; }
.item-location { color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.5; margin: 7px 0 0; overflow-wrap: anywhere; }
.item-description { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 10px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.item-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 10px; }
.item-tag-chip { max-width: 100%; padding: 4px 7px; border-radius: 6px; background: #edf2f6; color: #153a5d; font-size: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-tag-more { color: #5f7182; font-size: 10px; font-weight: 700; }
.item-card-bottom { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-end; }
.price-stack { display: flex; flex-direction: column; gap: 2px; }
.item-price { font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.item-price-muted { font-size: 12px; font-weight: 700; color: #5f7182; }
.item-price-old { font-size: 11px; color: #647686; text-decoration: line-through; }
.item-discount-source { color: var(--navy); font-size: 10px; font-weight: 700; }
.swatches { display: flex; align-items: center; justify-content: flex-end; padding-left: 6px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid white; box-shadow: 0 0 0 1px #bac7d1; margin-left: -5px; }
.swatch-more { color: #5f7182; font-size: 10px; margin-left: 3px; white-space: nowrap; }
.archive-ribbon { position: absolute; top: 11px; left: 11px; padding: 5px 8px; border-radius: 6px; background: rgba(13, 41, 67, .88); color: white; font-size: 10px; font-weight: 700; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.empty-state { text-align: center; padding: 52px 24px; background: white; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 3px; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; background: var(--navy-soft); color: var(--navy); border-radius: 50%; }
.empty-state h2 { margin: 0 0 9px; font-family: var(--display-font); font-weight: 500; font-size: 34px; line-height: 1.1; }
.empty-state p { margin: 0 0 22px; color: var(--muted); font-size: 13px; }
.mobile-fab { display: none; }

.editor-dialog { width: min(760px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 32px)); border: 0; padding: 0; border-radius: 3px; background: var(--white); color: var(--ink); box-shadow: 0 30px 90px rgba(13, 41, 67, .22); }
.editor-dialog::backdrop { background: rgba(13, 41, 67, .52); backdrop-filter: blur(3px); }
.editor-dialog form { display: flex; flex-direction: column; max-height: inherit; }
.editor-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 30px 20px; border-bottom: 1px solid var(--line); border-top: 3px solid var(--gold); background: var(--navy); color: white; }
.editor-header .eyebrow { margin-bottom: 6px; }
.editor-header h2 { margin: 0; font-family: var(--display-font); font-weight: 500; font-size: 34px; line-height: 1.1; letter-spacing: -.015em; }
.icon-button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--white); color: var(--navy); font-size: 26px; font-weight: 400; line-height: 1; }
.icon-button:hover { background: #e1e9ef; }
.editor-body { overflow-y: auto; padding: 0 32px 18px; }
.form-section { padding: 24px 0 25px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.section-heading h3 { font-family: var(--display-font); font-size: 25px; font-weight: 600; margin: 0; line-height: 1.2; }
.section-heading span { color: #5f7182; font-size: 11px; }
.photo-list { display: flex; gap: 11px; overflow-x: auto; padding: 1px 2px 7px; min-height: 111px; }
.photo-tile, .photo-empty { width: 105px; height: 105px; flex: none; border: 1px solid #bac7d1; border-radius: 3px; overflow: hidden; position: relative; background: #f6f8fa; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-open { display: block; padding: 0; background: transparent; cursor: zoom-in; }
.photo-tile > .photo-open { width: 100%; height: 100%; border: 0; }
.photo-open:focus-visible { outline-offset: -4px; }
.photo-open img { display: block; }
.photo-primary-label { pointer-events: none; }
.photo-primary-label { position: absolute; left: 5px; bottom: 5px; border-radius: 5px; background: var(--navy); color: white; font-size: 9px; font-weight: 700; padding: 3px 5px; }
.photo-remove { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(13, 41, 67, .85); color: white; font-size: 16px; line-height: 1; }
.photo-main-button { position: absolute; bottom: 5px; left: 5px; border: 0; border-radius: 5px; background: rgba(255,255,255,.94); color: var(--navy); font-size: 9px; font-weight: 700; padding: 4px 5px; }
.photo-empty { display: grid; place-items: center; color: #70899e; border-style: dashed; }
.photo-empty svg { width: 31px; height: 31px; stroke-width: 1.3; }
.photo-actions { display: flex; gap: 8px; margin-top: 12px; }
.field-help { margin: 9px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label { font-size: 12px; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 1px solid #bac7d1; background: #fff; border-radius: 3px; padding: 10px 12px; outline: none; font-size: 13px; line-height: 1.4; }
.field input { min-height: 42px; }
.field input:focus, .field textarea:focus { border-color: #153a5d; box-shadow: 0 0 0 3px rgba(21,58,93,.12); }
.field input::placeholder, .field textarea::placeholder { color: #647686; }
.field textarea { resize: vertical; min-height: 96px; }
.location-options { list-style: none; margin: 0; padding: 0; max-height: 176px; overflow-y: auto; border: 1px solid var(--line); border-radius: 3px; }
.location-options li { display: grid; align-items: center; min-height: 44px; padding: 8px 12px; cursor: pointer; color: var(--navy); font-size: 14px; overflow-wrap: anywhere; }
.location-options li + li { border-top: 1px solid var(--line); }
.location-options li:hover, .location-options li[aria-selected="true"] { background: var(--navy-soft); }
.item-tag-options { display: flex; gap: 8px; flex-wrap: wrap; }
.item-tag-option { min-height: 37px; padding: 0 13px; border: 1px solid #bac7d1; border-radius: 3px; background: #fff; color: #536b80; font-size: 12px; font-weight: 700; }
.item-tag-option:hover { border-color: #91a3b3; }
.item-tag-option.selected { border-color: var(--navy); background: var(--navy-soft); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.required { color: #a34137; }
.unit { color: #5f7182; font-weight: 500; }
.form-grid { display: grid; gap: 13px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.discount-editor { border: 1px solid #d4dfe7; border-radius: 3px; background: #f6f8fa; margin: 0 0 18px; padding: 15px; }
.discount-mode-button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: transparent; text-align: left; color: var(--ink); }
.switch-track { width: 42px; height: 25px; flex: none; padding: 3px; background: #bac7d1; border-radius: 20px; transition: background .15s; }
.switch-thumb { width: 19px; height: 19px; display: block; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.16); transition: transform .15s; }
.discount-mode-button[aria-checked="true"] .switch-track { background: var(--navy); }
.discount-mode-button[aria-checked="true"] .switch-thumb { transform: translateX(17px); }
.discount-mode-copy { display: flex; flex-direction: column; gap: 3px; }
.discount-mode-copy strong { font-size: 12px; }
.discount-mode-copy small { color: #5f7182; font-size: 11px; }
.custom-discount-fields { display: flex; align-items: center; gap: 14px; margin: 15px 0 0 54px; }
.custom-discount-fields label { color: #536b80; font-size: 11px; font-weight: 700; }
.custom-discount-fields .percent-input input { width: 75px; }
.legacy-discount-note { margin: 14px 0 0; color: #79520c; background: #fff6d7; padding: 9px 11px; border-radius: 3px; font-size: 11px; line-height: 1.45; }
.legacy-discount-note button { border: 0; padding: 0; background: transparent; color: #79520c; font: inherit; font-weight: 700; text-decoration: underline; }
.discount-preview { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #dbe1e6; }
.discount-preview span { color: #536b80; font-size: 11px; }
.discount-preview strong { margin-left: auto; font-size: 17px; letter-spacing: -.03em; }
.discount-preview small { color: #5f7182; font-size: 10px; }
.color-list { display: flex; flex-direction: column; gap: 9px; }
.color-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 105px 28px; align-items: center; gap: 9px; }
.color-picker { width: 46px; height: 43px; padding: 4px; border: 1px solid #bac7d1; border-radius: 3px; background: #fff; cursor: pointer; }
.color-row input[type="text"], .color-row input[type="number"] { width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid #bac7d1; background: #fff; border-radius: 3px; font-size: 13px; }
.color-remove { width: 28px; height: 28px; border: 0; background: transparent; color: #647686; border-radius: 6px; font-size: 21px; font-weight: 300; }
.color-remove:hover { color: #a34137; background: #fff1ed; }
.color-warning { color: #79520c; background: #fff6d7; border: 1px solid #e7d59b; border-radius: 3px; font-size: 11px; line-height: 1.5; padding: 9px 11px; margin: 13px 0 0; }
.editor-footer { flex: none; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: white; }
.editor-error { padding: 8px 20px 0; text-align: right; }
.footer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-left: auto; }
.archive-button { color: #8b4e40; margin-right: 12px; }
.tag-manager-dialog { width: min(590px, calc(100vw - 32px)); max-height: min(750px, calc(100dvh - 32px)); border: 0; padding: 0; border-radius: 3px; background: var(--white); color: var(--ink); box-shadow: 0 30px 90px rgba(13, 41, 67, .22); }
.tag-manager-dialog::backdrop { background: rgba(13, 41, 67, .52); backdrop-filter: blur(3px); }
.tag-manager-dialog.location-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); height: fit-content; margin: auto; border-radius: 3px; }
.location-dialog-body { padding: 20px; }
.location-dialog-name { margin: 0; color: var(--navy); font-family: var(--display-font); font-size: 32px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.tag-manager-body { overflow-y: auto; max-height: calc(min(750px, 100dvh - 32px) - 94px); padding: 23px 32px 30px; }
.tag-manager-intro { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.create-tag-form { padding: 17px; border: 1px solid #d4dfe7; border-radius: 3px; background: #f6f8fa; }
.create-tag-form label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.create-tag-controls { display: flex; gap: 9px; }
.create-tag-controls input, .tag-edit-row input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px; border: 1px solid #bac7d1; border-radius: 3px; background: white; font-size: 13px; outline: none; }
.create-tag-controls input:focus, .tag-edit-row input:focus { border-color: #153a5d; box-shadow: 0 0 0 3px rgba(21,58,93,.12); }
.tag-manager-heading { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 10px; }
.tag-manager-heading h3 { margin: 0; font-size: 14px; }
.tag-manager-heading span { color: var(--muted); font-size: 11px; }
.tag-manager-list { border-top: 1px solid var(--line); }
.tag-manager-row, .tag-edit-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 66px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tag-manager-row > div:first-child { min-width: 0; }
.tag-manager-row strong, .tag-manager-row small { display: block; }
.tag-manager-row strong { overflow-wrap: anywhere; font-size: 13px; }
.tag-manager-row small { margin-top: 4px; color: #5f7182; font-size: 11px; }
.tag-row-actions { display: flex; flex: none; gap: 6px; }
.tag-delete { color: #a34137; }
.tag-delete:hover:not(:disabled) { border-color: #dbb3ab; background: #fff1ed; }
.tag-edit-row input { flex: 1; }
.tag-manager-empty { color: var(--muted); font-size: 12px; }
.detail-dialog[open] { display: flex; flex-direction: column; }
.detail-dialog .editor-header { flex: none; gap: 16px; }
.detail-dialog h2 { overflow-wrap: anywhere; }
.detail-dialog .icon-button { flex: none; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 0 0 20px; }
.detail-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.detail-facts dd { margin: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.detail-description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.7; }
.detail-colors { margin: 0; }
.detail-colors > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.detail-colors dt { overflow-wrap: anywhere; }
.detail-colors small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.detail-colors dd { flex: none; margin: 0; font-weight: 700; }
.photo-viewer { width: min(1100px, calc(100vw - 32px)); height: min(900px, calc(100dvh - 32px)); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0; border-radius: 3px; background: #0d2943; color: white; box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.photo-viewer[open] { display: flex; flex-direction: column; }
.photo-viewer::backdrop { background: rgba(13, 41, 67, .88); }
.photo-viewer-header { flex: none; display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 16px 20px; }
.photo-viewer-header h2 { margin: 0; font-family: var(--display-font); font-weight: 500; font-size: 25px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.photo-viewer .icon-button { flex: none; width: 44px; height: 44px; }
.photo-viewer-stage { flex: 1; min-height: 0; padding: 0 12px; display: flex; align-items: center; justify-content: center; }
.photo-viewer-stage img { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.photo-viewer-footer { flex: none; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 16px 20px; }
.photo-viewer-footer p { min-width: 42px; margin: 0; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 14px 20px; border: 1px solid var(--gold); border-radius: 3px; background: var(--navy); box-shadow: var(--shadow); color: white; font-size: 13px; line-height: 1.5; font-weight: 700; width: max-content; max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Acceso: sello original y composición editorial de Arquitectura del Orden. */
.login-view { min-height: 100dvh; display: grid; grid-template-columns: 48% 52%; background: white; }
.login-art { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--navy); color: white; padding: 64px; }
.login-art::before { content: ""; position: absolute; inset: 32px; border: 1px solid rgba(227,190,47,.4); pointer-events: none; }
.login-art-content { position: relative; width: min(100%, 440px); }
.login-seal { display: block; width: 120px; height: auto; margin: 0 0 44px; }
.login-art .eyebrow { color: var(--gold); }
.login-art-title { font-family: var(--display-font); font-weight: 500; font-size: clamp(46px, 4.5vw, 70px); line-height: 1.05; letter-spacing: -.02em; margin: 18px 0 30px; }
.login-art-title em { color: var(--gold); }
.brand-rule { display: block; height: 1px; width: 64px; background: var(--gold); margin: 30px 0 24px; }
.login-art-caption { font-size: 12px; line-height: 1.8; max-width: 280px; margin: 0; }
.login-panel { width: min(410px, calc(100% - 80px)); margin: auto; padding: 56px 0; }
.login-panel .brand { margin-bottom: 52px; }
.login-panel h1 { font-family: var(--display-font); font-size: clamp(44px, 4.5vw, 62px); font-weight: 500; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 22px; }
.login-intro { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 30px; }
.login-form { display: flex; flex-direction: column; gap: 9px; }
.login-form label { font-size: 12px; font-weight: 700; }
.login-form input { min-height: 50px; padding: 0 14px; border: 1px solid #bac7d1; border-radius: 3px; background: white; font-size: 16px; margin-bottom: 10px; }
.login-form input:focus { border-color: var(--navy); }
.login-form input::placeholder { color: var(--muted); font-size: 13px; }
.form-error { color: #a34137; font-size: 12px; line-height: 1.5; margin: 0 0 8px; }
.guest-login { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.guest-login .button { justify-content: center; }
.guest-login p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }

.brand-logo { display: block; width: 56px; height: auto; flex: none; }
.brand-name { font-family: var(--display-font); font-size: 25px; font-weight: 500; line-height: .95; letter-spacing: -.015em; }
.brand-context { margin-left: 14px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.3); color: var(--gold); font-size: 11px; letter-spacing: .08em; }
.button svg { width: 18px; height: 18px; flex: none; }
.topbar :focus-visible, .editor-header :focus-visible { outline-color: var(--gold); }
.editor-header .eyebrow { color: var(--gold); }
.editor-header .icon-button { border-color: rgba(255,255,255,.3); background: transparent; color: white; }
.editor-header .icon-button:hover { background: rgba(255,255,255,.1); }
.editor-header .eyebrow, .photo-viewer-header h2 { max-width: 100%; }
.swatch { overflow: hidden; }
.swatch svg { display: block; width: 100%; height: 100%; stroke: none; }
.empty-icon svg { width: 36px; height: 36px; stroke-width: 1.4; }
.app-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding: 24px 0 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.app-footer span:first-child { font-family: var(--display-font); font-size: 20px; font-weight: 500; color: var(--navy); }
.app-footer span:last-child { align-self: center; }
.catalog-status { font-variant-numeric: tabular-nums; }
.selection-toolbar:has([aria-pressed="true"]) { padding: 14px; border: 1px solid var(--gold); background: #fff9e5; }
.item-card:focus-visible { outline-offset: 4px; }
.item-card.is-selected { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy); }
.archive-ribbon { left: auto; right: 12px; top: 44px; }

@media (min-width: 1100px) {
  .main-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, .9fr); column-gap: 44px; }
  .main-content > * { grid-column: 1 / -1; }
  .page-heading { grid-column: 1; grid-row: 1; }
  .catalog-switcher { grid-column: 2; grid-row: 1; align-self: center; padding: 0 0 0 28px; border: 0; border-left: 1px solid var(--line); margin-bottom: 28px; gap: 10px; }
  .catalog-select-field { flex-basis: 100%; }
  .catalog-select-field select { max-width: none; }
  .selection-toolbar { grid-column: 1; }
  .catalog-status { grid-column: 2; align-self: center; text-align: right; }
}

@media (max-width: 1100px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .photo-viewer { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
  .photo-viewer-header { padding: calc(12px + env(safe-area-inset-top)) 16px 12px; }
  .photo-viewer-footer { padding: 16px 12px calc(16px + env(safe-area-inset-bottom)); gap: 12px; }
  .photo-viewer-footer .button { padding: 0 12px; }
  .topbar { min-height: 76px; }
  .topbar-inner { min-height: 73px; gap: 8px; }
  .brand-logo { width: 42px; }
  .brand-name { font-size: 22px; }
  .brand { gap: 9px; }
  .brand-context { display: none; }
  .topbar-inner { padding: 0 20px; }
  .topbar-actions { gap: 4px; }
  .quiet-button span { display: none; }
  .quiet-button svg { width: 20px; height: 20px; }
  .main-content { padding: 28px 20px 96px; }
  .page-heading { margin-bottom: 29px; }
  .page-heading h1 { font-size: 50px; }
  .new-button { display: none; }
  .global-discount-panel { flex-wrap: wrap; gap: 12px; margin: -5px 0 25px; padding: 16px; }
  .global-discount-icon { width: 40px; height: 40px; }
  .global-discount-copy { flex: 1 1 calc(100% - 58px); }
  .global-discount-form { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
  .global-discount-form label { margin: 0; }
  .catalog-toolbar { flex-direction: column; gap: 0; align-items: stretch; }
  .catalog-search { flex-wrap: wrap; gap: 8px; }
  .search-box, #location-filter { width: 100%; }
  .tabs { gap: 24px; }
  .tab { padding-bottom: 14px; }
  .tag-toolbar { flex-wrap: wrap-reverse; gap: 7px; margin-top: 0; }
  .tag-filters { flex-basis: 100%; }
  .manage-tags-button { margin-left: auto; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .item-image { height: 155px; }
  .item-card-body { padding: 13px; }
  .item-title { font-size: 22px; }
  .quantity-badge { font-size: 10px; top: 9px; right: 9px; padding: 3px 6px; }
  .mobile-fab { display: grid; place-items: center; position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border: 0; border-radius: 3px; background: var(--gold); color: var(--navy); font-size: 32px; font-weight: 400; box-shadow: 0 8px 24px rgba(21, 58, 93, .2); z-index: 2; }
  .editor-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .tag-manager-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .tag-manager-body { max-height: calc(100dvh - 87px); padding: 20px 20px 30px; }
  .editor-header { padding: 22px 20px 17px; }
  .editor-body { padding: 0 20px 18px; }
  .editor-footer { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .login-view { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { width: min(420px, calc(100% - 48px)); padding: 50px 0; }
  .login-panel .brand { margin-bottom: 44px; }
}
@media (max-width: 500px) {
  .page-heading h1 { font-size: 46px; }
  .page-subtitle { font-size: 12px; }
  .item-image { height: 130px; }
  .item-card-bottom { padding-top: 15px; }
  .item-price { font-size: 14px; }
  .item-description { font-size: 12px; }
  .three-columns { grid-template-columns: 1fr 1fr; gap: 0 10px; }
  .three-columns .field:first-child { grid-column: 1 / -1; }
  .custom-discount-fields { margin-left: 0; justify-content: space-between; }
  .discount-preview { flex-wrap: wrap; }
  .discount-preview small { width: 100%; text-align: right; }
  .color-row { grid-template-columns: 42px minmax(0, 1fr) 76px 25px; gap: 6px; }
  .color-picker { width: 40px; }
  .color-row input[type="text"], .color-row input[type="number"] { font-size: 12px; padding: 8px; }
  .editor-header h2 { font-size: 29px; }
  .editor-footer .button { padding: 0 12px; font-size: 12px; }
  .archive-button { font-size: 11px; max-width: 70px; text-align: left; }
  .footer-actions { gap: 6px; }
  .photo-actions { flex-wrap: wrap; }
  .tag-row-actions .button { padding: 0 9px; }
  .tag-edit-row { flex-wrap: wrap; }
  .tag-edit-row input { flex-basis: 100%; }
}

@media (max-width: 500px) {
  .topbar-inner { padding-left: 16px; padding-right: 12px; }
  .topbar-actions { gap: 0; }
  .quiet-button { padding: 8px; min-width: 40px; }
  .brand-name { font-size: 21px; }
  .main-content { padding-left: 16px; padding-right: 16px; }
  .item-card-body { padding: 12px; }
  .item-title { font-size: 21px; }
  .catalog-actions { width: 100%; }
  .catalog-actions .button { flex: 1; padding-left: 10px; padding-right: 10px; }
  .global-discount-panel { padding: 14px; }
  .global-discount-copy h2 { font-size: 23px; }
  .global-discount-copy p { font-size: 12px; }
  .guest-notice { margin-top: 0; }
  .login-panel { width: min(410px, calc(100% - 48px)); padding: 36px 0; }
  .login-panel .brand-logo { width: 56px; }
  .login-panel .brand-name { font-size: 28px; }
  .selection-toolbar { gap: 10px; }
  .selection-toolbar .button { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
  .field input, .field textarea, .field select, .search-box input, #location-filter,
  .percent-input input, .create-tag-controls input, .tag-edit-row input,
  .color-row input[type="text"], .color-row input[type="number"] { font-size: 16px; }
  .color-row { grid-template-columns: 40px minmax(0, 1fr) 68px 44px; gap: 6px; }
  .color-remove { width: 44px; height: 44px; }
}
