/* Editorial controls. Explicit foreground/background pairs in both themes. */
:root{--btn-bg:#282722;--btn-fg:#fffdf6;--btn-hover:#47443b;--btn-border:#c7c1b5;--btn-soft:#ede9e1}
html[data-theme=dark]{--btn-bg:#e9e5d9;--btn-fg:#20211d;--btn-hover:#fffaf0;--btn-border:#57594f;--btn-soft:#2b2d27}
html body :is(.button,.contact,.text-link,.card-add,.gallery-add,#backCatalog,#resetFilters){display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:12px 18px;border:1px solid var(--btn-bg);border-radius:4px;background:var(--btn-bg);color:var(--btn-fg);box-shadow:none;font:600 13px/1.3 Arial,Helvetica,sans-serif;letter-spacing:.1px;text-decoration:none;white-space:nowrap;cursor:pointer;position:relative;isolation:isolate;overflow:hidden;filter:none;transform:none;transition:background .25s,color .25s,border-color .25s,box-shadow .25s}
html body :is(.button,.contact,.text-link,.card-add,.gallery-add) :is(span,svg){color:inherit;flex-shrink:0}
html body :is(.button,.contact,.text-link,.card-add,.gallery-add)::before,html body :is(.button,.contact,.text-link,.card-add,.gallery-add)::after{content:none}
html body :is(.runway-secondary,.button.outline,#resetFilters){background:transparent;color:var(--ink);border-color:var(--btn-border)}
html body .runway-actions{gap:10px;max-width:390px}
html body .runway-actions .button{border-radius:4px;font-size:13px;min-height:48px}
html body .catalog-access{flex-wrap:wrap}
html body .catalog-access .button.primary{max-width:none;flex:0 0 auto;width:auto;font-size:13px;background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg);border-radius:4px}
html body .card .card-add,html body .grid.compact-grid .card-add{width:100%;min-height:44px;padding:10px 12px;border-radius:3px;background:transparent;color:var(--ink);border:1px solid var(--btn-border);box-shadow:none;gap:6px}
html body .card .card-add .button-label,html body .grid.compact-grid .card-add .button-label{font:600 12px/1.3 Arial,Helvetica,sans-serif;white-space:nowrap;min-width:0;text-align:left;flex:0 1 auto}
html body .add-mark,html body .card .card-add .add-mark{display:inline-block;padding:0;font-size:17px;line-height:1;width:18px;flex:0 0 18px;text-align:center;background:none;border:0;border-radius:0;transition:transform .25s}
html body :is(.product-add,.gallery-nav button.gallery-add,.cart-dialog #sendOrder){border-radius:4px;min-height:48px;font-size:13px;background:var(--btn-bg);color:var(--btn-fg)}
html body :is(.card-add,.product-add,.gallery-add).is-selected{background:var(--btn-soft);color:var(--ink);border-color:var(--wine);box-shadow:inset 3px 0 0 var(--wine)}
html body .filters{gap:6px}
html body .filters button{border:1px solid var(--btn-border);border-radius:3px;padding:10px 13px;min-height:42px;background:transparent;color:var(--ink);font-size:12px;transition:background .25s,color .25s}
html body .filters button.active,html body .catalog-view button[aria-pressed=true]{background:var(--btn-bg);color:var(--btn-fg);border-color:var(--btn-bg)}
html body :is(.bag,.runway-product,.cart-edit,.clear,.remove,.close,.theme-toggle,#slidePause,.catalog-view button,.photo-carousel-controls button,.gallery-pager button,.zoom-controls button){border:1px solid var(--btn-border);border-radius:4px;background:var(--surface);color:var(--ink);box-shadow:none;transition:background .25s,border-color .25s;cursor:pointer}
html body .bag{padding:8px 12px;min-height:42px}
html body :is(.cart-edit,.clear){padding:8px 12px;min-height:40px;font-size:12px}
html body :is(.close,.remove,.theme-toggle,#slidePause,.catalog-view button,.photo-carousel-controls button,.gallery-pager button,.zoom-controls button){min-width:38px;min-height:38px}
html body .variant{border-radius:3px;transition:box-shadow .25s}
html body .variant.selected{box-shadow:0 0 0 2px var(--wine)}
html body .messengers>button{width:44px;height:44px;border-radius:12px;border:1px solid var(--btn-border);background:var(--surface);color:var(--ink);box-shadow:0 3px 12px #00000012}
html body .messengers #messengerToggle,html body .messengers .floating-cart{background:var(--btn-bg);color:var(--btn-fg)}
html body .messenger-links a{border-radius:4px;min-height:44px;transition:transform .25s}
html body :is(button,a):focus-visible{outline:2px solid var(--wine)!important;outline-offset:4px}
@media(hover:hover){
html body :is(.button,.contact,.text-link,.gallery-add,#backCatalog,.catalog-access .button.primary):hover{background:var(--btn-hover);color:var(--btn-fg);border-color:var(--btn-hover);box-shadow:inset 0 -3px 0 #a58e68;transform:none;filter:none}
html body :is(.runway-secondary,.button.outline,#resetFilters,.card .card-add):hover{background:var(--btn-soft);color:var(--ink);border-color:var(--wine);box-shadow:inset 0 -2px 0 var(--wine)}
html body :is(.card-add,.product-add,.gallery-add):not(.is-selected):hover .add-mark{transform:rotate(90deg)}
html body :is(.close,.cart-edit,.clear,.remove,.bag,.runway-product,.gallery-pager button,.zoom-controls button,.photo-carousel-controls button):not(:disabled):hover{background:var(--btn-soft);border-color:var(--wine)}
html body .messenger-links a:hover{transform:translateX(-3px)}
}
html body :is(.button,.contact,.text-link,.card-add,.gallery-add):active{box-shadow:inset 0 2px 5px #00000025;transform:translateY(1px)}
html body button:disabled{opacity:.35;cursor:not-allowed;box-shadow:none}
@media(max-width:700px){
html body .runway-actions .button{font-size:12px;padding:12px 14px}
html body .catalog-access .button.primary{width:100%;font-size:12px;padding:12px 14px;gap:8px}
html body .grid.compact-grid .card-add{padding:10px 8px;gap:3px}
html body .grid.compact-grid .card-add .button-label{font-size:11px;letter-spacing:0}
html body .grid.compact-grid .card-add .add-mark{width:14px;flex-basis:14px;font-size:15px}
html body .header-actions{gap:8px}
html body .gallery-nav button.gallery-add{padding:12px;font-size:12px}
html body .product-add .button-label,html body .gallery-add .button-label{font-size:12px;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){html body :is(button,a,.add-mark){transition:none!important;animation:none!important;transform:none!important}}
