:root{--page:#f7f4f0;--paper:#fff;--cream:#f0e9e2;--ink:#302d2a;--muted:#685f58;--green:#325c50;--green-deep:#24473e;--line:#ddd5cd;--soft:#faf8f5;--danger:#9a4338;--serif:Georgia,'Times New Roman',serif;--sans:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--page);color:var(--ink);font:15px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}[hidden]{display:none!important}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}p{line-height:1.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #82ac9f;outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.admin-header{min-height:88px;padding:8px max(24px,calc((100vw - 1400px)/2));background:#fff;border-bottom:1px solid var(--line);display:flex;gap:26px;align-items:center;justify-content:space-between}.brand-link{display:flex;align-items:center;flex:0 0 136px}.brand-link img{width:122px;height:66px;object-fit:contain}.admin-head-center{margin-right:auto;display:flex;flex-direction:column;gap:2px}.admin-head-center strong{font-size:17px}.admin-head-center span{font-size:13px;color:var(--muted)}.admin-head-right{display:flex;align-items:center;gap:14px}.admin-head-right a,.admin-head-right button{font-size:14px;font-weight:600;min-height:42px;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:9px;padding:9px 13px;background:#fff}.admin-head-right a:hover,.admin-head-right button:hover{background:var(--soft)}.admin-wrap{max-width:1440px;margin:auto;padding:28px 24px 100px}
.eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:#72695f;margin:0 0 6px}.login-card{margin:45px auto;background:#fff;padding:34px;border:1px solid var(--line);border-radius:16px;max-width:480px;box-shadow:0 12px 45px #5043380d}.login-card h1{font:normal 36px/1.2 var(--serif);margin-bottom:10px}.login-card p:not(.eyebrow){color:var(--muted)}.login-card form{display:grid;gap:18px;margin-top:24px}.login-card .btn{width:100%;margin-top:4px}.notice{background:#fff4dd;border:1px solid #e6cd99;border-radius:9px;padding:18px 22px;margin-bottom:20px}.notice p{margin:5px 0 0}.notice code{font-size:12px}
.admin-layout{display:grid;grid-template-columns:245px minmax(0,1fr);align-items:start;gap:28px}.admin-sidebar{position:sticky;top:20px;min-height:360px;padding:23px 15px;background:#fff;border:1px solid var(--line);border-radius:16px}.sidebar-kicker{font-size:12px;font-weight:800;color:var(--muted);padding:0 12px;margin:0 0 12px;letter-spacing:.11em}.admin-tabs{display:grid;gap:5px}.admin-tabs button{display:flex;gap:13px;align-items:center;min-height:52px;text-align:left;padding:11px 13px;border:0;background:transparent;border-radius:10px;color:#5b534c;font-size:15px;font-weight:650}.admin-tabs button:hover{background:var(--soft)}.admin-tabs button.active{background:#e5efea;color:var(--green-deep)}.tab-icon{font-family:var(--sans);width:24px;height:24px;display:grid;place-items:center;border:1px solid currentColor;border-radius:6px;font-size:17px;font-weight:500;line-height:1}.sidebar-hint{margin:24px 9px 0;padding:17px;border:1px solid #e0ded7;background:#f7f6f3;border-radius:10px;font-size:13px}.sidebar-hint strong{font-size:14px}.sidebar-hint p{color:var(--muted);font-size:13px;margin:6px 0 0}.admin-main{min-width:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:5px 0 24px}.page-heading h1{font:normal 38px/1.14 var(--serif);margin:0 0 9px}.page-heading p:not(.eyebrow){margin:0;color:var(--muted);font-size:15px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;border:1px solid #c9bcb0;border-radius:9px;padding:11px 17px;background:#fff;color:var(--ink);font-weight:650;font-size:14px;line-height:1.25;text-align:center}.btn-green{background:var(--green);color:#fff;border-color:var(--green)}.btn-green:hover{background:var(--green-deep);border-color:var(--green-deep)}.btn-light{background:#fff;color:#4a4039}.btn-light:hover{background:#f7f4f1}.btn-add-color{width:100%;border:2px dashed #b8c6bb;background:#f7fbf8;color:var(--green-deep);min-height:55px;margin:8px 0 14px}.btn-small{padding:9px 14px;min-height:40px;font-size:13px}
.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.stat-card{border:1px solid var(--line);background:#fff;border-radius:12px;padding:18px 17px}.stat-card strong{font-size:28px;line-height:1.2;display:block;color:var(--ink);font-weight:720;margin-bottom:4px}.stat-card span{color:var(--muted);font-size:13px}.catalog-toolbar{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}.search-label{flex:1;min-width:245px}.catalog-filters{display:flex;gap:6px;align-items:center;overflow-x:auto;max-width:100%;padding-bottom:2px}.catalog-filters button{border:1px solid var(--line);background:white;color:#675c54;border-radius:8px;padding:10px 13px;white-space:nowrap;font-size:13px;font-weight:600;min-height:45px}.catalog-filters button.active{background:var(--green);border-color:var(--green);color:#fff}.product-list,.orders-list,.promo-products-list{display:grid;gap:10px}.product-row{display:flex;gap:18px;align-items:center;padding:15px;background:#fff;border:1px solid var(--line);border-radius:13px;min-width:0}.product-thumb{width:82px;height:90px;flex:0 0 82px;object-fit:cover;background:#ede6df;border-radius:9px}.product-info{flex:1;min-width:0}.product-info h3{font-size:17px;margin:0 0 5px;font-weight:730}.product-meta{display:flex;flex-wrap:wrap;gap:8px;margin:7px 0}.product-info p{margin:0;color:var(--muted);font-size:13px}.product-price{font-weight:750;font-size:17px;white-space:nowrap;min-width:95px;text-align:right}.product-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.pill{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:650;background:#eee9e4;color:#685f57;line-height:1.2}.pill.yes{background:#e3eee8;color:#2a6149}.pill.no{background:#eeeae6;color:#776b63}.pill.promo{background:#f8eade;color:#a05232}.pill.warn{background:#fbf0dd;color:#91631d}.product-extra{position:relative}.product-extra summary{list-style:none;width:41px;min-height:41px;border:1px solid var(--line);border-radius:8px;text-align:center;padding-top:2px;font-size:23px;background:#fff;cursor:pointer}.product-extra summary::-webkit-details-marker{display:none}.product-extra[open] .extra-menu{position:absolute;right:0;top:48px;z-index:5;width:192px;display:grid;gap:3px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 24px #302d2a20}.extra-menu button{border:0;background:transparent;text-align:left;padding:11px 10px;border-radius:7px;font-size:13px;min-height:40px}.extra-menu button:hover{background:var(--soft)}.extra-menu .danger{color:var(--danger)}.section-footnote{margin:18px 4px 0;color:var(--muted);font-size:13px;line-height:1.6}.empty-list{padding:38px 26px;background:white;border:1px dashed #cfc1b5;border-radius:12px;text-align:center;color:var(--muted)}.empty-list strong{color:var(--ink);display:block;font-size:17px;margin-bottom:6px}
.panel-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;margin-bottom:18px}.panel-card h2{font:normal 25px/1.25 var(--serif);margin-bottom:10px}.panel-card .hint{margin:0 0 18px}.admin-form{display:grid;gap:14px;max-width:940px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label,.full-label,label:not(.toggle-setting):not(.upload-button):not(.search-label){display:flex;flex-direction:column;gap:7px}label{font-size:14px;font-weight:650;color:var(--ink)}label em{font-weight:700;color:#96533f;font-style:normal}label small,.hint{color:var(--muted);font-size:13px;font-weight:400;line-height:1.5}input:not([type=checkbox]):not([type=file]):not([type=hidden]),select,textarea{width:100%;min-height:47px;border:1px solid #c9beb3;border-radius:9px;padding:11px 13px;background:white;color:var(--ink);font-size:15px;outline-color:var(--green)}input::placeholder,textarea::placeholder{color:#877b70}textarea{resize:vertical;min-height:95px}input[type=checkbox]{accent-color:var(--green);height:20px;width:20px;flex:0 0 20px}.toggle-setting{display:flex;gap:13px;align-items:flex-start;padding:15px 14px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.toggle-setting>input{margin-top:2px}.toggle-setting span{display:grid;gap:3px}.toggle-setting strong{font-size:15px;line-height:1.3}.toggle-setting small{color:var(--muted);font-size:13px;font-weight:400;line-height:1.5}.preview-promo{background:#e8f0ea;color:var(--green-deep);border-left:4px solid #4d8d74;border-radius:8px;padding:17px;font-size:17px;font-weight:750}.promo-products-list{grid-template-columns:repeat(2,minmax(0,1fr))}.promo-product-row{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:10px;padding:12px;cursor:pointer}.promo-product-row img{width:54px;height:59px;border-radius:8px;object-fit:cover}.promo-product-row .promo-name{flex:1;font-size:14px;font-weight:700}.promo-product-row .promo-name small{display:block;color:var(--muted);font-weight:400}.promo-product-row input{margin-left:auto}.promo-product-row.is-eligible{background:#eef5f0;border-color:#bed6c8}
.orders-list .order-row{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px;align-items:center}.order-row h3{font-size:16px;margin:0 0 5px}.order-row p{font-size:13px;color:var(--muted);margin:4px 0}.order-row .order-summary{white-space:pre-wrap;max-width:660px}.order-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.order-controls select{width:160px;max-width:100%;font-size:14px}.save-settings{display:flex;justify-content:flex-end;margin-top:5px}.hero-photo-edit{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.hero-photo-edit img{width:245px;height:145px;object-fit:cover;border-radius:9px;background:var(--cream)}.hero-photo-edit>div{display:flex;flex-direction:column;gap:11px;align-items:flex-start}.upload-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:1px dashed #90afa3;border-radius:9px;padding:10px 16px;color:var(--green-deep);background:#f7fbf8;font-size:14px;font-weight:700;cursor:pointer;width:max-content;max-width:100%}.upload-button:hover{background:#eaf4ee}.delivery-row{display:grid;grid-template-columns:1.4fr .85fr 1fr 44px;gap:10px;align-items:end;border-bottom:1px solid #eee8e3;padding:11px 0}.delivery-row button,.variant-row button{min-height:43px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--danger);font-size:18px}.delivery-row label,.variant-row label{font-size:13px}.message{font-size:14px;line-height:1.5;padding:12px 15px;background:#e8f0ea;border:1px solid #cce1d3;color:#23543b;border-radius:9px;margin:0 0 15px}.message.error{background:#fff0ed;border-color:#efccc5;color:#903d2f}.admin-toast{position:fixed;z-index:101;bottom:25px;left:50%;transform:translate(-50%,100px);opacity:0;pointer-events:none;background:var(--green-deep);color:#fff;padding:14px 21px;border-radius:10px;box-shadow:0 8px 30px #0003;font-size:14px;font-weight:600;transition:transform .22s,opacity .22s;max-width:95vw}.admin-toast.show{opacity:1;transform:translate(-50%,0)}
/* Product editor */
.editor-dialog,.order-dialog{padding:0;background:#fff;color:var(--ink);border:0;border-radius:16px;box-shadow:0 24px 96px #1e1b1880;max-width:calc(100% - 24px)}.editor-dialog{width:min(970px,calc(100% - 24px));max-height:min(92dvh,950px)}.editor-dialog::backdrop,.order-dialog::backdrop{background:#1e201e9a}.editor-form{height:min(92dvh,950px);max-height:92dvh;display:flex;flex-direction:column}.editor-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:22px 29px 15px;flex:none}.editor-head h2{font:normal 31px/1.18 var(--serif);margin:0 0 5px}.editor-head p:last-child{color:var(--muted);font-size:13px;margin:0}.close{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:26px;line-height:1}.editor-steps{display:flex;gap:8px;margin:0 29px 15px}.editor-steps button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:43px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:#74695e;font-size:13px;font-weight:700}.editor-steps button span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e4ddd4;font-size:12px}.editor-steps button.active{border-color:#b7d6c5;background:#eaf4ed;color:var(--green-deep)}.editor-steps button.active span{background:var(--green);color:#fff}.editor-dialog #editorError{margin:0 29px 12px;flex:none}.editor-body{overflow-y:auto;padding:6px 29px 25px;min-height:0;flex:1}.editor-step{padding:4px 0 0}.step-intro{margin-bottom:22px}.step-intro h3{font:normal 25px var(--serif);margin-bottom:7px}.step-intro p{font-size:14px;color:var(--muted);margin:0}.editor-step>.full-label{margin-top:18px}.info-tip{padding:17px 18px;background:#f5f6f1;border-left:3px solid #97b1a2;font-size:14px;margin-top:22px;line-height:1.7}.info-tip strong{display:block;margin-bottom:3px}.editor-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:14px 29px;background:#fff;flex:none}.editor-actions #editorStepCounter{font-size:13px;color:var(--muted);font-weight:700}.editor-action-buttons{display:flex;gap:8px;align-items:center}.editor-action-buttons .btn{min-width:104px}.publish-checks{display:grid;gap:12px}.advanced-settings,.advanced-photos{border:1px solid var(--line);border-radius:10px;padding:14px 18px;margin:18px 0 0;background:#fff}.advanced-settings summary,.advanced-photos summary{font-size:14px;font-weight:700;color:var(--green-deep);cursor:pointer}.advanced-settings .form-grid{margin-top:17px}.advanced-photos>p{margin:12px 0}.final-summary{margin:20px 0 5px;border-radius:10px;border:1px solid #caddcf;background:#f0f6f1;padding:17px}.final-summary strong{font-size:15px}.final-summary p{font-size:13px;color:#4f6c59;margin:6px 0 0}
.color-gallery-list{display:grid;gap:14px;margin:10px 0}.color-card{border:1px solid #dcd2c8;border-radius:13px;background:#fff;overflow:hidden}.color-card__head{display:flex;gap:13px;align-items:center;padding:16px;background:#f9f7f4}.color-card__thumb{width:54px;height:57px;object-fit:cover;border-radius:9px;flex:0 0 54px;background:#e9ddd1}.color-card__text{flex:1;min-width:0}.color-card__text strong{display:block;font-size:16px}.color-card__text small{color:var(--muted);font-size:12px;font-weight:500}.color-card__head button{background:white;border:1px solid #d7cbc0;border-radius:8px;min-height:40px;padding:7px 11px;font-size:13px;font-weight:700;color:var(--green-deep)}.color-card__content{padding:18px 20px 21px}.color-card__content>label{max-width:450px}.color-card__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin-top:20px}.color-card h4{font-size:15px;margin:0 0 5px}.color-card p.hint{margin:0 0 13px}.color-gallery-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 14px}.photo-tile{position:relative;aspect-ratio:1;background:#eee7df;border-radius:8px;overflow:hidden}.photo-tile img{display:block;width:100%;height:100%;object-fit:cover}.photo-tile button{position:absolute;right:5px;top:5px;border:0;border-radius:50%;background:#fff;color:#a23b34;font-size:20px;width:30px;height:30px}.color-gallery-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.photo-count{font-size:13px;color:var(--muted)}.color-card__stock{display:grid;gap:8px}.size-head{display:grid;grid-template-columns:1fr 1fr 38px;gap:8px;font-size:12px;font-weight:750;color:var(--muted);margin-bottom:3px}.variant-row{display:grid;grid-template-columns:1fr 1fr 38px;align-items:center;gap:8px}.variant-row input{min-height:43px!important;padding:8px 10px!important}.variant-row button{min-height:42px}.size-add{border:1px dashed #b4c9ba;border-radius:9px;background:#f8fcf9;color:var(--green-deep);font-weight:700;font-size:13px;min-height:43px;padding:8px}.color-card__remove{margin-top:18px;border:0;background:transparent;color:var(--danger);font-size:13px;font-weight:700;padding:5px 0}.color-card__remove:hover{text-decoration:underline}
.photo-previews{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:15px 0}.order-dialog{width:min(650px,calc(100% - 24px));max-height:92dvh;overflow:auto}.order-fields{display:grid;gap:15px;padding:20px 28px 28px}.order-fields>label{display:grid;gap:7px}.order-dialog .editor-head{border-bottom:1px solid var(--line)}.form-actions{display:flex;justify-content:flex-end;margin-top:10px}
@media(max-width:1150px){.admin-layout{grid-template-columns:210px minmax(0,1fr);gap:17px}.admin-wrap{padding:20px 16px 70px}.product-row{gap:12px}.product-price{min-width:90px}.catalog-toolbar{display:grid}.promo-products-list{grid-template-columns:1fr}.product-actions{flex-direction:column}}
@media(max-width:860px){.admin-header{padding:6px 15px;gap:12px}.admin-head-center{display:none}.admin-layout{display:block}.admin-sidebar{position:static;min-height:0;padding:7px;background:transparent;border:0;border-radius:0;margin-bottom:20px}.admin-tabs{display:flex;gap:7px;overflow-x:auto;padding-bottom:6px}.admin-tabs button{white-space:nowrap;min-height:46px;padding:9px 14px;background:#fff;border:1px solid var(--line)}.admin-tabs button.active{border-color:#bfdbca}.sidebar-kicker,.sidebar-hint{display:none}.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.product-actions{flex-direction:row}}
@media(max-width:650px){body{font-size:15px}.admin-header{min-height:75px;padding:6px 12px}.brand-link{flex:0 0 115px}.brand-link img{width:112px;height:61px}.admin-head-right{gap:6px}.admin-head-right a,.admin-head-right button{padding:8px 10px;min-height:40px;font-size:12px}.admin-wrap{padding:13px 12px 80px}.page-heading{align-items:flex-start;gap:14px;flex-direction:column;margin:3px 0 18px}.page-heading h1{font-size:33px}.page-heading .btn{width:100%;min-height:50px}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.stat-card{padding:13px}.stat-card strong{font-size:25px}.stat-card span{font-size:12px}.catalog-toolbar{gap:10px}.search-label{min-width:0}.catalog-filters button{font-size:13px}.product-row{display:grid;grid-template-columns:74px minmax(0,1fr);gap:10px;padding:12px}.product-thumb{width:74px;height:83px;grid-row:1/3}.product-info h3{font-size:16px}.product-price{text-align:left;min-width:0;grid-column:2;grid-row:2}.product-actions{grid-column:1/3;justify-content:flex-end;border-top:1px solid #eee7e1;padding-top:12px}.product-actions .btn{flex:1}.product-extra summary{width:44px;min-height:44px}.panel-card{padding:19px 15px}.panel-card h2{font-size:23px}.form-grid{grid-template-columns:1fr;gap:15px}.orders-list .order-row{grid-template-columns:1fr}.order-controls{flex-wrap:wrap}.delivery-row{grid-template-columns:1fr 1fr;gap:10px}.delivery-row label:first-child{grid-column:1/3}.delivery-row button{min-height:47px;align-self:end}.hero-photo-edit img{width:100%;height:auto;aspect-ratio:2/1}.editor-dialog{height:100dvh;width:100vw;max-width:100vw;max-height:100dvh;border-radius:0;margin:0}.editor-form{height:100dvh;max-height:100dvh}.editor-head{padding:14px 16px 10px}.editor-head h2{font-size:25px}.editor-head p:last-child{display:none}.editor-steps{margin:0 12px 11px;gap:4px}.editor-steps button{gap:5px;flex-direction:column;line-height:1.15;min-height:50px;font-size:11px;padding:5px}.editor-steps button span{width:21px;height:21px;font-size:11px}.editor-dialog #editorError{margin:0 12px 8px}.editor-body{padding:4px 16px 20px}.step-intro h3{font-size:23px}.color-card__head{padding:12px;gap:9px}.color-card__thumb{width:48px;height:50px;flex-basis:48px}.color-card__head button{padding:6px 9px;min-height:43px}.color-card__content{padding:15px 12px 18px}.color-card__grid{grid-template-columns:1fr;gap:22px}.color-gallery-photos{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-actions{padding:11px 12px calc(12px + env(safe-area-inset-bottom));gap:4px;align-items:center}.editor-actions #editorStepCounter{font-size:11px;max-width:58px;line-height:1.2}.editor-action-buttons{gap:6px;flex:1;justify-content:flex-end}.editor-action-buttons .btn{font-size:13px;min-width:0;padding:9px 12px}.editor-action-buttons #cancelEditor{display:none}.photo-previews{grid-template-columns:repeat(3,1fr)}.publish-checks .toggle-setting{padding:13px 11px}.login-card{margin:25px auto;padding:23px}.login-card h1{font-size:31px}}

@media(max-width:650px){.admin-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:7px}.admin-tabs button{justify-content:center;font-size:13px;min-width:0;padding:8px 6px;gap:8px}.admin-tabs .tab-icon{width:22px;height:22px;font-size:14px;flex:0 0 22px}}

@media(max-width:650px){.catalog-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible}.catalog-filters button{white-space:normal;min-height:44px}}
