
.appearance-controls{display:flex;gap:6px;align-items:center}
.appearance-toggle{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #d4cbb8;border-radius:50%;background:#f6f3ed;color:#493919;font-size:21px;cursor:pointer}
.appearance-toggle:focus-visible{outline:3px solid #bd9645;outline-offset:3px}
.aside-card>span:not(.eyebrow){display:block;color:#ffe2a0;font-weight:700;font-size:13px;line-height:1.6;margin-top:12px;text-shadow:0 1px 1px #0002}
@media screen{
html[data-theme=light]{color-scheme:light}
html[data-theme=dark]{color-scheme:dark;--ink:#f2efe9;--muted:#c8c2b5;--line:#514836;--bg:#261f10;--white:#332a18;--pale:#423824;--teal:#d7be8d;--deep:#f2ebdc;color:var(--ink)}
html[data-theme=dark] body{color:#f2efe9;background:radial-gradient(ellipse at 10% 20%,#483a1d44,transparent 55%),#261f10}
html[data-theme=dark] :is(.site-header,.mobile-nav){background:#2f2614;border-color:#554b37}
html[data-theme=dark] :is(.brand-name,.desktop-nav a,.account-link,.bag-button,.mobile-nav a){color:#f2efe9}
html[data-theme=dark] :is(.brand-name small,.muted,.section-heading>p,.product-body>small,.site-footer p,.site-footer>span,.developer-credit){color:#c8c2b5}
html[data-theme=dark] :is(.product-card,.panel,.account-card,.catalog-toolbar,.catalog-filters,.journey-step,.kpi,dialog,.empty,.table-wrap){background:#362c19;color:#f2efe9;border-color:#564b36}
html[data-theme=dark] :is(.section-heading h1,.section-heading h2,.product-body h3,.modal-top h2,.kpi strong,.product-price,.account-card h2){color:#ead9b8}
html[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){background:#2c2310;color:#f6f4f0;border-color:#665b44}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#b5ae9f}
html[data-theme=dark] :is(.soft-button,.chip,.qty,.appearance-toggle){background:#4b3f26;color:#f3eee5;border-color:#71644b}
html[data-theme=dark] :is(.chip.active,.button){background:#7c5e23;color:#fff}
html[data-theme=dark] .button:disabled{opacity:.55}
html[data-theme=dark] .qty button{color:#e6d6b7}
html[data-theme=dark] :is(.subcategory-chips,.subcategory-edit-list,.info-box,.payment-row){background:#443923;color:#eae3d6;border-color:#62563f}
html[data-theme=dark] .subcategory-label{color:#e8e1d4}
html[data-theme=dark] .subcategory-chips .chip{background:#554931;color:#f3eee5}
html[data-theme=dark] .subcategory-chips .chip.active{background:#b69a58;color:#2c2413}
html[data-theme=dark] .data-table thead th{background:#443923;color:#e6dfd1;border-color:#62563f}
html[data-theme=dark] .data-table tbody tr:hover{background:#483c23}
html[data-theme=dark] .data-table td{border-color:#564b35}
html[data-theme=dark] .site-footer{background:linear-gradient(110deg,#372c17,#3d3526);border-color:#635a48}
html[data-theme=dark] :is(.eyebrow,.section-heading .eyebrow){color:#e5c785}
html[data-theme=dark] .select2-container--default .select2-selection--single,html[data-theme=dark] .select2-container--default .select2-selection--multiple{background:#2c2310;border-color:#665b44}
html[data-theme=dark] .select2-container--default .select2-selection--single .select2-selection__rendered{color:#f2efe9}
html[data-theme=dark] .select2-dropdown{background:#362c19;color:#f2efe9;border-color:#665b44}
html[data-theme=dark] .select2-container--default .select2-results__option[aria-selected=true]{background:#554931;color:#fff}
html[data-theme=dark] .select2-container--default .select2-results__option--highlighted[aria-selected]{background:#7c5e23;color:#fff}
html[data-theme=dark] .select2-container--default.select2-container--disabled .select2-selection--single{background:#40392b}
html[data-theme=dark] .select2-selection__choice{background:#554931!important;color:#fff;border-color:#736852!important}
html[data-theme=dark] .modal-top{border-color:#5d5139}
html[data-theme=dark] .product-image{background:#fff}
html[data-theme=dark] .hero[data-slide-tone=light] .eyebrow{color:#514633}
html[data-theme=dark] .hero-wave .wave-front{fill:#261f10}
html[data-theme=dark] .form-error{color:#ffb5aa}
.aside-card,.summary-callout,.account-intro{position:relative;isolation:isolate;overflow:hidden}
.aside-card::before,.summary-callout::before,.account-intro::before{content:"";position:absolute;inset:-20%;z-index:-1;pointer-events:none;background-image:repeating-linear-gradient(125deg,transparent 0 48px,#e0c38516 49px 50px,transparent 51px 100px);transform:translate3d(-2%,0,0);animation:mabruk-pattern-drift 14s ease-in-out infinite alternate}
@keyframes mabruk-pattern-drift{to{transform:translate3d(3%,2%,0)}}
.product-card,.journey-step,.kpi{transition:transform .32s cubic-bezier(.2,.7,.2,1),border-radius .32s ease,box-shadow .32s ease}
@media(hover:hover) and (pointer:fine){
.product-card:hover{transform:translateY(-5px) rotate(-.35deg);border-radius:30px 20px 30px 20px}
.product-card:nth-child(even):hover{transform:translateY(-5px) rotate(.35deg);border-radius:20px 30px 20px 30px}
.journey-step:hover,.kpi:hover{transform:translateY(-3px);border-radius:24px 16px 24px 16px;box-shadow:0 12px 28px #3d30151a}
}
html[data-effects=off] :is(.aside-card,.summary-callout,.account-intro)::before,html[data-effects=off] .hero-backdrop::before{animation:none}
html[data-effects=off] :is(.diamond-glint,.brand-emblem,.account-brand,.document-brand)::after,html[data-effects=off] .diamond-glint{animation:none}
html[data-effects=off] :is(.product-card,.journey-step,.kpi):hover{transform:none}
@media(prefers-reduced-motion:reduce){
.aside-card::before,.summary-callout::before,.account-intro::before{animation:none}
.product-card,.journey-step,.kpi{transition:none}
.product-card:hover,.journey-step:hover,.kpi:hover{transform:none}
}
@media(max-width:767px){.appearance-toggle{width:32px;height:32px;font-size:18px}.appearance-controls{gap:4px}.header-actions{gap:7px}}
}
@media print{.appearance-controls{display:none}}

/* Stable product cards and image galleries. */
.product-card,.product-card:hover,.product-card:nth-child(even):hover{transform:none!important;border-radius:24px!important;transition:border-color .2s,box-shadow .2s!important}
button.product-image{width:100%;padding:0;border:0;cursor:pointer;color:inherit}
.product-details-button{width:100%;margin:0 0 12px}
.product-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
dialog:has(.product-detail){width:min(900px,94vw);max-width:94vw}
.detail-main-image{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:16px}
.detail-thumbnails{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.detail-thumbnails button{padding:3px;border:2px solid transparent;border-radius:10px;background:white;cursor:pointer}
.detail-thumbnails button[aria-pressed=true]{border-color:#77591c}
.detail-thumbnails img{display:block;width:56px;height:56px;object-fit:contain}
.detail-description{white-space:pre-line;line-height:1.7}
.gallery-admin{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.gallery-admin>div{padding:12px;border:1px solid #cac0ab;border-radius:14px}
.gallery-admin img{display:block;width:100%;height:120px;object-fit:contain;background:white;border-radius:8px}
.gallery-admin button{width:100%;margin-top:7px}
@media(max-width:600px){.product-detail{grid-template-columns:1fr;gap:16px}.gallery-admin{grid-template-columns:1fr 1fr}.gallery-admin button{font-size:11px;padding:8px}}

.cart-edit-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto 32px;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.cart-edit-line small{display:block;color:var(--muted);margin-top:5px;font-size:12px}
.cart-edit-line .qty input{width:56px}
.cart-edit-line .qty button{min-width:32px}
@media(max-width:600px){.cart-edit-line{grid-template-columns:minmax(0,1fr) 32px;gap:12px}.cart-edit-line>div:first-child{grid-column:1}.cart-edit-line>.icon-button{grid-column:2;grid-row:1}.cart-edit-line>.qty{grid-column:1;grid-row:2;justify-self:start}.cart-edit-line>strong{grid-column:1 / -1;grid-row:3}}

/* Compact responsive catalog: columns follow the available content width. */
.catalog-results{min-width:0;container-type:inline-size;container-name:catalog}
#products:not(.list-view){grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;align-items:stretch}
#products:not(.list-view) .product-card{display:flex;flex-direction:column;padding:6px;border-radius:16px!important}
#products:not(.list-view) .product-image{aspect-ratio:1;max-height:164px;border-radius:12px;flex:none}
#products:not(.list-view) .product-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:9px 4px 4px}
#products .product-stock{padding:5px 7px;gap:2px 6px;margin-bottom:7px;border-radius:8px;font-size:10px;line-height:1.35}
#products .product-stock strong{font-size:11px;overflow-wrap:anywhere}
#products:not(.list-view) .product-body>small{font-size:10px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#products:not(.list-view) .product-body h3{font-size:14px;line-height:1.35;margin:6px 0;min-height:2.7em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#products:not(.list-view) .product-details-button{min-height:36px;padding:7px 4px;margin:0;font-size:11px;border-radius:9px}
#products:not(.list-view) .product-bottom{margin-top:auto;padding-top:9px;display:flex;flex-direction:column;align-items:stretch;gap:7px}
#products .product-price{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
#products:not(.list-view) .qty{width:100%;justify-content:space-between;align-self:stretch}
#products:not(.list-view) .qty button{min-width:40px;min-height:44px}
#products:not(.list-view) .qty input{width:32px;flex:1;max-width:64px;font-size:14px}
#products .badge{align-self:flex-start;font-size:10px;padding:3px 7px}
#products>.empty,#products>.loading{grid-column:1/-1}
@container catalog (min-width:560px){#products:not(.list-view){grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
@container catalog (min-width:780px){#products:not(.list-view){grid-template-columns:repeat(4,minmax(0,1fr))}}
@container catalog (min-width:1040px){#products:not(.list-view){grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}}
#products.list-view .product-card{padding:10px;gap:14px;border-radius:16px!important}
#products.list-view .product-image{width:100px;height:100px;aspect-ratio:1;flex:0 0 100px;border-radius:12px}
#products.list-view .product-body{display:flex;flex-direction:column;min-width:0;padding:0;gap:5px}
#products.list-view .product-body h3{margin:0;min-height:0}
#products.list-view .product-stock{align-self:flex-start;margin:0}
#products.list-view .product-details-button{width:auto;align-self:flex-start;min-height:36px;margin:0;padding:6px 10px;font-size:12px}
#products.list-view .product-bottom{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;max-width:none;margin:0}
#products.list-view .qty{width:132px;flex:none;justify-content:space-between}
#products.list-view .qty button{min-width:40px;min-height:44px}
#products.list-view .qty input{width:32px}
@media(max-width:400px){
#products:not(.list-view){gap:10px 8px}
#products:not(.list-view) .product-card{padding:4px}
#products:not(.list-view) .product-body{padding:7px 2px 3px}
#products:not(.list-view) .product-body h3{font-size:13px}
#products .product-price{font-size:14px}
#products:not(.list-view) .product-image{max-height:132px}
#products.list-view .product-image{width:72px;height:72px;flex-basis:72px}
}
@media(max-width:340px){#products:not(.list-view){grid-template-columns:1fr}}
