/* Equsto alışveriş sepeti — tam sayfa + mini panel */

.eq-cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

@media (min-width: 900px) {
  .eq-cart-layout {
    grid-template-columns: 1fr min(360px, 34%);
    align-items: start;
    gap: 32px;
    padding: 28px 20px 56px;
  }
}

.eq-cart-page__head {
  margin-bottom: 20px;
}

.eq-cart-page__title {
  margin: 0 0 6px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--eq-text);
}

.eq-cart-page__summary {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--eq-topnav-dept-bg, #001e50);
}

.eq-cart-page__lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--eq-text-secondary);
}

.eq-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--eq-surface, #fff);
  border: 1px solid var(--eq-border);
  border-radius: 12px;
  overflow: hidden;
}

.eq-cart-line {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--eq-border-soft, #eee);
  align-items: start;
}

@media (min-width: 640px) {
  .eq-cart-line {
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 22px;
    padding: 20px 22px;
  }
}

.eq-cart-line:last-child {
  border-bottom: none;
}

.eq-cart-line__media {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  background: var(--eq-surface-2, #f5f6f8);
  border: 1px solid var(--eq-border-soft, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 6px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .eq-cart-line__media {
    width: 152px;
    height: 152px;
    padding: 8px;
  }
}

.eq-cart-line__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.eq-cart-line__ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 52px;
  opacity: 0.22;
  line-height: 1;
}

.eq-cart-line__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eq-cart-line__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.eq-cart-line__row--foot {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 2px;
}

.eq-cart-line__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--eq-text);
}

.eq-cart-line__total {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--eq-text);
  white-space: nowrap;
  text-align: right;
}

.eq-cart-line__total--quote {
  font-size: 12px;
  font-weight: 600;
  color: var(--eq-text-muted);
}

.eq-cart-line__meta {
  font-size: 12px;
  color: var(--eq-text-muted);
  line-height: 1.4;
}

.eq-cart-line__unit {
  font-size: 12px;
  color: var(--eq-text-secondary);
  flex: 1;
  min-width: 0;
}

.eq-cart-line__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.eq-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--eq-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--eq-surface, #fff);
}

.eq-cart-qty__btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--eq-surface-2, #f5f5f5);
  color: var(--eq-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.eq-cart-qty__btn:hover {
  background: var(--eq-border-soft, #e8e8e8);
}

.equsto-cart-qty-minus:hover {
  background: rgba(180, 40, 40, 0.12);
  color: #a12828;
}

.eq-cart-qty__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.eq-cart-qty__val {
  min-width: 36px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.eq-cart-qty--quote .eq-cart-qty__val {
  min-width: 28px;
}

/* Kaldır metni kaldırıldı — satır silme yalnızca − ile */

.eq-cart-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--eq-surface, #fff);
  border: 1px dashed var(--eq-border);
  border-radius: 12px;
}

.eq-cart-empty__icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.eq-cart-empty__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.eq-cart-empty__text {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--eq-text-muted);
  line-height: 1.5;
}

.eq-cart-continue {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--eq-topnav-dept-bg, #001e50);
  text-decoration: none;
}

.eq-cart-continue:hover {
  text-decoration: underline;
}

.eq-cart-summary-card {
  position: sticky;
  top: 16px;
  background: var(--eq-surface, #fff);
  border: 1px solid var(--eq-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0, 30, 80, 0.06);
}

.eq-cart-summary-card__title {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
}

.eq-cart-summary-rows {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.eq-cart-summary-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  color: var(--eq-text-secondary);
}

.eq-cart-summary-rows li.eq-cart-summary-rows__total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--eq-border);
  font-size: 16px;
  font-weight: 700;
  color: var(--eq-text);
}

.eq-cart-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.eq-cart-checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--eq-text-secondary);
}

.eq-cart-checkout-form input,
.eq-cart-checkout-form textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--eq-border);
  border-radius: 8px;
  background: var(--eq-surface, #fff);
  color: var(--eq-text);
}

.eq-cart-checkout-form textarea {
  min-height: 72px;
  resize: vertical;
}

.eq-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eq-cart-btn {
  display: block;
  width: 100%;
  text-align: center;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  box-sizing: border-box;
}

