.cart-toggle{border:1px solid #80572f;background:#2a1710;color:#f7eddb;padding:.8rem 1.1rem;font:600 .7rem Montserrat,sans-serif;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
.cart-shade{display:none;position:fixed;inset:0;z-index:80;background:rgba(20,10,7,.58)}
.cart-shade.open{display:block}
.cart-panel{position:absolute;right:0;top:0;width:min(440px,94vw);height:100%;overflow:auto;padding:2rem;background:#f7ecd8;box-shadow:-20px 0 55px rgba(0,0,0,.3)}
.cart-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #c9aa7e;padding-bottom:1rem}
.cart-head h2{margin:0;font:600 2.2rem "Cormorant Garamond",serif}
.cart-close{border:0;background:none;font-size:1.8rem;cursor:pointer}
.cart-empty{padding:3rem 0;text-align:center;color:#745d50}
.cart-item{display:grid;grid-template-columns:1fr auto;gap:.5rem;padding:1.2rem 0;border-bottom:1px solid #d0b58f}
.cart-item h3{margin:0;font:600 1.4rem "Cormorant Garamond",serif}
.cart-item p{margin:0;color:#745d50;font-size:.78rem}
.cart-controls{display:flex;align-items:center;gap:.55rem;margin-top:.7rem}
.cart-controls button{width:30px;height:30px;border:1px solid #a77b4e;background:#fff7e7;cursor:pointer}
.cart-remove{color:#7b3d2e;border:0!important;background:none!important;width:auto!important;font-size:.68rem}
.cart-summary{margin-top:1.5rem;padding-top:1rem;border-top:2px solid #9f7547}
.subtotal{display:flex;justify-content:space-between;font-weight:600}
.shipping-note{font-size:.75rem;color:#735b4d}
.checkout-button{width:100%;border:0;opacity:1;cursor:pointer}
.checkout-note{text-align:center;font-size:.72rem;color:#745d50}
.cart-live{margin:.85rem 0 0;color:#653b24;font:500 .85rem/1.5 Montserrat,Arial,sans-serif;overflow-wrap:anywhere}.cart-live:empty{display:none}.cart-live:focus{outline:2px solid #80572f;outline-offset:4px}
.cart-item p{overflow-wrap:anywhere;white-space:pre-wrap}
.cart-item{grid-template-columns:84px minmax(0,1fr);column-gap:.85rem;align-items:start}
.cart-product-picture{display:block;width:84px;height:110px;object-fit:cover;border-radius:4px;grid-column:1;grid-row:1 / span 2}
.cart-custom-picture{height:auto;aspect-ratio:650/941}
.cart-item-details{grid-column:2;grid-row:1;min-width:0}
.cart-item>strong{grid-column:2;grid-row:2;font-size:.9rem}
.cart-controls{flex-wrap:wrap}
@media(max-width:380px){.cart-item{grid-template-columns:64px minmax(0,1fr);column-gap:.65rem}.cart-product-picture{width:64px;height:86px}}
.cart-custom-picture{height:auto;aspect-ratio:1}
.cart-product-picture{overflow:hidden}
.cart-product-picture>img,.cart-custom-canvas{display:block;width:100%;height:100%;object-fit:cover}
/* Desktop gets larger, tightly framed artwork; phone thumbnails stay unchanged. */
@media(min-width:821px){
 .cart-item{grid-template-columns:112px minmax(0,1fr)}
 .cart-product-picture{width:112px;height:144px;filter:none!important}
 .cart-custom-picture{position:relative;aspect-ratio:auto}
 .cart-custom-canvas{position:absolute;max-width:none;width:160%;height:auto;left:50%;top:45%;transform:translate(-50%,-50%)}
}

/* Edit an existing item without changing its quantity or leaving the cart. */
.cart-controls .cart-edit{width:auto;min-width:44px;min-height:36px;padding:.35rem .65rem;font:600 .75rem Montserrat,Arial,sans-serif;color:#4a2c20}
.cart-controls button:disabled{opacity:.45;cursor:default}
.cart-edit-form{grid-column:1/-1;padding:1rem;margin-top:.5rem;border:1px solid #c9aa7e;background:#fff7e7}
.cart-edit-form h4{margin:0 0 .8rem;font:600 1.5rem "Cormorant Garamond",serif}
.cart-edit-form label{display:block;margin:.8rem 0;color:#4a2c20;font:600 .8rem/1.5 Montserrat,Arial,sans-serif}
.cart-edit-form select,.cart-edit-form textarea,.cart-edit-form input:not([type=range]){display:block;width:100%;min-width:0;margin-top:.35rem;padding:.6rem;border:1px solid #a77b4e;background:#fffcf4;color:#2d1c15;font:400 1rem/1.5 Montserrat,Arial,sans-serif}
.cart-edit-form textarea{resize:vertical}
.cart-edit-form input[type=range]{display:block;width:100%;margin:.5rem 0;accent-color:#80572f}
.cart-edit-form output{display:block;font-weight:400}
.cart-edit-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.cart-edit-actions button{min-height:44px;padding:.65rem .85rem;border:1px solid #80572f;background:#4a2c20;color:#fff7e7;cursor:pointer;font:600 .75rem Montserrat,Arial,sans-serif}
.cart-edit-actions button[type=button]{background:transparent;color:#4a2c20}
.cart-item .cart-edit-note{font-size:.72rem;line-height:1.5}
.cart-edit-form :focus-visible,.cart-edit:focus-visible{outline:2px solid #80572f;outline-offset:3px}

.header{gap:1rem}.header-cart{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;flex-shrink:0;min-height:44px;min-width:44px;padding:.45rem .65rem;border:1px solid #a67a43;background:transparent;color:#f7eddb;cursor:pointer;font:600 .65rem Montserrat,sans-serif;letter-spacing:.03em;text-transform:uppercase}
.header-cart .cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 4px;border-radius:50%;background:#ead5ae;color:#2a1710;font-size:.65rem}
.header-cart:focus-visible{outline:2px solid #ead5ae;outline-offset:3px}
@media(min-width:821px) and (max-width:1100px){.header{padding-inline:2vw;gap:.65rem}.header .nav{gap:.55rem;font-size:.59rem;letter-spacing:.07em}.header .brand span{font-size:1.25rem}.header .brand small{font-size:.45rem}.header .nav-shop{padding-inline:.65rem}.header-cart-label{display:none}}
@media(max-width:820px){.header{gap:.6rem}.header>.brand{margin-right:auto}.header .menu-toggle{order:2}.header .nav{order:1}.header-cart{order:3;padding:.35rem .45rem}.header-cart-label{display:none}}
@media(max-width:380px){.header{gap:.3rem}.header .brand span{font-size:1.05rem}.header .brand small{font-size:.4rem}.header .menu-toggle{min-width:46px}.header-cart{gap:.25rem}}

/* Compact cart artwork; keep the 44px touch target. */
.header-cart svg{width:18px;height:18px}
.header-cart .cart-count{min-width:16px;height:16px;padding-inline:3px;font-size:.6rem}
.header-cart{gap:.3rem;font-size:.6rem}

/* A smaller visible frame with a comfortable touch area. */
.header-cart{position:relative;border:0;padding:.35rem .5rem;border-radius:5px}
.header-cart::before{content:"";position:absolute;inset:3px;border:1px solid #a67a43;border-radius:5px;pointer-events:none}
@media(max-width:820px){.header .menu-toggle{font-size:.8rem;letter-spacing:.1em}.header-cart{padding:.3rem .4rem}}

/* Keep phone navigation readable in portrait and landscape. */
@media(max-width:820px), (orientation:landscape) and (max-width:1180px) and (max-height:600px){
 .header{height:76px;position:sticky;top:0;gap:.6rem;padding-inline:max(5vw,env(safe-area-inset-left))}
 .header>.brand{margin-right:auto}
 .header .menu-toggle{display:block;order:2;min-width:64px;min-height:48px;padding:.5rem;color:inherit;font-size:.9rem;letter-spacing:.1em;text-transform:uppercase;cursor:pointer;flex-shrink:0}
 .header .nav{display:none;position:absolute;top:76px;left:0;right:0;order:1;flex-direction:column;gap:0;padding:.5rem 5vw 1rem;background:#21130e;box-shadow:0 20px 38px rgba(0,0,0,.35);max-height:calc(100dvh - 76px);overflow-y:auto;font-size:.9rem;letter-spacing:.1em}
 .header .nav.open{display:flex}
 .header .nav a{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;border-bottom:1px solid rgba(198,149,77,.2)}
 .header .nav-shop{margin-top:.6rem;border:1px solid var(--gold)!important}
 .header-cart{order:3;padding:.3rem .4rem}
 .header-cart-label{display:none}
}
