/* Phoenix Digital V37 — mobile-first navigation and product action bar */
.phx37-mobile-nav,.phx37-category-dialog,.phx37-product-bar{display:none}
@media (max-width:760px){
  :root{--phx37-wine:#70233d;--phx37-wine-dark:#471b30;--phx37-gold:#c9a271;--phx37-nav-height:69px}
  html{scroll-padding-top:18px}
  body{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
  .premium-mobile-nav{display:none!important}
  .phx37-mobile-nav{position:fixed;inset:auto 0 0;z-index:105;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;min-height:var(--phx37-nav-height);padding:4px max(7px,env(safe-area-inset-right,0px)) calc(3px + env(safe-area-inset-bottom,0px)) max(7px,env(safe-area-inset-left,0px));background:rgba(255,253,252,.98);border-top:1px solid #ead9dd;box-shadow:0 -9px 30px rgba(63,23,39,.11);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
  .phx37-tab{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-width:0;min-height:56px;padding:4px 1px;border:0;border-radius:13px;background:transparent;color:#79616b;text-decoration:none!important;font:750 10px/1.25 system-ui,-apple-system,Segoe UI,sans-serif;letter-spacing:.01em;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
  .phx37-tab svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .phx37-tab>span:last-child{white-space:nowrap}
  .phx37-tab[aria-current="page"],.phx37-tab[aria-expanded="true"],.phx37-tab:active{color:var(--phx37-wine);background:#fbf1f4}
  .phx37-tab[aria-current="page"]:before{content:"";position:absolute;top:-4px;left:31%;right:31%;height:3px;border-radius:0 0 6px 6px;background:var(--phx37-wine)}
  .phx37-search-tab{color:var(--phx37-wine)}
  .phx37-search-circle{display:flex;align-items:center;justify-content:center;width:41px;height:37px;margin-top:-12px;border:3px solid #fff;border-radius:14px;background:linear-gradient(135deg,#68223c,#9c4460);color:#fff;box-shadow:0 4px 14px #692a4340}
  .phx37-search-circle svg{width:21px;height:21px}
  .phx37-icon-wrap{position:relative;display:flex}
  .phx37-cart-badge{position:absolute;top:-7px;right:-11px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:20px;background:#a12f4c;color:#fff;font:800 10px/1 system-ui;box-shadow:0 0 0 2px #fff}
  .phx37-cart-badge[hidden]{display:none}
  .phx37-tab:focus-visible,.phx37-sheet-header button:focus-visible,.phx37-category-list a:focus-visible{outline:3px solid #bb8797;outline-offset:2px}
  .phx37-category-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:760px;max-height:min(88dvh,780px);margin:auto auto 0;padding:0;overflow:hidden;border:1px solid #ebdfe1;border-radius:24px 24px 0 0;background:#fffdfc;color:#39242d;box-shadow:0 -18px 60px #210d1d4a}
  .phx37-category-dialog[open]{display:flex;flex-direction:column;animation:phx37-rise .22s ease-out}
  .phx37-category-dialog::backdrop{background:rgba(30,15,25,.55);backdrop-filter:blur(2px)}
  .phx37-sheet-handle{flex:none;width:42px;height:5px;margin:10px auto 2px;border-radius:6px;background:#dbcdd0}
  .phx37-sheet-header{flex:none;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 20px 13px;border-bottom:1px solid #f0e7e9}
  .phx37-sheet-header small{font:850 10px system-ui;letter-spacing:.12em;color:#b18b61}
  .phx37-sheet-header h2{margin:5px 0 0;font:850 21px/1.25 system-ui;color:#55253a}
  .phx37-sheet-header button{display:grid;place-items:center;flex:none;width:39px;height:39px;border:1px solid #eadcde;border-radius:13px;background:#fff4f5;color:#742b45;font:400 27px system-ui;cursor:pointer}
  .phx37-sheet-content{padding:16px 18px calc(20px + env(safe-area-inset-bottom,0px));overflow:auto;overscroll-behavior:contain}
  .phx37-category-search{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 13px;border:1px solid #ead9df;border-radius:13px;background:#fff;color:#89566b}
  .phx37-category-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .phx37-category-search input{width:100%;min-width:0;height:44px;border:0!important;outline:none!important;background:transparent!important;font:600 14px system-ui;color:#3d2731}
  .phx37-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 20px}
  .phx37-quick-links a{display:flex;justify-content:center;align-items:center;min-height:47px;padding:8px 4px;border:1px solid #eddce0;border-radius:12px;background:#fbf3f4;color:#71314b;text-decoration:none;font:800 11px system-ui;text-align:center}
  .phx37-category-heading{margin-bottom:10px;font:850 11px system-ui;letter-spacing:.1em;color:#b28b61}
  .phx37-category-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .phx37-category-list a{display:flex;align-items:center;gap:8px;min-width:0;min-height:51px;padding:8px 10px;border:1px solid #f0e6e8;border-radius:12px;background:#fff;color:#4b3440;text-decoration:none;font:750 12px/1.35 system-ui}
  .phx37-category-list a[hidden]{display:none}
  .phx37-category-list a>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .phx37-category-glyph{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:8px;background:#faf0f2;color:#8e3954;font-size:17px}
  .phx37-category-list b{color:#c1a3ae;font-size:19px;font-weight:500}
  .phx37-no-results{margin:15px 0;color:#806e77;font-size:13px}
  .phx37-sheet-shortcuts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px;padding-top:15px;border-top:1px solid #f1e8ea}
  .phx37-sheet-shortcuts a{padding:8px 10px;border-radius:9px;background:#f7f0ef;color:#6d4050;text-decoration:none;font:750 11px system-ui}
  .premium-to-top{bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
  .phx-compare-tray{bottom:calc(83px + env(safe-area-inset-bottom,0px))!important}
  .phx37-product-bar{position:fixed;bottom:calc(69px + env(safe-area-inset-bottom,0px));left:0;right:0;z-index:102;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:70px;padding:9px max(15px,env(safe-area-inset-left,0px)) 9px max(15px,env(safe-area-inset-right,0px));background:#fffdfc;border-top:1px solid #eddee2;box-shadow:0 -6px 20px #30111c12}
  .phx37-product-bar .phx37-price{min-width:0;display:flex;flex-direction:column;gap:3px}
  .phx37-product-bar .phx37-price small{font:700 10px system-ui;color:#917783}
  .phx37-product-bar .phx37-price strong{font:850 clamp(15px,4vw,21px)/1.1 system-ui;color:#74213d;white-space:nowrap}
  .phx37-product-bar .phx37-buy{flex:0 0 auto;min-width:130px;min-height:46px;padding:8px 17px;border:0;border-radius:12px;background:linear-gradient(125deg,#63213a,#933751);color:#fff;font:850 13px system-ui;box-shadow:0 6px 15px #5e1d3530;cursor:pointer}
  .phx37-product-bar .phx37-buy:disabled{background:#a9a0a3;box-shadow:none;cursor:not-allowed}
  body:has(.phx37-product-bar){padding-bottom:calc(166px + env(safe-area-inset-bottom,0px))!important}
  body:has(.phx37-product-bar) .premium-to-top{bottom:calc(164px + env(safe-area-inset-bottom,0px))!important}
  body:has(.phx37-product-bar) .phx-compare-tray{bottom:calc(153px + env(safe-area-inset-bottom,0px))!important}
  .cart-drawer{z-index:160!important}.drawer-overlay{z-index:150!important}
}
@media(max-width:380px){.phx37-tab{font-size:9px}.phx37-category-list{grid-template-columns:1fr}.phx37-quick-links a{font-size:10px}.phx37-product-bar .phx37-buy{min-width:115px;padding:8px 11px}}
@media(min-width:761px){.phx37-category-dialog{display:none!important}}
@media(prefers-reduced-motion:reduce){.phx37-category-dialog[open]{animation:none}}
@keyframes phx37-rise{from{transform:translateY(25px);opacity:.65}to{transform:translateY(0);opacity:1}}
@media print{.phx37-mobile-nav,.phx37-category-dialog,.phx37-product-bar{display:none!important}}
