/* =================== hc-cart-table.css =================== */
.hc-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hc-cart-head__modes {
  display: inline-flex;
  border: 1px solid rgba(26, 23, 20, 0.12);
  border-radius: 999px;
  padding: 4px;
  background: rgba(26, 23, 20, 0.03);
}

.hc-cart-head__mode {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(26, 23, 20, 0.72);
}

.hc-cart-head__mode.is-active {
  background: var(--hc-paper, #ffffff);
  color: var(--hc-ink, #1a1714);
  box-shadow: 0 8px 18px -14px rgba(26, 23, 20, 0.82);
}

.hc-cart-table-wrap {
  background: var(--hc-paper, #ffffff);
  border: 1px solid rgba(26, 23, 20, 0.1);
  border-radius: 18px;
  overflow: auto;
}

.hc-cart-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.hc-cart-table th,
.hc-cart-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
  text-align: left;
  vertical-align: middle;
}

.hc-cart-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(26, 23, 20, 0.6);
}

.hc-cart-table__product {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 10px;
  align-items: center;
}

.hc-cart-table__thumb {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  background: #f4f2ed;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hc-cart-table__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hc-cart-table__name {
  font-weight: 600;
  line-height: 1.3;
}

.hc-cart-table__series {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(26, 23, 20, 0.58);
}

.hc-cart-table__qty {
  display: inline-flex;
  border: 1px solid rgba(26, 23, 20, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.hc-cart-table__qty button {
  width: 30px;
  height: 30px;
}

.hc-cart-table__qty input {
  width: 42px;
  border: 0;
  text-align: center;
  background: var(--hc-paper, #ffffff);
}

.hc-cart-table__remove {
  color: rgba(26, 23, 20, 0.66);
  border-bottom: 1px dashed rgba(26, 23, 20, 0.3);
}

@media (max-width: 768px) {
  .hc-cart-head {
    align-items: flex-start;
  }
}

/* ==========================================================
   v7.61.20 · Premium polish
   ========================================================== */

/* Premium total typography */
.hc-cart-summary__total{
  font:500 28px/1 'Playfair Display',Georgia,serif;
  letter-spacing:-0.02em;
  color:var(--hc-ink, #1a1714);
}
.hc-cart-summary__total-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  padding:14px 0;
  border-top:0.5px solid rgba(180,151,115,0.22);
  margin-top:6px;
}
.hc-cart-summary__total-lbl{
  font:500 11px/1.2 'JetBrains Mono',ui-monospace,monospace;
  letter-spacing:0.10em;
  text-transform:uppercase;
  color:rgba(26,23,20,0.55);
}

/* Free delivery progress hint */
.hc-cart-delivery-hint{
  margin-top:8px;
  padding:10px 12px;
  background:rgba(61,107,79,0.06);
  border:0.5px solid rgba(61,107,79,0.18);
  border-radius:8px;
  font-size:11px;
  color:var(--hc-success, #3d6b4f);
}
.hc-cart-delivery-hint__bar{
  position:relative;
  height:4px;
  background:rgba(61,107,79,0.14);
  border-radius:100px;
  margin-top:6px;
  overflow:hidden;
}
.hc-cart-delivery-hint__fill{
  position:absolute;
  inset:0 auto 0 0;
  background:linear-gradient(90deg,var(--hc-success, #3d6b4f),#5a8b6c);
  border-radius:100px;
  transition:width 0.32s ease;
}

/* Trash icon for "Удалить" */
.hc-cart-line__trash{
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:transparent;
  border:0;
  color:rgba(26,23,20,0.45);
  font-size:12px;
  cursor:pointer;
  transition:color 0.18s ease;
  padding:0;
}
.hc-cart-line__trash:hover{ color:#c0392b; }
.hc-cart-line__trash svg{ width:13px; height:13px; }

/* Touch-friendly qty controls */
.hc-qty-control{
  display:inline-flex;
  align-items:center;
  border:0.5px solid rgba(180,151,115,0.32);
  border-radius:100px;
  overflow:hidden;
}
.hc-qty-control button{
  width:36px;
  height:36px;
  background:transparent;
  border:0;
  font-size:16px;
  cursor:pointer;
  color:rgba(26,23,20,0.65);
  transition:background 0.18s ease, color 0.18s ease;
}
.hc-qty-control button:hover{
  background:rgba(212,184,150,0.10);
  color:var(--hc-ink, #1a1714);
}
.hc-qty-control input{
  width:38px;
  text-align:center;
  border:0;
  background:transparent;
  font:500 14px/1 'Inter',sans-serif;
  color:var(--hc-ink, #1a1714);
}


/* ─── Sprint13.P2: cart mobile ─── */
@media (max-width: 720px) {
  .hc-cart-layout,
  [class*="cart-layout"] {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  /* Cart line: image + content side-by-side, qty/price below */
  .hc-cart-line {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px;
  }
  .hc-cart-line__media {
    width: 72px;
    height: 72px;
  }
  .hc-cart-line__qty,
  .hc-cart-line__price {
    grid-column: 2;
  }
  /* cart-sum sticky to bottom on mobile */
  .hc-cart-sum {
    position: sticky;
    bottom: 0;
    box-shadow: 0 -8px 24px -8px rgba(40, 30, 15, 0.18);
  }
}