.eq-cart-btn--primary {
  background: var(--eq-topnav-dept-bg, #001e50);
  color: #fff;
  border-color: var(--eq-topnav-dept-bg, #001e50);
}

.eq-cart-btn--primary:hover:not(:disabled) {
  filter: brightness(1.08);
}

.eq-cart-btn--primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.eq-cart-btn--wa {
  background: #25d366;
  color: #fff;
  border-color: #1da851;
}

.eq-cart-btn--outline {
  background: var(--eq-surface, #fff);
  color: var(--eq-text);
  border-color: var(--eq-border);
}

.eq-cart-btn--muted {
  background: transparent;
  color: var(--eq-text-muted);
  border-color: var(--eq-border);
  font-size: 12px;
  font-weight: 500;
}

.eq-cart-page__note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--eq-text-muted);
}

body.eq-cart-page .eq-cart-layout__aside.is-empty {
  display: none;
}

/* Mini sepet paneli (isteğe bağlı — overlay) */
#equsto-cart-overlay.eq-cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 410;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 520px) {
  #equsto-cart-overlay.eq-cart-overlay {
    align-items: center;
    padding: 16px;
  }
}

#equsto-cart-overlay.eq-cart-overlay.is-open {
  display: flex !important;
}

.eq-cart-drawer {
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--eq-surface, #fff);
  color: var(--eq-text);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

@media (min-width: 520px) {
  .eq-cart-drawer {
    border-radius: 12px;
    max-height: 86vh;
  }
}

.eq-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--eq-border);
  font-weight: 700;
  font-size: 15px;
}

.eq-cart-drawer__close {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  padding: 4px 8px;
}

.eq-cart-drawer__body {
  overflow-y: auto;
  flex: 1;
  padding: 8px 12px;
}

.eq-cart-drawer__foot {
  padding: 12px 14px;
  border-top: 1px solid var(--eq-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.equsto-hdr-cart {
  cursor: pointer;
  position: relative;
}

.equsto-hdr-cart .eq-hdr-cart-badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  background: var(--eq-accent, #e85d04);
  color: #fff;
}

/* Sepete eklendi — sağ üst mini bildirim */
.eq-cart-added-toast {
  position: fixed;
  top: 72px;
  right: 12px;
  z-index: 510;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(300px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--eq-surface, #fff);
  color: var(--eq-text, #1a1a1a);
  border: 1px solid var(--eq-border, #e5e5e5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.eq-cart-added-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eq-cart-added-toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.eq-cart-added-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.eq-cart-added-toast__body span {
  font-size: 11px;
  font-weight: 500;
  color: var(--eq-text-secondary, #5a6278);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

@media (max-width: 768px) {
  .eq-cart-added-toast {
    right: 10px;
    max-width: calc(100vw - 20px);
  }
}

.eq-cart-line--quote {
  grid-template-columns: 88px 1fr;
}

@media (min-width: 640px) {
  .eq-cart-line--quote {
    grid-template-columns: 100px 1fr;
    align-items: start;
  }
}

.eq-cart-line--quote .eq-cart-line__unit {
  font-weight: 600;
  color: var(--eq-topnav-dept-bg, #001e50);
}

.eq-cart-line--quote .eq-cart-line__total {
  font-size: 13px;
  font-weight: 600;
  color: var(--eq-text-secondary, #5a6278);
}

#equsto-cart-overlay.eq-cart-overlay--quote .eq-cart-drawer__foot--quote {
  gap: 10px;
}

#equsto-cart-overlay.eq-cart-overlay--quote .eq-cart-btn--wa {
  order: -1;
}

/* Cihazlar arası sepet eşitleme (/sepet) */
.eq-cart-login-hint {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--eq-border, #e2e8f0);
  border-radius: 12px;
  background: var(--eq-surface-muted, #f8fafc);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.eq-cart-login-hint[hidden] {
  display: none !important;
}

.eq-cart-login-hint__text {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--eq-text-muted, #475569);
}

.eq-cart-login-hint__cta {
  flex: 0 0 auto;
  text-decoration: none;
  text-align: center;
}

.eq-cart-sync {
  margin: 24px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafbfc;
}

.eq-cart-sync__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.eq-cart-sync__lead {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.eq-cart-sync__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.eq-cart-sync__row--join {
  align-items: flex-end;
}

.eq-cart-sync__code {
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #001e50;
  min-height: 1.2em;
}

.eq-cart-sync__label {
  flex: 1 1 100%;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.eq-cart-sync__input {
  flex: 1 1 120px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.eq-cart-sync__msg {
  margin: 8px 0 0;
  font-size: 12px;
  min-height: 1.2em;
}

.eq-cart-sync__msg--ok {
  color: #0d6b3a;
}

.eq-cart-sync__msg--err {
  color: #b42318;
}
