@charset "UTF-8";

body.yamm-cart-sheet-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.yamm-cart-sheet {
  position: fixed;
  z-index: 900;
  inset: 0;
  pointer-events: none;
  color: #111;
}

.yamm-cart-sheet[hidden] { display: none; }

.yamm-cart-sheet__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  cursor: default;
  transition: opacity 220ms ease;
}

.yamm-cart-sheet.is-open .yamm-cart-sheet__backdrop,
.yamm-cart-sheet.is-open .yamm-cart-sheet__panel { pointer-events: auto; }
.yamm-cart-sheet.is-open .yamm-cart-sheet__backdrop { opacity: 1; }

.yamm-cart-sheet__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(50vw, 768px);
  min-width: 620px;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  color: #111;
  box-shadow: -18px 0 48px rgba(0, 0, 0, .12);
  outline: 0;
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform 320ms cubic-bezier(.22, .61, .36, 1), opacity 240ms ease;
  will-change: transform, opacity;
}

.yamm-cart-sheet.is-cart-mode.is-open .yamm-cart-sheet__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.yamm-cart-sheet__recap {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}
.yamm-cart-sheet__recap::-webkit-scrollbar { display: none; }

.yamm-cart-sheet__header {
  width: min(100% - 180px, 496px);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yamm-cart-sheet__header h2,
.yamm-cart-sheet__added-head h2 {
  margin: 0;
  font-family: var(--yamm-font-ui);
  font-weight: 400;
  letter-spacing: .005em;
}

.yamm-cart-sheet__header h2 { font-size: 20px; line-height: 1; }
.yamm-cart-sheet__header h2 span { color: inherit; }

.yamm-cart-sheet__close {
  width: 32px;
  height: 32px;
  margin: 0 -2px 0 0;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #111;
  cursor: pointer;
}

.yamm-cart-sheet__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
}

.yamm-cart-sheet__body,
.yamm-cart-sheet__shipping,
.yamm-cart-sheet__footer {
  width: min(100% - 180px, 496px);
  margin-inline: auto;
}

.yamm-cart-sheet__body { min-height: 0; }
.yamm-cart-sheet__loading,
.yamm-cart-sheet__error { padding: 28px 0; font-family: var(--yamm-font-ui); font-size: 13px; }
.yamm-cart-sheet__error { color: #8e1b1b; }

.yamm-cart-sheet__items { display: block; }

.yamm-cart-sheet__item {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0 14px;
}

.yamm-cart-sheet__item-media {
  width: 142px;
  height: 190px;
  display: block;
  overflow: hidden;
  background: #fff;
}

.yamm-cart-sheet__item-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #fff;
}

.yamm-cart-sheet__item-content {
  position: relative;
  min-width: 0;
  min-height: 190px;
  padding: 12px 74px 37px 0;
}

