.cart-nav-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid rgba(224, 172, 114, .5);
  border-radius: 99px;
  color: #160e08;
  background: #e0ac72;
  font-size: .61rem;
  font-weight: 950;
  line-height: 1;
}

button.button { cursor: pointer; }
.cart-add-button { border-radius: 0; }
.product-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.product .product-card-actions .button { min-width: 0; margin-top: 0; }
.product .product-card-actions .cart-add-button { color: #f4ede2; border-color: rgba(238, 230, 217, .3); background: rgba(6, 5, 4, .48); box-shadow: none; }
.product .product-card-actions .cart-add-button:hover { color: #e0ac72; border-color: #e0ac72; }

.add-to-cart-purchase { display: flex; align-items: stretch; gap: 7px; width: 100%; }
.add-to-cart-purchase > .cart-add-button { flex: 1 1 auto; min-width: 0; }
.add-quantity-control { display: grid; grid-template-columns: 34px 48px 34px; min-width: 116px; border: 1px solid var(--line); background: rgba(6, 5, 4, .48); }
.add-quantity-step, .add-quantity-input { min-width: 0; height: 100%; min-height: 42px; border: 0; color: var(--white); background: transparent; text-align: center; font: inherit; }
.add-quantity-step { color: var(--bronze2); font-size: 1.12rem; cursor: pointer; }
.add-quantity-step:hover:not(:disabled) { background: rgba(184, 115, 66, .15); }
.add-quantity-input { width: 48px; border-inline: 1px solid var(--line); -moz-appearance: textfield; appearance: textfield; }
.add-quantity-input::-webkit-inner-spin-button, .add-quantity-input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; }
.add-quantity-step:disabled, .add-quantity-input:disabled { opacity: .45; cursor: not-allowed; }
.product-card-actions > .button { grid-column: 1 / -1; }
.product-card-actions .add-to-cart-purchase { grid-column: 1 / -1; }
.product-card-actions .add-to-cart-purchase > .cart-add-button { margin-top: 0; }
.product-copy .actions .add-to-cart-purchase { width: auto; min-width: min(100%, 350px); }


.price.has-discount { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; }
.price-list { color: var(--muted, #c5b9ab); font-size: .78em; font-weight: 700; text-decoration: line-through; text-decoration-thickness: 2px; }
.price-sale { color: var(--bronze2, #e0ac72); font-weight: 950; }
.discount-badge { padding: 3px 7px; border: 1px solid rgba(117, 181, 143, .5); color: #b9e7c9; background: rgba(117, 181, 143, .11); font-size: .56rem; font-weight: 950; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.low-stock-graphic { display: flex; align-items: center; gap: 11px; margin: 18px 0; padding: 12px 14px; border: 1px solid rgba(236, 126, 80, .75); border-left: 4px solid #ff8b57; color: #fff2e8; background: linear-gradient(100deg, rgba(132, 42, 21, .78), rgba(77, 29, 18, .46)); box-shadow: 0 0 24px rgba(255, 101, 49, .15); animation: low-stock-pulse 2.2s ease-in-out infinite; }
.low-stock-graphic > span:last-child, .low-stock-graphic strong, .low-stock-graphic small { display: block; }
.low-stock-graphic strong { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.low-stock-graphic small { margin-top: 2px; color: #ffd0b8; font-size: .69rem; font-weight: 800; }
.low-stock-icon { width: 28px; height: 28px; display: grid; flex: 0 0 28px; place-items: center; border: 2px solid #ffb080; border-radius: 50%; color: #2a1009; background: #ff9c68; font-size: .82rem; font-weight: 950; }
.low-stock-graphic.is-compact { gap: 7px; margin: 4px 0 8px; padding: 7px 8px; }
.low-stock-graphic.is-compact .low-stock-icon { width: 21px; height: 21px; flex-basis: 21px; font-size: .65rem; }
.low-stock-graphic.is-compact strong { font-size: .53rem; }
.low-stock-graphic.is-compact small { font-size: .55rem; }
@keyframes low-stock-pulse { 0%, 100% { box-shadow: 0 0 18px rgba(255, 101, 49, .1); } 50% { box-shadow: 0 0 30px rgba(255, 101, 49, .26); } }

.cart-toast {
  position: fixed;
  z-index: 80;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100% - 48px));
  padding: 14px 17px;
  border: 1px solid rgba(224, 172, 114, .42);
  border-left: 4px solid #e0ac72;
  color: #f4ede2;
  background: #211c17;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  font-size: .76rem;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.cart-toast.is-visible { opacity: 1; transform: translateY(0); }

.cart-main { min-height: calc(100vh - 153px); padding: clamp(46px, 7vw, 90px) 0 80px; }
.cart-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.cart-heading h1 { margin: 10px 0 0; }
.cart-heading > p { max-width: 520px; margin: 0; color: var(--muted); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, .4fr); gap: 18px; align-items: start; }
.cart-list, .cart-summary, .cart-empty {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(48, 41, 32, .94), rgba(25, 22, 18, .97));
  box-shadow: 0 28px 75px rgba(0, 0, 0, .25);
}
.cart-list { padding: 0 22px; }
.cart-line-item { display: grid; grid-template-columns: 126px minmax(190px, 1fr) auto 110px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid rgba(224, 172, 114, .17); }
.cart-line-item:last-child { border-bottom: 0; }
.cart-line-image { display: block; background: #f0ece5; }
.cart-line-image img { width: 100%; aspect-ratio: 1.12; object-fit: cover; }
.cart-line-copy > * { display: block; }
.cart-line-copy > a { margin: 5px 0; color: var(--white); text-decoration: none; font-size: .92rem; font-weight: 900; text-transform: uppercase; }
.cart-line-copy > a:hover { color: var(--bronze2); }
.cart-line-copy small { color: var(--muted); font-size: .7rem; }
.cart-line-sku { color: var(--bronze2); font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.quantity-control { display: grid; grid-template-columns: 36px 54px 36px; border: 1px solid var(--line); }
.quantity-control button, .quantity-control input { height: 40px; border: 0; color: var(--white); background: #171411; text-align: center; }
.quantity-control button { color: var(--bronze2); font-size: 1.1rem; cursor: pointer; }
.quantity-control button:hover { background: rgba(184, 115, 66, .15); }
.quantity-control input { width: 54px; border-inline: 1px solid var(--line); appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.cart-line-total { text-align: right; }
.cart-line-total strong { display: block; color: var(--bronze2); }
.cart-line-total button { margin-top: 8px; padding: 0; border: 0; border-bottom: 1px solid rgba(244, 237, 226, .35); color: var(--muted); background: transparent; font-size: .65rem; cursor: pointer; }
.cart-line-total button:hover { color: #f4ede2; }
.cart-summary { position: sticky; top: 110px; padding: 24px; }
.cart-summary h2 { margin: 0 0 20px; text-transform: uppercase; font-size: 1.05rem; letter-spacing: .08em; }
.summary-line { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; color: var(--muted); font-size: .76rem; }
.summary-line.total { margin-top: 7px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--white); }
.summary-line.total strong { color: var(--bronze2); font-size: 1.2rem; }
.cart-summary .button { width: 100%; margin-top: 18px; }
.cart-summary .button[disabled] { color: #a89c8e; border-color: rgba(238, 230, 217, .15); background: #201c18; filter: none; cursor: not-allowed; transform: none; }
.cart-summary-note { margin: 13px 0 0; color: var(--muted); font-size: .66rem; text-align: center; }
.clear-cart { width: 100%; margin-top: 10px; padding: 9px; border: 0; color: var(--muted); background: transparent; font-size: .64rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.clear-cart:hover { color: #f4ede2; }
.cart-persistence-note { margin-top: 18px; padding: 14px; border-left: 3px solid var(--bronze); color: #d2c6b8; background: rgba(184, 115, 66, .09); font-size: .7rem; }
.cart-empty { padding: clamp(40px, 7vw, 76px); text-align: center; }
.cart-empty h2 { margin: 10px 0 15px; text-transform: uppercase; font-size: clamp(2rem, 5vw, 4rem); }
.cart-empty p { max-width: 560px; margin: 0 auto 24px; color: var(--muted); }

body.free-shipping-modal-open { overflow: hidden; }
.free-shipping-modal[hidden] { display: none; }
.free-shipping-modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 20px; }
.free-shipping-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(8, 7, 6, .82); backdrop-filter: blur(8px); cursor: default; }
.free-shipping-modal__dialog { position: relative; width: min(520px, 100%); padding: clamp(27px, 5vw, 42px); border: 1px solid rgba(224, 172, 114, .54); background: radial-gradient(circle at 92% 2%, rgba(224, 172, 114, .15), transparent 15rem), linear-gradient(145deg, #302820, #191612 72%); box-shadow: 0 34px 110px rgba(0, 0, 0, .75); }
.free-shipping-modal__dialog:before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(224, 172, 114, .12); pointer-events: none; }
.free-shipping-modal__close { position: absolute; z-index: 1; top: 13px; right: 13px; width: 40px; height: 40px; border: 1px solid rgba(224, 172, 114, .36); border-radius: 50%; color: var(--white); background: #181410; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.free-shipping-modal__close:hover, .free-shipping-modal__close:focus-visible { color: var(--bronze2); border-color: var(--bronze2); outline: none; }
.free-shipping-modal__dialog h2 { max-width: 420px; margin: 12px 42px 13px 0; color: var(--white); font-size: clamp(1.7rem, 6vw, 2.8rem); line-height: 1; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.free-shipping-modal__message { margin: 0; color: #ddd1c2; font-size: .9rem; line-height: 1.65; }
.free-shipping-progress { height: 9px; margin-top: 25px; overflow: hidden; border: 1px solid rgba(224, 172, 114, .34); background: rgba(3, 3, 2, .56); }
.free-shipping-progress > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #9b572f, #e0ac72); transition: width .35s ease; }
.free-shipping-progress.is-unlocked > span { background: linear-gradient(90deg, #6f9b7d, #b9e7c9); }
.free-shipping-progress__labels { display: flex; justify-content: space-between; gap: 18px; margin-top: 7px; color: var(--muted); font-size: .59rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.free-shipping-progress__labels strong { color: var(--bronze2); }
.free-shipping-modal__fine-print { margin: 16px 0 0; color: #a99d8f; font-size: .65rem; }
.free-shipping-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 24px; }
.free-shipping-modal__actions .button { width: 100%; min-width: 0; margin: 0; }

@media (max-width: 980px) {
  .product-card-actions { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-line-item { grid-template-columns: 110px 1fr auto; }
  .cart-line-total { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .cart-line-total button { margin-top: 0; }
}

@media (max-width: 650px) {
  .cart-toast { right: 14px; bottom: 14px; max-width: calc(100% - 28px); }
  .cart-heading { align-items: start; flex-direction: column; }
  .cart-heading h1 { font-size: 3rem; }
  .cart-line-item { grid-template-columns: 86px minmax(0, 1fr); gap: 14px; }
  .quantity-control { grid-column: 1 / -1; width: max-content; }
  .cart-line-total { grid-column: 1 / -1; }
  .cart-list { padding: 0 14px; }
  .product-card-actions { gap: 6px; }
  .free-shipping-modal { align-items: end; padding: 12px; }
  .free-shipping-modal__dialog { padding: 28px 22px 22px; }
  .free-shipping-modal__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cart-toast { transition-duration: .01ms; }
  .low-stock-graphic { animation: none; }
  .free-shipping-progress > span { transition-duration: .01ms; }
}

@media (max-width: 640px) {
  .add-to-cart-purchase { gap: 6px; }
  .add-quantity-control { grid-template-columns: 32px 44px 32px; min-width: 108px; }
  .add-quantity-input { width: 44px; }
  .product-copy .actions .add-to-cart-purchase { width: 100%; min-width: 0; }
}
