/* ATELIER CASA 2.3: progressive accessibility, performance, and resilience. */
:root { --ac-focus:#805337; }
html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
/* Prevent CLS while responsive product images are loading. */
.hero-image img { width:100%;height:100%;object-fit:cover; }
.category-link img,.ac22-editorial-photo img,.lookbook-image img { width:100%;height:100%;object-fit:cover; }
.product-card .product-visual img { width:100%;height:100%;object-fit:cover; }
.product-visual {overflow:hidden;}
.detail-photo #product-photo {width:100%;object-fit:cover;}
/* Keyboard focus has adequate contrast on both pale and dark surfaces. */
:where(a,button,input,select,summary,[tabindex="0"]):focus-visible {
 outline:3px solid var(--ac-focus)!important;outline-offset:3px!important;
 box-shadow:0 0 0 2px rgba(255,255,255,.94);
}
.ac22-editorial-card:focus-visible {outline:4px solid #fff!important;outline-offset:-7px!important;}
/* Status always leaves the customer an actionable next step. */
.api-status:not([hidden]) {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;padding:14px 24px;text-align:center;font-size:13px;line-height:1.55;min-height:54px;}
.api-retry {min-height:44px;padding:9px 18px;background:#342c25;color:#fff;border:1px solid #342c25;border-radius:2px;font-weight:700;white-space:nowrap;}
.api-retry:hover {background:#574537;}
/* Restore focus after cart row changes with larger touch targets. */
.drawer .line-qty button:not(.remove) {min-width:44px;min-height:44px;}
.drawer .line-qty .remove {min-height:44px;padding-inline:8px;}
.drawer [aria-disabled="true"] {pointer-events:none;opacity:.6;}
.drawer[aria-hidden="true"] {visibility:hidden;pointer-events:none;}
.drawer[aria-hidden="false"] {visibility:visible;}
/* Keep mobile status and system controls clear of device safe areas. */
.mobile-dock {padding-bottom:max(7px,env(safe-area-inset-bottom));}
#cart-announcer {position:absolute;}
/* OS settings: avoid automatic motion and expensive shimmering. */
@media (prefers-reduced-motion:reduce) {
 html {scroll-behavior:auto!important}
 *,*::before,*::after {scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}
}
@media (max-width:700px) {
 .api-status:not([hidden]){padding:14px 16px;font-size:12px;}
 .api-retry{width:100%;max-width:260px;}
 .drawer .line-qty{gap:5px;flex-wrap:wrap;}
}
@media (max-width:360px) {
 .drawer .line-qty button:not(.remove) {min-width:40px;}
}
