/* ═══════════════════════════════════════
   JELDEEX — Cart Page
   Black & White Theme
   ═══════════════════════════════════════ */

.jlx-cart-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 48px; align-items: start;
}

/* ── Left column ── */
.jlx-cart-left {
  background: #ffffff; border-radius: 14px;
  padding: 28px; border: 1px solid #e5e5e5;
}

.jlx-cart-heading {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px;
}
.jlx-wrap .jlx-cart-heading h1,
.jlx-wrap .jlx-cart-heading h2 {
  font-size: 30px; font-weight: 300; letter-spacing: -0.02em;
  margin: 0; color: #111;
}
.jlx-count-badge {
  background: #f0f0f0; color: #111;
  padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}

/* ── Cart item ── */
.jlx-cart-item {
  background: #fafafa; border: 1px solid #e5e5e5; border-radius: 12px;
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color 0.3s; margin-bottom: 12px;
}
.jlx-cart-item:hover { border-color: #ccc; }

.jlx-ci-img {
  width: 100px; height: 100px; border-radius: 8px;
  overflow: hidden; background: #f0f0f0; flex-shrink: 0;
}
.jlx-ci-img img { width: 100%; height: 100%; object-fit: cover; }

.jlx-ci-info { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.jlx-ci-top  { display: flex; justify-content: space-between; align-items: flex-start; }

.jlx-wrap .jlx-ci-name {
  font-size: 15px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: #111; margin: 0 0 6px;
}
.jlx-ci-vars { display: flex; gap: 6px; flex-wrap: wrap; }
.jlx-ci-badge {
  background: #f0f0f0; color: #888; font-size: 10px;
  padding: 2px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.08em;
}

.jlx-ci-delete {
  background: none; border: none; color: #ccc;
  cursor: pointer; transition: color 0.2s; padding: 2px;
}
.jlx-ci-delete:hover { color: #ef4444; }

.jlx-ci-bottom  { display: flex; justify-content: space-between; align-items: center; }
.jlx-ci-pricing { text-align: right; }
.jlx-ci-old {
  font-size: 12px; color: #aaa; text-decoration: line-through; display: block;
}
.jlx-ci-price { font-size: 17px; font-weight: 700; color: #111; }

/* ── Qty controls ── */
.jlx-qty-ctrl {
  display: flex; align-items: center;
  background: #f5f5f5; border: 1px solid #e0e0e0;
  border-radius: 30px; padding: 4px 10px;
}
.jlx-qty-ctrl button {
  background: none; border: none; color: #999; cursor: pointer;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: color 0.2s;
}
.jlx-qty-ctrl button:hover { color: #111; }
.jlx-qty-ctrl span {
  min-width: 20px; text-align: center;
  font-weight: 700; color: #111; font-size: 13px;
}
.jlx-qty-ctrl.small { padding: 2px 7px; }
.jlx-qty-ctrl.small button { width: 20px; height: 20px; font-size: 13px; }

/* ── Back link ── */
.jlx-back-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 28px; color: #999; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  text-decoration: none; transition: color 0.2s;
}
.jlx-back-link:hover { color: #111; }

/* ── Right column ── */
.jlx-cart-right { position: sticky; top: 100px; }
.jlx-summary-card {
  background: #ffffff; border: 1px solid #e5e5e5;
  border-radius: 12px; padding: 24px;
}
.jlx-wrap .jlx-summary-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin: 0 0 18px; color: #111;
}
.jlx-field-label {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.15em; color: #999; margin-bottom: 8px;
}

/* ── Empty ── */
.jlx-empty-page {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-height: 50vh; text-align: center; gap: 12px;
}
.jlx-empty-bag { font-size: 64px; color: #ccc; opacity: 0.4; }
.jlx-wrap .jlx-empty-page h1,
.jlx-wrap .jlx-empty-page h2 { font-size: 24px; font-weight: 700; color: #111; }
.jlx-wrap .jlx-empty-page p  { color: #999; font-size: 13px; }

/* ── Outline button (empty state home) ── */
.jlx-btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 1.5px solid #111;
  color: #111;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent;
  text-decoration: none;
  transition: all 0.2s;
}
.jlx-btn-outline:hover {
  background: #f0f0f0;
  color: #111;
}
.jlx-btn-gold {
  display: inline-block;
  padding: 12px 28px;
  background: #111;
  color: #fff;
  border: 1.5px solid #111;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.2s;
}
.jlx-btn-gold:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

/* ═══════════════════════════════════════
   RESPONSIVE — Cart
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .jlx-cart-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .jlx-cart-right {
    position: static;
  }
}
@media (max-width: 768px) {
  .jlx-cart-left {
    padding: 20px 16px;
  }
  .jlx-cart-item {
    flex-direction: column;
    align-items: stretch;
  }
  .jlx-ci-img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
  }
  .jlx-ci-bottom {
    flex-wrap: wrap;
    gap: 10px;
  }
  .jlx-summary-card {
    padding: 20px 16px;
  }
  .jlx-cart-heading h1,
  .jlx-cart-heading h2 {
    font-size: 22px;
  }
}
