/* Shopify live commerce layer -------------------------------------------------- */

.commerce-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.commerce-header-actions .wardrobe-button,
.bag-button {
  margin: 0 !important;
}

.bag-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(232,201,105,.25);
  border-radius: 16px;
  color: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04) 44%, rgba(255,255,255,.08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 22px rgba(17,12,23,.12);
  cursor: pointer;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}

.bag-button:hover,
.bag-button:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(244,215,124,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 16px 30px rgba(17,12,23,.18), 0 0 0 1px rgba(212,175,55,.12);
}

.bag-button b {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding-inline: 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

.site-header.is-scrolled .bag-button {
  color: #fff;
  border-color: rgba(232,201,105,.25);
  background: linear-gradient(145deg, rgba(255,255,255,.15), rgba(126,61,150,.13) 48%, rgba(14,7,20,.22));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 26px rgba(5,2,8,.27), 0 4px 10px rgba(5,2,8,.18);
}

.card-commerce {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 3px;
  padding-top: 12px;
  border-top: 1px solid rgba(36,33,38,.10);
}

.card-commerce-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.card-commerce-meta > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.commerce-price {
  color: #251e28;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}

.commerce-price.is-unavailable {
  color: var(--muted);
  font-size: 15px;
}

.card-commerce-meta del,
.product-commerce-price del {
  color: var(--muted);
  font-size: 11px;
}

.card-commerce-meta small {
  font-family: var(--caps);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.card-commerce-meta small.is-available {
  color: #3f7553;
}

.card-commerce-meta small.is-unavailable {
  color: #9b5664;
}

.card-add-bag {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(107,31,168,.20);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #6f2b8c, #441656 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 8px 18px rgba(61,19,75,.16);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.card-add-bag:disabled {
  cursor: not-allowed;
  opacity: .48;
  background: linear-gradient(145deg, #7e747f, #5e565f);
  box-shadow: none;
}

.shop-selected-stock {
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  font-family: var(--caps);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.shop-selected-stock.is-unavailable {
  color: #ef9ead;
}

.product-commerce {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(232,201,105,.17);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.14);
}

.product-commerce-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.product-commerce-price .commerce-price {
  color: var(--gold-soft);
  font-size: 28px;
}

.product-commerce-price .commerce-price.is-unavailable {
  color: rgba(255,255,255,.52);
  font-size: 18px;
}

.product-commerce-stock {
  justify-self: end;
  color: #a8d5b5;
  font-family: var(--caps);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.product-commerce-stock.is-unavailable {
  color: #ef9ead;
}

.product-commerce .button {
  grid-column: 1 / -1;
  width: 100%;
}

.product-commerce .button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.bag-overlay {
  position: fixed;
  inset: 0;
  z-index: 148;
  background: rgba(6,4,8,.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.bag-overlay.is-visible {
  opacity: 1;
}

.bag-drawer {
  position: fixed;
  z-index: 150;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(232,201,105,.18);
  border-radius: 24px 0 0 24px;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf8f3, #f4ede6);
  box-shadow: -30px 0 80px rgba(0,0,0,.32);
  transform: translateX(104%);
  transition: transform .45s var(--ease);
}

.bag-drawer.is-open {
  transform: translateX(0);
}

.bag-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 26px 22px;
  border-bottom: 1px solid rgba(36,33,38,.11);
  background: linear-gradient(120deg, rgba(64,19,82,.97), rgba(29,10,39,.98));
  color: #fff;
}

.bag-drawer-header small {
  color: var(--gold-soft);
  font-family: var(--caps);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bag-drawer-header h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
}

.bag-drawer-header button,
.bag-line button {
  border: 1px solid rgba(36,33,38,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 6px 14px rgba(20,12,23,.10);
  cursor: pointer;
}

.bag-drawer-header button {
  width: 44px;
  height: 44px;
  color: #fff;
  border-color: rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  font-size: 24px;
}

.bag-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 24px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(107,31,168,.34) transparent;
  -webkit-overflow-scrolling: touch;
}

.bag-empty {
  min-height: 300px;
  display: grid;
  place-content: center;
  gap: 5px;
  text-align: center;
  color: var(--muted);
}

.bag-empty strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 500;
}

.bag-empty span {
  max-width: 320px;
  font-size: 12px;
}

.bag-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 38px;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(36,33,38,.10);
}

.bag-line > img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 14px !important;
  background: #171317;
  box-shadow: 0 8px 20px rgba(22,12,28,.13);
}

.bag-line-copy {
  min-width: 0;
}

.bag-line h3 {
  margin: 1px 0 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.bag-line p {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.bag-line-copy > strong {
  color: var(--purple);
  font-family: var(--display);
  font-size: 16px;
}

.bag-remove {
  width: 36px;
  height: 36px;
  color: #7d6876;
  font-size: 18px;
}

.bag-quantity {
  display: inline-grid;
  grid-template-columns: 34px 38px 34px;
  align-items: center;
  margin-top: 9px;
  border: 1px solid rgba(36,33,38,.10);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.bag-quantity button {
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.bag-quantity span {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.bag-footer {
  padding: 20px 24px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(36,33,38,.11);
  background: rgba(255,255,255,.72);
  box-shadow: 0 -12px 30px rgba(25,13,29,.08);
}

.bag-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.bag-subtotal span {
  color: var(--muted);
  font-family: var(--caps);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bag-subtotal strong {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
}

.bag-footer p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.bag-checkout {
  width: 100%;
}

.bag-checkout.is-disabled {
  opacity: .42;
  pointer-events: none;
}

.commerce-toast {
  position: fixed;
  z-index: 180;
  left: 50%;
  bottom: 28px;
  min-width: 280px;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border-radius: 14px;
  color: #fff;
  background: #211926;
  box-shadow: 0 18px 50px rgba(0,0,0,.30);
  text-align: center;
  font-size: 12px;
  transform: translate(-50%, 150%);
  transition: transform .35s var(--ease);
}

.commerce-toast.is-visible {
  transform: translate(-50%, 0);
}

.shopify-checkout-notice {
  min-height: 74px;
}

@media (max-width: 1100px) {
  .commerce-header-actions {
    order: 2;
    flex: 0 0 auto;
  }

  .commerce-header-actions .wardrobe-button {
    order: initial;
  }

  .site-header .menu-toggle {
    order: 3;
  }
}

@media (max-width: 820px) {
  .commerce-header-actions {
    gap: 6px;
  }

  .bag-button,
  .commerce-header-actions .wardrobe-button {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
  }

  .bag-button > span,
  .commerce-header-actions .wardrobe-button > span {
    display: none;
  }

  .bag-button b,
  .commerce-header-actions .wardrobe-button b {
    width: 26px;
    min-width: 26px;
    height: 26px;
    padding: 0;
  }

  .site-header .brand {
    max-width: calc(100% - 154px) !important;
  }

  .card-commerce {
    grid-template-columns: 1fr;
  }

  .card-add-bag {
    width: 100%;
    min-height: 44px;
  }

  .product-commerce {
    grid-template-columns: 1fr;
  }

  .product-commerce-stock {
    justify-self: start;
  }

  .bag-drawer {
    width: 100%;
    border-radius: 0;
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .site-header .brand {
    max-width: calc(100% - 148px) !important;
  }

  .bag-line {
    grid-template-columns: 76px minmax(0, 1fr) 34px;
    gap: 11px;
  }

  .bag-line > img {
    width: 76px;
    height: 76px;
  }

  .bag-items {
    padding-inline: 18px;
  }

  .bag-footer {
    padding-inline: 18px;
  }
}

@media (hover: none), (pointer: coarse) {
  .bag-button:hover,
  .card-add-bag:hover,
  .bag-line button:hover {
    transform: none !important;
  }
}
