/* One checkout surface across the home page and product pages. */
[hidden]{display:none!important}
.header-controls{display:flex;align-items:center;gap:12px;margin-inline-start:auto;flex-shrink:0}
.header-cart{position:relative;display:grid;place-items:center;width:48px;height:48px;border:1px solid #d8d3c9;border-radius:9px;background:#fffdf9;color:#111114;box-shadow:0 3px 0 #e5e0d5;cursor:pointer}
.header-cart svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.header-cart:hover{background:#fff4b3;transform:translateY(-2px)}
.header-cart .cart-count{position:absolute;top:-7px;right:-7px;min-width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#ffd321;color:#111114;font-size:.75rem;font-weight:700}
.modal-backdrop{position:fixed;inset:0;background:#11111466;backdrop-filter:blur(3px);z-index:50}
.modal{position:fixed;z-index:71;top:50%;left:50%;transform:translate(-50%,-50%);width:min(450px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:32px;text-align:center;background:#fffdf9;color:#111114;border:1px solid #d8d3c9;border-radius:14px;box-shadow:0 18px 60px #11111426}
.modal h2{margin:18px 0 12px;font-size:1.5rem;font-weight:700;line-height:1.7}
.modal p{margin:0 0 20px;color:#716d67;font-size:1rem;line-height:1.9}
.modal-badge{display:inline-block;padding:5px 12px;background:#f4f1e9;border:1px solid #d8d3c9;border-radius:7px;font-size:.875rem;font-weight:500}
.modal-close,.cart-close{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border:1px solid #d8d3c9;border-radius:8px;background:#f4f1e9;color:#111114;font-size:1.5rem;cursor:pointer}
.modal-close{position:absolute;top:12px;left:12px}
.modal .primary,.cart-panel .primary{display:block;width:100%;min-height:50px;padding:12px 18px;border:0;border-radius:8px;background:#ffd321;color:#111114;box-shadow:0 4px 0 #d7ae08;font:inherit;font-size:.9375rem;font-weight:600;text-decoration:none;cursor:pointer}
.modal .primary:hover,.cart-panel .primary:hover{background:#ffe15f}
.modal .whatsapp-confirm{margin-top:14px;background:#111114;color:#fff;box-shadow:0 4px 0 #454545}
.cart-panel{position:fixed;z-index:60;inset:0 auto 0 0;display:flex;flex-direction:column;width:min(460px,100%);height:100dvh;background:#fffdf9;color:#111114;border-inline-start:1px solid #d8d3c9;box-shadow:15px 0 40px #11111426;transform:translateX(-105%);transition:transform .25s}
.cart-panel.open{transform:translateX(0)}
.cart-panel :is(input,textarea,button){font:inherit}
.cart-head{display:flex;align-items:center;justify-content:space-between;flex:none;gap:16px;padding:20px 24px;border-bottom:1px solid #d8d3c9}
.cart-head h2{margin:0;font-size:1.4rem;font-weight:600}
.cart-items{min-height:0;max-height:32dvh;flex:0 1 auto;overflow:auto;padding:0 24px}
.cart-item{display:flex;align-items:flex-start;gap:12px;padding:18px 0;border-bottom:1px solid #d8d3c9;min-width:0}
.cart-thumb{display:grid;place-items:center;flex:0 0 54px;width:54px;height:68px;border:1px solid #d8d3c9;background:#f4f1e9;border-radius:8px;color:#111114;font-size:.875rem}
.cart-thumb img{width:100%;height:100%;object-fit:contain;border-radius:7px}
.cart-item-main{flex:1;min-width:0}
.cart-item h4{margin:0;font-size:1rem;font-weight:600;line-height:1.7;overflow-wrap:anywhere}
.cart-item small{display:block;margin-top:4px;color:#716d67;font-size:.8125rem;line-height:1.8}
.cart-item b{display:block;color:#111114;font-size:.9375rem;font-weight:600}
.cart-item-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:9px 0;font-size:.875rem}
.cart-item-controls label{display:flex;align-items:center;gap:6px}
.cart-item-controls input{width:62px;min-height:38px;padding:6px;border:1px solid #d8d3c9;border-radius:6px;background:#fff;font-size:1rem}
.cart-item-controls a{color:#111114;text-decoration:underline;text-underline-offset:3px}
.remove-item{flex:none;width:28px;height:28px;border:0;background:#f4f1e9;border-radius:6px;color:#716d67;font-size:1.25rem;cursor:pointer}
.cart-empty{padding:40px 0;text-align:center;font-size:1rem}
.cart-empty>span{font-size:2rem}.cart-empty h3{font-size:1.125rem;margin:12px 0}.cart-empty p{font-size:.9375rem;color:#716d67;line-height:1.8}
.order-form{display:grid;gap:14px;min-height:0;flex:1;overflow:auto;padding:20px 24px}
.order-form h3{margin:0;font-size:1.125rem;font-weight:600}
.order-form>label{display:grid;gap:6px;font-size:.875rem;font-weight:500}
.order-form :is(input:not([type=radio]):not([type=checkbox]),textarea){width:100%;min-height:48px;padding:10px 12px;border:1px solid #d8d3c9;border-radius:8px;background:#fff;color:#111114;font-size:1rem}
.order-form textarea{resize:vertical}
.order-form fieldset{display:flex;flex-wrap:wrap;gap:12px;border:0;padding:0;margin:0;font-size:.875rem}
.order-form legend{margin-bottom:8px;font-weight:500}
.order-form fieldset label{display:flex;align-items:center;gap:7px}
.order-form input[type=radio]{accent-color:#111114;width:18px;height:18px}
.order-hint{margin:0;padding:12px;background:#f4f1e9;color:#716d67;font-size:.8125rem;line-height:1.8;border-radius:8px}
.cart-footer{flex:none;padding:18px 24px 24px;border-top:1px solid #d8d3c9}
.cart-footer>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:.875rem}
.cart-total{font-size:1.25rem;font-weight:700}
.cart-footer button:disabled{opacity:.6;cursor:wait}
.cart-map-file{display:grid;gap:7px;margin-top:10px;padding:10px;border:1px dashed #bcb7ad;border-radius:8px;background:#f4f1e9;font-size:.8125rem}
.cart-map-file input{max-width:100%;font-size:.8125rem}
.cart-panel input::file-selector-button{background:#fff;border:1px solid #d8d3c9;border-radius:5px;padding:5px;color:#111114;font:inherit}
.storefront-home .mobile-nav{display:none}
:is(.cart-panel,.modal,.header-controls) :is(button,a,input,textarea):focus-visible{outline:3px solid #9f7800;outline-offset:3px}
@media(max-width:760px){
 .storefront-home footer{padding-bottom:100px}
 .header-controls{gap:9px}.header-cart{width:42px;height:42px}.header-controls .header-action{display:none}
 .storefront-home .mobile-nav{position:fixed;z-index:38;inset:auto 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border-top:1px solid #d8d3c9;background:#fffdf9;box-shadow:0 -4px 18px #1111140a}
 .storefront-home .mobile-nav :is(a,button){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;background:none;color:#716d67;font:inherit;text-decoration:none;cursor:pointer}
 .storefront-home .mobile-nav svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
 .storefront-home .mobile-nav small{font-size:.75rem;font-weight:500}.storefront-home .mobile-nav .active{color:#111114}
 .storefront-home .mobile-nav b{position:absolute;top:3px;right:calc(50% - 22px);display:grid;place-items:center;min-width:19px;height:19px;border-radius:50%;background:#ffd321;color:#111114;font-size:.75rem}
 .cart-panel,.product-design-20 .cart-panel{top:0;bottom:calc(66px + env(safe-area-inset-bottom));height:calc(100dvh - 66px - env(safe-area-inset-bottom))}
 .cart-head{padding:16px 20px}.cart-items{max-height:28dvh;padding-inline:20px}.order-form{padding:16px 20px}.cart-footer{padding:16px 20px 20px}
 .modal{padding:30px 22px}
}
@media(prefers-reduced-motion:reduce){.cart-panel{transition:none}}
