/* Shared mobile polish for every page. */
@media (max-width: 700px){
  html,body{max-width:100%;overflow-x:hidden}
  .site-header .nav{min-width:0}
  .site-header .navlinks,.site-header .brand,.site-header .navright{min-width:0}
  .site-header .navright .nav-icon{flex:0 0 auto}
  .site-footer{margin-top:48px}
  .site-footer-top{min-width:0}
  .site-footer-signup,.site-footer-nav{min-width:0}
  .site-footer-signup h2{font-size:clamp(30px,8.5vw,38px)}
  .site-footer-nav a{overflow-wrap:break-word}
  .site-footer-form{flex-wrap:wrap}
  .site-footer-form input{min-width:0;flex:1 1 130px}
  .site-footer-form button{flex:0 0 auto}
  .cookie-banner{left:10px;right:10px;bottom:10px;grid-template-columns:1fr;gap:14px;padding:17px 16px;border-radius:16px}
  .cookie-banner p{font-size:12px;line-height:1.45}
  .cookie-banner-actions{display:grid;grid-template-columns:1fr;gap:7px;justify-content:stretch}
  .cookie-button{width:100%;min-height:42px;padding:10px 13px;white-space:normal}
  .cookie-utility{left:10px;right:10px;bottom:10px;justify-content:center;border-radius:16px;text-align:center}
  .specialists-copy h1{font-size:clamp(35px,10vw,48px);white-space:normal;overflow-wrap:normal;word-break:normal}
  .specialists-copy>p{max-width:100%}
  .specialists-photo{min-height:clamp(340px,118vw,520px);max-height:none}
  .specialists-note p{max-width:100%}
  .account-panel,.checkout-panel,.auth-panel,.dashboard-head,.admin-auth-card,.admin-head{min-width:0}
  .account-title,.account-panel h2,.checkout-panel h2,.dashboard-head h2,.admin-auth-copy h1,.admin-head h1{overflow-wrap:break-word}
  .auth-tabs{overflow-x:auto;scrollbar-width:none}
  .auth-tabs::-webkit-scrollbar{display:none}
  .auth-tab{white-space:nowrap;flex:0 0 auto}
  .checkout-line-name,.catalog-card-name,.store-card-name,.product-name{overflow-wrap:break-word;word-break:normal}
  .catalog-card-price{min-width:0}
  .admin-order-top,.admin-card-top{min-width:0;flex-wrap:wrap}
  .admin-order-date{white-space:nowrap}
}
@media (max-width: 380px){
  .site-header .nav{padding-left:9px;padding-right:9px;gap:3px}
  .site-header .navlinks{min-width:42px}
  .site-header .navlinks a[href="catalog.html"]{font-size:7px}
  .site-header .navright{gap:0}
  .site-header .nav-icon{width:28px!important;height:28px!important}
  .site-header .nav-icon svg{width:16px!important;height:16px!important}
  .site-header .brand-mark{width:50px!important;height:50px!important}
  .site-footer{padding-left:14px;padding-right:14px}
  .site-footer-products-line{margin-left:-14px;margin-right:-14px}
  .site-footer-nav{gap:18px 12px}
  .site-footer-nav a{font-size:10px}
  .site-footer-nav h3{font-size:8px}
  .product-info{padding-left:14px!important;padding-right:14px!important}
  .details{margin-left:14px!important;margin-right:14px!important}
}

/* Match desktop controls on mobile and replace platform emoji arrows with a consistent mark. */
.arrow-mark{display:inline-block;position:relative;width:.78em;height:.78em;margin-left:.28em;vertical-align:-.02em;color:currentColor;flex:0 0 auto}
.arrow-mark::before{content:"";position:absolute;right:.05em;top:.04em;width:.49em;height:.49em;border-top:1.35px solid currentColor;border-right:1.35px solid currentColor}
.arrow-mark::after{content:"";position:absolute;left:.1em;bottom:.17em;width:.61em;height:1.35px;background:currentColor;transform:rotate(-45deg);transform-origin:left center}
.button .arrow-mark{width:1em;height:1em;margin-left:.14em}
@media (max-width: 700px){
  .site-header .navright{gap:7px}
  .site-header .nav-icon{width:38px!important;height:38px!important;opacity:.9}
  .site-header .nav-icon svg{width:21px!important;height:21px!important;stroke-width:1.45}
  .site-header .cart-count{right:-3px;top:-4px;min-width:17px;height:17px;font-size:9px}
  .page .site-header .navright{gap:7px}
  .page .site-header .nav-icon{width:38px!important;height:38px!important}
  .page .site-header .nav-icon svg{width:21px!important;height:21px!important}
  .page .navright .nav-icon{width:38px;height:38px}
  .page .navright .nav-icon svg{width:21px;height:21px;stroke-width:1.45}
}
@media (max-width: 380px){
  .site-header .navright,.page .site-header .navright{gap:4px}
  .site-header .nav-icon,.page .site-header .nav-icon,.page .navright .nav-icon{width:36px!important;height:36px!important}
  .site-header .nav-icon svg,.page .site-header .nav-icon svg,.page .navright .nav-icon svg{width:20px!important;height:20px!important}
}

/* Cart drawer close control: draw the cross geometrically so it stays centered on every device font. */
.cart-head{align-items:center}
.cart-close{position:relative;display:grid;place-items:center;align-self:center;padding:0;line-height:0;font-size:0;color:var(--ink);border:0}
.cart-close::before,.cart-close::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:1.5px;border-radius:2px;background:currentColor;transform-origin:center}
.cart-close::before{transform:translate(-50%,-50%) rotate(45deg)}
.cart-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
@media(max-width:520px){.cart-close{width:30px;height:30px}.cart-close::before,.cart-close::after{width:12px;height:1.6px}}

/* Use one crisp vector arrow everywhere; platform emoji fonts are intentionally avoided. */
.arrow-mark{width:.92em;height:.92em;margin-left:.28em;vertical-align:-.07em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19L19 5M9 5h10v10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19L19 5M9 5h10v10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.arrow-mark::before,.arrow-mark::after{content:none}
.button .arrow-mark{width:1em;height:1em;margin-left:.14em}
button.catalog-card-add,button.store-card-add,button.add,button.qty-control,.checkout-line-controls>button:not(.checkout-line-remove),.checkout-line-remove,.qty button{appearance:none;-webkit-appearance:none;color:var(--ink,#35292d);-webkit-text-fill-color:currentColor}
button.catalog-card-add,button.store-card-add,button.add{background:transparent}
button.catalog-card-add:hover,button.store-card-add:hover,button.add:hover{color:var(--paper,#f8f1f1);-webkit-text-fill-color:currentColor}
.checkout-line-controls>button:not(.checkout-line-remove){display:grid;place-items:center;color:var(--account-ink,#35292d);background:transparent;border-color:var(--account-line,rgba(53,41,45,.2));font-size:16px;line-height:1}
.checkout-line-remove{color:var(--account-muted,#817177);background:transparent;line-height:1.2}
.qty button{color:var(--ink,#35292d);background:transparent;line-height:1}
