/* VitrineFlow 1.4: mobile-first refinements shared by marketplace and administration. */
:root{--tap:46px;--mobile-nav-height:68px;--mobile-safe:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:120px;-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
.ui-icon{display:inline-block;vertical-align:middle;flex:none}
:focus-visible{outline:3px solid #e5a900;outline-offset:3px}
.btn,.vf-product-action,.market-add,.vf-hero-button,.vf-seller-invite>a{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;border-radius:12px}
.btn:active,.market-add:active,.vf-product-action:active,.vf-hero-button:active{transform:scale(.975)}
.btn:disabled,button:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}
.panel,.market-product,.vf-product-card{box-shadow:0 7px 26px rgba(29,34,49,.045)}
.mode-admin .panel{border:1px solid #e8eaf0;border-radius:19px}
.mode-admin .stat{border-radius:17px;border:1px solid #e9ebf0}
.mode-admin .page-head h1{letter-spacing:-.045em}
.mode-admin .eyebrow{font-size:.69rem;font-weight:850;letter-spacing:.12em}
.mode-admin .field input,.mode-admin .field select,.mode-admin .field textarea{background:#fff;border-radius:11px}
.mode-admin .field input[type=color]{min-height:48px;min-width:86px;padding:5px}
.mode-admin .field input[type=file]{max-width:100%;white-space:normal}
.mode-admin .badge{border-radius:999px;padding:6px 10px}
.mode-admin .text-button{font-weight:800}
.mode-market .vf-global-logo span{letter-spacing:-.065em}
.mode-market .vf-product-card,.mode-store .market-product{border-radius:17px}
.mode-market .vf-product-action,.mode-store .market-add{min-height:var(--tap);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 13px;font-size:.78rem}
.mode-store .market-add{justify-content:center}
.mode-market .vf-product-card:active,.mode-store .market-product:active{box-shadow:0 8px 24px #141a2b18}
.mobile-primary-nav{display:none}
@media(max-width:800px){
 .mode-admin .topbar{position:sticky;top:0;z-index:30;background:#20283a;box-shadow:0 6px 20px #11172720}
 .mode-admin .topbar-inner{display:flex;flex-wrap:nowrap;height:60px;min-height:60px;padding:0;gap:10px}
 .mode-admin .topbar nav{display:none}
 .mode-admin .brand{font-size:1.23rem;min-width:0;overflow:hidden;text-overflow:ellipsis}
 .mode-admin .top-actions{margin-left:auto;border:0;padding:0;gap:10px;flex:none}
 .mode-admin .top-actions a{font-size:.76rem;white-space:nowrap;color:#fff}
 .mode-admin .top-actions a:first-child{display:none}
 .mode-admin .admin-main{padding-top:25px;padding-bottom:calc(105px + var(--mobile-safe))}
 .mode-admin .page-head{gap:12px;align-items:flex-start;flex-wrap:wrap}
 .mode-admin .page-head h1{font-size:clamp(1.85rem,6vw,2.4rem);line-height:1.08;margin-bottom:7px}
 .mode-admin .page-head p{font-size:.84rem;max-width:50ch}
 .mode-admin .page-head>.btn{min-height:42px}
 .mode-admin .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .mode-admin .stat{padding:16px;min-width:0}
 .mode-admin .stat strong{font-size:clamp(1.3rem,5vw,1.8rem);overflow-wrap:anywhere}
 .mode-admin .panel{padding:17px;min-width:0}
 .mode-admin .admin-columns{display:flex;flex-direction:column;gap:14px}
 .mode-admin .admin-columns>.grow,.mode-admin .admin-columns>.side-panel{width:100%;min-width:0}
 .mode-admin .field{min-width:0}
 .mode-admin .field input:not([type=checkbox]):not([type=radio]),.mode-admin .field select,.mode-admin .field textarea{width:100%;max-width:100%;min-height:46px;font-size:16px}
 .mode-admin .field textarea{min-height:100px}
 .mode-admin .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .mode-admin .toggle-list{gap:12px}
 .mode-admin .toggle-list label{min-height:44px;display:flex;align-items:center;gap:9px}
 .mode-admin input[type=checkbox]{width:18px;height:18px;accent-color:#e8ae04}
 .mode-admin .product-admin-list>a{gap:10px;min-width:0;min-height:80px}
 .mode-admin .product-admin-list .grow{min-width:0;overflow:hidden}
 .mode-admin .product-admin-list strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mode-admin .product-admin-list b{font-size:.86rem}
 .mode-admin .order-actions .btn{min-height:44px}
 .mode-admin .share-link{overflow-wrap:anywhere;user-select:all}
 .mode-admin .master-tabs{margin-top:4px;margin-bottom:14px;padding-bottom:8px;scroll-snap-type:x proximity}
 .mode-admin .master-tabs a{scroll-snap-align:start;min-height:44px;display:flex;align-items:center}
 .mobile-primary-nav{display:block;position:fixed;left:0;right:0;bottom:0;z-index:40;background:#fff;border-top:1px solid #e7eaf0;box-shadow:0 -9px 28px #19223718;padding:5px 4px calc(5px + var(--mobile-safe))}
 .mobile-primary-nav>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));max-width:620px;margin:auto}
 .mobile-primary-nav a{min-height:var(--mobile-nav-height);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:12px;color:#667083;text-align:center;text-decoration:none;font-size:.62rem;font-weight:750;line-height:1.1;white-space:nowrap}
 .mobile-primary-nav a .ui-icon{width:23px;height:23px;stroke-width:1.9}
 .mobile-primary-nav a[aria-current=page]{color:#1f2838;background:#fff2ba}
 .mobile-primary-nav a:active{background:#fff2ba}
 .mode-admin .footer{padding-bottom:calc(88px + var(--mobile-safe));margin-top:0}
 .mode-market .vf-global-header{top:0}
 .mode-market .vf-global-main{grid-template-columns:minmax(0,1fr) auto}
 .mode-market .vf-global-logo{min-width:0;overflow:hidden}
 .mode-market .vf-global-logo span{overflow:hidden;text-overflow:ellipsis}
 .mode-market .vf-global-links{min-width:0}
 .mode-market .vf-global-links a{font-size:.75rem}
 .mode-market .vf-global-search{min-height:46px}
 .mode-market .vf-global-search input{font-size:16px}
 .mode-market .vf-global-nav{display:none}
 .mode-market .vf-home-hero{margin-bottom:0}
 .mode-market .vf-hero-copy h1{font-size:clamp(2.35rem,10vw,3.4rem);line-height:1.04}
 .mode-market .vf-hero-copy{padding:31px 0 17px}
 .mode-market .vf-hero-art{height:205px}
 .mode-market .vf-value-strip{margin-top:-7px}
 .mode-market .vf-category-row a{scroll-snap-align:start}
 .mode-market .vf-category-row,.mode-market .vf-pills,.mode-market .vf-segment-row{scroll-snap-type:x proximity}
 .mode-market .vf-product-image{aspect-ratio:1/1;height:auto;min-height:140px}
 .mode-market .vf-products-grid{gap:10px}
 .mode-market .vf-product-content{min-width:0}
 .mode-market .vf-product-title{line-height:1.35;min-height:2.7em}
 .mode-market .vf-product-pricing strong{font-size:clamp(1.05rem,3.8vw,1.3rem)}
 .mode-market .vf-global-footer{padding-bottom:calc(94px + var(--mobile-safe))}
 .mode-store .market-brand span{max-width:calc(100vw - 145px)}
 .mode-store .market-search{min-height:46px}
 .mode-store .market-search input{font-size:16px}
 .mode-store .market-cart{min-height:44px;min-width:44px;justify-content:center}
 .mode-store .market-cart b{top:0;left:27px}
 .mode-store .market-subnav .shell{height:42px;scroll-snap-type:x proximity}
 .mode-store .market-subnav a{scroll-snap-align:start;display:flex;align-items:center;min-height:42px}
 .mode-store .market-hero{padding:25px;min-height:300px}
 .mode-store .market-hero h1{font-size:clamp(2.15rem,8vw,3rem)}
 .mode-store .market-grid{gap:10px}
 .mode-store .market-product-photo{aspect-ratio:1/1;height:auto;min-height:142px}
 .mode-store .market-product-body{min-width:0}
 .mode-store .market-product-name{line-height:1.35}
 .mode-store .market-add{min-height:44px}
 .mode-store .market-footer{padding-bottom:calc(98px + var(--mobile-safe))}
 .mode-store .mobile-cart-bar{min-height:60px;padding:11px max(16px,env(safe-area-inset-right)) calc(11px + var(--mobile-safe)) max(16px,env(safe-area-inset-left));color:#202431}
 .mode-store .mobile-cart-bar b{background:#202431;color:#fff}
 .cart-drawer{height:100dvh;max-height:100dvh}
 .drawer-bottom{padding-bottom:calc(17px + var(--mobile-safe))}
 .modal-backdrop{align-items:flex-end}
 .checkout-modal{border-radius:22px 22px 0 0;width:100%;max-height:94dvh}
 .checkout-scroll{padding:18px 18px calc(23px + var(--mobile-safe))}
 .checkout-modal .field input,.checkout-modal .field select,.checkout-modal .field textarea{font-size:16px}
 .variant-picker{align-items:flex-end}
 .variant-box{max-height:90dvh;overflow:auto;border-radius:20px 20px 0 0;padding-bottom:calc(18px + var(--mobile-safe))}
}
@media(max-width:600px){
 .mode-admin .table-wrap{overflow:visible;max-width:none}
 .mode-admin table{display:block;min-width:0;width:100%}
 .mode-admin thead{display:none}
 .mode-admin tbody{display:grid;gap:10px}
 .mode-admin tr{display:block;border:1px solid #e6e9f0;border-radius:14px;padding:7px 13px;background:#fff}
 .mode-admin td{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0;padding:10px 0;border-bottom:1px solid #edf0f3;text-align:right;font-size:.83rem;overflow-wrap:anywhere}
 .mode-admin td:last-child{border-bottom:0}
 .mode-admin td::before{content:attr(data-label);display:block;flex:0 0 88px;color:#7c8593;text-align:left;font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em;line-height:1.4}
 .mode-admin td small{font-size:.7rem}
 .mode-admin td a,.mode-admin td form{max-width:calc(100% - 90px)}
 .mode-admin td .master-actions{justify-content:flex-end;flex-wrap:wrap}
 .mode-admin .master-filter{max-width:none;display:flex}
 .mode-admin .master-filter input{min-width:0;min-height:46px;font-size:16px}
 .mode-admin .master-filter .btn{min-height:46px}
 .mode-admin .master-taxonomy-form{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:9px}
 .mode-admin .master-taxonomy-form input[name=name]{min-width:0}
 .mode-admin .master-taxonomy-form input[name=sort_order]{width:100%}
 .mode-admin .master-taxonomy-form label,.mode-admin .master-taxonomy-form select,.mode-admin .master-taxonomy-form button{grid-column:auto}
 .mode-admin .master-taxonomy-form select{max-width:none;width:100%}
 .mode-admin .master-taxonomy-form button{min-height:44px}
 .mode-admin .master-shortcuts a{padding:18px;min-height:110px}
 .mode-admin .page-head>.btn{width:100%}
 .mode-admin .order-card .order-top h2{font-size:1.13rem}
 .mode-admin .order-items>div{align-items:start}
 .mode-admin .order-items span{min-width:0}
 .mode-market .vf-global-logo i{width:34px;height:34px}
 .mode-market .vf-global-links a:not(:last-child){display:none}
 .mode-market .vf-section-head{align-items:start}
 .mode-market .vf-section-head>span{max-width:120px;text-align:right}
 .mode-store .market-section-title{align-items:start}
 .mode-store .market-section-title>a,.mode-store .market-section-title>span{max-width:95px;text-align:right}
}
@media(max-width:380px){
 .mode-admin .form-row{grid-template-columns:1fr}
 .mode-admin .brand{font-size:1.07rem}
 .mode-admin .stat{padding:12px}
 .mobile-primary-nav a{font-size:.56rem;letter-spacing:-.025em}
 .mobile-primary-nav a .ui-icon{width:21px;height:21px}
 .mode-market .vf-product-image,.mode-store .market-product-photo{min-height:126px}
 .mode-market .vf-product-content,.mode-store .market-product-body{padding:9px}
 .mode-market .vf-seller,.mode-store .market-fulfillment{font-size:.61rem}
 .mode-market .vf-product-pricing strong,.mode-store .market-price strong{font-size:1.04rem}
 .mode-market .vf-hero-art{height:160px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.market-product,.vf-product-card,.market-add{transition:none!important}}
.mode-store .market-brand>.ui-icon{width:42px;height:42px;padding:9px;border-radius:12px;background:var(--accent);color:#202431}
.mode-store .market-trust i .ui-icon,.mode-store .detail-benefits i .ui-icon{display:block}
.mode-store .market-trust i,.mode-store .detail-benefits i{display:grid;place-items:center}
.mode-store .mobile-cart-bar .ui-icon{vertical-align:-5px;margin-right:4px}
.mode-market .vf-global-logo i .ui-icon{color:#ffcf22}
@media(max-width:700px){.mode-store .market-brand>.ui-icon{width:34px;height:34px;padding:7px;border-radius:9px}}
.mode-admin .brand i .ui-icon{vertical-align:-4px;margin-right:2px}
@media(max-width:800px){.mode-store .mobile-cart-bar{background:#202431;color:#fff}.mode-store .mobile-cart-bar b{background:#ffdc55;color:#202431}}
@media(max-width:800px){
 .mobile-primary-nav{z-index:18}
 .modal-backdrop,.variant-picker{padding:0}
 .mode-admin .toast,.mode-market .toast,.mode-store .toast{top:12px;right:12px;left:12px;max-width:none;z-index:85}
}
