/* Изолированные стили автономной корзины 10shampurov.ru */
#sc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
#sc-modal-overlay.open {
  display: flex;
}
#sc-modal {
  background: #fff;
  color: #222;
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}
#sc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #2b2b2b;
  color: #fff;
}
#sc-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
#sc-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
#sc-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.sc-empty {
  text-align: center;
  padding: 35px 10px;
  color: #666;
  font-size: 16px;
}
.sc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.sc-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  flex-shrink: 0;
}
.sc-item-info {
  flex: 1;
  min-width: 0;
}
.sc-item-title {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}
.sc-item-price {
  font-size: 13px;
  color: #666;
}
.sc-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  color: #222;
}
.sc-qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.sc-item-sum {
  font-weight: 700;
  font-size: 15px;
  min-width: 85px;
  text-align: right;
  white-space: nowrap;
}
.sc-del-btn {
  background: none;
  border: none;
  color: #c00;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
}
.sc-section-title {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #222;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}
.sc-delivery-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sc-delivery-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  background: #fafafa;
}
.sc-delivery-opt input[type="radio"] {
  margin-top: 3px;
}
.sc-delivery-opt.active {
  border-color: #d35400;
  background: #fff8f3;
}
.sc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sc-form-full {
  grid-column: 1 / -1;
}
.sc-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.sc-totals {
  margin-top: 16px;
  padding: 12px 15px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 14px;
}
.sc-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}
.sc-total-row.grand {
  font-size: 17px;
  font-weight: 700;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
  margin-bottom: 0;
}
.sc-submit-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  background: #d35400;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.sc-submit-btn:hover {
  background: #b94600;
}
.sc-submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}
.sc-status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}
.sc-status.ok {
  display: block;
  background: #e8f8ee;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.sc-status.err {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
#sc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #222;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 100000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#sc-toast.show {
  opacity: 1;
}
@media (max-width: 600px) {
  .sc-form-grid {
    grid-template-columns: 1fr;
  }
  .sc-item {
    flex-wrap: wrap;
  }
}

/* Скрытие кнопок авторизации и поиска в правом верхнем углу и соцсетей в подвале */
.right-header .authorization-button,
.right-header .site-search-button,
.shop2-login-popup-wr,
.shop2-search-popup-wr,
.uptolike-buttons,
[class*="uptolike"] {
  display: none !important;
}

/* Скрытие неработающей панели фильтрации, сортировки и количества товаров на странице */
.shop2-sorting-panel,
.shop2-filter-popup-wr,
.filter-button {
  display: none !important;
}

/* Скрытие пустой категории "Недорогие наборы шампуров" в меню и каталоге */
li:has(> a[href*="nedorogiye-nabory-shampurov"]),
a[href*="nedorogiye-nabory-shampurov"] {
  display: none !important;
}
