/* Monochrome themes; photographs keep their natural colors. */
:root{color-scheme:light;--bg:#fafafa;--ink:#171717;--muted:#626262;--line:#dcdcdc;--panel:#fff;--accent:#222;--soft:#eeeeee;--inverse:#fff;--hover:#3a3a3a}
:root[data-theme=dark]{color-scheme:dark;--bg:#111;--ink:#f4f4f4;--muted:#b2b2b2;--line:#393939;--panel:#1b1b1b;--accent:#eee;--soft:#252525;--inverse:#111;--hover:#d5d5d5}
body,.management-page{background:var(--bg);color:var(--ink)}
button,.button,.topline,#toast,.card-open,.role-tag,.feature-price,.sale-badge,.workspace-nav nav button.selected,.workspace-nav nav button:hover{background:var(--ink);color:var(--inverse);border-color:var(--ink)}
button:hover,.button:hover{background:var(--hover);color:var(--inverse);border-color:var(--hover)}
button.secondary,.secondary{background:transparent;color:var(--ink);border-color:var(--line)}
.secondary:hover{background:var(--ink);color:var(--inverse)}
input,textarea,select,.panel,.admin-item,.stats article,.feature-caption,.feature-label,.stock-tag,.skip-link{background:var(--panel);color:var(--ink);border-color:var(--line)}
input::placeholder,textarea::placeholder{color:var(--muted)}
footer,.workspace-nav,.hero-feature,.badge,.notice{background:var(--soft);color:var(--ink)}
.hero-editorial{background:var(--ink);color:var(--inverse)}.hero-editorial>p,.hero-editorial>span:not(.eyebrow){color:var(--inverse)}
.picture img,.hero-feature>img{mix-blend-mode:normal}.filters button{background:transparent;color:var(--muted);border:0}.filters button.active,.filters button:hover{color:var(--ink)}
#count{background:var(--ink);color:var(--inverse)}.original-price{color:var(--muted)}
.danger{background:var(--panel);color:#ad3325;border-color:#ad3325}:root[data-theme=dark] .danger,:root[data-theme=dark] .error{color:#ffaca4}:root[data-theme=dark] .success{color:#91d9a7}
.appearance-control{position:fixed;right:18px;bottom:18px;z-index:80;display:flex;align-items:center;gap:10px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:30px;padding:5px 12px;box-shadow:0 4px 20px #0002;font:12px/1.4 Arial,sans-serif}
.appearance-control select{width:auto;min-height:38px;padding:7px 5px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}.appearance-control select:focus-visible{outline:2px solid var(--ink)}
body{padding-bottom:70px}body>main>.line{background:var(--ink)}body>main>p{color:var(--muted)}
.product-gallery{min-width:0;align-self:start}.gallery-stage{position:relative;touch-action:pan-y}.gallery-stage .picture{aspect-ratio:1/1.1}.gallery-stage img{padding:20px}.gallery-prev,.gallery-next{position:absolute;top:50%;transform:translateY(-50%);min-height:44px;width:44px;padding:0;border-radius:50%;box-shadow:0 2px 10px #0002}.gallery-prev{left:12px}.gallery-next{right:12px}.gallery-count{text-align:center;font-size:12px;margin:10px 0}.gallery-thumbs{display:flex;gap:8px;overflow-x:auto;padding:4px}.gallery-thumbs button{background:var(--soft);border:2px solid transparent;padding:4px;min-width:64px;width:72px;height:76px;flex-shrink:0}.gallery-thumbs button[aria-pressed=true]{border-color:var(--ink)}.gallery-thumbs img{width:100%;height:100%;object-fit:contain}
.image-editor{min-width:0;padding:16px;border:1px solid var(--line);border-radius:3px}.image-editor legend{font-size:14px}.image-editor .note{margin:0 0 12px}.image-editor ol{list-style:none;padding:0;margin:0 0 16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}.image-editor li{min-width:0;background:var(--soft);padding:8px;text-align:center;font-size:11px}.image-editor li>img{height:100px;width:100%;object-fit:contain}.image-editor li>div{display:flex;justify-content:center;gap:4px;margin-top:6px}.image-editor li button{padding:3px;min-height:32px;min-width:30px;gap:0;font-size:14px}.image-editor input{max-width:100%}
@media(prefers-reduced-motion:no-preference){body,header,footer,.panel,.workspace-nav,.appearance-control{transition:background-color .25s,color .25s,border-color .25s}}
@media(max-width:600px){.appearance-control{right:10px;bottom:10px}.appearance-control>span{display:none}.gallery-stage .picture{aspect-ratio:1}.gallery-thumbs button{width:60px;height:64px}}

/* Product brand is separate from the shop name and category. */
.product-brand{display:block;font:500 12px/1.5 Arial,Helvetica,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#795619;overflow-wrap:anywhere;margin:12px 0 5px}
:root[data-theme=dark] .product-brand{color:#d7b977}
.card .product-name,.feature-caption .product-name,.split .product-name{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.025em}
.card .product-name{font-size:24px;line-height:1.18;margin:4px 0 13px}.feature-caption .product-brand{margin:5px 0 3px}.split .product-brand{margin-top:22px}.split .product-name{margin-top:5px}.cart-row .product-brand,.admin-product-top .product-brand{margin:0 0 4px}
@media(max-width:600px){.card .product-name{font-size:21px}.product-brand{font-size:11px;letter-spacing:.12em}}

.hero-rotator{min-width:0;display:flex;flex-direction:column}.hero-rotator>.hero-feature{display:block;flex:1;width:100%}.hero-controls{display:flex;align-items:center;justify-content:center;gap:12px;padding:10px;background:var(--panel);color:var(--ink);border:1px solid var(--line)}.hero-controls button{min-height:38px;min-width:38px;padding:8px 12px;font-size:12px;gap:0}.hero-controls>span{font-size:12px;min-width:48px;text-align:center}.hero-controls button[hidden]{display:none}.hero-controls [data-hero-pause]{margin-left:auto}.hero-rotator .feature-caption h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hero-rotator .feature-caption .product-brand{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.hero-rotator>.hero-feature{flex:none;aspect-ratio:1/1}.hero-controls{gap:8px}}

.hero-rotator>.hero-feature{height:clamp(440px,42vw,590px);min-height:0;flex:none}.hero-rotator>.hero-feature>img{position:absolute;inset:0;height:100%;max-height:none}
@media(max-width:600px){.hero-rotator>.hero-feature{height:auto;aspect-ratio:1/1}}

.bulk-products{margin-bottom:20px}.bulk-products h3{font-size:20px}.bulk-products .row{gap:8px}.bulk-products button{min-height:40px;font-size:12px;padding:10px 12px}.bulk-products .note{margin:12px 0}.bulk-products [role=status]:empty{display:none}

.catalog-search{margin:22px 0 12px}.catalog-search>label{margin-bottom:8px;font-size:13px}.catalog-search>div{display:flex;gap:10px}.catalog-search input{flex:1;min-width:0}.catalog-search button{flex-shrink:0}.catalog-search button[hidden]{display:none}.quick-category{flex-basis:100%;max-width:100%;margin-top:4px}.quick-category select{font-size:14px;padding:9px 10px}.product-flags{align-items:center}
@media(max-width:600px){.catalog-search>div{flex-wrap:wrap}.catalog-search input{flex-basis:100%}}

.category-move{display:flex;gap:6px;align-self:center}.category-move button{min-width:42px;min-height:42px;padding:8px;font-size:20px}.category-list form{scroll-margin:20px}#category-order-status:empty{display:none}#category-order-status{font-size:13px;margin:20px 0}

.category-message-edit{flex-basis:100%;width:100%;min-width:0}
.category-message-edit textarea{min-height:110px;width:100%;resize:vertical}
.category-inquiry{grid-column:1/-1;width:100%;padding:clamp(24px,5vw,64px);text-align:left}
.category-inquiry .category-message{white-space:pre-wrap;overflow-wrap:anywhere;max-width:38ch;font-size:clamp(22px,2.6vw,36px);font-weight:700;line-height:1.35;letter-spacing:-.02em;margin:22px 0 12px;color:var(--ink)}
.category-inquiry .button{margin:16px 0;max-width:100%}

/* Native popup options need explicit foreground and background colors. */
.appearance-control select{background:var(--panel);color:var(--ink);color-scheme:inherit;min-width:120px}
select option,select optgroup{background-color:var(--panel);color:var(--ink)}
