/* Yan sepet çekmecesi — store.js (#zpCartDrawer), FrezeMarketi */

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 22, 28, 0.55);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: #fff;
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
}

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

.cart-drawer.is-loading .cart-drawer__body {
  opacity: 0.55;
  pointer-events: none;
}

.cart-drawer__header {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line, #e5e8eb);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: #151b21;
  color: #fff;
}

.cart-drawer__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.cart-drawer__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.cart-drawer__close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: background 0.2s, border-color 0.2s;
}

.cart-drawer__close:hover {
  background: var(--orange, #ff8700);
  border-color: var(--orange, #ff8700);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: #f8fafb;
}

.cart-drawer__empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted, #6b7280);
}

.cart-drawer__empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line, #e5e8eb);
  font-size: 1.5rem;
  color: var(--ink, #151b21);
  margin-bottom: 1rem;
}

.cart-drawer__lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-drawer-line {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  background: #fff;
  border: 1px solid var(--line, #e5e8eb);
  border-radius: 8px;
}

.cart-drawer-line__image {
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f2f4;
  border: 1px solid var(--line, #e5e8eb);
}

.cart-drawer-line__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-drawer-line__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #e8ebef;
}

.cart-drawer-line__main {
  min-width: 0;
}

.cart-drawer-line__title {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink, #151b21);
  text-decoration: none;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.cart-drawer-line__title:hover {
  color: var(--orange, #ff8700);
}

.cart-drawer-line__meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
  margin-bottom: 0.35rem;
}

.cart-drawer-line__price {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink, #151b21);
  margin-top: 0.4rem;
}

.cart-drawer-line__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.cart-item-quantity,
.zp-qty-control {
  display: inline-flex;
  align-items: stretch;
  height: 34px;
  border: 1px solid var(--line, #e5e8eb);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  width: fit-content;
  max-width: 100%;
}

.cart-item-quantity .quantity-btn,
.zp-qty-control .quantity-btn,
.cart-item-quantity .zp-qty-minus,
.cart-item-quantity .zp-qty-plus,
.zp-qty-control .zp-qty-minus,
.zp-qty-control .zp-qty-plus {
  flex: 0 0 30px;
  width: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f4f6f8;
  color: var(--ink, #151b21);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-item-quantity .quantity-btn:hover,
.zp-qty-control .quantity-btn:hover,
.cart-item-quantity .zp-qty-minus:hover,
.cart-item-quantity .zp-qty-plus:hover,
.zp-qty-control .zp-qty-minus:hover,
.zp-qty-control .zp-qty-plus:hover {
  background: rgba(255, 135, 0, 0.12);
  color: var(--orange, #ff8700);
}

.cart-item-quantity .zp-qty-input,
.zp-qty-control .zp-qty-input {
  flex: 1 1 auto;
  width: 2.75rem;
  min-width: 2.4rem;
  max-width: 3.5rem;
  height: 100%;
  margin: 0;
  padding: 0 0.25rem;
  border: 0;
  border-left: 1px solid var(--line, #e5e8eb);
  border-right: 1px solid var(--line, #e5e8eb);
  background: transparent;
  color: var(--ink, #151b21);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.cart-item-quantity .zp-qty-input::-webkit-outer-spin-button,
.cart-item-quantity .zp-qty-input::-webkit-inner-spin-button,
.zp-qty-control .zp-qty-input::-webkit-outer-spin-button,
.zp-qty-control .zp-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-drawer-line__remove {
  background: none;
  border: 0;
  color: #9aa3ad;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.1rem;
}

.cart-drawer-line__remove:hover {
  color: #dc3545;
}

.cart-drawer__footer {
  padding: 1.25rem 1.35rem;
  border-top: 1px solid var(--line, #e5e8eb);
  background: #fff;
}

.cart-drawer__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink, #151b21);
}

.cart-drawer__subtotal strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-drawer__footer .btn-block {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 800;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.cart-drawer__footer .btn-block + .btn-block {
  margin-top: 0.5rem;
}

.cart-drawer__footer .btn-outline-dark {
  border: 1px solid var(--line, #e5e8eb);
  color: var(--ink, #151b21);
  background: #fff;
}

.cart-drawer__footer .btn-outline-dark:hover {
  border-color: var(--orange, #ff8700);
  color: var(--orange, #ff8700);
}

body.no-scroll {
  overflow: hidden;
}

/* Header sepet butonu — link stiliyle aynı */
.header-actions .cart-btn.zp-cart-drawer-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #151b21);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s;
}

.header-actions .cart-btn.zp-cart-drawer-toggle:hover {
  color: var(--orange, #ff8700);
}

.header-actions .cart-btn.zp-cart-drawer-toggle i {
  font-size: 25px;
}

.header-actions .cart-btn.zp-cart-drawer-toggle small {
  display: block;
  color: #89919a;
  font-weight: 500;
  font-size: 10px;
}

.header-actions .cart-btn.zp-cart-drawer-toggle b {
  position: absolute;
  top: -10px;
  left: 19px;
  border-radius: 50%;
  background: var(--yellow, #ffc107);
  color: var(--ink, #151b21);
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}
