:root {
  --sd-peru: #a37c52;
  --sd-ink: #0b0b0b;
  --sd-panel: #121212;
  --sd-line: #2a2a2a;
  --sd-text: #f2ede6;
  --sd-mute: #9a948c;
  --sd-error: #e0795e;
}

.w-commerce-commercecartcontainerwrapper,
.w-commerce-commerceaddtocartoutofstock,
.w-commerce-commerceaddtocarterror { display: none !important; }

.w-commerce-commercebuynowbutton.sd-buy { display: flex !important; align-items: center; justify-content: center; text-decoration: none; }
.w-commerce-commerceaddtocartoptionpill { cursor: pointer; }
.w-commerce-commerceaddtocartoptionpill:focus-visible,
.w-commerce-commerceaddtocartbutton:focus-visible,
.w-commerce-commercebuynowbutton:focus-visible { outline: 2px solid var(--sd-peru); outline-offset: 2px; }
.sd-pill-off { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.sd-disabled { opacity: .45; pointer-events: none; }

.sd-form-msg { grid-column: 1 / -1; margin: .6em 0 0; min-height: 1.2em; color: var(--sd-error); font-size: .9rem; }
.sd-form-msg:empty { display: none; }
.sd-weight-note { margin: .4em 0 1em; color: var(--sd-mute); font-size: .9rem; }
.sd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@keyframes sd-shake { 0%,100% { transform: none } 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.sd-shake .w-commerce-commerceaddtocartoptionpillgroup { animation: sd-shake .3s ease 2; }

.cartquantity.sd-has-items { color: var(--sd-peru); font-weight: 600; }

html.sd-lock, html.sd-lock body { overflow: hidden; }

.sd-cart { position: fixed; inset: 0; z-index: 9999; pointer-events: none; font-family: Montserrat, sans-serif; }
.sd-cart__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s ease; }
.sd-cart__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100vw);
  background: var(--sd-panel); color: var(--sd-text); border-left: 1px solid var(--sd-line);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.sd-cart.is-open { pointer-events: auto; }
.sd-cart.is-open .sd-cart__scrim { opacity: 1; }
.sd-cart.is-open .sd-cart__panel { transform: none; }
.sd-cart.is-busy .sd-cart__list { opacity: .5; pointer-events: none; }

.sd-cart__head { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--sd-line); }
.sd-cart__head h2 { margin: 0; font-size: 1.4rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--sd-text); }
.sd-cart__head h2 span { color: var(--sd-peru); }
.sd-cart__x { background: none; border: 0; color: var(--sd-text); font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; }

.sd-cart__empty { padding: 40px 24px; text-align: center; color: var(--sd-mute); }
.sd-cart__empty p { margin: 0 0 20px; }

.sd-cart__list { list-style: none; margin: 0; padding: 0 24px; overflow-y: auto; flex: 1; transition: opacity .2s; }
.sd-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--sd-line); align-items: start; }
.sd-line img { width: 72px; height: 72px; object-fit: cover; background: #1c1c1c; }
.sd-line__title { margin: 0; font-size: .95rem; font-weight: 500; color: var(--sd-text); }
.sd-line__variant { margin: 2px 0 10px; font-size: .8rem; color: var(--sd-mute); }
.sd-line__variant:empty { margin-bottom: 10px; }
.sd-line__side { text-align: right; }
.sd-line__price { margin: 0 0 8px; font-size: .95rem; }
.sd-line__remove { background: none; border: 0; padding: 0; color: var(--sd-mute); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.sd-line__remove:hover { color: var(--sd-text); }

.sd-qty { display: inline-flex; align-items: center; border: 1px solid var(--sd-line); }
.sd-qty button { background: none; border: 0; color: var(--sd-text); width: 32px; height: 32px; font-size: 1rem; cursor: pointer; }
.sd-qty button:hover { background: #1c1c1c; }
.sd-qty span { min-width: 28px; text-align: center; font-size: .9rem; }

.sd-cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--sd-line); }
.sd-cart__row { display: flex; justify-content: space-between; font-size: 1rem; }
.sd-cart__hint { margin: 6px 0 16px; font-size: .8rem; color: var(--sd-mute); }
.sd-btn { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; background: var(--sd-peru); color: var(--sd-ink); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; text-decoration: none; border: 1px solid var(--sd-peru); }
.sd-btn:hover { background: transparent; color: var(--sd-text); }
.sd-btn--ghost { background: transparent; color: var(--sd-text); display: inline-flex; }
.sd-btn--ghost:hover { background: var(--sd-peru); color: var(--sd-ink); }
.sd-cart__continue { width: 100%; margin-top: 12px; background: none; border: 0; color: var(--sd-mute); font-size: .85rem; text-decoration: underline; cursor: pointer; padding: 6px; }

@media (prefers-reduced-motion: reduce) {
  .sd-cart__panel, .sd-cart__scrim { transition: none; }
  .sd-shake .w-commerce-commerceaddtocartoptionpillgroup { animation: none; }
}

.product-collection-item .product-page-image.w-lightbox { display: block; height: auto !important; aspect-ratio: 1 / 1; overflow: hidden; }
.product-collection-item img.product-page-image.bg { width: 100%; height: 100% !important; object-fit: cover; }
