/* Мини-корзина (offcanvas) — вынесено из header.html */
.offcanvas-cart {
  --cart-padding: 12px;
}
@media (min-width: 992px) {
  .offcanvas-cart {
    width: 30vw;
    max-width: 100vw;
    min-width: 0;
  }
}
.offcanvas-cart .offcanvas-body {
  padding: var(--cart-padding);
}
.offcanvas-cart .cart-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}
.offcanvas-cart .cart-alert {
  font-size: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
}
.offcanvas-cart .cart-alert.alert-warning {
  border-color: #e5e5e5;
  background: #fffbf0;
}
.offcanvas-cart .cart-alert.alert-danger {
  border-color: #e5e5e5;
  background: #fff5f5;
}
.offcanvas-cart .cart-items-list {
  flex: 1;
  overflow-y: auto;
}
.offcanvas-cart .cart-loading {
  font-size: 12px;
  color: #8c8c8c;
  text-align: center;
  padding: 16px 0;
}
.offcanvas-cart .list-group-item {
  border: none;
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 0;
  font-size: 12px;
}
.offcanvas-cart .list-group-item:last-child {
  border-bottom: none;
}
.offcanvas-cart .cart-footer {
  border-top: 1px solid #e5e5e5;
  padding-top: 12px;
  margin-top: 12px;
  margin-bottom: 36px;
}
.offcanvas-cart .cart-discount-summary {
  margin-bottom: 8px;
}
.offcanvas-cart .cart-total-row--secondary {
  font-weight: 400;
  color: #374151;
  margin-bottom: 6px;
}
.offcanvas-cart .cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 12px;
}
.offcanvas-cart .cart-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.offcanvas-cart .cart-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  padding: 10px;
  border-radius: 0;
}
.offcanvas-cart .cart-btn-outline {
  border: 1px solid #fff !important;
  background: #fff !important;
  color: #000 !important;
}
.offcanvas-cart .cart-btn-primary {
  border: 1px solid #111;
  background: #111;
  color: #fff;
}
.offcanvas-cart .cart-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 10px 0;
}
.offcanvas-cart .cart-item:last-child {
  border-bottom: none;
}
.offcanvas-cart .cart-item-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.offcanvas-cart .cart-item-image {
  width: 56px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
}
.offcanvas-cart .cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.offcanvas-cart .cart-item-info {
  flex: 1;
  min-width: 0;
}
.offcanvas-cart .cart-item-name {
  font-size: 12px;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.offcanvas-cart .cart-item-name:hover {
  text-decoration: underline;
}
.offcanvas-cart .cart-item-options {
  font-size: 12px;
  color: #8c8c8c;
  margin-bottom: 4px;
}
.offcanvas-cart .cart-item-price--discount {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  line-height: 1.35;
}
.offcanvas-cart .cart-item-price {
  font-size: 12px;
  font-weight: 500;
  color: #111;
}
.offcanvas-cart .cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.offcanvas-cart .cart-qty-form {
  display: inline-flex;
}
.offcanvas-cart .cart-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.offcanvas-cart .cart-qty-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  border-radius: 0;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
}
.offcanvas-cart .cart-qty-btn:hover {
  background: #333;
  border-color: #333;
}
.offcanvas-cart .cart-qty-input {
  width: 32px;
  height: 24px;
  text-align: center;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  font-size: 12px;
  padding: 0;
}
.offcanvas-cart .cart-qty-input:focus {
  outline: none;
  border-color: #111;
}
.offcanvas-cart .cart-remove-btn {
  border: none;
  background: none;
  color: #8c8c8c;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.offcanvas-cart .cart-remove-btn:hover {
  color: #111;
}
.offcanvas-cart .cart-remove-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}
