/* ERATOOLS V5.6 - Solid Store UX
   Cel: premium, prosto, równo, mniej gradientów, bardziej kwadratowe przyciski i spójny panel admin/klient/front.
*/
:root {
  --v56-radius: 10px;
  --v56-radius-lg: 14px;
  --v56-border: rgba(255,255,255,.10);
  --v56-accent: var(--accent, #ffc400);
  --v56-card: var(--card, #11171b);
  --v56-soft: var(--card-2, #151c21);
}

button,
.btn,
.admin-btn,
.cart-pro-btn,
.cart-pro-checkout-btn,
.customer-btn,
.header-action,
.v56-form button,
.v56-editor-toolbar button {
  border-radius: var(--v56-radius) !important;
}

.btn.primary,
.admin-btn-primary,
.cart-pro-btn-primary,
.cart-pro-checkout-btn,
.customer-btn,
.v56-form button[type="submit"] {
  background: var(--v56-accent) !important;
  background-image: none !important;
  color: #111 !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(255,196,0,.12) !important;
}

.btn.primary:hover,
.admin-btn-primary:hover,
.cart-pro-checkout-btn:hover,
.customer-btn:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.admin-card,
.customer-card,
.cart-pro-summary-card,
.cart-pro-item,
.product-card,
.category-product-card,
.home-product-card,
.v56-card {
  border-radius: var(--v56-radius-lg) !important;
  background-image: none !important;
}

.header-action--account.is-logged {
  background: transparent !important;
  box-shadow: none !important;
}

.header-account-dropdown {
  border-radius: 12px !important;
  background: var(--v56-card) !important;
  background-image: none !important;
}

/* AJAX koszyka */
.cart-pro-item {
  position: relative;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease;
}

.cart-pro-item.is-updating {
  opacity: .58;
  pointer-events: none;
}

.cart-pro-item.is-updating::after {
  content: "Aktualizacja...";
  position: absolute;
  inset: auto 14px 14px auto;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 0 10px;
  background: var(--v56-accent);
  color: #111;
  font-size: .78rem;
  font-weight: 900;
}

.cart-pro-item.is-removing {
  opacity: 0;
  transform: translateX(18px);
}

.cart-pro-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 130;
  min-width: 250px;
  max-width: 360px;
  border: 1px solid rgba(255,196,0,.35);
  border-radius: 12px;
  padding: 13px 15px;
  background: #11171b;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}

.cart-pro-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cart-pro-progress-bar,
.v56-progress-line {
  overflow: hidden;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08);
}

.cart-pro-progress-bar span,
.v56-progress-line span {
  display: block;
  height: 100%;
  background: var(--v56-accent) !important;
  background-image: none !important;
  transition: width .22s ease;
}

/* Panel importu i CMS */
.v56-admin-page {
  font-family: var(--font-main, "Inter", "Segoe UI", Roboto, Arial, sans-serif);
}

.v56-admin-head {
  gap: 18px;
}

.v56-card {
  padding: 22px;
  margin-bottom: 20px;
}

.v56-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.v56-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.v56-form label {
  display: grid;
  gap: 7px;
  color: #172116;
  font-size: .88rem;
  font-weight: 850;
}

.v56-form input,
.v56-form select,
.v56-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7e0cd;
  border-radius: 10px;
  background: #fff;
  padding: 0 12px;
  color: #172116;
  font: inherit;
}

.v56-form textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

.v56-form .is-wide,
.v56-form > .is-wide {
  grid-column: 1 / -1;
}

.v56-muted {
  color: #64705f;
}

.v56-data-list {
  display: grid;
  gap: 11px;
}

.v56-data-list article {
  display: grid;
  gap: 8px;
  border: 1px solid #e4eadf;
  border-radius: 12px;
  background: #f7f9f3;
  padding: 13px;
}

.v56-data-list strong,
.v56-data-list span {
  display: block;
}

.v56-data-list span {
  color: #64705f;
  word-break: break-word;
}

.v56-progress-head,
.v56-progress-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.v56-progress-head strong {
  color: #111;
  background: var(--v56-accent);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
}

.v56-progress-line {
  height: 14px;
  margin: 14px 0;
  background: #edf0e8;
}

.v56-progress-line span {
  height: 14px;
}

.v56-progress-meta {
  color: #64705f;
  margin-bottom: 14px;
}

.v56-editor {
  grid-column: 1 / -1;
  border: 1px solid #d7e0cd;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.v56-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #e4eadf;
  padding: 10px;
  background: #f7f9f3;
}

.v56-editor-toolbar button {
  min-height: 34px;
  border: 1px solid #d7e0cd;
  background: #fff;
  color: #172116;
  padding: 0 10px;
  font-weight: 800;
}

.v56-editor-area {
  min-height: 260px;
  padding: 16px;
  color: #172116;
  outline: none;
  line-height: 1.6;
}

.v56-editor-area h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

/* Front premium bez przesadnych gradientów */
.product-card,
.home-product-card,
.category-product-card,
.product-tile {
  background-image: none !important;
}

.product-card:hover,
.home-product-card:hover,
.category-product-card:hover,
.product-tile:hover {
  border-color: rgba(255,196,0,.32) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.18) !important;
}

@media (max-width: 1100px) {
  .v56-grid,
  .v56-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .v56-card {
    padding: 16px;
  }
  .cart-pro-toast {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }
}
