/* =====================================================================
   ODDK / Edito – nowoczesna warstwa sklepu
   Wszystkie reguły są ograniczone do .shop-ui, aby nie zmieniać wyglądu
   pozostałych modułów istniejącego serwisu.
   ===================================================================== */

.shop-ui {
  --shop-primary: #0d6efd;
  --shop-primary-dark: #0a58ca;
  --shop-primary-soft: #eaf3ff;
  --shop-success: #198754;
  --shop-success-soft: #eaf7ef;
  --shop-warning: #d97706;
  --shop-warning-soft: #fff5df;
  --shop-danger: #dc3545;
  --shop-danger-soft: #fff0f2;
  --shop-text: #1f2937;
  --shop-muted: #6b7280;
  --shop-border: #e5e7eb;
  --shop-border-strong: #d1d5db;
  --shop-surface: #ffffff;
  --shop-surface-soft: #f8fafc;
  --shop-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shop-shadow-hover: 0 16px 38px rgba(15, 23, 42, .13);
  --shop-radius: 14px;
  --shop-radius-sm: 9px;
  box-sizing: border-box;
  width: 100%;
  color: var(--shop-text);
  font-size: 15px;
  line-height: 1.55;
}

.shop-ui *,
.shop-ui *::before,
.shop-ui *::after { box-sizing: border-box; }

.shop-ui img { max-width: 100%; }
.shop-ui a { color: var(--shop-primary); text-decoration: none; }
.shop-ui a:hover { color: var(--shop-primary-dark); text-decoration: none; }

.shop-ui h2,
.shop-ui h3,
.shop-ui h4 { color: #111827; line-height: 1.25; }
.shop-ui h2 { margin: 0 0 8px; font-size: 28px; font-weight: 700; }
.shop-ui h3 { margin: 0; font-size: 18px; font-weight: 700; }
.shop-ui h4 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }

/* Breadcrumb */
.shop-ui .shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: var(--shop-surface-soft);
  color: var(--shop-muted);
  font-size: 13px;
}
.shop-ui .shop-breadcrumb a { font-weight: 600; }

/* Toolbar katalogu — kompaktowy i dyskretny */
.shop-ui .shop-toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  gap: 12px;
  margin: 0 0 14px;
  padding: 6px 8px;
  border: 1px solid #e1e6ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .035);
}
.shop-ui .shop-toolbar-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.shop-ui .shop-toolbar-group + .shop-toolbar-group {
  padding-left: 12px;
  border-left: 1px solid #e8ecf1;
}
.shop-ui .shop-toolbar-label {
  margin-right: 2px;
  color: #727b87;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.shop-ui .shop-toolbar .shop-btn-sm {
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 650;
}
.shop-ui .shop-toolbar .shop-btn-secondary {
  border-color: #d9e0e7;
  background: #f8fafc;
  color: #334155 !important;
}
.shop-ui .shop-toolbar .shop-btn-secondary:hover {
  border-color: #bfd0e3;
  background: #eef5ff;
  color: var(--shop-primary-dark) !important;
}

/* Przyciski */
.shop-ui .shop-btn,
.shop-ui button.shop-btn,
.shop-ui a.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--shop-primary);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.shop-ui .shop-btn:hover {
  background: var(--shop-primary-dark);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(13, 110, 253, .22);
  transform: translateY(-1px);
}
.shop-ui .shop-btn-secondary {
  border-color: var(--shop-border-strong);
  background: #fff;
  color: var(--shop-text) !important;
}
.shop-ui .shop-btn-secondary:hover {
  border-color: #b8c0cb;
  background: var(--shop-surface-soft);
  color: #111827 !important;
  box-shadow: none;
}
.shop-ui .shop-btn-light {
  border-color: var(--shop-primary-soft);
  background: var(--shop-primary-soft);
  color: var(--shop-primary-dark) !important;
}
.shop-ui .shop-btn-light:hover {
  border-color: #cfe2ff;
  background: #dcecff;
  color: var(--shop-primary-dark) !important;
  box-shadow: none;
}
.shop-ui .shop-btn-danger {
  border-color: #f4c7cd;
  background: #fff;
  color: var(--shop-danger) !important;
}
.shop-ui .shop-btn-danger:hover {
  border-color: var(--shop-danger);
  background: var(--shop-danger);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(220, 53, 69, .18);
}
.shop-ui .shop-btn-sm { min-height: 32px; padding: 6px 10px; font-size: 13px; }

