/* Touch-first storefront. Desktop layout continues to use style.css. */
.mobile-purchase-bar,.mobile-bottom-nav,.mobile-product-meta{display:none}
[hidden]{display:none!important}
.installation-notice{margin-top:16px;padding:14px 16px;color:#c62828;background:#fff3f3;border:1px solid #f3caca;border-radius:12px;font-size:14px;line-height:1.9}
.installation-notice p+p{margin-top:6px}
.compatibility-details{margin-top:16px;color:var(--muted,#728276);font-size:12px}
.compatibility-details summary{cursor:pointer;padding:8px 0;line-height:1.6}
.compatibility-details .compatibility-note{margin-top:6px}
#checkout,#order-form{scroll-margin-top:90px}

@media(max-width:600px){
  html{scroll-padding-top:82px}
  body{font-size:15px;-webkit-text-size-adjust:100%;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
  body.admin-body{padding-bottom:0}
  .container{width:calc(100% - 32px)}
  .site-header{position:sticky;top:0;z-index:40;padding-top:env(safe-area-inset-top,0px);background:rgba(248,249,244,.97);backdrop-filter:blur(14px)}
  .header-inner{height:64px;gap:12px}
  .brand{font-size:16px;min-width:0;gap:9px}
  .brand small{display:none}
  .brand-mark{width:34px;height:36px;flex:none}
  .top-nav{gap:0;flex:none}
  .top-nav a{min-height:44px;display:flex;align-items:center;font-size:13px;padding:0 8px}
  .top-nav a:first-child{display:none}
  .top-nav a[aria-current]::after{bottom:0}
  .top-nav a span{margin-left:5px}
  .button{min-height:48px;font-size:15px;border-radius:12px;touch-action:manipulation}
  .text-button,.icon-button{min-height:44px;min-width:44px;font-size:13px;touch-action:manipulation}
  a,input,button,textarea,summary{-webkit-tap-highlight-color:rgba(31,73,63,.1)}
  input,textarea,select,.form-field input,.form-field textarea,.region-fields input,.login-card .form-field input,.track-search input{font-size:16px}
  .form-field input{min-height:50px;padding:13px 14px;border-radius:10px}
  .form-field input,.form-field textarea{scroll-margin-top:96px;scroll-margin-bottom:100px}
  .form-field textarea{min-height:90px;padding:13px 14px;border-radius:10px;line-height:1.6}
  .form-field label{font-size:14px;margin-bottom:9px}
  .form-field input::placeholder,.form-field textarea::placeholder{font-size:14px}
  .form-stack{gap:19px}
  .form-section-label h3{font-size:16px}
  .form-section-label>span{font-size:11px}
  .notice{font-size:13px;line-height:1.8}
  .toast{bottom:calc(98px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 32px);font-size:14px;padding:13px 18px;z-index:1000}
  .site-footer{font-size:12px;padding-block:24px;gap:17px}
  .site-footer>div{flex-wrap:wrap;gap:12px;line-height:1.8}
  .site-footer a{min-height:40px;display:inline-flex;align-items:center}
  .back-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px}

  /* A compact product overview puts the address form within easy reach. */
  .shop-page{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  .shop-section{padding-top:22px;gap:22px;padding-bottom:24px}
  .product-story>.eyebrow{font-size:10px;letter-spacing:.7px}
  .product-story>h1{font-size:29px;line-height:1.4;letter-spacing:-.9px;margin-top:11px}
  .hero-description{font-size:14px;line-height:1.8;margin-top:10px}
  .mobile-product-meta{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:12px}
  .mobile-product-meta>span{padding:6px 10px;background:#eaf0e4;border:1px solid #e0e7d9;border-radius:7px;color:#42624c}
  .mobile-product-meta strong{font-size:14px}
  .product-visual{margin-top:17px;height:180px;border-radius:16px}
  .usb-illustration{width:340px;max-width:none;top:-15px}
  .visual-ring{width:240px;height:240px;left:calc(50% - 120px);top:-34px}
  .visual-ring.ring-two{width:150px;height:150px;left:calc(50% - 75px);top:12px}
  .visual-index{top:13px;left:14px;font-size:8px}
  .visual-sticker{left:12px;bottom:15px;padding:8px;gap:6px;font-size:10px}
  .visual-sticker small{font-size:9px}
  .visual-caption{font-size:8px;right:10px;bottom:9px}
  .section-title{margin-top:19px;margin-bottom:10px}
  .section-title h2{font-size:15px}
  .section-title>span{display:none}
  .app-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .app-item{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:14px 5px;background:#fff;border:1px solid #e5e9df;border-radius:13px;min-width:0}
  .app-icon{width:38px;height:38px;border-radius:12px}
  .app-icon svg{width:25px;height:25px}
  .app-item h3{font-size:12px;line-height:1.5;font-weight:600}
  .app-item p,.app-item .app-tag{display:none}
  .compatibility-details{font-size:12px;margin-top:8px}
  .compatibility-details summary{min-height:44px;display:list-item;padding:13px 0}
  .compatibility-details .compatibility-note{font-size:12px;line-height:1.8;display:block;margin:0 0 5px}
  .checkout-column{min-width:0}
  .checkout-card{border-radius:18px;padding:22px 18px;box-shadow:0 8px 28px #233b2f06}
  .checkout-heading .eyebrow{display:none}
  .checkout-heading h2{font-size:23px}
  .product-summary{margin-top:17px;padding:14px 12px;gap:8px}
  .product-summary strong{font-size:14px}
  .product-summary p{font-size:11px;line-height:1.6;margin-top:5px}
  .price{font-size:30px;white-space:nowrap}
  .checkout-steps{margin-block:21px;padding-bottom:20px}
  .checkout-steps li{font-size:12px;gap:5px}
  .checkout-steps li:not(:last-child)::after{width:12px;margin-left:5px}
  .checkout-steps li>span{width:22px;height:22px;font-size:11px}
  .two-columns{grid-template-columns:1fr;gap:19px}
  .region-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .region-fields input:last-child{grid-column:1/-1}
  .region-fields input{font-size:16px;padding-inline:13px}
  .region-fields input::placeholder{font-size:14px}
  .check-field{font-size:12px;line-height:1.8;align-items:flex-start;gap:10px;padding:4px 0}
  .check-field input{width:20px;height:20px;min-width:20px;margin-top:2px;accent-color:#204b40}
  .payment-total{padding-top:18px}
  .payment-total>span{font-size:14px}
  .payment-total strong{font-size:25px}
  #submit-order{min-height:51px;font-size:15px}
  .secure-caption{font-size:11px;line-height:1.7}
  .setup-notice{font-size:12px;line-height:1.8}
  .track-shortcut{padding:16px;gap:10px;border-radius:13px}
  .track-shortcut strong{font-size:13px}
  .track-shortcut p{font-size:11px;line-height:1.6}
  .track-shortcut a{font-size:12px;min-height:44px;display:inline-flex;align-items:center;flex:none}
  .how-section{padding-block:24px;gap:18px}
  .how-section .eyebrow{display:none}
  .how-section h2{font-size:19px}
  .how-section ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .how-section li{display:block}
  .how-section li>span{display:block;font-size:22px;margin-bottom:8px}
  .how-section h3{font-size:13px}
  .how-section p{font-size:11px;line-height:1.7}

  .mobile-purchase-bar{display:flex;position:fixed;z-index:60;left:0;right:0;bottom:0;gap:20px;align-items:center;justify-content:space-between;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e3e9df;box-shadow:0 -5px 24px #1f382a08;transition:transform .18s ease}
  .mobile-bar-price{display:flex;flex-direction:column;gap:2px;flex:none}
  .mobile-bar-price>span{font-size:11px;color:#708075}
  .mobile-bar-price>strong{font-size:28px;line-height:1.15;color:#1d493e;letter-spacing:-.5px}
  .mobile-bar-price small{font-size:15px;font-weight:600;margin-right:2px}
  #mobile-buy{flex:1;max-width:260px;min-height:50px;font-size:15px;justify-content:center;gap:13px;padding-inline:12px}
  .keyboard-open .mobile-purchase-bar{transform:translateY(120%);visibility:hidden;pointer-events:none}
  .keyboard-open .mobile-bottom-nav{display:none}
  .mobile-bottom-nav{display:flex;position:fixed;z-index:55;left:0;right:0;bottom:0;justify-content:space-evenly;padding:8px 16px calc(8px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #e3e9df;box-shadow:0 -4px 18px #1f382a05}
  .mobile-bottom-nav a{display:flex;align-items:center;justify-content:center;flex:1;gap:9px;min-height:48px;color:#7b887d;font-size:13px;border-radius:11px}
  .mobile-bottom-nav svg{width:22px;height:22px;flex:none}
  .mobile-bottom-nav a[aria-current]{color:#204b40;background:#edf3e8;font-weight:600}

  /* Payment, status and logistics remain usable on the same phone. */
  .narrow-page,.track-page{padding-top:12px;padding-bottom:22px}
  .page-intro{margin-block:19px 23px}
  .page-intro h1{font-size:26px;line-height:1.45;letter-spacing:-.8px}
  .page-intro p{font-size:14px;line-height:1.8}
  .page-intro .eyebrow{font-size:9px;letter-spacing:1px}
  .order-card-top{gap:10px;padding:19px 16px;align-items:flex-start}
  .order-card-top strong{font-size:12px;overflow-wrap:anywhere}
  .subtle-label{font-size:11px}
  .status-badge{font-size:11px;white-space:nowrap;padding:5px 9px}
  .order-timeline{padding:22px 10px;gap:8px}
  .order-timeline strong{font-size:12px;white-space:nowrap}
  .order-timeline small{font-size:10px;line-height:1.6}
  .order-product{gap:10px;padding:19px 16px;flex-wrap:wrap}
  .order-product h2{font-size:14px}
  .order-product p{font-size:11px;max-width:180px;line-height:1.8}
  .order-product small{font-size:11px}
  .order-product>strong{font-size:20px;margin-left:auto}
  .payment-panel{padding:25px 16px}
  .payment-heading h2{font-size:19px}
  .payment-heading p{font-size:13px;line-height:1.8}
  .payment-panel .button{width:100%;min-height:50px;font-size:15px}
  .payment-panel #payment-link{font-size:15px;background:#204b40;color:white;border-color:#204b40;min-height:50px}
  #payment-code{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  #payment-code #payment-link{order:0;margin-top:0}
  #payment-code>.fine-print:last-child{order:1}
  #payment-code .qr-frame{order:2;margin-top:12px}
  #payment-code #payment-expiry{order:3}
  .payment-panel .fine-print,.order-save-note{font-size:12px;line-height:1.8}
  .qr-frame{margin-inline:auto;max-width:100%}
  .qr-frame img{max-width:100%;height:auto}
  .success-panel{margin:16px;padding:17px;gap:10px}
  .success-panel h2{font-size:17px}
  .success-panel p{font-size:13px;line-height:1.8}
  .success-check{flex:none}
  .shipment-panel{margin:16px;padding:17px}
  .shipment-panel h2{font-size:19px}
  .shipment-panel dl>div{display:block;margin-top:13px}
  .shipment-panel dt{font-size:12px;margin-bottom:5px}
  .shipment-panel dd{font-size:16px;gap:8px;flex-wrap:wrap;overflow-wrap:anywhere}
  .shipment-panel .monospace{word-break:break-all}
  .order-card-bottom{gap:9px;padding:9px 14px;font-size:11px}
  .order-card-bottom .text-button{font-size:13px;white-space:nowrap}
  .track-page .page-intro h1{font-size:27px}
  .tracking-illustration{width:86px;margin-top:9px}
  .track-search{display:flex;flex-direction:column;gap:12px;margin-top:23px}
  .track-search>div{width:100%}
  .track-search input{font-size:18px;height:54px;padding-left:63px;letter-spacing:1px}
  .track-search input::placeholder{font-size:15px;letter-spacing:0}
  .phone-prefix{font-size:14px;left:15px;top:16px;padding-right:10px}
  .track-search>.button{width:100%;min-height:50px;font-size:15px}
  .privacy-caption{font-size:12px;line-height:1.8}
  .tracking-result{padding:18px;border-radius:16px}
  .tracking-result-top{align-items:flex-start;gap:8px}
  .tracking-result-top>div{min-width:0}
  .tracking-result-top>div>strong{font-size:12px;overflow-wrap:anywhere}
  .tracking-result-top small{font-size:11px}
  .tracking-result-product{font-size:13px;gap:12px}
  .tracking-result-product>strong{font-size:17px;white-space:nowrap}
  .tracking-details>div{font-size:14px;line-height:1.7;flex-wrap:wrap;gap:6px 10px}
  .tracking-details>div>span:first-child{font-size:12px;min-width:53px}
  .tracking-details .monospace{word-break:break-all;font-size:15px}
  .track-help{grid-template-columns:1fr;gap:19px;margin-top:24px}
  .track-help strong{font-size:14px}
  .track-help p{font-size:12px;line-height:1.8}
  .empty-state{padding:27px 18px}
  .empty-state p{font-size:13px;line-height:1.8}
  .login-page{padding-top:25px;padding-bottom:30px}
  .login-card{padding:26px 22px;border-radius:18px}
  .login-card>p{font-size:13px;line-height:1.8;margin-bottom:25px}
  .login-card .form-field input{font-size:16px;min-height:50px}
  .login-card .back-link{font-size:13px;min-height:44px;display:flex;justify-content:center}
}

@media(max-width:359px){
  .container{width:calc(100% - 24px)}
  .brand{font-size:14px}
  .product-story>h1{font-size:27px}
  .checkout-card{padding-inline:15px}
  .form-section-label{flex-wrap:wrap;gap:5px}
  .checkout-steps li{font-size:11px}
  .checkout-steps li:not(:last-child)::after{width:7px;margin-left:2px}
  .mobile-purchase-bar{padding-inline:14px;gap:13px}
  #mobile-buy{font-size:14px}
  .order-product p{max-width:155px}
}

@media(prefers-reduced-motion:reduce){.mobile-purchase-bar{transition:none}}
