/*
 * Masaüstü: sayfa aşağı kayınca sabitlenen ana menü şeridinde (header-bottom) sepet.
 */
body.sellzy-tema-scope .header-bottom .header-sticky-cart {
  display: none !important;
}

body.sellzy-tema-scope .header-bottom.sticky-top .header-sticky-cart {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
}

/* Sepet ikonu rozeti */
body.sellzy-tema-scope .sellzy-header-cart-fab {
  position: relative;
  overflow: visible !important;
}

body.sellzy-tema-scope .sellzy-header-cart-fab .sellzy-header-cart-fab__badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(42%, -42%);
  z-index: 5;
  min-width: 1.125rem;
  min-height: 1.125rem;
  padding: 0.125rem 0.3125rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--color-error, #cb0233);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(22, 28, 36, 0.18);
  pointer-events: none;
}

body.sellzy-tema-scope .sellzy-header-cart-fab .sellzy-header-cart-fab__badge.hidden {
  display: none !important;
}

@media (max-width: 1279.98px) {
  html.sellzy-tema-scope .sticky-header,
  html.sellzy-tema-scope .sticky-header .container,
  html.sellzy-tema-scope .sticky-header .flex.justify-between {
    overflow: visible !important;
  }

  html.sellzy-tema-scope .sellzy-header-cart-fab .sellzy-header-cart-fab__badge {
    min-width: 1.25rem;
    min-height: 1.25rem;
    font-size: 0.6875rem;
    z-index: 10;
  }

  /*
   * Mobil sepet drawer: yalnızca transform ile kayar (opacity/invisible çakışması yok).
   */
  html.sellzy-tema-scope .cart-sidebar {
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: min(92vw, 24rem) !important;
    max-width: min(92vw, 24rem) !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: -12px 0 40px rgba(22, 28, 36, 0.14);
    z-index: 99 !important;
    transition-property: transform, visibility !important;
    transition-duration: 320ms !important;
    transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1) !important;
    will-change: transform;
  }

  html.sellzy-tema-scope .cart-sidebar[data-state="close"] {
    transform: translate3d(100%, 0, 0) !important;
    opacity: 1 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.sellzy-tema-scope .cart-sidebar[data-state="open"] {
    transform: translate3d(0, 0, 0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Sepet açıkken overlay footer üstünde, panelin altında */
html.sellzy-tema-scope .modal-overlay[data-overlay-for=".cart-sidebar"] {
  z-index: 90 !important;
}

/* Alt mobil menü — drawer aç */
html.sellzy-tema-scope .footer-bottom-nav .sellzy-footer-cart-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

html.sellzy-tema-scope .footer-bottom-nav .sellzy-footer-cart-btn > span:first-child {
  position: relative;
  overflow: visible;
}

html.sellzy-tema-scope .footer-bottom-nav .sellzy-footer-cart-btn .sellzy-header-cart-fab__badge {
  top: -4px;
  right: -8px;
  transform: none;
}