/* Katalog – wspólne */
.shop-ui .shop-catalog,
.shop-ui .shop-catalog-grid,
.shop-ui .shop-product,
.shop-ui .shop-collection,
.shop-ui .shop-collections,
.shop-ui .shop-box {
  width: 100%;
  margin: 0;
}

.shop-ui .shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.shop-ui .shop-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-surface);
  box-shadow: 0 3px 12px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.shop-ui .shop-product-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shop-shadow-hover);
}
.shop-ui .shop-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 18px;
  background: #f8fafc;
  overflow: hidden;
}
.shop-ui .shop-card-media img {
  width: auto;
  max-width: 100%;
  max-height: 184px;
  object-fit: contain;
  transition: transform .25s ease;
}
.shop-ui .shop-product-card:hover .shop-card-media img { transform: scale(1.025); }
.shop-ui .shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 18px;
}
.shop-ui .shop-card-title { margin-bottom: 7px; }
.shop-ui .shop-card-title a { color: #111827; }
.shop-ui .shop-card-title a:hover { color: var(--shop-primary); }
.shop-ui .shop-card-code { margin-top: 4px; color: #8a94a3; font-size: 12px; }
.shop-ui .shop-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}
.shop-ui .shop-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }

.shop-ui .shop-product-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-surface);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
  transition: box-shadow .18s ease, transform .18s ease;
}
.shop-ui .shop-product-row:hover { box-shadow: var(--shop-shadow); transform: translateY(-1px); }
.shop-ui .shop-row-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
}
.shop-ui .shop-row-media img { max-height: 120px; object-fit: contain; }
.shop-ui .shop-row-content { min-width: 0; }
.shop-ui .shop-row-side { min-width: 165px; text-align: right; }
.shop-ui .shop-row-description { margin-top: 8px; color: #4b5563; }
.shop-ui .shop-row-description p:first-child { margin-top: 0; }
.shop-ui .shop-row-description p:last-child { margin-bottom: 0; }

/* Cena i statusy */
.shop-ui .shop-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #111827;
}
.shop-ui .shop-price strong,
.shop-ui .shop-price-main {
  color: #111827;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.shop-ui .shop-price small { color: var(--shop-muted); font-size: 11px; }
.shop-ui .shop-old-price { color: #9ca3af; font-size: 13px; }
.shop-ui .shop-old-price del { text-decoration-thickness: 1px; }
.shop-ui .shop-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.shop-ui .shop-badge-promo { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.shop-ui .shop-badge-new { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.shop-ui .shop-badge-best { border-color: #fde68a; background: #fffbeb; color: #a16207; }
.shop-ui .shop-muted { color: var(--shop-muted); }

/* Pager */
.shop-ui .pager {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--shop-border);
  text-align: center;
}
.shop-ui .pager a,
.shop-ui .pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 2px;
  padding: 5px 9px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: #fff;
}

/* Karta produktu */
.shop-ui .shop-product-detail {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.shop-ui .shop-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 20px;
}
.shop-ui .shop-product-title-wrap { min-width: 0; }
.shop-ui .shop-product-header h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.shop-ui .shop-product-lead {
  max-width: 760px;
  margin: 7px 0 0;
  color: #5f6b7a;
  font-size: 15px;
  line-height: 1.55;
}
.shop-ui .shop-product-header > .shop-badges {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 3px 0 0;
}
.shop-ui .shop-product-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(320px, .95fr);
  gap: 24px;
  align-items: stretch;
}
.shop-ui .shop-product-media,
.shop-ui .shop-product-panel {
  border: 1px solid var(--shop-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .055);
}
.shop-ui .shop-product-media {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.shop-ui .shop-main-photo {
  display: flex;
  min-height: 315px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 12px;
  background: #fff;
}
.shop-ui .shop-main-photo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}
.shop-ui .shop-product-panel {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.shop-ui .shop-product-meta {
  display: grid;
  margin: 0;
  padding: 0 0 15px;
  border-bottom: 1px solid var(--shop-border);
}
.shop-ui .shop-meta-row {
  display: grid;
  grid-template-columns: minmax(115px, 36%) 1fr;
  gap: 14px;
  padding: 8px 0;
  color: #465366;
  line-height: 1.4;
}
.shop-ui .shop-meta-row + .shop-meta-row { border-top: 1px dashed #edf0f4; }
.shop-ui .shop-meta-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}
.shop-ui .shop-meta-value {
  min-width: 0;
  color: #243044;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.shop-ui .shop-purchase-box {
  margin-top: 18px;
}
.shop-ui .shop-purchase-price {
  padding: 17px 18px;
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f7f9fc 100%);
}
.shop-ui .shop-price-label {
  display: block;
  margin-bottom: 5px;
  color: #677386;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.shop-ui .shop-price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
}
.shop-ui .shop-price-line strong {
  color: #0f172a;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.shop-ui .shop-price-line small {
  color: #8490a1;
  font-size: 11px;
}
.shop-ui .shop-promo-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 11px 0 0;
}
.shop-ui .shop-old-price { color: #8d98a8; font-size: 13px; }
.shop-ui .shop-old-price del { color: #8d98a8; }
.shop-ui .shop-availability {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  margin: 13px 0 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.shop-ui .shop-availability-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}
.shop-ui .shop-availability-available { background: #eef9f2; color: #17643f; }
.shop-ui .shop-availability-available .shop-availability-dot { background: #22a06b; }
.shop-ui .shop-availability-unavailable { background: #fff1f2; color: #9f2735; }
.shop-ui .shop-availability-unavailable .shop-availability-dot { background: #dc3545; }
.shop-ui .shop-availability-order { background: #fff7e8; color: #9a5b08; }
.shop-ui .shop-availability-order .shop-availability-dot { background: #e59b18; }
.shop-ui .shop-options-info {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  background: #fbfcfe;
}
.shop-ui .shop-options-info h4 { margin-bottom: 8px; font-size: 15px; }
.shop-ui .shop-option {
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--shop-border);
  border-radius: 8px;
  background: #fff;
}
.shop-ui .shop-option-value { display: inline-flex; margin: 6px 6px 0 0; }
.shop-ui .shop-options-select { display: grid; gap: 12px; margin: 16px 0 0; }
.shop-ui .shop-options-select label { display: grid; gap: 6px; color: #374151; font-weight: 700; }
.shop-ui select,
.shop-ui input[type="text"],
.shop-ui input[type="email"],
.shop-ui input[type="number"],
.shop-ui textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid var(--shop-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--shop-text);
  font: inherit;
  outline: none;
}
.shop-ui select:focus,
.shop-ui input:focus,
.shop-ui textarea:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .12);
}
.shop-ui .shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}
.shop-ui .shop-actions .shop-btn { margin: 0; }
.shop-ui .shop-btn-buy { min-width: 155px; }
.shop-ui .shop-description {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  background: #fff;
  color: #374151;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .035);
}
.shop-ui .shop-description::before { content: none; }
.shop-ui .shop-description h3 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}
.shop-ui .shop-description-content { color: #3f4b5e; }
.shop-ui .shop-description-content p:first-child { margin-top: 0; }
.shop-ui .shop-description-content p:last-child { margin-bottom: 0; }
.shop-ui .shop-gallery {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--shop-border);
  text-align: left;
}
.shop-ui .shop-gallery-title {
  margin-bottom: 9px;
  color: #657084;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.shop-ui .shop-gallery-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-ui .shop-gallery-thumb {
  display: inline-flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--shop-border);
  border-radius: 9px;
  background: #fff;
}
.shop-ui .shop-gallery-thumb:hover { border-color: #9ec5fe; box-shadow: 0 0 0 2px rgba(13, 110, 253, .07); }
.shop-ui .shop-gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-ui .shop-collection-detail {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--shop-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .035);
}
.shop-ui .shop-section-heading { margin-bottom: 13px; }
.shop-ui .shop-section-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #7b8797;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .055em;
}
.shop-ui .shop-collection-detail h3 { margin: 0; font-size: 18px; }
.shop-ui .shop-collection-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.shop-ui .shop-collection-thumb {
  display: flex;
  width: 110px;
  height: 90px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid var(--shop-border);
  border-radius: 9px;
  background: #f8fafc;
}
.shop-ui .shop-collection-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-ui .shop-collection-copy { min-width: 0; color: #4b5563; }
.shop-ui .shop-collection-copy .shop-btn { margin-top: 11px; }
.shop-ui .shop-secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf0f4;
  color: var(--shop-muted);
  font-size: 13px;
}
.shop-ui .shop-secondary-links a { margin: 0; font-weight: 650; }

/* Kolekcje */
.shop-ui .shop-collections { display: grid; gap: 15px; }
.shop-ui .shop-collection-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}
.shop-ui .shop-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  padding: 8px;
  border-radius: 10px;
  background: #f8fafc;
}
.shop-ui .shop-thumb img { max-height: 100px; object-fit: contain; }
.shop-ui .shop-collection-detail { padding: 20px; border: 1px solid var(--shop-border); border-radius: var(--shop-radius); background: #fff; }

/* Koszyk */
.shop-ui .shop-cart-shell { display: grid; gap: 18px; }
.shop-ui .shop-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
}
.shop-ui .shop-table {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-collapse: collapse;
  background: #fff;
}
.shop-ui .shop-table th,
.shop-ui .shop-table td {
  padding: 13px 12px;
  border: 0;
  border-bottom: 1px solid var(--shop-border);
  text-align: left;
  vertical-align: middle;
}
.shop-ui .shop-table th {
  background: #f8fafc;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
}
.shop-ui .shop-table tbody tr:last-child td { border-bottom: 0; }
.shop-ui .shop-table tbody tr:hover td { background: #fcfdff; }
.shop-ui .shop-cart-product { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #111827; }
.shop-ui .shop-cart-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 4px;
  border-radius: 9px;
  background: #f8fafc;
}
.shop-ui .shop-cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.shop-ui .shop-qty { width: 74px !important; text-align: center; }
.shop-ui .shop-summary {
  margin-left: auto;
  width: min(100%, 390px);
  padding: 18px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .05);
}
.shop-ui .shop-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--shop-border);
  background: transparent;
}
.shop-ui .shop-total:last-child { border-bottom: 0; }
.shop-ui .shop-total strong { color: #111827; font-size: 18px; }
.shop-ui fieldset {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: #fff;
}
.shop-ui legend { padding: 0 7px; color: #374151; font-weight: 800; }
.shop-ui fieldset label { display: inline-flex; align-items: center; gap: 8px; margin: 5px 14px 5px 0; }
.shop-ui .shop-address {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-sm);
  background: var(--shop-surface-soft);
}
.shop-ui .shop-checkout-info { display: grid; gap: 10px; margin: 16px 0; }
.shop-ui .shop-success-box {
  padding: 22px;
  border: 1px solid #b7dfc6;
  border-radius: var(--shop-radius);
  background: var(--shop-success-soft);
  color: #176b45;
  font-size: 17px;
  font-weight: 700;
}
.shop-ui .shop-empty-cart {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 34px 24px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
  box-shadow: 0 3px 14px rgba(15, 23, 42, .04);
  text-align: center;
}
.shop-ui .shop-empty-cart-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: #eef5ff;
  font-size: 25px;
}
.shop-ui .shop-empty-cart h3 { margin: 2px 0 0; color: #111827; font-size: 20px; }
.shop-ui .shop-empty-cart p { margin: 0 0 6px; color: #687386; }

/* Porównywarka */
.shop-ui .shop-compare-wrap { overflow-x: auto; border: 1px solid var(--shop-border); border-radius: var(--shop-radius); background: #fff; }
.shop-ui .shop-table.compare { min-width: 760px; }
.shop-ui .shop-table.compare th:first-child { position: sticky; left: 0; z-index: 2; width: 155px; background: #f8fafc; }
.shop-ui .shop-table.compare td { min-width: 180px; text-align: center; }
.shop-ui .shop-compare-select {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: #fff;
}
.shop-ui .shop-compare-select fieldset { margin-top: 0; }

/* Blok koszyka */
.shop-cart-block {
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
}
.shop-cart-block .shop-cart-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.shop-cart-block .shop-cart-count { display: inline-flex; min-width: 27px; height: 27px; align-items: center; justify-content: center; border-radius: 999px; background: #eaf3ff; color: #0a58ca; font-size: 12px; font-weight: 800; }
.shop-cart-block ul { margin: 8px 0 10px; padding: 0; list-style: none; }
.shop-cart-block li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf0f3; }
.shop-cart-block li:last-child { border-bottom: 0; }
.shop-cart-block .shop-cart-block-total { display: flex; justify-content: space-between; margin: 9px 0; padding-top: 8px; border-top: 1px solid #e5e7eb; font-weight: 800; }
.shop-cart-block .shop-cart-block-link { display: block; padding: 8px 10px; border-radius: 8px; background: #0d6efd; color: #fff !important; text-align: center; font-weight: 700; text-decoration: none !important; }
.shop-cart-block .shop-cart-block-link:hover { background: #0a58ca; }

/* Drobne zabezpieczenia legacy */
.shop-ui hr { border: 0; border-top: 1px solid var(--shop-border); }
.shop-ui del { color: #9ca3af; }
.shop-ui .shop-spacer { display: none; }

@media (max-width: 1050px) {
  .shop-ui .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-ui .shop-product-row { grid-template-columns: 140px minmax(0, 1fr); }
  .shop-ui .shop-row-side { grid-column: 2; min-width: 0; text-align: left; }
}

@media (max-width: 760px) {
  .shop-ui { font-size: 14px; }
  .shop-ui h2 { font-size: 24px; }
  .shop-ui .shop-toolbar { align-items: stretch; }
  .shop-ui .shop-toolbar-group { width: 100%; }
  .shop-ui .shop-toolbar .shop-btn { flex: 1 1 auto; }
  .shop-ui .shop-grid { grid-template-columns: 1fr; }
  .shop-ui .shop-product-grid { grid-template-columns: 1fr; }
  .shop-ui .shop-product-row { grid-template-columns: 110px minmax(0, 1fr); gap: 13px; padding: 12px; }
  .shop-ui .shop-row-side { grid-column: 1 / -1; }
  .shop-ui .shop-row-media { min-height: 95px; }
  .shop-ui .shop-row-media img { max-height: 90px; }
  .shop-ui .shop-collection-row { grid-template-columns: 105px minmax(0, 1fr); }
  .shop-ui .shop-collection-row .shop-btn { grid-column: 1 / -1; }
  .shop-ui .shop-product-panel,
  .shop-ui .shop-product-media,
  .shop-ui .shop-description,
  .shop-ui .shop-collection-description { padding: 16px; }
  .shop-ui .shop-meta-row { display: block; }
  .shop-ui .shop-meta-row strong { display: block; margin-bottom: 2px; }
  .shop-ui .shop-actions .shop-btn { width: 100%; }
  .shop-ui .shop-summary { width: 100%; }
}

@media (max-width: 480px) {
  .shop-ui .shop-product-row { grid-template-columns: 1fr; }
  .shop-ui .shop-row-media { min-height: 160px; }
  .shop-ui .shop-row-media img { max-height: 150px; }
  .shop-ui .shop-collection-row { grid-template-columns: 1fr; }
  .shop-ui .shop-thumb { min-height: 150px; }
  .shop-ui .shop-toolbar-group { display: grid; grid-template-columns: 1fr 1fr; }
  .shop-ui .shop-toolbar-label { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .shop-ui .shop-toolbar {
    display: flex;
    width: 100%;
    gap: 7px;
  }
  .shop-ui .shop-toolbar-group + .shop-toolbar-group {
    padding-left: 0;
    border-left: 0;
  }
}

/* Dopracowanie karty produktu */
.shop-ui .shop-no-photo {
  display: flex;
  min-height: 315px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d8dee8;
  border-radius: 12px;
  background: #fafbfc;
  color: #8a95a5;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .shop-ui .shop-product-header { display: block; }
  .shop-ui .shop-product-header > .shop-badges { justify-content: flex-start; margin-top: 10px; }
  .shop-ui .shop-product-media { min-height: 0; }
  .shop-ui .shop-main-photo,
  .shop-ui .shop-no-photo { min-height: 240px; }
  .shop-ui .shop-meta-row { display: block; padding: 8px 0; }
  .shop-ui .shop-meta-label { display: block; margin-bottom: 3px; }
  .shop-ui .shop-collection-body { grid-template-columns: 1fr; }
  .shop-ui .shop-collection-thumb { width: 100%; height: 150px; }
}

.shop-ui .shop-success-box{padding:28px;border:1px solid #dbe5ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.06);text-align:center}
.shop-ui .shop-success-box h3{margin:0 0 10px;font-size:24px;color:#0f172a}
.shop-ui .shop-success-box p{margin:8px 0 16px;color:#475569;line-height:1.6}
.shop-ui .shop-order-number{display:inline-block;margin:8px 0 16px;padding:9px 14px;border-radius:10px;background:#eff6ff;color:#0f4fbf;font-weight:700}
