/* Shared responsive adjustments; the storefront and admin keep their existing components. */
html{font-size:16px}
body{overflow-wrap:break-word}
img{max-width:100%}
input,select,textarea{min-width:0;max-width:100%;font-size:16px}
fieldset{min-width:0}
.grid>*,.details,.checkout-grid>*,.product-detail>*,.admin-main,.editor>*,.form-grid>*,.bulk-fields>*{min-width:0}
.details h2,.order-item span,.cart-row h2,.shop-totals span,.order-address,.orders-list h2{overflow-wrap:anywhere}
.product .detail-link{min-height:44px;display:inline-flex;align-items:center}
.shop-main a{min-height:44px;display:inline-flex;align-items:center}
.admin-main .actions a,.admin-main .view-links a,.login-card>a{min-height:44px;display:inline-flex;align-items:center}
.purchase-controls button{width:100%;line-height:1.3}
.storefront-menu-toggle{display:none}
.table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.table-wrap:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.selection-control{display:grid;place-items:center;width:44px;min-height:44px;margin:0;cursor:pointer}
.selection-control input{width:24px;height:24px;margin:0}
.photo-lightbox{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
.photo-lightbox-header{min-width:0;align-items:flex-start}
.photo-lightbox-header h2{min-width:0}
.photo-lightbox-stage img{max-height:calc(100dvh - 190px)}
.shop-totals>div{align-items:baseline}
#paypal-buttons,#saved-paypal-buttons{min-width:0;max-width:100%;margin-top:20px}
.table-hint{font-size:16px;color:var(--muted);margin:0 0 10px}
@media(max-width:1100px){body>header{gap:12px}body>header nav{gap:18px}.category-choices{gap:16px}.category-copy{padding:18px}.category-choices h2{font-size:30px}}
@media(max-width:1024px){
  .admin-shell{display:block}.sidebar{position:relative;padding:20px 24px}.sidebar .brand{display:inline-block;padding:0 90px 0 0}.sidebar .brand img{width:175px}.sidebar-bottom{display:none}.sidebar .eyebrow{margin:12px 0 0;font-size:14px}
  .nav-toggle{display:block;position:absolute;right:24px;top:24px;color:var(--paper);background:#ffffff12;border-color:#ffffff40;font-size:16px}
  .sidebar nav{display:none;margin-top:16px}.sidebar.menu-open nav{display:flex;flex-wrap:wrap;gap:8px}.sidebar nav a{display:flex;align-items:center;min-height:44px;font-size:16px}
  .admin-main main{padding:28px 24px 180px}.topbar{padding:16px 24px}.topbar>div{gap:8px 18px}.topbar a{display:flex;align-items:center;min-height:44px;font-size:16px}.topbar button{font-size:16px}.topbar #current-account{font-size:16px;overflow-wrap:anywhere}
  .table-wrap th,.table-wrap td{font-size:16px}.table-wrap td a{display:inline-flex;align-items:center;min-height:44px}.table-wrap td.product-name{min-width:230px}.table-wrap img{width:90px;height:60px}
  .small,.filename,.history,.notice,.pill{font-size:16px}.stat span{font-size:16px}.catalog-row .small{font-size:16px}.check-label{min-height:44px}.check-label input{width:24px;height:24px;flex-shrink:0}label{font-size:16px}.stock-caption{flex-wrap:wrap;gap:12px}
  .save-feedback{max-height:calc(100dvh - 32px);overflow:auto}
}
@media(min-width:768px) and (max-width:1024px){.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.stat{padding:20px 16px}.category-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.category-art{height:150px}}
@media(max-width:760px){
  body{font-size:16px}body>header,body>main{width:calc(100% - 32px)}body>header{padding:16px 0;gap:10px;align-items:center}
  body>header.has-menu{display:grid;grid-template-columns:minmax(0,1fr) auto auto}
  body>header.has-menu:has(.retail-brand){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  body>header.has-menu .retail-brand{grid-column:1/-1;width:100%;max-width:310px;justify-self:center}
  body>header.has-menu:has(.retail-brand) .storefront-menu-toggle{grid-row:2;grid-column:1;justify-self:start}
  body>header.has-menu:has(.retail-brand) .cart-link{grid-row:2;grid-column:2;justify-self:end}
  body>header .brand{min-width:0}body>header .brand img{width:150px}body>header .cart-link{font-size:16px;padding:8px 10px;gap:5px;min-height:44px}
  body>header.has-menu .storefront-menu-toggle{display:block;padding:8px 10px;min-height:44px;border-radius:5px;font-size:16px;background:var(--card)}
  body>header.has-menu nav{display:none;grid-column:1/-1;width:100%;border-top:1px solid var(--line);padding-top:8px}
  body>header.has-menu.menu-open nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body>header nav a{padding:12px;min-height:48px;text-align:center;font-size:16px;background:var(--card);border-radius:5px}
  .topline{font-size:12px;padding:8px}.topline span{padding:0 6px}
  .welcome-copy h1{font-size:clamp(42px,12vw,60px)}.welcome-copy>p:not(.eyebrow){font-size:16px}.category-heading h2{font-size:32px}.category-choices{margin-bottom:40px}.category-copy{padding:20px}
  .grid{grid-template-columns:1fr;gap:14px}.product{display:flex;flex-direction:column}.details{padding:16px;display:flex;flex-direction:column;flex:1}.details h2{font-size:25px;line-height:1.15}.product img{height:180px;padding:10px}.details .purchase-controls{margin-top:auto;padding-top:16px}
  .details .location-type,.details .unset,.details .notes,.details .filename,.details .badge,.details .detail-link,.purchase-controls>p{font-size:16px}
  .back-controls{gap:8px 20px}.back-controls a,#location-controls a{display:inline-flex;align-items:center;min-height:44px;font-size:16px}
  #location-controls nav{gap:8px 16px}.quadrant-legend a{min-height:48px;display:grid;place-items:center;font-size:16px}.map-note,.inset h3,.inset a,#map-instruction,.other-locations p,.small-state-links p{font-size:16px}.inset a{min-height:44px}.small-state-links a{font-size:16px}.other-locations a{font-size:16px}
  .tools input,.tools select{width:100%;font-size:16px}.state-controls select,#location-controls select{font-size:16px}body>footer{font-size:16px;padding:24px 16px;gap:12px}body>footer a{min-height:44px;display:inline-flex;align-items:center}
  .cart-row{grid-template-columns:96px minmax(0,1fr);align-items:start;padding:16px;gap:16px}.cart-row img{width:96px;height:auto;aspect-ratio:1.5;object-fit:contain}.cart-row>div:last-child{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:12px}.cart-row>div:last-child p{width:100%}.cart-row label{display:flex;align-items:center;gap:10px}.cart-row input{width:80px;font-size:16px}.cart-row h2{font-size:25px;line-height:1.15}
  .checkout-grid,.product-detail{gap:20px}.checkout-form input,.checkout-form select{font-size:16px}.checkout-form .shop-primary{width:100%;line-height:1.4}.shop-panel{padding:18px}.shop-panel h2,.checkout-form h2{font-size:28px}.test-settings{font-size:16px}.shop-actions{gap:12px}.shop-actions .shop-primary{width:100%;text-align:center}.order-item{grid-template-columns:65px minmax(0,1fr);font-size:16px}.order-item img{width:65px}.order-item>span:last-child{grid-column:2}.shop-totals .grand-total{font-size:22px}
  .photo-lightbox{padding:12px;max-width:calc(100vw - 16px)}.photo-lightbox-header{gap:12px}.photo-lightbox-header h2{font-size:22px}.photo-lightbox-stage img{max-height:calc(100dvh - 200px)}
  .admin-main main{padding:24px 16px 180px}.sidebar{padding:18px 16px}.nav-toggle{right:16px;top:20px}.topbar{padding:16px}.topbar>div{width:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat strong{font-size:38px}.stat{padding:18px 14px}.panel{padding:18px}.actions>button{flex:1 1 160px}.bulk-fields{grid-template-columns:1fr}.bulk-panel .bulk-selection-actions button{width:100%}.toolbar>input,.toolbar>select{width:100%;flex-basis:100%;min-width:0}.form-grid{grid-template-columns:1fr}.login-page{padding:16px}.login-card{padding:26px 20px}.login-card h1{font-size:38px}.login-story{padding:24px}.login-card a{display:inline-flex;align-items:center;min-height:44px;font-size:16px}
}
@media(min-width:360px) and (max-width:760px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product img{height:125px;padding:6px}.details{padding:12px}.details h2{font-size:22px;line-height:1.15}.product .purchase-controls button{padding:10px 8px;font-size:16px}.details .location-type{font-size:14px;letter-spacing:.04em}.details .filename{font-size:14px}.product .detail-link{line-height:1.3}
}
@media(max-width:359px){.cart-row{grid-template-columns:1fr}.cart-row img{width:100%;height:150px}.photo-lightbox-header h2{font-size:20px}.photo-lightbox-close{padding:10px 12px}.page-heading h1{font-size:34px}}
@media(max-height:500px){.photo-lightbox-stage img{max-height:calc(100dvh - 130px)}.photo-lightbox-header{margin-bottom:8px}.photo-lightbox-header h2{font-size:20px}}
/* Crawlable state links share the same layout on every device. */
.state-directory { margin: 2rem 0; }
.state-directory summary { cursor: pointer; padding: .8rem; min-height: 44px; }
.state-directory nav { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: .5rem; }
.state-directory a { padding: .75rem; min-height: 44px; overflow-wrap: anywhere; }

.permanent-product-url { overflow-wrap:anywhere; }

.seo-settings { margin-block:1.5rem; }
.seo-settings summary,.seo-reset { min-height:44px; padding:.75rem; cursor:pointer; }
.seo-search-preview { padding:1rem; border:1px solid var(--line,#ccc); border-radius:8px; overflow-wrap:anywhere; }
.seo-preview-title { color:#174a82; font-size:1.15rem; }
.seo-preview-url { font-size:1rem; }
/* Keep the four homepage picks together on laptops; smaller screens retain the shared grid. */
@media(min-width:1024px){#featured-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
