/* Fabergé Market — cart / clearer filter UI */
.filters select[data-filter="pattern"],
.filters select[data-filter="background"] { font-size: 12.5px; }

.card-b { position: relative; }
.card-price { padding-right: 48px; min-height: 34px; }
.cart-add-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid #8a5a12;
  background: linear-gradient(180deg, #f0d080, #c9962e);
  color: #241a05;
  box-shadow: 0 4px 14px #c9962e3d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.cart-add-btn svg { width: 19px; height: 19px; }
.cart-add-btn .cart-plus {
  position: absolute;
  right: 4px;
  top: 1px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #241a05;
  color: #f0d080;
  font-size: 11px;
  line-height: 12px;
  font-weight: 900;
  text-align: center;
}
.cart-add-btn.in-cart {
  background: #183d2c;
  border-color: #2e8055;
  color: #65e398;
  box-shadow: none;
}
.cart-add-btn.in-cart .cart-plus::before { content: '✓'; }
.cart-add-btn.in-cart .cart-plus { font-size: 0; background: #65e398; color: #10281d; }
.cart-add-btn.in-cart .cart-plus::before { font-size: 10px; line-height: 13px; }

.cart-nav-btn { position: relative; }
.cart-nav-icon { position: relative; display: inline-flex; }
.cart-nav-icon > svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #241a05;
  border: 2px solid #17212b;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
  font-weight: 900;
}
.cart-badge.empty { display: none; }

.cart-sheet { min-height: 250px; }
.cart-title-row { display: flex; align-items: baseline; gap: 9px; padding-right: 38px; }
.cart-title-row h3 { font-size: 21px; }
.cart-title-count { color: var(--mut); font-size: 12px; }
.cart-loading, .cart-empty { color: var(--mut); text-align: center; padding: 38px 12px; }
.cart-empty svg { width: 38px; height: 38px; margin-bottom: 10px; color: var(--gold); }
.cart-list { margin: 4px 0 12px; }
.cart-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 13px;
  border: 1px solid #ffffff24;
  background: var(--panel2);
  flex: none;
}
.cart-row-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.cart-row-info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-row-info span { color: var(--gold); font-weight: 700; font-size: 13px; }
.cart-remove {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--mut);
  font-size: 15px;
  cursor: pointer;
}
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
}
.cart-total span { color: var(--mut); }
.cart-total strong { color: var(--text); font-size: 20px; }
.cart-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin-top: 4px; }
.cart-actions .btn { width: 100%; }
.cart-actions .btn:disabled { opacity: .55; cursor: default; }

@media (max-width: 390px) {
  .filters { gap: 6px; }
  .filters select { padding-left: 6px; padding-right: 4px; font-size: 11.5px; }
  .bnav-btn { font-size: 10.5px; padding-left: 2px; padding-right: 2px; }
}
