/* CART SIDEBAR */
#cartFlash{position:fixed;bottom:2rem;left:50%;transform:translateX(-50%) translateY(100px);background:#1A1208;color:#C4A454;padding:0.8rem 2rem;font-family:'Inter',sans-serif;font-size:0.75rem;letter-spacing:0.1em;z-index:500;opacity:0;transition:all 0.4s ease;pointer-events:none}
#cartFlash.show{opacity:1;transform:translateX(-50%) translateY(0)}
#cartFlash.error{background:#8a1f11;color:#fff1ed;box-shadow:0 18px 38px rgba(138,31,17,0.28)}
#cartBackdrop{position:fixed;inset:0;background:rgba(0,0,0,0.4);z-index:400;display:none;opacity:0;transition:opacity 0.3s}
#cartBackdrop.open{display:block;opacity:1}
#cartSidebar{position:fixed;top:0;right:0;width:420px;max-width:95vw;height:100vh;background:#fff;z-index:401;transform:translateX(100%);transition:transform 0.45s cubic-bezier(0.4,0,0.2,1);display:flex;flex-direction:column;box-shadow:-8px 0 60px rgba(0,0,0,0.12)}
#cartSidebar.open{transform:translateX(0)}
.cart-header{padding:2rem;border-bottom:1px solid rgba(155,123,46,0.15);display:flex;justify-content:space-between;align-items:center}
.cart-header h3{font-family:'Cormorant Garamond',serif;font-size:1.6rem;color:#1A1208}
.cart-header-right{display:flex;align-items:center;gap:1rem}
#cartClose{background:none;border:none;font-size:1.2rem;color:#6B5E4E;cursor:pointer}
#cartBody{flex:1;overflow-y:auto;padding:1.5rem}
#cartFooter{padding:1.5rem;border-top:1px solid rgba(155,123,46,0.15)}
.cart-empty{text-align:center;padding:3rem 1rem}
.cart-empty-icon{font-size:2rem;margin-bottom:1rem;color:#C4A454}
.cart-empty p{font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:#1A1208;margin-bottom:0.5rem}
.cart-empty-sub{font-size:0.8rem!important;color:#6B5E4E!important;font-family:'Inter',sans-serif!important;margin-bottom:1.5rem!important}
@keyframes cartItemEnter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.cart-item{display:flex;gap:1rem;padding:1rem 0;border-bottom:1px solid rgba(155,123,46,0.1);animation:cartItemEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;opacity:0}
.cart-item:nth-child(1) { animation-delay: 0.1s; }
.cart-item:nth-child(2) { animation-delay: 0.2s; }
.cart-item:nth-child(3) { animation-delay: 0.3s; }
.cart-item:nth-child(4) { animation-delay: 0.4s; }
.cart-item:nth-child(5) { animation-delay: 0.5s; }
.cart-item-img{width:80px;height:100px;flex-shrink:0;overflow:hidden}
.cart-item-img img{width:100%;height:100%;object-fit:cover}
.cart-item-details{flex:1}
.cart-item-region{font-size:0.6rem;letter-spacing:0.2em;color:#9B7B2E;text-transform:uppercase;margin-bottom:0.3rem}
.cart-item-name{font-family:'Cormorant Garamond',serif;font-size:1rem;color:#1A1208;margin-bottom:0.3rem;line-height:1.3}
.cart-item-meta{font-size:0.72rem;color:#6B5E4E;margin-bottom:0.6rem}
.cart-item-bottom{display:flex;align-items:center;gap:0.8rem}
.cart-qty{display:flex;align-items:center;border:1px solid rgba(155,123,46,0.25)}
.cart-qty button{background:none;border:none;padding:0.3rem 0.6rem;color:#6B5E4E;cursor:pointer;font-size:0.9rem}
.cart-qty span{padding:0.3rem 0.5rem;font-size:0.8rem;color:#1A1208;min-width:24px;text-align:center}
.cart-item-price{font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:#1A1208;margin-left:auto}
.cart-item-remove{background:none;border:none;color:#9a8f7a;cursor:pointer;font-size:0.75rem;padding:0.2rem 0.4rem;transition:color 0.2s}
.cart-item-remove:hover{color:#8B2E2E}
.cart-total-row{display:flex;justify-content:space-between;margin-bottom:0.4rem;font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:#1A1208}
.cart-total-row.dim span{font-family:'Inter',sans-serif;font-size:0.75rem;color:#9B7B2E}
.cart-shipping{font-size:0.68rem;color:#9B7B2E;text-align:center;margin:1rem 0;letter-spacing:0.05em}
.cart-checkout-btn{width:100%;margin-bottom:0.6rem;justify-content:center;display:block;text-align:center}
.cart-continue-btn{width:100%;display:block;text-align:center}

/* CART BADGE */
#cartBtn{position:relative;background:none;border:none;cursor:pointer;font-family:'Inter',sans-serif;font-size:0.7rem;letter-spacing:0.2em;color:#9B7B2E;text-transform:uppercase;display:flex;align-items:center;gap:0.5rem}
#cartBadge{background:#9B7B2E;color:#fff;border-radius:50%;width:18px;height:18px;font-size:0.6rem;display:flex;align-items:center;justify-content:center;display:none}

/* CHECKOUT MODAL */
#checkoutModal{position:fixed;inset:0;background:rgba(0,0,0,0.6);z-index:500;display:none;align-items:center;justify-content:center;padding:1rem}
#checkoutModal.open{display:flex}
.checkout-wrap{background:#fff;width:100%;max-width:900px;max-height:90vh;overflow-y:auto;display:grid;grid-template-columns:1fr 1fr;position:relative}
@media(max-width:700px){.checkout-wrap{grid-template-columns:1fr}}
.checkout-form-col{padding:3rem 2.5rem;border-right:1px solid rgba(155,123,46,0.15)}
.checkout-summary-col{padding:3rem 2.5rem;background:#FAFAF7}
#checkoutClose{position:absolute;top:1.5rem;right:1.5rem;background:none;border:none;font-size:1.2rem;color:#6B5E4E;cursor:pointer;z-index:1}
.checkout-form-col h2{font-family:'Cormorant Garamond',serif;font-size:2rem;color:#1A1208;margin-bottom:0.5rem}
.checkout-form-col p{font-size:0.8rem;color:#6B5E4E;margin-bottom:2rem}
.form-group{margin-bottom:1.2rem}
.form-group label{display:block;font-size:0.68rem;letter-spacing:0.15em;color:#9B7B2E;text-transform:uppercase;margin-bottom:0.4rem}
.form-group input,.form-group select,.form-group textarea{width:100%;background:#FAFAF7;border:1px solid rgba(155,123,46,0.25);padding:0.8rem 1rem;font-family:'Inter',sans-serif;font-size:0.85rem;color:#1A1208;outline:none;transition:border-color 0.3s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:#9B7B2E}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.checkout-summary-title{font-family:'Cormorant Garamond',serif;font-size:1.5rem;color:#1A1208;margin-bottom:1.5rem}
.checkout-item{display:flex;gap:1rem;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid rgba(155,123,46,0.1)}
.checkout-item img{width:60px;height:75px;object-fit:cover}
.checkout-item p{font-size:0.85rem;color:#1A1208;margin-bottom:0.2rem}
.checkout-item p.dim{font-size:0.72rem;color:#6B5E4E}
.checkout-item span{margin-left:auto;font-family:'Cormorant Garamond',serif;font-size:1.1rem;color:#1A1208}
.checkout-total{display:flex;justify-content:space-between;margin-top:1.5rem;padding-top:1rem;border-top:1px solid rgba(155,123,46,0.2)}
.checkout-total span:first-child{font-size:0.75rem;letter-spacing:0.2em;color:#6B5E4E;text-transform:uppercase}
.checkout-total span:last-child{font-family:'Cormorant Garamond',serif;font-size:1.3rem;color:#1A1208}
.checkout-total small{font-size:0.75rem;color:#9B7B2E}
.checkout-note{font-size:0.72rem;color:#9B7B2E;margin-top:1rem;line-height:1.6}
#placeOrderBtn{width:100%;margin-top:1.5rem}
.checkout-success{text-align:center;padding:4rem 2rem}
.checkout-success-icon{font-size:2.5rem;color:#C4A454;margin-bottom:1rem}
.checkout-success h2{font-family:'Cormorant Garamond',serif;font-size:2.5rem;color:#1A1208;margin-bottom:0.5rem}
.order-num{font-size:0.8rem;letter-spacing:0.3em;color:#9B7B2E;margin-bottom:1.5rem}
.checkout-success p{font-size:0.9rem;color:#6B5E4E;line-height:1.8;margin-bottom:1rem}
.order-contact a{color:#9B7B2E}

/* PRODUCT SIZE SELECTED */
.product-sizes span.selected{background:#9B7B2E;color:#fff;border-color:#9B7B2E}
.add-to-cart-btn[disabled], #qvAddBtn[disabled]{background:#b8b1a7!important;color:#fff!important;cursor:not-allowed;box-shadow:none;opacity:0.88}
.add-to-cart-btn{width:100%;margin-top:1rem;display:block;text-align:center}
