/* Retain the source theme's navigation and breakpoints; contain new application layouts. */
.yk-page,.yk-panel{overflow-wrap:anywhere}
.yk-policy-note{max-width:1000px;margin:24px auto;padding:16px 24px;background:#f5f2e9;color:#4b463d;border-radius:8px;font-size:14px}
.yk-page :is(.yk-checkout,.yk-cart-page-grid,.yk-fields,.yk-product-layout)>*,.yk-cart-item>*,.yk-card{min-width:0}
.yk-page :is(input,select,textarea),.yk-panel :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.yk-card-actions{flex-wrap:wrap}
.yk-page .yk-catalog-search{display:flex;gap:12px;align-items:stretch}
.yk-page .yk-catalog-search input{min-width:0;flex:1}
.yk-page .yk-catalog-search button{flex-shrink:0;margin:0}
.yk-panel{height:100%;height:100dvh;max-height:100dvh}
.yk-panel-body{overscroll-behavior:contain;min-height:0;padding-bottom:env(safe-area-inset-bottom)}
.yk-panel-top{flex-shrink:0}
.yk-page .yk-quantity button,.yk-panel .yk-quantity button{min-width:44px;min-height:44px}
.yk-page .yk-quantity,.yk-panel .yk-quantity{height:46px}
.yk-panel .yk-panel-close{min-width:44px;min-height:44px}
.yk-page .yk-remove,.yk-panel .yk-remove{min-height:36px}
/* Source-theme button floats and margins must not overlap cart variant labels. */
.yk-cart-item>div{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.yk-cart-item>div h3{width:100%;margin:0 0 6px}.yk-cart-item>div small{display:block}
.yk-page .yk-cart-item .yk-quantity,.yk-panel .yk-cart-item .yk-quantity{display:flex;float:none;margin:10px 0 0;flex-shrink:0}
.yk-page .yk-cart-item .yk-quantity button,.yk-panel .yk-cart-item .yk-quantity button{margin:0!important;padding:0!important;width:44px;min-width:44px;min-height:44px;background:#f1eee9!important;color:#191817!important;line-height:1}
.yk-cart-item .yk-quantity span{min-width:38px;text-align:center}
.yk-page .yk-cart-item .yk-remove,.yk-panel .yk-cart-item .yk-remove{background:transparent!important;color:#514b44!important;border:0;margin:6px 0 0!important;padding:8px 0!important;min-height:44px;min-width:44px;text-align:left;text-decoration:underline}
.yk-cart-item .yk-remove::before,.yk-cart-item .yk-remove::after,.yk-cart-item .yk-quantity button::before,.yk-cart-item .yk-quantity button::after{display:none!important}
.sidebar{overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(20px,env(safe-area-inset-bottom))}
.sidebar nav{flex-shrink:0}.sidebar-foot{flex-shrink:0}
.sidebar-backdrop{position:fixed;inset:56px 0 0;background:#0005;z-index:39;border:0}
.global-search,.global-search input,.table-tools input{min-width:0}
.table-tools .muted{flex-shrink:0}
.tabs{overflow-x:auto;overscroll-behavior-x:contain}.tabs button{white-space:nowrap;flex-shrink:0}
.grid-2>*,.form-grid>*{min-width:0}.actions{flex-wrap:wrap}
.modal{max-height:90dvh}.modal-header,.modal-footer{flex-shrink:0}
.modal-header h2{min-width:0;overflow-wrap:anywhere}.modal-header button{min-width:44px;min-height:44px;flex-shrink:0}
.modal-body{overscroll-behavior:contain;min-width:0;min-height:0}.modal-footer{flex-wrap:wrap}
.modal-body .table-wrap{max-width:100%;overscroll-behavior-x:contain}
.modal-body .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.purchase-products button>span:first-child{min-width:0;overflow-wrap:anywhere}
.chart-col{min-width:0}.chart-col small{font-size:10px;white-space:nowrap}
.card,.banner,.content-links,.modal-body{overflow-wrap:anywhere}
#admin-toast{max-width:calc(100vw - 32px);width:max-content;text-align:center;bottom:max(20px,env(safe-area-inset-bottom))}
@media(max-width:800px){
 .yk-page{padding:30px 16px 70px}.yk-page h1{font-size:28px;line-height:1.4}
 .yk-catalog-toolbar{gap:12px}.yk-catalog-toolbar>label{flex:1;min-width:0}.yk-catalog-toolbar>label.yk-check{flex-basis:100%}
 .yk-catalog-toolbar select{width:100%;min-width:0}.yk-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.yk-card-actions button:first-child{grid-column:1/-1}
 .yk-page button,.yk-page .yk-button,.yk-page .yk-secondary,.yk-panel button{min-height:44px}
 .yk-page input,.yk-page select,.yk-page textarea,.yk-panel input,.yk-panel select,.yk-panel textarea{font-size:16px}
 .yk-page .yk-fields{grid-template-columns:minmax(0,1fr)}.yk-page .yk-fields .wide{grid-column:auto}
 .yk-checkout{gap:30px}.yk-checkout aside{position:static}.yk-checkout h2{margin-top:24px}
 .yk-panel{padding:16px}.yk-panel-top h2{font-size:22px}.yk-cart-item{grid-template-columns:64px minmax(0,1fr);gap:12px}
 .yk-cart-item>a img{width:64px;height:80px}.yk-cart-item>strong{grid-column:2}.yk-cart-item h3{margin-top:0}
 .yk-page .yk-coupon{display:flex;gap:8px}.yk-coupon input{min-width:0;flex:1}.yk-coupon button{flex-shrink:0;margin:0}
 .yk-contact-widget{left:12px;bottom:calc(48px + env(safe-area-inset-bottom))}.yk-demo-tag{bottom:calc(8px + env(safe-area-inset-bottom));right:10px;max-width:calc(100vw - 20px)}
 .yk-contact-widget button{min-height:44px}.yk-demo-tag a{display:inline-block;padding:5px 2px}
}
@media(max-width:760px){
 .topbar{gap:8px}.topbar #menu-toggle{min-width:40px;min-height:44px;flex-shrink:0;padding:0}
 .topbar .admin-brand{flex-shrink:0}.topbar .global-search{padding:0 6px}.topbar .global-search input{font-size:16px;padding:6px;width:100%}
 .topbar .profile{padding:0;min-width:30px;flex-shrink:0}.sidebar{width:min(280px,85vw)}.sidebar nav>a{min-height:44px}
 .sidebar nav>a.nested{font-size:13px}.sidebar-foot{margin-top:20px}
 #admin-content{padding:24px 12px 65px}.page-header{gap:12px}.page-header .actions{width:100%}
 .btn,.tabs button{min-height:44px}.table-tools{padding:10px;gap:8px}.table-tools input{width:0;font-size:16px}
 .table-wrap{overscroll-behavior-x:contain}.table-wrap table{min-width:520px}
 .form-grid,.modal-body .form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .wide{grid-column:auto}
 .modal-backdrop{padding:8px}.modal{max-height:calc(100dvh - 16px)}
 .modal-header{padding:8px 14px}.modal-footer{padding:10px 14px max(10px,env(safe-area-inset-bottom));gap:8px}
 .modal-footer .btn{flex:1;white-space:normal;min-width:90px}.modal-body{padding:14px}
 .modal-body input,.modal-body select,.modal-body textarea,.login-wrap input{font-size:16px}
 .modal-body .card table{min-width:500px}.purchase-products{max-height:240px}.purchase-products button{min-height:48px}
 .chart{gap:8px;padding:25px 0 0}.chart-col small{font-size:9px}.chart-col span{font-size:9px}
 .login-wrap{padding:24px;margin:6vh 16px}.login-wrap h1{font-size:22px}
 .loading{padding:50px 16px}.stats .stat strong{overflow-wrap:anywhere;font-size:22px}
 .search-overlay{max-height:calc(100dvh - 80px)}
}
@media(prefers-reduced-motion:reduce){.sidebar,.yk-panel-backdrop,.yk-panel{transition:none!important}}
