/* Additions on top of the Webflow export. */

/* Cart drawer (Webflow injected its cart styles at runtime; these replace them). */
.hls-cart[hidden] {
  display: none;
}

.hls-cart {
  position: fixed;
  inset: 0;
  z-index: 2000;
  font-family: Apercu, sans-serif;
}

.hls-cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 47, 85, 0.45);
}

.hls-cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.hls-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #eee;
}

.hls-cart__header h4 {
  margin: 0;
}

.hls-cart__close {
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0 4px;
}

.hls-cart__lines {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.hls-cart__line {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.hls-cart__thumb {
  flex: 0 0 72px;
}

.hls-cart__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.hls-cart__info {
  flex: 1;
  min-width: 0;
}

.hls-cart__name {
  display: block;
  text-decoration: none;
  margin-bottom: 4px;
}

.hls-cart__qty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

.hls-cart__qty input {
  width: 56px;
  height: 32px;
  margin-left: 6px;
  padding: 0 8px;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.hls-cart__remove {
  border: 0;
  background: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  color: #9da0b4;
}

.hls-cart__empty {
  padding: 40px 24px;
  text-align: center;
}

.hls-cart__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #eee;
  margin-bottom: 0;
}

.hls-cart__subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hls-cart__note {
  margin-bottom: 16px;
  color: #777;
}

.hls-cart__checkout {
  width: 100%;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hls-cart__checkout:disabled {
  opacity: 0.7;
  cursor: default;
}

.hls-cart__error {
  margin-top: 12px;
  color: #b2443a;
  font-size: 14px;
}

body.hls-cart-open {
  overflow: hidden;
}



/* Add-to-cart is now a <button>; keep the export's look. */
button.w-commerce-commerceaddtocartbutton {
  cursor: pointer;
  display: block;
}

button.secondary-add-to-cart:hover {
  transform: scale(1.04);
}

button.pdp-add-to-cart:hover {
  background-color: #bd7a6e;
}

/* Order confirmation */
.order {
  margin: 24px 0 32px;
  border-top: 1px solid #eee;
}

.order__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  font-family: Apercu, sans-serif;
  font-size: 15px;
  color: #333;
}

.order__name {
  color: #cf8e83;
  font-family: Foundersgrotesk, sans-serif;
  font-size: 17px;
}

.order__qty {
  color: #9da0b4;
  margin-left: 6px;
}

.order__download {
  flex: 0 0 auto;
  color: #f8ede0;
  background-color: #0f2f55;
  border-radius: 100px;
  padding: 12px 24px 8px;
  font-family: Foundersgrotesk, sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.order__download:hover {
  background-color: #bd7a6e;
}

.order__pending {
  color: #9da0b4;
  font-size: 13px;
}

.order__meta {
  padding-top: 16px;
  font-family: Apercu, sans-serif;
  font-size: 13px;
  color: #9da0b4;
}

@media (max-width: 479px) {
  .order__line {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Product tiles: fixed 4:5 frame, images crop instead of stretch. Stripe
   product images come in whatever size was uploaded. */
.product-img {
  aspect-ratio: 4 / 5;
  max-height: none;
}

.product-img .top,
.product-img .bottom {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product page main image: keep its real proportions. */
.product-detail-img [data-product-image] {
  width: 100%;
  height: auto;
}
