/* Mobile layout is last in the cascade; desktop keeps its existing identity. */
.mobile-menu-toggle,.mobile-bottom-nav,.category-description-toggle{display:none}
.grid>*,.productdetail>*,.footergrid>*,.brandhead>*{min-width:0}
input,select,textarea{max-width:100%;min-width:0}
button:focus-visible,a:focus-visible{outline:3px solid #55764d;outline-offset:3px}
@media(max-width:800px){
 body:has(.store-header){padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}
 .store-header .brandhead{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:2px;padding:10px 12px;min-height:72px}
 .store-header .headerleft{display:none}
 .mobile-menu-toggle{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:44px;min-height:44px;padding:3px;border-radius:8px;font-size:9px;font-weight:600}
 .mobile-menu-toggle .icon{width:23px;height:23px}
 .store-header .wordmark{justify-content:center;gap:7px;min-width:0}
 .store-header .wordmark img{width:36px;height:36px;flex-shrink:0}
 .store-header .brandtext{font-size:clamp(18px,5.6vw,27px);white-space:normal;line-height:1.1}
 .store-header .brandtext small{font-size:6px;letter-spacing:1px;margin-top:5px;white-space:normal}
 .store-header .headertools{justify-content:center;gap:0}
 .store-header .headertools>a{display:none}
 .store-header .iconbutton{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px}
 .store-header .nav{display:none;overflow:visible;white-space:normal;gap:0;padding:8px 16px 16px;background:#fffdfa;border-top:0;grid-template-columns:1fr 1fr}
 .store-header.mobile-nav-open .nav{display:grid}
 .store-header .nav a{display:flex;align-items:center;min-height:48px;padding:10px 12px;border-bottom:1px solid var(--line);font-size:14px}
 .mobile-bottom-nav{position:fixed;z-index:40;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:7px 9px calc(7px + env(safe-area-inset-bottom,0px));background:#fffdfaf7;backdrop-filter:blur(14px);border-top:1px solid #e2d9d0;box-shadow:0 -4px 18px #46352a08}
 .mobile-bottom-nav a{min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10px;color:#71665e;border-radius:9px;text-decoration:none}
 .mobile-bottom-nav a[aria-current=page]{background:#ffe5e1;color:#4d322d;font-weight:700}
 .mobile-nav-icon{position:relative;display:flex;align-items:center;justify-content:center;width:32px;height:23px}
 .mobile-nav-icon .icon{width:22px;height:22px;stroke-width:1.7}
 .mobile-nav-icon .count{right:-5px;top:-5px;font-size:10px;text-align:center;line-height:17px}
 .chat-toggle{bottom:calc(80px + env(safe-area-inset-bottom,0px));right:16px;width:50px;height:50px}
 .chatbox{bottom:calc(140px + env(safe-area-inset-bottom,0px))}
 .toast{bottom:calc(82px + env(safe-area-inset-bottom,0px));max-width:calc(100% - 28px);width:max-content;overflow-wrap:anywhere}
 .audience-choice{left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom,0px));max-width:none;max-height:70dvh;overflow:auto;padding:18px}
 .announcement{padding:8px 14px;font-size:11px;line-height:1.4;overflow-wrap:anywhere}
 .container{padding-left:18px;padding-right:18px}
 .section{padding-top:30px;padding-bottom:30px}
 main h1{font-size:30px;overflow-wrap:break-word}
 main p,.card,.breadcrumb{overflow-wrap:anywhere}
 .card{padding:20px;min-width:0}
 .btn{min-height:44px;max-width:100%;text-align:center;white-space:normal;padding:11px 16px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;line-height:1.4;font-weight:400;min-height:46px}
 input[type=checkbox],input[type=radio]{width:20px;height:20px;flex:0 0 20px}
 .consent-line{align-items:flex-start;line-height:1.5;gap:10px}
 .cols2,.cols3{grid-template-columns:minmax(0,1fr)}
 .flex{min-width:0}
 .sectionhead{flex-wrap:wrap;align-items:start;gap:12px}
 .sectionhead h2{font-size:25px}
 .sectionhead a{display:inline-flex;align-items:center;min-height:40px;font-size:13px}
 .footergrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}
 .footergrid>div:first-child{grid-column:1/-1}
 .footer .brandtext{font-size:30px;white-space:normal}
 .footer a{padding:4px 0;line-height:1.5;font-size:13px;overflow-wrap:anywhere}
 .footer{margin-top:25px;padding-top:30px}
 .footnote{display:block}
 .newsletter{padding:28px 18px}
 .newsletter form{max-width:100%}
 .newsletter form .flex>input{min-width:0}
 .newsletter button{min-width:48px;min-height:48px}
 .newsletter .consent{font-size:12px;line-height:1.5}
 .shop-category-nav{gap:8px;scroll-snap-type:x proximity;padding:0 0 10px}
 .shop-category-nav a{flex-shrink:0;scroll-snap-align:start;min-height:44px;display:flex;align-items:center;border:1px solid #e8e1dd;background:#fff;border-radius:22px;font-size:13px}
 .category-banner{height:150px;margin-bottom:18px}
 .category-description-toggle{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;font-size:13px;padding:4px 0;margin-bottom:12px}
 .category-description .category-intro{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:0}
 .category-description.expanded .category-intro{display:block;overflow:visible}
 .category-gallery{display:flex;overflow:auto;gap:12px;scroll-snap-type:x proximity;margin:10px 0 24px;padding-bottom:10px}
 .category-gallery .category-tile{flex:0 0 145px;scroll-snap-align:start}
 .category-gallery .category-tile img,.category-gallery .no-category-image{height:95px}
 .category-tile strong{padding:12px;font-size:13px;overflow-wrap:anywhere}
 .shop-category-layout .products,.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
 .product h3{font-size:14px;line-height:1.45}
 .product .custom{font-size:12px}
 .productdetail{grid-template-columns:minmax(0,1fr);gap:24px}
 .productdetail h1{font-size:28px}
 .product-gallery>a>img{max-height:420px;object-fit:contain}
 #add-cart .flex{flex-wrap:wrap}
 #add-cart .flex>.btn{flex:1;min-height:48px}
 #add-cart>.btn,#checkout>button,#member-login>.btn,#member-register>.btn{width:100%;min-height:48px}
 .cartline{grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start}
 .cartline img{width:56px;height:64px;object-fit:contain}
 .cartline>strong{grid-column:2;font-size:16px}
 .cartline h3{line-height:1.4}
 .cartline button{min-height:40px;padding:5px 0}
 .cartline small{overflow-wrap:anywhere}
 #checkout details summary{min-height:44px;padding:8px 0}
 .legal-page nav{flex-wrap:wrap;gap:8px}
 .legal-page article{padding:16px}
 .legal-page h2{font-size:21px}
 dialog{max-height:calc(100dvh - 32px);padding:22px 18px}
 .empty{padding:30px 18px}
 body:has(input:focus,textarea:focus,select:focus) .mobile-bottom-nav{display:none}
 body:has(input:focus,textarea:focus,select:focus):not(.messenger-open) .chat-toggle{display:none}
}
@media(max-width:380px){
 .store-header .wordmark img{width:30px;height:30px}
 .store-header .brandtext{font-size:19px}
 .store-header .brandtext small{font-size:5.5px;letter-spacing:.6px}
 .home-spotlight{padding:24px 18px}
 .spotlight-copy h1{font-size:36px}
 .home-spotlight .btn{font-size:13px;width:100%;gap:6px;padding:12px 10px}
 .card{padding:16px}
 .product h3{font-size:13px}
 .product-photo .pill{white-space:normal;max-width:calc(100% - 12px);font-size:9px;line-height:1.3}
 .atelier-hero h1,.atelier-hero h2{font-size:40px}
}
@media(max-width:600px){.chatbox{inset:var(--chat-viewport-top,0px) 0 auto 0}.messenger-open .mobile-bottom-nav{display:none}}
