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

body.sellzy-tema-scope .header-bottom .sellzy-header-sticky-logo {
  display: none !important;
}

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

body.sellzy-tema-scope .header-bottom.sticky-top .sellzy-header-sticky-logo {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

/* Kaydırınca sabit menüde Tüm Kategoriler gizlenir */
body.sellzy-tema-scope .header-bottom.sticky-top .sellzy-header-all-categories {
  display: none !important;
}

/* Kaydırınca destek telefonu gizlenir — logo + hesabım + sepet kalır */
body.sellzy-tema-scope .header-bottom.sticky-top .sellzy-header-sticky-hide-on-scroll {
  display: none !important;
}

body.sellzy-tema-scope .header-bottom.sticky-top {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

body.sellzy-tema-scope .header-bottom.sticky-top .main-menu {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

body.sellzy-tema-scope .header-bottom.sticky-top .header-sticky-account {
  position: relative;
  overflow: visible !important;
}

body.sellzy-tema-scope .header-bottom.sticky-top .sellzy-account-dropdown-menu {
  margin-top: 0.5rem;
}

/* group-hover Tailwind derlenmemişse — hesabım dropdown */
body.sellzy-tema-scope .header-sticky-account:hover .sellzy-account-dropdown-menu,
body.sellzy-tema-scope .header-sticky-account:focus-within .sellzy-account-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* 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 sağ drawer (sepet, sipariş takip, iade vb.): sepet ile aynı genişlik ve kaydırma.
   */
  html.sellzy-tema-scope .sellzy-right-drawer {
    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 .sellzy-right-drawer[data-state="close"] {
    transform: translate3d(100%, 0, 0) !important;
    opacity: 1 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

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

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

/* Alt mobil menü — drawer / kategori aç */
/* Alt mobil menü — sabit alt bar (header ile aynı xl breakpoint) */
html.sellzy-tema-scope .sellzy-mobile-bottom-nav {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 80;
  background: #fff;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(22, 28, 36, 0.06);
}

@media (min-width: 1280px) {
  html.sellzy-tema-scope .sellzy-mobile-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 1279.98px) {
  html.sellzy-tema-scope .mh-cookie-banner {
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  html.sellzy-tema-scope .mh-cookie-preferences-link {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }
}

html.sellzy-tema-scope .footer-bottom-nav .sellzy-footer-cart-btn,
html.sellzy-tema-scope .footer-bottom-nav button.footer-bottom-nav-btn.sellzy-mobile-menu-btn {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

html.sellzy-tema-scope .footer-bottom-nav a.active,
html.sellzy-tema-scope .footer-bottom-nav button.footer-bottom-nav-btn.active {
  border-color: var(--color-primary, #088178) !important;
  color: var(--color-primary, #088178) !important;
}

html.sellzy-tema-scope .footer-bottom-nav a.active i,
html.sellzy-tema-scope .footer-bottom-nav button.footer-bottom-nav-btn.active i {
  color: var(--color-primary, #088178) !important;
}

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;
}

/*
 * Sepet drawer + /sepet sayfası — mobil düzen.
 * Tailwind w-[72px] / min-w-0 gibi sınıflar style.css'te derlenmediği için sabit CSS kullanılır.
 */
html.sellzy-tema-scope .cart-product-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  min-width: 0;
  box-sizing: border-box;
}

html.sellzy-tema-scope .sellzy-cart-item-thumb,
html.sellzy-tema-scope .sellzy-cart-page-thumb {
  flex: 0 0 4.5rem;
  width: 4.5rem !important;
  height: 4.5rem !important;
  max-width: 4.5rem !important;
  min-width: 4.5rem !important;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f4f3f5;
}

html.sellzy-tema-scope .sellzy-cart-item-thumb > a,
html.sellzy-tema-scope .sellzy-cart-page-thumb > a {
  display: block;
  width: 100%;
  height: 100%;
}

html.sellzy-tema-scope .sellzy-cart-item-thumb img,
html.sellzy-tema-scope .sellzy-cart-page-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  position: static !important;
}

@media (min-width: 640px) {
  html.sellzy-tema-scope .sellzy-cart-page-thumb {
    flex: 0 0 7.5rem;
    width: 7.5rem !important;
    height: 7.5rem !important;
    max-width: 7.5rem !important;
    min-width: 7.5rem !important;
    border-radius: 1rem;
  }
}

html.sellzy-tema-scope .cart-product-item-content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

html.sellzy-tema-scope .cart-product-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

html.sellzy-tema-scope .cart-product-item-head-main {
  flex: 1 1 0%;
  min-width: 0;
}

html.sellzy-tema-scope .cart-edit-remove {
  flex-shrink: 0;
}

html.sellzy-tema-scope .cart-product-item-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 640px) {
  html.sellzy-tema-scope .cart-product-item-title {
    font-size: 1rem;
  }
}

html.sellzy-tema-scope .cart-product-item-title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  color: inherit;
  text-decoration: none;
}

html.sellzy-tema-scope .cart-product-item-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

html.sellzy-tema-scope .cart-product-item-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.75rem;
  max-width: 100%;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-gray-300, #dfe3e8);
  border-radius: 9999px;
  box-sizing: border-box;
}

html.sellzy-tema-scope .cart-product-item-qty .cart-qty-input {
  min-width: 0;
  width: 100%;
  flex: 1 1 auto;
}

html.sellzy-tema-scope .sellzy-cart-page-product-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

html.sellzy-tema-scope .sellzy-cart-page-product-info {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

@media (max-width: 1279.98px) {
  html.sellzy-tema-scope .cart-products-header,
  html.sellzy-tema-scope .cart-products-footer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  html.sellzy-tema-scope .cart-products-content {
    padding: 1rem !important;
    gap: 0.75rem !important;
  }

  html.sellzy-tema-scope .cart-buttons {
    flex-direction: column;
    gap: 0.5rem !important;
  }

  html.sellzy-tema-scope .cart-buttons .btn {
    width: 100%;
    flex: none !important;
  }
}

@media (max-width: 23.99rem) {
  html.sellzy-tema-scope .cart-product-item-footer {
    flex-direction: column;
    align-items: stretch;
  }

  html.sellzy-tema-scope .cart-product-item-qty {
    align-self: flex-start;
  }
}

@media (max-width: 63.99rem) {
  html.sellzy-tema-scope .wishlist-table td.product {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.5rem;
  }

  html.sellzy-tema-scope .wishlist-table td.product::before {
    width: 100%;
    flex-shrink: 0;
  }

  html.sellzy-tema-scope .wishlist-table td:not(.product) {
    align-items: center;
  }

  html.sellzy-tema-scope .wishlist-table-wrapper {
    overflow-x: visible;
  }

  html.sellzy-tema-scope .wishlist-table .product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    width: 100%;
  }
}
