/* Mobile composition: preserve the desktop artwork and original navigation icons. */
@media (max-width:800px) {
  .matchday-home .hero {
    background-image:linear-gradient(90deg,rgba(4,25,20,.87),rgba(4,25,20,.64)),url('/assets/matchday/stadium-night-v2.webp');
    background-position:center,62% center;
  }
  .matchday-home .hero .hero-copy p {color:#f1f4eb;font-size:15px;line-height:1.75;max-width:38ch;text-shadow:0 1px 5px #001c18;}
  .matchday-home .hero-top,.matchday-home .hero-foot {color:#e9efdf;line-height:1.6;}
  .matchday-home .hero h1 {text-shadow:0 2px 16px #04191066;}
  .matchday-home .hero .secondary {color:#fff;min-height:44px;display:inline-flex;align-items:center;}
  .matchday-home .hero .cta {min-height:48px;display:inline-flex;align-items:center;justify-content:center;}
  /* A separate image panel keeps the subject clear of text, regardless of translation length. */
  .directory-hero {display:block;padding:0 24px 26px;min-height:0;}
  .directory-hero:before {
    position:relative;display:block;inset:auto;z-index:0;opacity:1;
    margin:0 -24px 24px;aspect-ratio:1.8;
    background-image:linear-gradient(0deg,#092820,transparent 24%),var(--directory-banner);
    background-size:100% 100%,auto 100%;background-position:center,right center;
  }
  .directory-hero>div:first-child {max-width:100%;}
  .directory-hero h1 {font-size:clamp(34px,6vw,44px);letter-spacing:-1px;}
  .directory-hero h2 {max-width:100%;font-size:25px;line-height:1.3;}
  .directory-hero p {max-width:52ch;color:#e0e7da;font-size:14px;line-height:1.7;}
  .directory-hero .directory-stats {width:100%;margin-top:22px;gap:24px;flex-wrap:wrap;}
  .directory-hero .directory-stats>span {font-size:12px;}
  .mobile-nav {padding-bottom:max(8px,env(safe-area-inset-bottom));}
  footer {padding-bottom:calc(95px + env(safe-area-inset-bottom));}
  #toast {bottom:calc(82px + env(safe-area-inset-bottom));z-index:40;}
  .catalog-nav,.alphabet-nav {overscroll-behavior-x:contain;scroll-padding-inline:16px;}
  .alphabet-nav a {min-width:44px;min-height:44px;}
  .directory-toolbar form button {min-width:44px;min-height:44px;}
  .directory-toolbar form:focus-within {outline:2px solid #62834b;outline-offset:2px;}
  .matchday-home .home-save,.matchday-home .price button,.product-art .save,.quick-add {width:44px;height:44px;min-width:44px;min-height:44px;}
  main input:not([type=checkbox]):not([type=radio]),main textarea,main select {font-size:16px;}
  main input,main select {min-height:44px;}
  .directory-toolbar input,.directory-toolbar .sort-label select {font-size:16px;}
  .directory-card-copy p,.directory-card-copy>div>span {font-size:12px;line-height:1.5;}
  .directory-card-copy>div {flex-wrap:wrap;}
}
@media (max-width:600px) {
  .directory-toolbar form {flex-basis:100%;max-width:none;}
  .directory-toolbar .sort-label {width:100%;margin:0;justify-content:space-between;}
  .directory-toolbar .sort-label select {max-width:none;width:100%;}
  .directory-hero h2 {font-size:23px;}
  .matchday-home .hero h1 {font-size:clamp(34px,9vw,54px);}
  .matchday-home .hero-foot {font-size:10px;flex-wrap:wrap;}
  .matchday-home .hero-foot>span {max-width:100%;}
  .matchday-home .product h3 {font-size:14px;}
  .matchday-home .product small {font-size:11px;}
  .matchday-home .discovery-copy p {font-size:14px;}
  .matchday-home .discovery-tile {aspect-ratio:1.3;}
  .matchday-home .discovery-copy {bottom:20px;}
  .cart-line {flex-wrap:wrap;}
  .cart-line>div {min-width:0;}
  .detail-copy dl>div {gap:12px;overflow-wrap:anywhere;}
  .form-grid {grid-template-columns:minmax(0,1fr);}
}
@media (hover:none) {
  .matchday-home .product:hover .photo,.matchday-home .product:hover .photo img,
  .matchday-home .discovery-tile:hover img,.directory-card:hover,
  .directory-card:hover .directory-club-cover,.directory-card:hover .directory-nation-cover {transform:none;}
}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto;}
  .directory-card,.directory-card img,.matchday-home .cta {transition:none;}
}

/* Detail, bag and customer screens — mobile commerce pass. */
@media(max-width:800px){
  .detail,.checkout-layout,.account-shell,.listing-editor,.auth-layout{min-width:0;}
  .detail>div,.checkout-layout>div,.customer-layout>*,.listing-editor>*{min-width:0;}
  .breadcrumb{overflow-wrap:anywhere;line-height:1.6;}
  .detail-art{height:clamp(260px,52svh,440px);min-height:0;aspect-ratio:auto;}
  .detail-art .real-image{padding:16px;}
  .detail-copy h1{font-size:clamp(24px,5vw,32px);line-height:1.3;letter-spacing:-.6px;overflow-wrap:anywhere;}
  .detail-copy .eyebrow,.detail-sub,.seller-box a{overflow-wrap:anywhere;line-height:1.6;}
  .detail-copy .description{font-size:15px;line-height:1.8;overflow-wrap:anywhere;}
  .detail-copy .notice,.summary .notice{font-size:13px;line-height:1.7;}
  .image-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;}
  .image-tabs button{min-height:44px;padding:10px 14px;font-size:13px;white-space:normal;}
  .detail-copy .purchase{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;}
  .detail-copy .purchase button{min-width:0;min-height:48px;padding:12px;font-size:14px;line-height:1.4;white-space:normal;justify-content:center;}
  .detail-copy dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:16px;font-size:14px;line-height:1.6;}
  .detail-copy dt,.detail-copy dd{min-width:0;margin:0;overflow-wrap:anywhere;}
  .detail-copy dd{text-align:left;}
  .detail-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
  .checkout-layout{grid-template-columns:minmax(0,1fr);}
  .checkout-layout .summary{position:static;min-width:0;}
  .cart-line{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px 16px;align-items:start;}
  .cart-line .mini-art{width:76px;height:104px;grid-row:1/3;min-width:0;}
  .cart-line>div{min-width:0;margin:0;}
  .cart-line h3{font-size:15px;line-height:1.5;overflow-wrap:anywhere;}
  .cart-line p,.cart-line small{font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
  .cart-line>b{grid-column:2;font-size:18px;line-height:1.4;text-align:left;overflow-wrap:anywhere;}
  .cart-line label{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px;}
  .cart-line label input{width:64px;min-height:44px;font-size:16px;padding:8px;}
  .cart-line .text-btn{min-height:44px;padding:10px 12px;font-size:13px;}
  .summary>div{gap:16px;align-items:baseline;flex-wrap:wrap;line-height:1.6;}
  .summary .full{min-height:48px;white-space:normal;line-height:1.5;padding:12px;font-size:14px;}
  .review-line{flex-wrap:wrap;}.review-line>div{overflow-wrap:anywhere;}
  .review-line>strong{margin-left:auto;font-size:14px;}
  .review-total{flex-wrap:wrap;}
  .account-shell{padding-bottom:32px;}
  .account-hub p,.hub-links p,.customer-heading p{font-size:14px;line-height:1.7;overflow-wrap:anywhere;}
  .account-tabs{overscroll-behavior-x:contain;scroll-padding-inline:6px;}
  .account-shell .button,.account-shell .outline,.account-shell .text-btn{min-height:44px;white-space:normal;line-height:1.5;}
  .orders-page .order>div{flex-wrap:wrap;align-items:center;gap:12px;}
  .orders-page .order .tag{white-space:normal;max-width:100%;font-size:12px;line-height:1.5;}
  .orders-page .order>p{font-size:14px;line-height:1.7;overflow-wrap:anywhere;}
  .orders-page .order>p>b{float:none;display:block;text-align:right;margin-top:6px;font-size:16px;}
  .orders-page .order>div small{font-size:12px;margin-top:0;}
  .seller-product-actions{align-items:stretch;}
  .seller-product-actions>*{flex:1 1 110px;text-align:center;}
  .seller-product-actions .outline,.seller-product-actions .text-btn{font-size:13px;}
  .seller-product p{font-size:12px;overflow-wrap:anywhere;}
  .customer-panel fieldset,.customer-grid,.customer-field{min-width:0;}
  .customer-panel label,.editor-panel label{font-size:13px;}
  .customer-panel input:not([type=checkbox]),.customer-panel select,.editor-panel input:not([type=checkbox]),.editor-panel select,.auth-layout input{max-width:100%;min-width:0;font-size:16px;}
  .auth-layout .button,.auth-layout .text-btn{min-height:48px;white-space:normal;line-height:1.5;}
  .editor-heading p,.editor-panel p,.editor-panel small{overflow-wrap:anywhere;}
  .editor-extra button,.editor-language summary,.editor-cancel{min-height:44px;}
  .editor-sidebar .full{white-space:normal;line-height:1.5;}
  main :is(input,select,textarea,button,a){scroll-margin-block:145px 100px;}
}
@media(max-width:380px){
  .detail-copy .purchase{grid-template-columns:minmax(0,1fr);}
  .detail-copy dl>div{grid-template-columns:minmax(0,1fr);gap:4px;}
  .seller-filters{grid-template-columns:minmax(0,1fr);}
  .seller-filters .seller-query{grid-column:auto;}
  .seller-product{flex-direction:column;}
  .seller-thumb{width:100%;height:160px;}
  .seller-product-copy{width:100%;}
  .account-hub h1{max-width:100%;font-size:26px;clear:both;padding-top:12px;}
  .hub-avatar{float:none;}
  .editor-photos,.editor-sidebar .form-grid{grid-template-columns:minmax(0,1fr);}
}
