@charset "utf-8";
[hidden] { display: none !important; }
.admin-page { min-height: 100vh; background: #f6f4ec; color: #24332e; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.login-screen { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; background: #243f33; padding: 30px 20px; }
.login-backdrop { position: absolute; width: 740px; height: 740px; left: 50%; top: 50%; border: 1px solid rgba(230,199,144,.1); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 45px rgba(230,199,144,.022),0 0 0 125px rgba(230,199,144,.018),0 0 0 220px rgba(230,199,144,.014); }
.login-brand { position: absolute; top: 34px; left: clamp(22px,6vw,92px); color: var(--paper); text-decoration: none; display: flex; align-items: center; gap: 11px; }
.login-brand .wordmark-icon { border-color: #d5bf93; color: #f3ead5; }
.login-brand .wordmark-copy small { color: rgba(245,241,225,.54); }
.login-card { width: min(100%, 424px); position: relative; z-index: 1; padding: 47px 46px 35px; border: 1px solid rgba(238,224,187,.13); border-radius: 8px; background: #f7f3e8; box-shadow: 0 24px 85px rgba(7,22,14,.28); }
.login-ornament { position: absolute; right: 31px; top: 20px; color: #bd8358; font-size: 24px; }
.admin-kicker { margin: 0 0 8px; color: #9b6545; font-size: 8px; font-weight: 700; letter-spacing: .19em; }
.login-card h1 { margin: 0; color: var(--forest); font: 45px/1 var(--serif); letter-spacing: -.04em; }
.login-copy { margin: 11px 0 25px; color: #7a7b6e; font-size: 12px; line-height: 1.65; }
.field-label { display: block; margin: 0 0 8px; color: #4d584e; font-size: 10px; font-weight: 650; }
.password-wrap { height: 46px; padding: 0 5px 0 12px; display: flex; align-items: center; border: 1px solid #c9c5b5; border-radius: 4px; background: rgba(255,255,255,.45); }
.password-wrap:focus-within { border-color: #517258; box-shadow: 0 0 0 3px rgba(81,114,88,.1); }
.password-wrap input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; font-size: 14px; }
.password-wrap button { width: 34px; height: 34px; border: 0; background: transparent; color: #7a7c70; cursor: pointer; }
.form-error { min-height: 17px; margin: 7px 0 2px; color: #a3422e; font-size: 10px; }
.solid-button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 17px; padding: 0 18px; border: 1px solid var(--forest); border-radius: 4px; background: var(--forest); color: #fff9e9; cursor: pointer; font-size: 10px; font-weight: 650; letter-spacing: .04em; transition: background .17s,border .17s,transform .17s; }
.solid-button:hover { border-color: #1c3429; background: #1c3429; transform: translateY(-1px); }
.solid-button:disabled { opacity: .62; cursor: progress; transform: none; }
.solid-button span { color: #d9a273; font-size: 16px; }
.login-submit { width: 100%; height: 47px; justify-content: space-between; padding: 0 16px; font-size: 11px; }
.login-back { display: block; margin-top: 18px; color: #7e806f; text-align: center; text-decoration: none; font-size: 10px; }
.login-back:hover { color: var(--rust); }
.login-footer { position: absolute; bottom: 22px; color: rgba(244,240,225,.32); font-size: 8px; letter-spacing: .2em; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0,1fr); }
.admin-sidebar { min-height: 100vh; padding: 29px 16px 20px; display: flex; flex-direction: column; position: sticky; top: 0; align-self: start; height: 100vh; background: #243f33; color: #ede9d8; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; text-decoration: none; color: #f7f1df; }
.admin-brand .wordmark-icon { width: 37px; height: 37px; border-color: #c7b18b; color: #f1e6cb; font-size: 28px; }
.admin-brand .wordmark-copy strong { font-size: 12px; }
.admin-brand .wordmark-copy small { color: rgba(245,241,225,.52); font-size: 7px; }
.sidebar-divider { height: 1px; margin: 24px 0 24px; background: rgba(242,234,207,.15); }
.sidebar-caption { margin: 0 10px 11px; color: rgba(242,234,207,.42); font-size: 8px; letter-spacing: .18em; }
.admin-nav { display: grid; gap: 5px; }
.admin-nav-button { width: 100%; height: 43px; padding: 0 11px; display: grid; grid-template-columns: 21px 1fr 12px; align-items: center; gap: 8px; border: 0; border-radius: 4px; background: transparent; color: rgba(245,241,225,.72); text-align: left; cursor: pointer; font-size: 10px; }
.admin-nav-button:hover { background: rgba(249,241,218,.08); color: #fffbea; }
.admin-nav-button.is-active { background: rgba(222,203,161,.16); color: #fff9e6; }
.admin-nav-button.is-active .nav-icon { color: #db9b68; }
.nav-icon { color: #bdc4a4; font-size: 18px; text-align: center; }
.nav-nav { opacity: 0; color: #d99b68; font-size: 14px; }
.admin-nav-button.is-active .nav-nav { opacity: 1; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 6px; }
.public-menu-link,.logout-button { min-height: 39px; padding: 0 11px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 3px; background: transparent; color: rgba(244,240,224,.68); text-decoration: none; text-align: left; cursor: pointer; font-size: 9px; }
.public-menu-link:hover,.logout-button:hover { color: white; background: rgba(249,241,218,.08); }
.public-menu-link span,.logout-button span { color: #db9b68; font-size: 15px; }
.admin-main { min-width: 0; }
.admin-topbar { height: 59px; padding: 0 clamp(22px,4vw,62px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(45,60,48,.12); background: rgba(250,248,238,.62); }
.admin-breadcrumb { display: flex; gap: 12px; align-items: center; font-size: 8px; letter-spacing: .13em; }
.admin-breadcrumb span { color: #9b9a89; }
.admin-breadcrumb i { color: #beb9a8; font-style: normal; }
.admin-breadcrumb strong { color: var(--forest); font-size: 8px; }
.save-indicator { display: flex; align-items: center; gap: 7px; color: #7a7f6e; font-size: 9px; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: #77a16f; box-shadow: 0 0 0 3px rgba(119,161,111,.12); }
.save-indicator.is-saving .save-dot { background: #c48b50; animation: pulse .8s infinite alternate; }
.save-indicator.has-error .save-dot { background: #bf5943; box-shadow: 0 0 0 3px rgba(191,89,67,.12); }
@keyframes pulse { to { opacity: .38; } }
.admin-view { display: none; max-width: 1330px; padding: 44px clamp(22px,4vw,62px) 75px; margin: 0 auto; }
.admin-view.is-visible { display: block; }
.view-heading { margin-bottom: 29px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.view-heading h1 { margin: 0; color: var(--forest); font: 40px/1.05 var(--serif); letter-spacing: -.04em; }
.view-subtitle { margin: 9px 0 0; color: #7c7e70; font-size: 11px; }
.view-heading > .solid-button { margin-bottom: 2px; }
.stats-row { margin-bottom: 24px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.stat-card { min-height: 98px; padding: 15px 17px; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; align-items: center; border: 1px solid rgba(56,70,50,.12); border-radius: 5px; background: rgba(252,250,242,.65); }
.stat-card > span { grid-column: 1; color: #8e8f7e; font-size: 8px; letter-spacing: .14em; }
.stat-card strong { grid-column: 1; color: var(--forest); font: 30px/.9 var(--serif); }
.stat-card small { grid-column: 2; grid-row: 2; align-self: end; color: #969585; font-size: 9px; }
.list-toolbar { margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.admin-search { height: 40px; width: min(350px,50%); padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(56,70,50,.18); border-radius: 4px; background: rgba(255,255,255,.37); color: #a06343; }
.admin-search > span { font: 22px var(--serif); }
.admin-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }
.admin-search input::placeholder { color: #999889; }
.select-wrap { position: relative; }
.select-wrap select,.form-field select { min-height: 39px; padding: 0 33px 0 11px; appearance: none; border: 1px solid rgba(56,70,50,.18); border-radius: 4px; outline: 0; background: #f9f7ef; color: #526052; font-size: 10px; cursor: pointer; }
.select-arrow { position: absolute; top: 50%; right: 11px; transform: translateY(-50%); pointer-events: none; color: #96927d; }
.result-count { margin-left: auto; color: #969585; font-size: 9px; }
.product-list { overflow: hidden; border: 1px solid rgba(56,70,50,.13); border-radius: 5px; background: rgba(252,250,242,.65); }
.product-row { min-height: 72px; padding: 9px 14px; display: grid; grid-template-columns: 34px minmax(0,1fr) 112px 91px 92px 74px; align-items: center; gap: 12px; border-bottom: 1px solid rgba(56,70,50,.1); }
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: rgba(239,233,214,.37); }
.product-avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: #e5dcc3; color: var(--rust); font: italic 18px var(--serif); }
.product-avatar img { width: 100%; height: 100%; object-fit: cover; }
.product-title { min-width: 0; }
.product-title strong { display: block; overflow: hidden; color: #33483c; font: 16px/1.15 var(--script); text-overflow: ellipsis; white-space: nowrap; }
.product-title small { display: block; margin-top: 4px; overflow: hidden; color: #929182; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.product-category { color: #6f7969; font-size: 9px; }
.product-price { color: var(--forest); font: 16px var(--serif); text-align: right; white-space: nowrap; }
.status-pill { justify-self: start; padding: 5px 8px; border-radius: 20px; background: #e1eadc; color: #587050; font-size: 8px; white-space: nowrap; }
.status-pill.is-hidden { background: #eee6d7; color: #97735a; }
.row-actions { display: flex; justify-content: end; align-items: center; gap: 5px; }
.icon-button,.row-action { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #788072; cursor: pointer; font-size: 14px; }
.icon-button:hover,.row-action:hover { border-color: rgba(52,74,58,.15); background: #ece8db; color: var(--forest); }
.row-action.delete:hover { color: #ac4e38; }
.row-order { display: none; gap: 0; }
.row-order .row-action { width: 22px; height: 25px; font-size: 12px; }
.product-list.show-order .product-row { grid-template-columns: 34px minmax(0,1fr) 105px 91px 90px 74px; }
.admin-empty { padding: 50px; border: 1px dashed #c8c3b4; border-radius: 5px; color: #7c7e70; text-align: center; font: 20px var(--serif); }
.category-admin-list { display: grid; gap: 8px; }
.category-admin-card { min-height: 68px; padding: 9px 13px; display: grid; grid-template-columns: 38px minmax(0,1fr) 115px 94px 78px; align-items: center; gap: 12px; border: 1px solid rgba(56,70,50,.13); border-radius: 5px; background: rgba(252,250,242,.65); }
.category-grip { color: #aea893; text-align: center; font-size: 17px; }
.category-names strong { color: #354c3d; font: 17px var(--serif); }
.category-names small { display: block; margin-top: 3px; color: #919181; font-size: 9px; }
.category-count { color: #838576; font-size: 9px; }
.category-order { display: flex; justify-content: center; gap: 3px; }
.category-order .row-action { width: 25px; height: 28px; }
.category-actions { display: flex; justify-content: end; gap: 3px; }
.category-active { justify-self: start; padding: 5px 8px; border-radius: 20px; color: #5c7555; background: #e1eadc; font-size: 8px; }
.category-active.is-off { color: #99745a; background: #eee6d7; }
.info-note { margin-top: 21px; padding: 13px 15px; display: flex; align-items: start; gap: 10px; border-radius: 4px; background: #eee8d6; color: #766b53; }
.info-note span { color: var(--rust); font-size: 15px; }
.info-note p { margin: 0; font-size: 9px; line-height: 1.6; }
.campaign-settings { border-color: rgba(164,98,62,.24); background: linear-gradient(135deg,rgba(194,131,83,.06),transparent 60%),rgba(252,250,242,.78); }
.campaign-enable-row { min-height: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.campaign-enable-row > small,.campaign-help { color: #77796d; font-size: 9px; line-height: 1.65; }
.campaign-help { margin: 0; padding: 10px 12px; border-left: 2px solid #c28353; background: rgba(238,232,214,.6); }
.settings-form { border: 1px solid rgba(56,70,50,.13); border-radius: 5px; background: rgba(252,250,242,.65); }
.settings-section { padding: 23px 25px; display: grid; grid-template-columns: 225px minmax(0,1fr); gap: 23px; border-bottom: 1px solid rgba(56,70,50,.1); }
.settings-section-title { display: flex; gap: 10px; align-items: start; }
.settings-symbol { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border: 1px solid rgba(157,97,64,.32); border-radius: 50%; color: #a26445; font: 14px var(--serif); }
.settings-section-title h2 { margin: 2px 0 4px; color: #344b3d; font: 20px var(--serif); }
.settings-section-title p { margin: 0; color: #919183; font-size: 9px; }
.form-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 13px; }
.form-field { min-width: 0; display: grid; gap: 6px; color: #596356; font-size: 9px; font-weight: 650; }
.form-field > span small { display: block; margin-top: 4px; color: #a09984; font-size: 8px; font-weight: 400; }
.form-field input,.form-field textarea,.form-field select { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #d4d0c1; border-radius: 3px; outline: 0; background: #faf8f1; color: #374b3e; font-size: 10px; font-weight: 400; }
.form-field textarea { min-height: 67px; line-height: 1.5; resize: vertical; }
.form-field input:focus,.form-field textarea:focus,.form-field select:focus { border-color: #618266; box-shadow: 0 0 0 3px rgba(92,125,97,.1); }
.field-span-2 { grid-column: 1/-1; }
.settings-footer { padding: 16px 25px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.settings-footer > span { color: #898a7b; font-size: 9px; }
.settings-footer .solid-button { min-width: 168px; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; padding: 25px; display: grid; place-items: center; overflow: auto; background: rgba(16,30,23,.58); backdrop-filter: blur(4px); }
.editor-modal { width: min(100%, 720px); max-height: min(91vh,960px); overflow: auto; border: 1px solid rgba(233,220,183,.55); border-radius: 7px; background: #f6f3e8; box-shadow: 0 26px 90px rgba(6,22,14,.3); }
.category-modal { width: min(100%, 500px); }
.modal-header { position: sticky; z-index: 2; top: 0; padding: 20px 24px 17px; display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid rgba(56,70,50,.12); background: #f6f3e8; }
.modal-header h2 { margin: 0; color: var(--forest); font: 28px var(--serif); }
.modal-header .admin-kicker { margin-bottom: 5px; }
.icon-button { width: 34px; height: 34px; border-color: #d4d0c1; font-size: 23px; }
.editor-form { padding: 20px 24px 0; }
.editor-form .form-columns { gap: 13px; }
.price-input { display: flex; align-items: center; border: 1px solid #d4d0c1; border-radius: 3px; background: #faf8f1; }
.price-input:focus-within { border-color: #618266; box-shadow: 0 0 0 3px rgba(92,125,97,.1); }
.price-input > span { padding-left: 10px; color: #ac704e; font-size: 12px; }
.form-field .price-input input { border: 0; background: transparent; box-shadow: none; }
.upload-control { width: 100%; min-height: 38px; padding: 7px 9px; display: flex; align-items: center; gap: 8px; border: 1px dashed #b9b4a2; border-radius: 3px; color: #73796b; cursor: pointer; font-size: 8px; font-weight: 400; }
.upload-control:hover { border-color: #7c9677; background: #f1efe4; }
.upload-control input { display: none; }
.upload-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #e5e0cf; color: var(--forest); font-size: 13px; }
.image-preview { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.image-preview img { width: 52px; height: 40px; border-radius: 3px; object-fit: cover; }
.image-preview button { padding: 5px 0; border: 0; background: transparent; color: #aa513d; cursor: pointer; font-size: 8px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 2px; }
.toggle-field { display: inline-flex; align-items: center; gap: 8px; color: #5e6759; font-size: 9px; cursor: pointer; }
.toggle-field input { position: absolute; opacity: 0; }
.toggle-ui { width: 28px; height: 16px; position: relative; border-radius: 10px; background: #cecabd; transition: background .15s; }
.toggle-ui::after { content: ""; position: absolute; width: 12px; height: 12px; top: 2px; left: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: transform .15s; }
.toggle-field input:checked + .toggle-ui { background: #527459; }
.toggle-field input:checked + .toggle-ui::after { transform: translateX(12px); }
.toggle-field input:focus-visible + .toggle-ui { outline: 2px solid #aa704c; outline-offset: 2px; }
.modal-footer { position: sticky; bottom: 0; margin: 21px -24px 0; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid rgba(56,70,50,.13); background: #f6f3e8; }
.modal-footer > div { display: flex; align-items: center; gap: 8px; }
.quiet-button { min-height: 39px; padding: 0 12px; border: 0; background: transparent; color: #7e8173; cursor: pointer; font-size: 9px; }
.quiet-button:hover { color: var(--rust); }
.delete-button { min-height: 35px; padding: 0 8px; border: 0; background: transparent; color: #a64935; cursor: pointer; font-size: 9px; }
.delete-button:hover { text-decoration: underline; }
.toast { max-width: min(400px,calc(100vw - 35px)); min-width: 160px; padding: 12px 16px; position: fixed; z-index: 50; right: 20px; bottom: 22px; transform: translateY(17px); border: 1px solid rgba(255,255,255,.16); border-radius: 4px; background: #274739; color: #faf5e6; opacity: 0; pointer-events: none; box-shadow: 0 9px 30px rgba(25,43,31,.2); font-size: 10px; line-height: 1.4; transition: opacity .18s,transform .18s; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { background: #853f31; }

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 205px minmax(0,1fr); }
  .admin-sidebar { padding-left: 11px; padding-right: 11px; }
  .product-row { grid-template-columns: 34px minmax(0,1fr) 91px 79px 70px; gap: 8px; }
  .product-category { display: none; }
  .product-list.show-order .product-row { grid-template-columns: 34px minmax(0,1fr) 90px 80px 70px; }
  .settings-section { grid-template-columns: 180px minmax(0,1fr); padding: 20px; }
}
@media (max-width: 680px) {
  .admin-shell { display: block; }
  .admin-sidebar { width: 100%; height: auto; min-height: 0; padding: 10px 13px 0; position: static; }
  .admin-brand { padding: 0 3px 10px; }
  .admin-brand .wordmark-icon { width: 31px; height: 31px; font-size: 23px; }
  .sidebar-divider,.sidebar-caption,.sidebar-bottom { display: none; }
  .admin-nav { display: flex; gap: 3px; overflow-x: auto; }
  .admin-nav-button { width: auto; min-width: max-content; height: 39px; grid-template-columns: 16px 1fr; gap: 5px; padding: 0 10px; font-size: 9px; }
  .nav-nav { display: none; }
  .nav-icon { font-size: 14px; }
  .admin-topbar { height: 45px; padding: 0 18px; }
  .admin-view { padding: 26px 16px 45px; }
  .view-heading { align-items: start; margin-bottom: 21px; }
  .view-heading h1 { font-size: 34px; }
  .view-subtitle { max-width: 270px; font-size: 9px; line-height: 1.55; }
  .view-heading > .solid-button { min-height: 38px; padding: 0 11px; gap: 7px; font-size: 8px; white-space: nowrap; }
  .stats-row { gap: 6px; margin-bottom: 16px; }
  .stat-card { min-height: 76px; padding: 10px 9px; }
  .stat-card > span { font-size: 6px; }
  .stat-card strong { font-size: 24px; }
  .stat-card small { grid-column: 1/-1; grid-row: 3; font-size: 7px; }
  .list-toolbar { flex-wrap: wrap; gap: 7px; }
  .admin-search { width: 100%; }
  .select-wrap select { min-height: 34px; }
  .result-count { font-size: 8px; }
  .product-list { border-radius: 4px; }
  .product-row { min-height: 73px; padding: 9px; grid-template-columns: 32px minmax(0,1fr) 66px 65px; gap: 7px; }
  .product-avatar { width: 31px; height: 31px; }
  .product-title strong { font-size: 14px; }
  .product-title small { font-size: 7px; }
  .product-price { font-size: 13px; }
  .status-pill { padding: 4px 5px; font-size: 7px; }
  .row-actions { grid-column: 2/-1; grid-row: 2; justify-content: start; margin-top: -13px; }
  .row-actions .row-action { width: 24px; height: 22px; font-size: 12px; }
  .category-admin-card { min-height: 64px; padding: 8px; grid-template-columns: 20px minmax(0,1fr) auto; gap: 8px; }
  .category-names strong { font-size: 14px; }
  .category-count { display: none; }
  .category-order { grid-column: 2; justify-content: start; margin-top: -7px; }
  .category-actions { grid-column: 3; grid-row: 1; }
  .category-active { display: none; }
  .info-note { padding: 11px; }
  .settings-section { padding: 17px 14px; grid-template-columns: 1fr; gap: 16px; }
  .settings-section-title h2 { font-size: 18px; }
  .form-columns { gap: 10px; }
  .settings-footer { padding: 13px; }
  .settings-footer > span { max-width: 145px; font-size: 8px; line-height: 1.5; }
  .settings-footer .solid-button { min-width: 0; padding: 0 11px; font-size: 8px; }
  .modal-backdrop { padding: 9px; align-items: end; }
  .editor-modal { max-height: 94vh; border-radius: 7px 7px 0 0; }
  .modal-header { padding: 15px 15px 12px; }
  .modal-header h2 { font-size: 25px; }
  .editor-form { padding: 15px 15px 0; }
  .editor-form .form-columns { gap: 10px; }
  .form-field { font-size: 8px; }
  .form-field input,.form-field textarea,.form-field select { min-height: 35px; padding: 8px; font-size: 9px; }
  .modal-footer { margin: 17px -15px 0; padding: 10px 15px calc(10px + env(safe-area-inset-bottom)); }
  .modal-footer .solid-button { min-height: 39px; padding: 0 11px; gap: 7px; font-size: 8px; }
  .quiet-button { min-height: 39px; padding: 0 7px; font-size: 8px; }
  .login-card { padding: 39px 25px 27px; }
  .login-brand { top: 21px; }
  .login-card h1 { font-size: 40px; }
  .login-footer { bottom: 13px; }
}