.yamm-cart-sheet__item-sku {
  display: block;
  margin: 0 0 8px;
  font-family: var(--yamm-font-ui);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.yamm-cart-sheet__item-title {
  display: block;
  color: #111;
  text-decoration: none;
  font-family: var(--yamm-font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.42;
}

.yamm-cart-sheet__item-variation {
  margin: 14px 0 0;
  color: rgba(17, 17, 17, .54);
  font-family: var(--yamm-font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.yamm-cart-sheet__item-bottom { position: static; }

.yamm-cart-sheet__item-price {
  position: absolute;
  right: 0;
  bottom: 53px;
  font-family: var(--yamm-font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.yamm-cart-sheet__quantity {
  position: absolute;
  right: 0;
  bottom: 17px;
  display: inline-grid;
  grid-template-columns: 28px 26px 28px;
  min-height: 28px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .13);
  border-radius: 4px;
  background: #fff;
}

.yamm-cart-sheet__quantity-button,
.yamm-cart-sheet__quantity-value {
  min-width: 0;
  min-height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--yamm-font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.yamm-cart-sheet__quantity-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
}
.yamm-cart-sheet__quantity-button:disabled { opacity: .35; cursor: default; }
.yamm-cart-sheet__trash { width: 15px; height: 15px; display: block; }

.yamm-cart-sheet__shipping {
  margin-top: 8px;
  padding: 18px 0 11px;
  border-top: 1px solid rgba(17, 17, 17, .10);
  background: #fff;
}

.yamm-cart-sheet__shipping-row,
.yamm-cart-sheet__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.yamm-cart-sheet__shipping-row,
.yamm-cart-sheet__shipping-row strong {
  font-family: var(--yamm-font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.yamm-cart-sheet__shipping-status {
  display: block;
  margin-top: 13px;
  color: rgba(17, 17, 17, .58);
  font-family: var(--yamm-font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.yamm-cart-sheet__shipping.is-free .yamm-cart-sheet__shipping-status { color: #76601f; }

.yamm-cart-sheet__shipping-track {
  position: relative;
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 17, 17, .10);
}

.yamm-cart-sheet__shipping-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  max-width: 100%;
  border-radius: inherit;
  background: #d8ac40;
  transition: width 380ms cubic-bezier(.22, .61, .36, 1);
}

.yamm-cart-sheet__footer { padding: 0 0 40px; }

.yamm-cart-sheet__total {
  padding: 12px 0 20px;
}

.yamm-cart-sheet__total span,
.yamm-cart-sheet__total strong {
  font-family: var(--yamm-font-ui);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
.yamm-cart-sheet__total strong { font-size: 16px; font-variant-numeric: tabular-nums; }

.yamm-cart-sheet__button {
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid #111;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  background: #fff;
  text-align: center;
  text-decoration: none;
  font-family: var(--yamm-font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.yamm-cart-sheet__button--primary { background: #050505; color: #fff; }
.yamm-cart-sheet__validate { width: 96%; margin-inline: auto; }

/* Added-product confirmation: exact legacy geometry, but native to the V2 shell. */
.yamm-cart-sheet.is-added-mode .yamm-cart-sheet__backdrop {
  top: var(--yamm-header-height, 88px);
}

.yamm-cart-sheet.is-added-mode .yamm-cart-sheet__panel {
  top: var(--yamm-header-height, 88px);
  right: 0;
  bottom: auto;
  left: auto;
  width: clamp(460px, 37vw, 580px);
  min-width: 0;
  max-width: calc(100vw - 48px);
  height: auto;
  max-height: calc(100dvh - var(--yamm-header-height, 88px));
  overflow-y: auto;
  padding: 42px 48px 48px;
  box-shadow: -22px 28px 58px rgba(0, 0, 0, .22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 7px, 0);
  transition: opacity 220ms cubic-bezier(.22, .61, .36, 1), transform 220ms cubic-bezier(.22, .61, .36, 1), visibility 0s linear 220ms;
}

.yamm-cart-sheet.is-added-mode.is-open .yamm-cart-sheet__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 80ms, 80ms, 0s;
}

.yamm-cart-sheet__added-head {
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.yamm-cart-sheet__added-head h2 { font-size: 19px; line-height: 1.2; }

.yamm-cart-sheet__added-item {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.yamm-cart-sheet__added-media {
  width: 124px;
  height: 124px;
  overflow: hidden;
}
.yamm-cart-sheet__added-media img { width: 100%; height: 100%; display: block; object-fit: cover; }

.yamm-cart-sheet__added-info { min-width: 0; }
.yamm-cart-sheet__added-sku,
.yamm-cart-sheet__added-title,
.yamm-cart-sheet__added-meta,
.yamm-cart-sheet__added-price { display: block; font-weight: 400; }
.yamm-cart-sheet__added-sku { margin: 1px 0 8px; font-family: var(--yamm-font-ui); font-size: 11px; }
.yamm-cart-sheet__added-title { margin: 0 0 7px; font-family: var(--yamm-font-ui); font-size: 16px; line-height: 1.25; }
.yamm-cart-sheet__added-meta { margin: 0 0 7px; color: rgba(17,17,17,.62); font-family: var(--yamm-font-ui); font-size: 13px; line-height: 1.35; }
.yamm-cart-sheet__added-price { font-family: var(--yamm-font-ui); font-size: 13px; line-height: 1.3; }

.yamm-cart-sheet__added-actions {
  width: 100%;
  margin-top: 26px;
  display: grid;
  gap: 10px;
}
.yamm-cart-sheet__added-actions .yamm-cart-sheet__button { width: 100%; min-height: 52px; font-size: 16px; }

/* Empty cart: no interactive target, including the first SSR frame. */
.yamm-header__cart.is-empty,
.yamm-header__cart[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

@media (hover: hover) {
  .yamm-cart-sheet__close:hover,
  .yamm-cart-sheet__quantity-button:hover { opacity: .58; }
  .yamm-cart-sheet__button--primary:hover { background: #171717; }
}

@media (max-width: 820px) {
  body.yamm-cart-sheet-open {
    position: fixed;
    top: var(--yamm-cart-lock-top, 0px);
    right: 0;
    left: 0;
    width: 100%;
  }

  .yamm-cart-sheet__backdrop,
  .yamm-cart-sheet.is-added-mode .yamm-cart-sheet__backdrop { top: 0; background: rgba(0, 0, 0, .60); }

  .yamm-cart-sheet.is-cart-mode .yamm-cart-sheet__panel {
    inset: auto 0 0 0;
    width: 100%;
    min-width: 0;
    height: min(78dvh, 720px);
    max-height: calc(100dvh - max(68px, env(safe-area-inset-top)));
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -18px 48px rgba(0, 0, 0, .16);
    opacity: 1;
    transform: translate3d(0, 100%, 0);
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
  }

  .yamm-cart-sheet.is-cart-mode.is-open .yamm-cart-sheet__panel { transform: translate3d(0, 0, 0); }

  .yamm-cart-sheet__recap {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    overflow: hidden;
  }

  .yamm-cart-sheet__header {
    width: 100%;
    min-height: 64px;
    padding: 0 23px;
  }
  .yamm-cart-sheet__header h2 { font-size: 24px; line-height: 1.08; }
  .yamm-cart-sheet__close { width: 36px; height: 36px; margin-right: -7px; }
  .yamm-cart-sheet__close svg { width: 22px; height: 22px; stroke-width: 1.35; }

  .yamm-cart-sheet__body {
    width: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 6px 23px 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .yamm-cart-sheet__item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 15px;
    min-height: 130px;
    padding: 12px 0 14px;
  }
  .yamm-cart-sheet__item-media { width: 92px; height: 112px; }
  .yamm-cart-sheet__item-content { min-height: 112px; padding: 0 0 33px; }
  .yamm-cart-sheet__item-sku { margin: 0 0 5px; font-size: 11px; letter-spacing: .115em; }
  .yamm-cart-sheet__item-title { font-size: 16px; line-height: 1.23; }
  .yamm-cart-sheet__item-variation { margin-top: 8px; font-size: 15px; line-height: 1.22; }
  .yamm-cart-sheet__item-price { right: 0; bottom: 4px; max-width: 42%; font-size: 16px; }
  .yamm-cart-sheet__quantity { right: auto; bottom: 0; left: 0; grid-template-columns: 36px 31px 36px; min-height: 30px; }
  .yamm-cart-sheet__quantity-button,
  .yamm-cart-sheet__quantity-value { min-height: 28px; font-size: 15px; }
  .yamm-cart-sheet__trash { width: 14px; height: 14px; }

  .yamm-cart-sheet__shipping {
    width: 100%;
    margin: 0;
    padding: 13px 23px 8px;
    border-top: 1px solid rgba(17,17,17,.08);
    box-shadow: 0 -8px 18px rgba(0,0,0,.045);
  }
  .yamm-cart-sheet__shipping-row,
  .yamm-cart-sheet__shipping-row strong { font-size: 16px; }
  .yamm-cart-sheet__shipping-status { margin-top: 9px; font-size: 11.5px; }
  .yamm-cart-sheet__shipping-track { height: 3px; margin-top: 7px; }

  .yamm-cart-sheet__footer {
    width: 100%;
    margin: 0;
    padding: 0 23px max(17px, calc(13px + env(safe-area-inset-bottom)));
    background: #fff;
  }
  .yamm-cart-sheet__total { padding: 9px 0 12px; border-top: 0; }
  .yamm-cart-sheet__total span { font-size: 17px; }
  .yamm-cart-sheet__total strong { font-size: 20px; }
  .yamm-cart-sheet__validate { width: 100%; min-height: 52px; font-size: 17px; }

  .yamm-cart-sheet.is-added-mode .yamm-cart-sheet__panel {
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - max(60px, env(safe-area-inset-top)));
    padding: 18px 18px max(16px, calc(16px + env(safe-area-inset-bottom)));
    border-top: 2px solid #0f2b23;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .18);
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 110%, 0);
    transition: transform 450ms cubic-bezier(.22, .61, .36, 1);
  }
  .yamm-cart-sheet.is-added-mode.is-open .yamm-cart-sheet__panel { transform: translate3d(0, 0, 0); }
  .yamm-cart-sheet__added-head { margin: 6px 0 12px; }
  .yamm-cart-sheet__added-head h2 { font-size: 16px; }
  .yamm-cart-sheet__added-item { grid-template-columns: 121px minmax(0,1fr); gap: 14px; }
  .yamm-cart-sheet__added-media { width: 121px; height: 121px; border-radius: 10px; }
  .yamm-cart-sheet__added-sku { margin: 0 0 4px; font-size: 11px; }
  .yamm-cart-sheet__added-title { margin-bottom: 6px; font-size: 16px; }
  .yamm-cart-sheet__added-meta,
  .yamm-cart-sheet__added-price { font-size: 13px; }
  .yamm-cart-sheet__added-actions { margin-top: 18px; gap: 11px; }
  .yamm-cart-sheet__added-actions .yamm-cart-sheet__button { min-height: 48px; font-size: 16px; }
}

@media (max-width: 390px) {
  .yamm-cart-sheet__header { min-height: 62px; padding-inline: 20px; }
  .yamm-cart-sheet__body { padding-inline: 20px; }
  .yamm-cart-sheet__item { grid-template-columns: 86px minmax(0,1fr); gap: 13px; }
  .yamm-cart-sheet__item-media { width: 86px; height: 108px; }
  .yamm-cart-sheet__item-content { min-height: 108px; }
  .yamm-cart-sheet__shipping,
  .yamm-cart-sheet__footer { padding-right: 20px; padding-left: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .yamm-cart-sheet__backdrop,
  .yamm-cart-sheet__panel,
  .yamm-cart-sheet__shipping-fill { transition: none !important; }
}
