/* ARC Cart page — /sepet
   Renkler: #181516, #b1947f, #ede8e6, #d5c6bc, #594436
─────────────────────────────────────────────────────────── */

.arc-cart {
  font-family: 'Inter', -apple-system, sans-serif;
  background:
    radial-gradient(1000px 420px at 8% -8%, rgba(177, 148, 127, 0.14), transparent 55%),
    linear-gradient(180deg, #f7f3f0 0%, #ede8e6 45%, #f4efeb 100%);
  min-height: 70vh;
  padding: 36px 0 72px;
  color: #181516;
}

.arc-cart__inner {
  max-width: 1120px;
}

.arc-cart__header {
  margin-bottom: 28px;
}

.arc-cart__eyebrow {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a7e76;
}

.arc-cart__title {
  margin: 0;
  font-family: 'Karrik', Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #181516;
}

/* Empty state */
.arc-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 56px 28px 48px;
  background: #fff;
  border: 1px solid #d5c6bc;
  animation: arc-cart-in 0.45s ease both;
}

.arc-cart-empty__visual {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1.5px solid #d5c6bc;
  background:
    linear-gradient(145deg, rgba(177, 148, 127, 0.16), transparent 60%),
    #faf7f5;
  color: #594436;
  animation: arc-cart-float 3.2s ease-in-out infinite;
}

.arc-cart-empty__visual svg {
  width: 42px;
  height: 42px;
}

.arc-cart-empty__title {
  margin: 0 0 10px;
  font-family: 'Karrik', Georgia, serif;
  font-size: clamp(1.55rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: #181516;
}

.arc-cart-empty__text {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #8a7e76;
}

.arc-cart-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.arc-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.arc-cart-btn--primary {
  background: #181516;
  color: #ede8e6;
  border: 1.5px solid #181516;
}

.arc-cart-btn--primary:hover {
  background: #594436;
  border-color: #594436;
  color: #ede8e6;
}

.arc-cart-btn--ghost {
  background: transparent;
  color: #594436;
  border: 1.5px solid #d5c6bc;
}

.arc-cart-btn--ghost:hover {
  border-color: #181516;
  color: #181516;
}

/* Filled cart */
.arc-cart__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.arc-cart__list {
  background: #fff;
  border: 1px solid #d5c6bc;
}

.arc-cart__list-head,
.arc-cart__item {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) 0.55fr 0.85fr 0.85fr 44px;
  gap: 10px;
  align-items: center;
  padding: 14px 16px;
}

.arc-cart__list-head {
  border-bottom: 1px solid #e8e0da;
  background: #faf7f5;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a7e76;
}

.arc-cart__item {
  border-bottom: 1px solid #f0ebe7;
  min-height: 92px;
}

.arc-cart__item:last-child {
  border-bottom: none;
}

.arc-cart__item-product {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.arc-cart__thumb {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border: 1px solid #f0ebe7;
  overflow: hidden;
  background: #faf7f5;
  display: block;
}

.arc-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.arc-cart__item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arc-cart__item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #181516;
  text-decoration: none;
  line-height: 1.35;
}

a.arc-cart__item-name:hover {
  color: #594436;
  text-decoration: underline;
}

.arc-cart__item-variant {
  font-size: 0.78rem;
  color: #9a8a80;
}

.arc-cart__item-qty,
.arc-cart__item-unit,
.arc-cart__item-total {
  font-size: 0.88rem;
  color: #3a2e28;
}

.arc-cart__item-total {
  font-weight: 700;
}

.arc-cart__remove button {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #c0b0a8;
  transition: color 0.15s, background 0.15s;
}

.arc-cart__remove button:hover {
  color: #9b2226;
  background: rgba(155, 34, 38, 0.06);
}

.arc-cart__remove svg {
  width: 18px;
  height: 18px;
}

.arc-cart__summary {
  position: sticky;
  top: 96px;
  background: #181516;
  color: #ede8e6;
  padding: 22px;
}

.arc-cart__summary h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(237, 232, 230, 0.18);
  font-family: 'Karrik', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
}

.arc-cart__totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.arc-cart__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(237, 232, 230, 0.78);
}

.arc-cart__discount {
  color: #c8e6c9 !important;
}

.arc-cart__discount small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  opacity: 0.8;
}

.arc-cart__coupon {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(237, 232, 230, 0.18);
}

.arc-cart__coupon-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.arc-cart__coupon-form input {
  width: 100%;
  border: 1px solid rgba(237, 232, 230, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #ede8e6;
  border-radius: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
  text-transform: uppercase;
}

.arc-cart__coupon-form button {
  border: 0;
  background: #b1947f;
  color: #181516;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
}

.arc-cart__coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  color: #c8e6c9;
}

.arc-cart__coupon-remove {
  border: 0;
  background: transparent;
  color: rgba(237, 232, 230, 0.7);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
}

.arc-cart__coupon-error {
  margin-top: 8px;
  color: #f2b8b5;
  font-size: 0.8rem;
}

.arc-cart__coupon-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(237, 232, 230, 0.55);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.arc-cart__grand {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(237, 232, 230, 0.18);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ede8e6;
}

.arc-cart__summary-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.arc-cart__summary .arc-cart-btn--primary {
  background: #b1947f;
  border-color: #b1947f;
  color: #181516;
}

.arc-cart__summary .arc-cart-btn--primary:hover {
  background: #ede8e6;
  border-color: #ede8e6;
  color: #181516;
}

.arc-cart__summary .arc-cart-btn--ghost {
  border-color: rgba(237, 232, 230, 0.28);
  color: rgba(237, 232, 230, 0.78);
}

.arc-cart__summary .arc-cart-btn--ghost:hover {
  border-color: #ede8e6;
  color: #ede8e6;
}

@keyframes arc-cart-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes arc-cart-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 920px) {
  .arc-cart {
    padding: 24px 0 56px;
  }

  .arc-cart__layout {
    grid-template-columns: 1fr;
  }

  .arc-cart__summary {
    position: static;
    order: -1;
  }

  .arc-cart__list-head {
    display: none;
  }

  .arc-cart__item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product remove"
      "qty qty"
      "unit total";
    gap: 8px 12px;
  }

  .arc-cart__item-product { grid-area: product; }
  .arc-cart__remove { grid-area: remove; justify-self: end; }
  .arc-cart__item-qty { grid-area: qty; color: #8a7e76; font-size: 0.8rem; }
  .arc-cart__item-qty::before { content: "Adet: "; }
  .arc-cart__item-unit { grid-area: unit; font-size: 0.8rem; color: #8a7e76; }
  .arc-cart__item-total { grid-area: total; justify-self: end; }
}

@media (max-width: 560px) {
  .arc-cart-empty {
    padding: 40px 20px 36px;
  }

  .arc-cart-empty__actions {
    width: 100%;
    flex-direction: column;
  }

  .arc-cart-empty__actions .arc-cart-btn {
    width: 100%;
  }
}
