/* =========================================
   RESET / BAZA + THEME SYSTEM
========================================= */

:root {
  /* BACKGROUNDS */
  --color-bg: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-surface-muted: #eef2f7;

  /* TEXT */
  --color-text: #222222;
  --color-heading: #2d2b2b;
  --color-muted: #64748b;
  --color-muted-2: #6b7280;

  /* BORDERS */
  --color-border: #e5e7eb;
  --color-border-strong: #f3b341;

  /* PRIMARY */
  --color-primary: #413d3d;
  --color-primary-hover: #f3b341;
  --color-primary-active: #262222;
  --color-primary-contrast: #ffffff;

  /* ACCENTS */
  --color-accent: #f3b340;
  --color-accent-soft: #fff1d1;
  --color-accent-blue: #dbeafe;

  /* SHADOWS */
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.20);

  /* RADIUS */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* UX */
  --focus-ring: 0 0 0 3px rgba(243, 179, 64, 0.30);
  --transition-fast: 0.15s ease;
  --transition-press: 0.08s ease;
}


/* =========================================
   DARK MODE
========================================= */

[data-theme="dark"] {
  /* BACKGROUNDS */
  --color-bg: #0f172a;
  --color-surface: #172033;
  --color-surface-soft: #1f2937;
  --color-surface-muted: #273449;

  /* TEXT */
  --color-text: #f3f4f6;
  --color-heading: #ffffff;
  --color-muted: #cbd5e1;
  --color-muted-2: #94a3b8;

  /* BORDERS */
  --color-border: #334155;
  --color-border-strong: #f3b341;

  /* PRIMARY */
  --color-primary: #f3b341;
  --color-primary-hover: #ffc75d;
  --color-primary-active: #d89a1c;
  --color-primary-contrast: #111827;

  /* ACCENTS */
  --color-accent: #f3b341;
  --color-accent-soft: rgba(243, 179, 64, 0.15);
  --color-accent-blue: rgba(59, 130, 246, 0.15);

  /* SHADOWS */
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.50);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.60);

  /* UX */
  --focus-ring: 0 0 0 3px rgba(243, 179, 64, 0.35);
}


/* =========================================
   GLOBAL RESET
========================================= */

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

html,
body {
  margin: 0;
  padding: 0;
}


/* =========================================
   BODY
========================================= */

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}


/* =========================================
   TYPOGRAPHY
========================================= */

body.font-inter {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body.font-lato {
  font-family: "Lato", system-ui, sans-serif;
}

body.font-roboto {
  font-family: "Roboto", system-ui, sans-serif;
}

body.font-poppins {
  font-family: "Poppins", system-ui, sans-serif;
}

body.font-playfair {
  font-family: "Playfair Display", "Times New Roman", serif;
}


/* =========================================
   IMAGES
========================================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* =========================================
   TYPOGRAFIA / OGÓLNE ELEMENTY
========================================= */

h1, h2, h3, h4 {
  color: var(--color-heading);
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

p {
  margin: 0 0 0.75rem 0;
}

a {
  color: var(--color-heading);
}

a:hover {
  color: var(--color-heading);
}

/* =========================================
   LAYOUT
========================================= */

.page-main {
  min-height: calc(100vh - 140px);
  padding: 2rem 1rem 3rem;
}

.page-container,
.page-section {
  max-width: 1200px;
  margin: 0 auto;
}

.page-section {
  padding: 2rem 1rem;
}

/* =========================================
   WSPÓLNY SYSTEM KLIKALNOŚCI / FOCUS
========================================= */

.btn,
.home-ai__button,
.packing-btn,
.cookie-btn,
.btnx,
.qty-btn,
.product-slider__nav,
.home-promoted-slider__nav,
.ai-question-chip,
.product-option-pill,
.pay-card,
.operations-tile-action,
.nav-link,
.cart-widget,
.product-category__title a,
.btn-small {
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-press),
    opacity var(--transition-fast);
}

.btn:hover,
.home-ai__button:hover,
.packing-btn:hover,
.cookie-btn:hover,
.btnx:hover,
.qty-btn:hover,
.ai-question-chip:hover,
.product-option-pill:hover,
.pay-option:hover .pay-card,
.operations-tile-action:hover,
.cart-widget:hover,
.product-category__title a:hover,
.btn-small:hover {
  transform: translateY(-1px);
}

.btn:active,
.home-ai__button:active,
.packing-btn:active,
.cookie-btn:active,
.btnx:active,
.qty-btn:active,
.ai-question-chip:active,
.product-option-pill:active,
.operations-tile-action:active,
.cart-widget:active,
.product-category__title a:active,
.btn-small:active {
  transform: translateY(0);
}

.btn:focus-visible,
.home-ai__button:focus-visible,
.packing-btn:focus-visible,
.cookie-btn:focus-visible,
.btnx:focus-visible,
.qty-btn:focus-visible,
.product-slider__nav:focus-visible,
.home-promoted-slider__nav:focus-visible,
.ai-question-chip:focus-visible,
.product-option-pill:focus-visible,
.pay-option input:focus-visible + .pay-card,
.packing-select:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="number"]:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.cart-widget:focus-visible,
.product-category__title a:focus-visible,
.btn-small:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn:disabled,
.home-ai__button:disabled,
.packing-btn:disabled,
.cookie-btn:disabled,
.btnx:disabled,
.qty-btn:disabled,
.product-slider__nav:disabled,
.home-promoted-slider__nav:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================
   HEADER / NAV / KOSZYK
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  padding-top: 12px;
  padding-bottom: 12px;
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.75rem 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  flex: 0 0 auto;
  min-width: 0;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
}

.brand-main {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-heading);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.brand-link--logos {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-logos span {
  display: inline !important;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
}

.brand-logo--unisens {
  height: 32px;
}

.brand-separator,
.brand-by {
  opacity: .7;
  font-size: 13px;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  flex: 1 1 auto;
  min-width: 0;
}

.main-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.header-search {
  flex: 0 1 280px;
  min-width: 220px;
}
.nav-item {
  position: relative;
}

.nav-item > a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 4px;
  display: inline-flex;
  align-items: center;
}

.nav-item--has-children:hover > a {
  color: var(--color-accent);
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: #475569;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
}

.nav-link:hover {
  background: #e2e8f0;
  color: var(--color-heading);
}

/* Dropdown */
.nav-dropdown li a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-heading);
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background: var(--color-surface-muted);
  color: var(--color-accent);
}

.nav-dropdown--root {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  margin-top: 8px;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 20;
}

.main-nav__list > .nav-item--has-children:hover > .nav-dropdown--root {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__item.nav-dropdown__item--has-children {
  position: relative;
}

.nav-dropdown--sub {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 8px;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 260px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 25;
}

.nav-dropdown__item.nav-dropdown__item--has-children:hover > .nav-dropdown--sub {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.cart-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.cart-widget:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 14px 25px rgb(245, 193, 100);
}

.cart-icon {
  font-size: 1.1rem;
}

.cart-label {
  display: none;
}

.cart-count-badge,
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  font-weight: 700;
}

.cart-count-badge {
  min-width: 1.4rem;
  height: 1.4rem;
  color: var(--color-heading);
  font-size: 0.75rem;
}

.cart-badge {
  margin-left: 6px;
  padding: 0 8px;
  height: 20px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .cart-label {
    display: inline;
  }
}

/* =========================================
   PRZYCISKI
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-sm {
  min-height: 34px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.primary-btn {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.primary-btn:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  box-shadow: 0 14px 30px rgb(241, 178, 65);
}

.primary-btn:active {
  background: var(--color-primary-active);
  border-color: var(--color-primary-active);
}

.secondary-btn {
  background: var(--color-surface);
  color: var(--color-heading);
  border: 1px solid #d1d5db;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.secondary-btn:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-border-strong);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10);
}

.secondary-btn:active {
  background: #f1f5f9;
}

.btnx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,.15);
}

.btnx-primary {
  background: #413d3d;
  color: #fff;
  border-color: #413d3d;
  box-shadow: 0 10px 22px rgba(2,6,23,.18);
}

.btnx-secondary {
  background: #fff;
  color: var(--color-heading);
}

.btn-small {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  text-decoration: none;
  color: #413d3d;
  background: #fff;
}

/* =========================================
   FORMULARZE
========================================= */

form {
  max-width: 640px;
}

form p {
  margin-bottom: 0.9rem;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border-strong);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--color-surface);
}

textarea {
  resize: vertical;
}

.checkout-grid {
  display: grid;
  gap: 14px;
}

.checkout-form .field {
  margin: 14px 0;
}

.checkout-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d8dde6;
  border-radius: 10px;
  font-size: 16px;
}

.checkout-form .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-form .checkbox label {
  margin: 0;
  font-weight: 500;
}

@media (min-width: 900px) {
  .checkout-form {
    max-width: 720px;
  }
}

/* =========================================
   GRID PRODUKTÓW
========================================= */

.product-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  transform: translateY(-2px);
}

.home-promoted-slide .product-card,
.product-card--slider {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card a {
  text-decoration: none;
  color: inherit;
}

.product-card img {
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.product-card .short-desc {
  font-size: 0.9rem;
  color: var(--color-muted-2);
  margin-bottom: 0.5rem;
}

.product-card .price {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.product-card .stock-label {
  font-size: 0.8rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.product-card .btn {
  margin-top: 0;
}

.product-card__image {
  position: relative;
  border-radius: 18px;
  background: #f3f4f6;
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__image-inner {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-card__meta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.product-card__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__actions .primary-btn {
  background: rgb(65, 61, 61);
  color: #e5e7eb;
  box-shadow: 0 5px 25px rgb(245, 193, 100);
}

.product-card__actions .primary-btn:hover {
  background: #f1b54a;
  box-shadow: 0 16px 36px rgb(239, 180, 74);
}

.product-card__actions .primary-btn:active {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.30);
}

/* =========================================
   STRONA PRODUKTU
========================================= */

.page-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.product-detail {
  display: block;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.product-detail__image {
  float: left;
  width: 600px;
  max-width: 100%;
  margin: 0 56px 32px 0;

  background: var(--color-surface);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.product-detail__info {
  display: block;
  min-width: 0;
  max-width: none;
}

.product-detail__body {
  margin-top: 1.5rem;
  max-width: none;
}

.product-detail::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 900px) {
  .product-detail__image {
    float: none;
    width: 100%;
    margin: 0 0 32px;
  }
}

/* =========================================
   HERO PRODUKTU
========================================= */

.product-hero {
  background: radial-gradient(circle at top left, #6d6663 0, rgba(0, 0, 0, 0.71) 40%, #f3b64a 100%);
  color: #e5e7eb;
  padding: 2.5rem 1rem 2rem;
  border-radius: 1rem;
}

.product-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .product-hero-inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.product-hero-text {
  max-width: 640px;
}

.product-crumb {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.4rem;
}

.product-hero-title {
  font-size: 2.1rem;
  margin: 0 0 0.5rem 0;
  color: #cbd5f5;
}

.product-hero-subtitle {
  margin: 0 0 1rem 0;
  color: #cbd5f5;
  font-size: 0.98rem;
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  border: 1px solid transparent;
}

.chip-primary,
.chip-outline,
.chip-muted {
  background: rgb(255, 255, 255);
  color: rgba(0, 0, 0, 0.71);
}

.chip-primary {
  border-color: var(--color-accent);
}

.chip-outline {
  border-color: #f1b240;
}

.chip-muted {
  border-color: rgb(241, 178, 64);
}

.product-hero-image {
  justify-self: center;
}

.product-hero-image img {
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
}

/* =========================================
   KAFLE / SEKCJE PRODUKTU
========================================= */

.product-main-image img {
  border-radius: 1rem;
  max-width: 100%;
  height: auto;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.product-gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  cursor: default;
}

.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-sections {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .product-sections {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    grid-auto-flow: dense;
  }

  .product-sections > .product-section-card:nth-child(1) {
    grid-column: 1 / -1;
  }
}

.product-section-card {
  background: var(--color-surface);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.product-section-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.product-section-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.product-section-grid-2 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .product-section-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.downloads-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.downloads-list li + li {
  margin-top: 0.4rem;
}

.downloads-list a {
  text-decoration: none;
  font-size: 0.95rem;
}

.downloads-list a::before {
  content: "⬇ ";
  opacity: 0.8;
}

.product-side-card {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  font-size: 14.5px;
}

.product-side-card__title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.product-side-card__body ul {
  padding-left: 20px;
}

.product-side-card__downloads {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.product-side-card__downloads h4 {
  font-size: 14px;
  margin-bottom: 6px;
}

.product-side-card__downloads ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-side-card__downloads li + li {
  margin-top: 5px;
}

.product-side-card__downloads a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.product-side-card__downloads a:hover {
  text-decoration: underline;
}

/* =========================================
   PRODUCT OPTIONS
========================================= */

.product-options-card {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
}

.product-options-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.product-options-card__hint {
  font-size: 0.85rem;
  color: var(--color-muted-2);
  margin: 0 0 0.75rem;
}

.product-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-option-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  font-size: 0.9rem;
}

.product-option-pill input[type="radio"] {
  display: none;
}

.product-option-pill__name {
  font-weight: 600;
  color: #0f172a;
}

.product-option-pill__extra {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
}

.product-option-pill__desc {
  font-size: 0.8rem;
  color: var(--color-muted-2);
}

.product-option-pill:has(input[type="radio"]:checked) {
  border-color: transparent;
  background: transparent;
  box-shadow: 0 0 0 1px #f3b340;
}

/* =========================================
   Tytuły kategorii na stronie produktów
========================================= */

.product-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.product-category__title {
  margin: 0;
}

.product-category__title a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.product-category__title a:hover {
  background: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.product-category__title a:active {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* =========================================
   PRODUCT SLIDER
========================================= */

.product-slider {
  position: relative;
  background: var(--color-surface-muted);
  border-radius: 24px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.product-slider__viewport {
  overflow: hidden;
  border-radius: 16px;
}

.product-slider__track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.product-slide {
  flex: 0 0 100%;
  min-width: 100%;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.product-slide img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.product-slider__nav,
.home-promoted-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--color-primary);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  z-index: 10;
}

.product-slider__nav:hover,
.home-promoted-slider__nav:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
  transform: translateY(-50%) scale(1.04);
}

.product-slider__nav:active,
.home-promoted-slider__nav:active {
  transform: translateY(-50%) scale(1);
}

.product-slider__nav--prev,
.home-promoted-slider__nav--prev {
  left: 12px;
}

.product-slider__nav--next,
.home-promoted-slider__nav--next {
  right: 12px;
}

.product-slider__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-thumb {
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.product-thumb img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.product-thumb:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.product-thumb.is-active {
  border-color: var(--color-accent);
}

/* =========================================
   HOME – PROMOTED GRID SLIDER
========================================= */

.home-section__header {
  margin-bottom: 12px;
}

.home-section__title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.home-section__empty {
  font-size: 0.95rem;
  color: var(--color-muted-2);
}

.home-promoted-slider {
  position: relative;
  margin-top: 16px;
  background: var(--color-surface);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  padding: 24px;
  overflow: hidden;
}

.home-promoted-slider__track {
  display: flex;
  transition: transform 0.35s ease;
}

.home-promoted-slide {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 12px;
  box-sizing: border-box;
}

.home-promoted-slide__image {
  border-radius: 18px 18px 0 0;
  overflow: hidden;
}

.home-promoted-slide__image img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.home-promoted-slide__info {
  background: var(--color-surface);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-promoted-slide__title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.home-promoted-slide__tagline {
  font-size: 0.9rem;
  color: var(--color-muted-2);
  margin: 0 0 6px;
}

.home-promoted-slide__price {
  font-weight: 700;
  color: var(--color-accent);
  margin: 4px 0 8px;
}

.home-promoted-slide__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-promoted-slide__meta {
  margin-top: auto;
  padding-top: 10px;
}

.home-promoted-slider--no-arrows .home-promoted-slider__nav {
  display: none;
}

@media (max-width: 1024px) {
  .home-promoted-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 640px) {
  .home-promoted-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* =========================================
   ARTICLE GRID / HOME ARTICLES / ARTICLE PAGE
========================================= */

.article-grid,
.article-related-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--color-surface);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.article-card__image {
  max-height: 220px;
  overflow: hidden;
}

.article-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-card__body {
  padding: 10px 14px 14px;
}

.article-card__title {
  font-size: 1rem;
  margin: 0 0 4px;
}

.article-card__intro,
.article-card__excerpt {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 8px;
}

.article-card__meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.article-card__actions .btn {
  font-size: 0.85rem;
}

/* HOME – karty artykułów */
.home-article-card__image {
  max-height: 260px;
  overflow: hidden;
}

.home-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.home-article-card {
  background: var(--color-surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
}

.home-article-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.home-article-card__body {
  padding: 14px 18px 18px;
}

.home-article-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-article-card__meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 6px;
}

.home-article-card__intro {
  font-size: 0.9rem;
  color: var(--color-muted-2);
  margin-bottom: 10px;
}

.home-article-card__cta {
  margin-top: auto;
}

/* ARTICLE PAGE */
.article-detail__header {
  margin-bottom: 18px;
}

.article-detail__crumb a {
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--color-muted-2);
}

.article-detail__crumb a:hover {
  color: var(--color-accent);
}

.article-detail__title {
  font-size: 1.8rem;
  margin: 4px 0 4px;
  color: var(--color-heading);
}

.article-detail__meta {
  font-size: 0.85rem;
  color: var(--color-muted-2);
}

.article-detail__image {
  margin: 16px 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.article-detail__image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-detail__body-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 14px 32px rgba(15,23,42,0.08);
}

.article-detail__intro {
  font-weight: 500;
  margin-bottom: 12px;
}

.article-detail__body {
  font-size: 0.95rem;
}

.article-related {
  margin-top: 32px;
}

.article-related h2 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.article-related--products .product-card--slider {
  padding: 0;
}

/* =========================================
   HOME AI
========================================= */

.home-ai {
  margin: 2rem 0 2.5rem;
}

.home-ai__card {
  padding: 1.75rem 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #eefcf9, #e0f2fe);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.home-ai__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.home-ai__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e9f7f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-ai__logo-img {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
}

.home-ai__logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #ecfeff;
  color: #f2b240;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
}

.home-ai__brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-ai__brand-name span {
  color: #f1b140;
}

.home-ai__brand-caption {
  font-size: 0.85rem;
  color: var(--color-muted-2);
}

.home-ai__content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 0.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--color-surface);
}

.home-ai__intro {
  flex: 1 1 260px;
  max-width: 360px;
}

.home-ai__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.home-ai__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

.home-ai__form {
  flex: 2 1 320px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-ai__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.home-ai__textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
  background: var(--color-surface-muted);
}

.home-ai__textarea:focus {
  border-color: #f8dfaf;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.15);
  background: var(--color-surface);
}

.home-ai__button {
  align-self: flex-start;
  border-radius: 9999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  border: 1px solid var(--color-primary);
  box-shadow: 0 5px 25px rgb(245, 193, 100);
}

.home-ai__button:hover {
  background: var(--color-primary-hover);
}

.home-ai__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.home-ai__reset-btn {
  background: #fff;
  color: #334155;
  border: 1px solid var(--color-border-strong);
}

.home-ai__result {
  margin-top: 0.75rem;
  background: none;
  padding: 0;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #111827;
}

.home-ai__result-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.home-ai__result-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.home-ai__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #efb040;
  background: #dbeafe;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
}

.home-ai__result-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #334155;
  margin: 0.1rem 0 0.75rem;
}

.home-ai__result-title {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.home-ai__result-link {
  color: #f3b84e;
  text-decoration: none;
}

.home-ai__result-link:hover {
  text-decoration: underline;
}

.home-ai__product-section {
  margin-top: 14px;
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-border);
}

.home-ai__product-title {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.home-ai__product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-ai__product-item + .home-ai__product-item {
  margin-top: 8px;
}

.home-ai__product-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
}

.home-ai__product-link:hover {
  border-color: #94a3b8;
  background: var(--color-surface-soft);
}

.home-ai__product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-heading);
}

.home-ai__product-arrow {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.ai-questions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-questions__title {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.ai-question-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-question-chip {
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}

.ai-question-chip:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-border-strong);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

@media (max-width: 768px) {
  .home-ai__card {
    padding: 1.25rem 1.4rem;
  }

  .home-ai__content {
    padding: 1rem 1.1rem;
  }
}

/* =========================================
   QTY PICKER
========================================= */

.add-to-cart-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qty-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-pill);
  background: #fff;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  color: #1f2937;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.qty-btn:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-border-strong);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.qty-input {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-pill);
  text-align: center;
  outline: none;
  background: #fff;
  font-weight: 600;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input[type="number"] {
  -moz-appearance: textfield;
}

.qty-picker--md {
  gap: 6px;
  padding: 4px 6px;
}

.qty-picker--md .qty-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
  line-height: 1;
}

.qty-picker--md .qty-input {
  width: 64px;
  height: 30px;
  font-size: 14px;
}

.qty-picker--sm {
  gap: 6px;
  padding: 3px 6px;
}

.qty-picker--sm .qty-btn {
  width: 28px;
  height: 28px;
  font-size: 15px;
  line-height: 1;
}

.qty-picker--sm .qty-input {
  width: 56px;
  height: 28px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.cart-qty-form {
  display: flex;
  justify-content: center;
}

/* =========================================
   KOSZYK / TABELA
========================================= */

.cart-table {
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  margin-bottom: 1rem;
}

.cart-table col.col-product { width: auto; }
.cart-table col.col-qty { width: 220px; }
.cart-table col.col-unit { width: 190px; }
.cart-table col.col-sum { width: 190px; }
.cart-table col.col-actions { width: 120px; }

.cart-table thead {
  background: var(--color-primary);
  color: #e5e7eb;
}

.cart-table th,
.cart-table td {
  padding: 16px 14px;
  vertical-align: middle;
  font-size: 0.92rem;
}

.cart-table thead th.col-product { text-align: left; }
.cart-table thead th.col-qty { text-align: center; }
.cart-table thead th.col-unit { text-align: right; }
.cart-table thead th.col-sum { text-align: right; }
.cart-table thead th.col-actions { text-align: right; }

.cart-td--qty { text-align: center; }
.cart-td--unit,
.cart-td--sum,
.cart-td--actions { text-align: right; }

.cart-td--unit,
.cart-td--sum {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cart-table tbody tr:nth-child(even) {
  background: var(--color-surface-soft);
}

.cart-td--actions form {
  display: flex;
  justify-content: flex-end;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.cart-total {
  font-weight: 800;
}

.cart-item-product,
.cart-item-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cart-item-link {
  text-decoration: none;
  color: inherit;
}

.cart-item-thumb img {
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-option,
.cart-item-sku,
.cart-item-tag {
  font-size: 0.8rem;
  color: var(--color-muted-2);
}

.cart-item-option__extra {
  color: var(--color-accent);
  font-weight: 600;
  margin-left: 4px;
}

.cart-item-stock {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  opacity: .9;
}

.cart-item-stock__warn {
  color: #b42318;
  font-weight: 600;
  margin-left: 8px;
}

.cart-item-stock-actions {
  display: block;
  margin-top: 8px;
}

.quote-info-box {
  padding: 12px 16px;
  background: #fff3cd;
  border: 1px solid #ffe69c;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

/* =========================================
   CHECKOUT / PAYMENT / SUCCESS
========================================= */

.payment-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.pay-option {
  display: block;
  cursor: pointer;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
}

.pay-option:hover .pay-card {
  border-color: #cfcfcf;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.pay-option input:checked + .pay-card {
  border-color: #f1b54a;
  box-shadow: 0 8px 22px rgba(0,0,0,.10);
}

.pay-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.pay-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #666;
}

.pay-logo {
  height: 34px;
  width: auto;
}

.success-page {
  padding: 48px 16px;
  display: flex;
  justify-content: center;
}

.success-card {
  width: min(980px, 100%);
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15,23,42,.10);
  overflow: hidden;
}

.success-top {
  padding: 26px 26px 18px 26px;
  background: linear-gradient(180deg, rgba(2,132,199,.07), rgba(2,132,199,0));
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.success-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.success-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e8f7ee;
  border: 1px solid #bfe7cc;
  color: #1f7a3a;
  font-weight: 900;
  font-size: 26px;
  flex: 0 0 auto;
}

.success-title {
  margin: 0 0 6px 0;
  font-size: 32px;
  line-height: 1.15;
  color: var(--color-heading);
}

.success-sub {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.success-sub strong {
  color: var(--color-heading);
}

.success-body {
  padding: 22px 26px 26px 26px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.box {
  border: 1px solid rgba(15,23,42,.10);
  background: #fbfdff;
  border-radius: 14px;
  padding: 14px;
}

.box-title {
  font-weight: 800;
  color: var(--color-heading);
  margin-bottom: 10px;
  letter-spacing: .2px;
}

.kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 14px;
  align-items: baseline;
}

.k {
  color: var(--color-muted);
  font-size: 14px;
}

.v {
  color: var(--color-heading);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.addr {
  color: var(--color-heading);
  font-size: 14px;
  line-height: 1.55;
}

.divider {
  height: 1px;
  background: rgba(15,23,42,.10);
  margin: 18px 0;
}

.items {
  display: grid;
  gap: 10px;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}

.item-title {
  font-weight: 800;
  color: var(--color-heading);
  margin: 0 0 2px 0;
}

.item-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.item-price {
  font-weight: 900;
  color: var(--color-heading);
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.foot {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .v {
    text-align: left;
  }

  .success-title {
    font-size: 28px;
  }
}

/* =========================================
   BADGES
========================================= */

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.badge-ready { background: #d6f1ff; color: #0057b8; }
.badge-packing { background: #fff3c2; color: #8a6d3b; }
.badge-shipped { background: #d6fdf8; color: #067a63; }
.badge-problem { background: #ffd6d6; color: #a00; }

.badge-paid { background: #ecfdf5; color: #065f46; border-color: rgba(6,95,70,.2); }
.badge-pending { background: #fffbeb; color: #92400e; border-color: rgba(146,64,14,.2); }
.badge-unpaid { background: #f1f5f9; color: #0f172a; border-color: rgba(15,23,42,.12); }
.badge-failed { background: #fef2f2; color: #991b1b; border-color: rgba(153,27,27,.2); }

/* =========================================
   PACKING / ORDER VIEW
========================================= */

.packing-order {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 16px;
}

.packing-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.packing-back {
  display: inline-block;
  margin-bottom: 8px;
  text-decoration: none;
}

.packing-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.packing-status {
  margin-top: 6px;
  opacity: .9;
}

.packing-status-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  border: 1px solid #ddd;
  border-radius: var(--radius-pill);
  font-size: 14px;
  background: #fff;
}

.packing-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.packing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #222;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: #ffffff;
  color: #111;
  white-space: nowrap;
}

.packing-btn:hover {
  filter: brightness(0.95);
}

.packing-btn:active {
  transform: translateY(1px);
}

.packing-btn-primary {
  background: #ffffff;
  color: rgba(0, 0, 0, 0.71);
  border-color: #111;
}

.packing-btn-secondary {
  background: #fff;
  color: #111;
  border-color: #333;
}

.packing-btn-ghost {
  background: transparent;
  color: #111;
  border-color: #aaa;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.packing-btn-ghost:hover {
  background: var(--color-surface-soft);
  border-color: var(--color-border-strong);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.packing-status-form {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.packing-label {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  opacity: .9;
}

.packing-select {
  height: 42px;
  min-width: 190px;
  padding: 0 44px 0 14px;
  border-radius: 12px;
  border: 1px solid #222;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111 50%),
    linear-gradient(135deg, #111 50%, transparent 50%),
    linear-gradient(to right, rgba(15,23,42,.12), rgba(15,23,42,.12));
  background-position:
    calc(100% - 18px) 17px,
    calc(100% - 13px) 17px,
    calc(100% - 42px) 50%;
  background-size:
    5px 5px,
    5px 5px,
    1px 60%;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .05s;
}

.packing-select:hover {
  border-color: #000;
}

.packing-select:focus {
  outline: none;
  border-color: rgba(2, 6, 23, .45);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .12);
}

.packing-select:active {
  transform: translateY(1px);
}

.packing-select option {
  font-weight: 600;
  padding: 10px;
}

.packing-messages {
  margin: 14px 0 0;
  display: grid;
  gap: 8px;
}

.packing-message {
  padding: 10px 12px;
  border: 1px solid rgba(2, 6, 23, 0.8);
  border-radius: 12px;
  background: #fff;
}

.packing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .packing-grid {
    grid-template-columns: 1fr;
  }
}

.packing-card {
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.packing-card-wide {
  margin-top: 14px;
}

.packing-card-title {
  margin: 0 0 12px;
  font-size: 18px;
}

.packing-kv {
  display: grid;
  gap: 8px;
}

.packing-kv-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  align-items: baseline;
}

@media (max-width: 520px) {
  .packing-kv-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.packing-kv-key {
  opacity: .75;
}

.packing-kv-val {
  word-break: break-word;
}

.packing-pre {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}

.packing-hint {
  opacity: .85;
  margin-bottom: 10px;
}

.packing-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.packing-field-wide {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .packing-form-grid {
    grid-template-columns: 1fr;
  }
}

.packing-input,
.packing-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bbb;
  border-radius: 12px;
  background: #fff;
  font: inherit;
}

.packing-help {
  margin-top: 6px;
  font-size: 13px;
  opacity: .75;
}

.packing-form-actions {
  margin-top: 10px;
}

.packing-table-wrap {
  overflow-x: auto;
}

.packing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.packing-table thead th {
  text-align: left;
  padding: 12px 10px;
  background: #111;
  color: #fff;
  font-weight: 700;
}

.packing-table tbody td {
  padding: 12px 10px;
  border-top: 1px solid #eee;
}

.packing-muted {
  opacity: .7;
}

.packing-ok {
  color: #0a7a2a;
}

.order-status-wrap {
  max-width: 640px;
  margin: 0 auto;
}

/* =========================================
   TIMELINE
========================================= */

.ship-timeline {
  margin-top: 14px;
  padding-top: 6px;
}

.ship-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.ship-step {
  position: relative;
  padding-top: 28px;
  text-align: left;
}

.ship-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(15,23,42,.22);
  background: #fff;
  display: grid;
  place-items: center;
}

.ship-line {
  position: absolute;
  top: 10px;
  left: 26px;
  right: -14px;
  height: 2px;
  background: rgba(15,23,42,.12);
}

.ship-step:last-child .ship-line {
  display: none;
}

.ship-title {
  font-weight: 800;
  font-size: 14px;
  margin: 0;
}

.ship-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.35;
}

.ship-step.is-done .ship-dot {
  border-color: rgba(2, 132, 199, .25);
  background: #e6f4ff;
}

.ship-step.is-done .ship-line {
  background: rgba(2, 132, 199, .25);
}

.ship-step.is-active .ship-dot {
  border-color: rgba(2, 6, 23, .55);
  background: #fff;
}

.ship-icon {
  width: 14px;
  height: 14px;
  opacity: .8;
}

/* =========================================
   LEGAL
========================================= */

.legal-page {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.legal-content {
  line-height: 1.7;
  font-size: 15px;
}

.legal-content h2 {
  margin-top: 2rem;
}

/* =========================================
   COOKIE BANNER
========================================= */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.cookie-banner__box {
  width: min(980px, 100%);
  background: #393939;
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

.cookie-banner__text {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
}

.cookie-banner__link {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.cookie-btn {
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgb(242, 178, 64);
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}

.cookie-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.cookie-btn--primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.cookie-settings {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  margin: 8px 0;
}

.cookie-settings__actions {
  margin-top: 10px;
}

.cookie-banner.is-hidden {
  display: none !important;
}

/* =========================================
   OVERLAY / IMPORT / DROPZONE
========================================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay.is-open {
  display: flex;
}

.overlay-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  width: 480px;
  max-width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.overlay-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.dropzone {
  position: relative;
  border: 2px dashed var(--color-border-strong);
  border-radius: 16px;
  padding: 36px 18px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
  background: var(--color-surface-soft);
}

.dropzone:hover {
  border-color: #6366f1;
}

.dropzone input {
  display: none;
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.price-import-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.muted {
  color: var(--color-muted);
  font-size: 13px;
}

.import-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-surface-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 14px;
  color: #334155;
}

.import-hint .muted {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 13px;
}

/* =========================================
   OPERATIONS / DATA UPLOAD
========================================= */

.operations-tile {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 18px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: .2s ease;
}

.operations-tile-action {
  cursor: pointer;
}

.operations-tile-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.operations-tile-icon {
  font-size: 20px;
  line-height: 1;
}

.operations-tile-label {
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
  margin-top: 8px;
}

.operations-tile-sub {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 6px;
}

.data-upload-page {
  padding: 24px 0;
}

.data-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.upload-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.current-file-box {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  background: var(--color-surface-soft);
}

.upload-form p {
  margin-bottom: 14px;
}

.upload-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.upload-table th,
.upload-table td {
  border-bottom: 1px solid var(--color-border);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.upload-table th {
  font-weight: 700;
  color: #334155;
}

.selected-file-info {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--color-surface-soft);
  border: 1px solid #dbe3ef;
  color: #334155;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

.selected-file-info--chosen {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
  font-weight: 600;
}

@media (max-width: 900px) {
  .data-upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-table {
    font-size: 14px;
  }
}

/* =========================================
   ANIMACJE / EFEKTY
========================================= */

.cart-fly-image {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.35);
  transition:
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.6s ease-out;
  will-change: transform, opacity;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--color-primary);
  color: #e5e7eb;
  padding: 1.2rem 1rem;
}

.site-footer * {
  opacity: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
}

.footer-meta {
  color: #9ca3af;
  margin-top: 0.25rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
  color: #e5e7eb;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #e5e7eb;
}

.footer-col p {
  line-height: 1.6;
  color: #e5e7eb;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.footer-contact .footer-link,
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.8;
  text-decoration: none;
}

.footer-ico {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 15px;
  text-align: center;
  color: #aaa;
}
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 16px;
}

.error-box {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 520px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.error-box h1 {
    font-size: 72px;
    margin: 0;
    color: #0ea5e9;
}

.error-box h2 {
    margin-top: 10px;
}

.error-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.error-search {
    margin-top: 25px;
}

.error-search input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 70%;
}
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #d9dde7;
    border-radius: 12px;
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: #1f2937;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .header-inner {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-link {
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .brand-logos {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex-wrap: nowrap;
    }

    .brand-logo--protimeter {
        max-height: 28px;
        width: auto;
        flex: 0 0 auto;
    }

    .brand-logo--unisens {
        max-height: 22px;
        width: auto;
        max-width: 110px;
        flex: 0 1 auto;
    }

    .brand-by {
        font-size: 12px;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        order: 2;
    }

    .header-actions {
        flex: 0 0 auto;
        order: 3;
        margin-left: 0;
    }

    .cart-label {
        display: none;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 10;
        margin-top: 8px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 12px;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav__list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link,
    .nav-dropdown a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-radius: 10px;
        text-decoration: none;
    }

    .nav-item--has-children:hover .nav-dropdown,
    .nav-dropdown__item--has-children:hover .nav-dropdown--sub {
        display: none;
    }

    .nav-dropdown,
    .nav-dropdown--root,
    .nav-dropdown--sub {
        position: static !important;
        display: block;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 6px 0 0 12px;
        margin: 0;
    }

    .nav-dropdown__item {
        margin: 0;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding-top: 0;
    }

    .header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand-logo--protimeter {
        max-height: 24px;
    }

    .brand-logo--unisens {
        max-height: 18px;
        max-width: 88px;
    }

    .brand-by {
        font-size: 11px;
    }

    .header-actions .cart-widget {
        min-width: auto;
        padding: 8px 10px;
    }

    .cart-count-badge {
        min-width: 20px;
        height: 20px;
        font-size: 12px;
    }
}
@media (max-width: 768px) {

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .brand {
    flex: 1;
    min-width: 0;
  }

  .brand-logos {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
  }

  .brand-logo--protimeter {
    max-height: 26px;
  }

  .brand-logo--unisens {
    max-height: 18px;
    max-width: 90px;
  }

  .brand-by {
    font-size: 11px;
    white-space: nowrap;
  }

  .header-actions {
    flex-shrink: 0;
  }

  .cart-label {
    display: none; /* 🔥 kluczowe */
  }

  .cart-widget {
    padding: 6px 10px;
  }
}
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: 0;
  }
}
/* =========================================
   FLOATING THEME TOGGLE
========================================= */

.floating-theme-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 999px;

    background: var(--color-surface);
    color: var(--color-text);

    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    cursor: pointer;
    z-index: 9999;

    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.floating-theme-toggle:hover {
    transform: translateY(-4px) scale(1.03);
}

.floating-theme-toggle:active {
    transform: scale(0.95);
}

.floating-theme-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

[data-theme="dark"] .floating-theme-toggle {
    background: var(--color-surface-soft);
}

/* mobile */
@media (max-width: 768px) {
    .floating-theme-toggle {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }
}
/* =========================================
   GLOBAL DARK MODE OVERRIDES
   wkleić na sam koniec pliku
========================================= */

[data-theme="dark"] .site-header {
  background: var(--color-surface) !important;
  border-bottom-color: var(--color-border) !important;
}

[data-theme="dark"] .nav-link,
[data-theme="dark"] .nav-item > a {
  color: var(--color-muted) !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-item > a:hover {
  color: var(--color-accent) !important;
  background: var(--color-surface-soft) !important;
}

[data-theme="dark"] .home-ai__card {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
}

[data-theme="dark"] .home-ai__content {
  background: var(--color-surface-soft) !important;
  color: var(--color-text) !important;
}

[data-theme="dark"] .home-ai__logo {
  background: var(--color-surface-muted) !important;
}

[data-theme="dark"] .home-ai__text,
[data-theme="dark"] .home-ai__brand-caption,
[data-theme="dark"] .home-ai__result-text,
[data-theme="dark"] .home-ai__product-title,
[data-theme="dark"] .ai-questions__title {
  color: var(--color-muted) !important;
}

[data-theme="dark"] .home-ai__textarea,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--color-surface-muted) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: var(--color-muted-2) !important;
}

[data-theme="dark"] .home-ai__reset-btn,
[data-theme="dark"] .secondary-btn,
[data-theme="dark"] .btnx-secondary,
[data-theme="dark"] .btn-small,
[data-theme="dark"] .ai-question-chip {
  background: var(--color-surface-muted) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .product-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .home-article-card,
[data-theme="dark"] .product-section-card,
[data-theme="dark"] .product-detail__image,
[data-theme="dark"] .product-side-card,
[data-theme="dark"] .product-options-card,
[data-theme="dark"] .home-promoted-slider,
[data-theme="dark"] .home-promoted-slide__info,
[data-theme="dark"] .manufacturer-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .cart-table,
[data-theme="dark"] .success-card,
[data-theme="dark"] .box,
[data-theme="dark"] .item,
[data-theme="dark"] .pay-card {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .product-card__image,
[data-theme="dark"] .product-gallery-thumb,
[data-theme="dark"] .product-slider,
[data-theme="dark"] .qty-picker,
[data-theme="dark"] .qty-btn,
[data-theme="dark"] .qty-input,
[data-theme="dark"] .pill {
  background: var(--color-surface-muted) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .short-desc,
[data-theme="dark"] .stock-label,
[data-theme="dark"] .product-card .short-desc,
[data-theme="dark"] .product-card .stock-label,
[data-theme="dark"] .article-card__intro,
[data-theme="dark"] .article-card__excerpt,
[data-theme="dark"] .article-card__meta,
[data-theme="dark"] .home-article-card__intro,
[data-theme="dark"] .cart-item-option,
[data-theme="dark"] .cart-item-sku,
[data-theme="dark"] .cart-item-tag,
[data-theme="dark"] .pay-sub,
[data-theme="dark"] .success-sub,
[data-theme="dark"] .foot,
[data-theme="dark"] .k {
  color: var(--color-muted) !important;
}

[data-theme="dark"] .product-option-pill__name,
[data-theme="dark"] .cart-item-title,
[data-theme="dark"] .item-title,
[data-theme="dark"] .item-price,
[data-theme="dark"] .v,
[data-theme="dark"] .addr,
[data-theme="dark"] .box-title {
  color: var(--color-text) !important;
}

[data-theme="dark"] .product-option-pill,
[data-theme="dark"] .home-ai__product-link {
  background: var(--color-surface-muted) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;
}

[data-theme="dark"] .product-category__title a {
  background: var(--color-surface-muted) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border-strong) !important;
}

[data-theme="dark"] .cart-table tbody tr:nth-child(even) {
  background: var(--color-surface-soft) !important;
}

[data-theme="dark"] .quote-info-box {
  background: var(--color-accent-soft) !important;
  border-color: var(--color-border-strong) !important;
  color: var(--color-text) !important;
}

[data-theme="dark"] .badge-unpaid {
  background: var(--color-surface-muted) !important;
  color: var(--color-text) !important;
}

[data-theme="dark"] .floating-theme-toggle {
  background: var(--color-surface-soft) !important;
  color: var(--color-text) !important;
  border-color: var(--color-border) !important;

}
/* =========================================
   ORDER STATUS - FORCE DARK
========================================= */

[data-theme="dark"] .order-status-wrap form,
[data-theme="dark"] .order-status-wrap > div,
[data-theme="dark"] .packing-card {
    background: var(--color-surface) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text) !important;
}

/* nadpisz wszystkie inline white backgrounds */
[data-theme="dark"] .order-status-wrap [style*="background:#fff"],
[data-theme="dark"] .order-status-wrap [style*="background:#fbfdff"] {
    background: var(--color-surface) !important;
}

/* teksty szare */
[data-theme="dark"] .order-status-wrap [style*="color:#64748b"] {
    color: var(--color-muted) !important;
}

/* inputy */
[data-theme="dark"] .order-status-wrap input {
    background: var(--color-surface-muted) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text) !important;
}

[data-theme="dark"] .order-status-wrap input::placeholder {
    color: var(--color-muted-2) !important;
}

/* produkty w zamówieniu */
[data-theme="dark"] .order-status-wrap [style*="border:1px solid rgba(15,23,42,.10)"] {
    background: var(--color-surface-soft) !important;
    border-color: var(--color-border) !important;
}

/* hr */
[data-theme="dark"] .order-status-wrap hr {
    border-top-color: var(--color-border) !important;
}

/* packing / tracking */
[data-theme="dark"] .packing-kv-key,
[data-theme="dark"] .packing-muted,
[data-theme="dark"] .ship-sub {
    color: var(--color-muted) !important;
}

[data-theme="dark"] .ship-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] strong {
    color: var(--color-text) !important;
}
/* =========================================
   FOOTER - DARK MODE
========================================= */

[data-theme="dark"] footer,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .footer {
    background: var(--color-surface) !important;
    border-top: 1px solid var(--color-border);
}

/* nagłówki */
[data-theme="dark"] .footer h3,
[data-theme="dark"] .footer h4,
[data-theme="dark"] .footer-title,
[data-theme="dark"] .site-footer strong {
    color: var(--color-text) !important;
}

/* zwykły tekst */
[data-theme="dark"] .footer,
[data-theme="dark"] .footer p,
[data-theme="dark"] .footer span,
[data-theme="dark"] .footer li,
[data-theme="dark"] .footer small,
[data-theme="dark"] .site-footer {
    color: var(--color-muted) !important;
}

/* linki */
[data-theme="dark"] .footer a,
[data-theme="dark"] .site-footer a {
    color: var(--color-text) !important;
    transition: color .15s ease;
}

[data-theme="dark"] .footer a:hover,
[data-theme="dark"] .site-footer a:hover {
    color: var(--color-accent) !important;
}

/* linia nad copyright */
[data-theme="dark"] .footer hr,
[data-theme="dark"] .site-footer hr {
    border-color: var(--color-border) !important;
}

/* copyright */
[data-theme="dark"] .footer-bottom,
[data-theme="dark"] .copyright {
    color: var(--color-muted-2) !important;
}
/* ==========================
   LOGO DARK MODE
========================== */

.logo-dark {
  display: none;
}

.logo-light {
  display: block;
}

[data-theme="dark"] .logo-light {
  display: none;
}

[data-theme="dark"] .logo-dark {
  display: block;
}
/* =========================================
   SITE SEARCH
========================================= */

.site-search {
  display: flex;
  align-items: center;
  min-width: 240px;
  max-width: 320px;
  flex: 0 1 300px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 14px;
}

.site-search__input {
  width: 100%;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  color: var(--color-text);
  font-size: 0.9rem;
  padding: 6px 4px;
}

.site-search__input::placeholder {
  color: var(--color-muted-2);
}

.site-search__button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #111827;
  cursor: pointer;
}

.site-search__button:hover {
  background: var(--color-primary-hover);
}

[data-theme="dark"] .site-search {
  background: var(--color-surface-muted);
  border-color: var(--color-border);
}
/* =========================================
   SEARCH PAGE
========================================= */

.search-page {
  max-width: 1100px;
  margin: 0 auto;
}

.search-hero {
  margin-bottom: 32px;
}

.search-hero h1 {
  font-size: 42px;
  margin-bottom: 8px;
}

.search-hero p {
  color: var(--color-muted);
  font-size: 17px;
  margin-bottom: 20px;
}

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 760px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 10px;
  box-shadow: var(--shadow-md);
}

.search-page-form__input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  color: var(--color-text);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.search-page-form__input::placeholder {
  color: var(--color-muted-2);
}

.search-page-form__button {
  white-space: nowrap;
}

.search-summary {
  color: var(--color-muted);
  margin-bottom: 18px;
}

.search-summary strong {
  color: var(--color-text);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.search-result-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 22px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.search-result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-strong);
}

.search-result-card__type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.search-result-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--color-heading);
}

.search-result-card__desc {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.search-result-card__cta {
  color: var(--color-accent);
  font-weight: 700;
}

.search-pagination {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.search-pagination__current {
  color: var(--color-muted);
}

.search-empty {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.search-empty h2 {
  margin-top: 0;
}

.search-empty p {
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .search-hero h1 {
    font-size: 32px;
  }

  .search-page-form {
    flex-direction: column;
  }

  .search-page-form__button {
    width: 100%;
  }
}
.product-articles {
  margin-top: 72px;
  padding: 56px 0;
}

.product-articles__header {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--color-accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-articles__header h2 {
  margin: 0 0 10px;
  color: var(--color-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.product-articles__header p {
  margin: 0;
  color: var(--color-muted);
}

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

.product-article-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.product-article-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-soft);
  overflow: hidden;
}

.product-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-article-card__body {
  padding: 24px;
}

.product-article-card__label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.product-article-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
}

.product-article-card h3 a {
  color: var(--color-heading);
  text-decoration: none;
}

.product-article-card p {
  color: var(--color-muted);
}

.product-article-preview {
  margin-top: 14px;
  color: var(--color-text);
}

.product-article-preview summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
}

.product-article-preview__body {
  margin-top: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
  color: var(--color-muted);
}

.product-article-card__cta {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}

@media (max-width: 800px) {
  .product-articles__grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   MOBILE PRODUCT PAGE FIX
========================================= */

@media (max-width: 768px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    max-height: 34px;
  }

  .site-search {
    grid-column: 1 / -1;
    order: 2;
    width: 100%;
  }

  .site-search__input {
    width: 100%;
    height: 44px;
    font-size: 15px;
  }

  .header-actions {
    order: 1;
  }

  .cart-widget {
    width: 52px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .cart-label {
    display: none;
  }

  .menu-toggle {
    order: 1;
    width: 48px;
    height: 44px;
  }

  .product-hero {
    margin: 20px 16px 24px;
  }

  .product-hero-inner {
    display: block;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .product-hero-title {
    font-size: 2rem;
    line-height: 1.08;
  }

  .product-hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  .product-hero-meta {
    gap: 8px;
  }

  .product-hero-meta .chip {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .product-hero-image {
    margin-top: 22px;
  }

  .product-hero-image img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
  }

  .page-section {
    padding: 24px 16px;
  }

  .product-detail {
    display: block;
  }

  .product-detail__image {
    float: none;
    width: 100%;
    margin: 0 0 24px;
    padding: 14px;
  }

  .product-slider__viewport {
    border-radius: 18px;
  }

  .product-detail__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-detail__actions .btn,
  .product-detail__actions .chip,
  .product-detail__actions .qty-picker {
    width: 100%;
    justify-content: center;
  }

  .add-to-cart-form {
    display: grid;
    gap: 10px;
  }

  .product-detail__body {
    font-size: 1rem;
    line-height: 1.65;
  }

  .product-detail__body h2 {
    font-size: 1.45rem;
  }

  .product-section-grid-2 {
    grid-template-columns: 1fr;
  }

  .product-articles {
    padding: 32px 16px;
  }

  .product-articles__grid {
    grid-template-columns: 1fr;
  }
}
/* TELEFON – product page ciaśniej i szerzej */
@media (max-width: 480px) {
  .header-inner {
    padding: 10px 12px;
    gap: 8px;
  }

  .site-search {
    width: 100%;
  }

  .product-hero {
    margin: 16px 10px 20px;
  }

  .product-hero-inner {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .product-hero-title {
    font-size: 1.75rem;
    line-height: 1.08;
  }

  .product-hero-subtitle {
    font-size: 1rem;
  }

  .product-hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .product-hero-meta .chip {
    width: fit-content;
    max-width: 100%;
  }

  .page-section {
    padding: 20px 10px;
  }

  .product-detail__image {
    padding: 10px;
    border-radius: 18px;
  }

  .product-slider__viewport,
  .product-slide img {
    border-radius: 16px;
  }

  .product-detail__actions {
    gap: 8px;
  }

  .product-detail__actions .btn,
  .product-detail__actions .chip,
  .product-detail__actions .qty-picker {
    width: 100%;
  }

  .product-detail__body {
    padding: 0 4px;
  }

  .product-section-card,
  .product-side-card,
  .product-purchase-card {
    border-radius: 18px;
  }
}
@media (min-width: 481px) and (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 14px;
  }

  .site-search {
    grid-column: auto;
    order: initial;
  }

  .cart-widget {
    width: auto;
    padding: 0 14px;
  }

  .cart-label {
    display: inline;
  }
}
/* MOBILE NAV FIX */
@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    padding: 16px;
    border-radius: 18px;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-item,
  .nav-item--has-children {
    position: static;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }

  .nav-dropdown,
  .nav-dropdown--root,
  .nav-dropdown--sub {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    box-shadow: none;
    margin: 6px 0 0 12px;
    padding: 8px;
    background: var(--color-surface-soft);
    border-radius: 12px;
  }

  .nav-item--has-children.is-open > .nav-dropdown,
  .nav-dropdown__item--has-children.is-open > .nav-dropdown {
    display: block !important;
  }

  .nav-item--has-children:hover > .nav-dropdown,
  .nav-dropdown__item--has-children:hover > .nav-dropdown {
    display: none !important;
  }
}
/* TELEFON – logo/header fix */
@media (max-width: 480px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand {
    min-width: 0;
    overflow: hidden;
  }

  .brand-link,
  .brand-logos {
    max-width: 100%;
    overflow: hidden;
  }

  .brand-logo {
    max-width: 120px;
    max-height: 32px;
    object-fit: contain;
  }

  .brand-logo--protimeter {
    max-width: 95px;
  }

  .brand-logo--unisens {
    max-width: 70px;
  }

  .brand-by {
    font-size: 0.65rem;
    margin: 0 4px;
  }

  .menu-toggle {
    flex-shrink: 0;
  }

  .cart-widget {
    flex-shrink: 0;
  }
}
/* Obrazy w opisie produktu */
.product-detail__body .richtext-image.full-width,
.product-detail__body figure.full-width,
.product-detail__body figure.full-width img {
  width: 100%;
  max-width: 100%;
}

.product-detail__body img {
  max-width: 100%;
  height: auto;
}

.product-detail__body figure {
  margin: 32px 0;
}
.product-detail__body {
  max-width: none;
}

.product-detail__body figure.full-width {
  width: 100%;
}
.quote-cta-btn {
  background: var(--color-accent) !important;
  color: #111827 !important;
  border: 1px solid var(--color-accent) !important;
  box-shadow: 0 6px 28px rgb(215, 38, 52);
  font-weight: 800;
}

.quote-cta-btn:hover {
  transform: translateY(-1px);
  background: var(--color-primary-hover) !important;
}
.product-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-border);
}

.product-sticky-cta__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-sticky-cta__info {
  color: var(--color-text);
}

.product-sticky-cta__info strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-heading);
}

.product-sticky-cta__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-sticky-cta__button {
  white-space: nowrap;
}

body {
  padding-bottom: 88px;
}

@media (max-width: 700px) {
  .product-sticky-cta__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .product-sticky-cta__button {
    width: 100%;
    justify-content: center;
  }

  body {
    padding-bottom: 150px;
  }
}
.product-sticky-cta {
  transition: transform .25s ease, opacity .25s ease;
}

.product-sticky-cta.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.product-sticky-cta {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.10);
}

.product-sticky-cta__info,
.product-sticky-cta__info strong {
  color: var(--color-text);
}

[data-theme="dark"] .product-sticky-cta {
  background: rgba(15, 23, 42, 0.92);
  border-top-color: var(--color-border);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .product-sticky-cta__info,
[data-theme="dark"] .product-sticky-cta__info strong {
  color: var(--color-text);
}
.product-sticky-cta .quote-cta-btn {
  background: var(--color-accent) !important;
  color: #111827 !important;
  border-color: var(--color-accent) !important;
}
.product-sticky-cta__subtitle {
  margin: 4px 0 10px;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--color-muted);
}
.product-sticky-cta__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}

.product-sticky-cta .add-to-cart-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-sticky-cta .qty-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-sticky-cta .product-sticky-cta__button,
.product-sticky-cta .add-to-cart-form .quote-cta-btn {
  white-space: nowrap;
}

.product-sticky-cta .qty-picker .chip {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .product-sticky-cta__inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-sticky-cta .add-to-cart-form {
    flex-direction: column;
    align-items: stretch;
  }

  .product-sticky-cta .product-sticky-cta__button,
  .product-sticky-cta .qty-picker {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 700px) {
  .product-sticky-cta {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}
/* ==========================================================================
   KONFIGURACJA PRODUKTU
   Opcje, akcesoria i podsumowanie zapytania
   ========================================================================== */


/* ==========================================================================
   1. ZABEZPIECZENIE UKŁADU PRODUCT PAGE
   ========================================================================== */

.product-detail__image,
.product-detail__info {
  min-width: 0;
}


/* ==========================================================================
   2. WSPÓLNE KONTENERY KONFIGURACJI
   ========================================================================== */

.product-options-card,
.product-accessories {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;

  padding: 20px;
  border: 1px solid var(--color-border, #d8e0eb);
  border-radius: 18px;

  background: var(--color-surface, #fff);
  box-shadow: var(--shadow-sm, 0 10px 26px rgba(18, 38, 63, 0.07));
}

.product-options-card + .product-accessories {
  margin-top: 16px;
}

.product-accessories + .product-detail__body {
  margin-top: 28px;
}


/* ==========================================================================
   3. OPCJE PRODUKTU
   ========================================================================== */

.product-options-card__title {
  margin: 0 0 5px;
  color: var(--color-heading, #172338);
  font-size: 1.25rem;
  line-height: 1.25;
}

.product-options-card__hint {
  margin: 0;
  color: var(--color-muted, #65748b);
  font-size: 0.82rem;
  line-height: 1.45;
}

.product-options-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.product-option-pill {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;

  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  padding: 14px 46px 14px 15px;
  border: 1px solid var(--color-border, #d8e0eb);
  border-radius: 13px;

  background: var(--color-surface-soft, #f8fafc);
  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.product-option-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.55);
  background: #f4fbfe;
}

.product-option-pill:has(input[type="radio"]:checked) {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.product-option-pill input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;

  position: absolute;
  top: 14px;
  right: 14px;

  width: 20px;
  height: 20px;
  margin: 0;

  border: 2px solid #b8c4d3;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.product-option-pill input[type="radio"]:checked {
  border: 6px solid #0ea5e9;
}

.product-option-pill input[type="radio"]:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.28);
  outline-offset: 3px;
}

.product-option-pill__name {
  grid-column: 1;
  min-width: 0;

  color: var(--color-heading, #172338);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-option-pill__extra {
  grid-column: 2;
  grid-row: 1;

  color: #0788bd;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-option-pill__desc {
  grid-column: 1 / -1;

  color: var(--color-muted, #65748b);
  font-size: 0.76rem;
  line-height: 1.4;
}


/* ==========================================================================
   4. AKCESORIA — WERSJA KOMPAKTOWA DO PRAWEJ KOLUMNY
   ========================================================================== */

.product-detail__info .product-accessories {
  grid-column: auto;
  align-self: start;
  margin: 16px 0 0;
  padding: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-accessories__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-accessories__header > div {
  min-width: 0;
}

.product-accessories__eyebrow {
  display: block;
  margin-bottom: 4px;

  color: #0ea5e9;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-accessories__header h2 {
  margin: 0 0 4px;
  color: var(--color-heading, #172338);
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-accessories__hint {
  margin: 0;
  color: var(--color-muted, #65748b);
  font-size: 0.76rem;
  line-height: 1.4;
}

.product-accessories__counter {
  flex: 0 0 auto;
  margin: 0;
  padding: 6px 9px;

  border: 1px solid var(--color-border, #d8e0eb);
  border-radius: 999px;

  color: var(--color-muted, #65748b);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-accessories__list {
  display: flex;
  gap: 8px;

  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 11px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #9ccfe4 transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.product-accessories__list::-webkit-scrollbar {
  height: 6px;
}

.product-accessories__list::-webkit-scrollbar-track {
  background: transparent;
}

.product-accessories__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9ccfe4;
}


/* Pojedyncze akcesorium */

.product-accessory {
  position: relative;
  display: block;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  cursor: pointer;
  scroll-snap-align: start;
}

.product-accessory__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.product-accessory__card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);

  width: 100%;
  min-width: 0;
  min-height: 92px;
  box-sizing: border-box;
  overflow: hidden;

  border: 1px solid var(--color-border, #d8e0eb);
  border-radius: 13px;
  background: var(--color-surface-soft, #f8fafc);

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.product-accessory:hover .product-accessory__card {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.55);
  background: #f4fbfe;
}

.product-accessory__input:focus-visible + .product-accessory__card {
  outline: 3px solid rgba(14, 165, 233, 0.28);
  outline-offset: 3px;
}

.product-accessory__input:checked + .product-accessory__card {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.08);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}


/* Obraz akcesorium */

.product-accessory__image {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
  padding: 8px;

  border-right: 1px solid var(--color-border, #d8e0eb);
  background: #fff;
}

.product-accessory__image img {
  display: block;
  width: 100%;
  height: 68px;
  max-height: 68px;
  padding: 0;
  object-fit: contain;
}

.product-accessory__placeholder {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  border-radius: 11px;
  background: rgba(14, 165, 233, 0.12);

  color: #0ea5e9;
  font-size: 1.4rem;
  font-weight: 700;
}


/* Znacznik wyboru — wewnątrz karty */

.product-accessory__check {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 19px;
  height: 19px;

  border: 2px solid #b8c4d3;
  border-radius: 50%;
  background: #fff;

  color: transparent;
  font-size: 0.68rem;
  font-weight: 800;

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.product-accessory__input:checked
  + .product-accessory__card
  .product-accessory__check {
  border-color: #0ea5e9;
  background: #0ea5e9;
  color: #fff;
}


/* Informacje o akcesorium */

.product-accessory__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 9px 34px 9px 10px;
}

.product-accessory__manufacturer {
  margin-bottom: 2px;

  color: #0ea5e9;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.product-accessory__name {
  color: var(--color-heading, #172338);
  font-size: 0.78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.product-accessory__sku {
  display: block;
  margin-top: 3px;

  color: var(--color-muted-2, #7a879a);
  font-size: 0.62rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-accessory__description {
  display: -webkit-box;
  margin-top: 3px;
  overflow: hidden;

  color: var(--color-muted, #65748b);
  font-size: 0.62rem;
  line-height: 1.3;

  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-accessory__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;

  margin-top: auto;
  padding-top: 5px;
}

.product-accessory__price {
  min-width: 0;
  color: var(--color-heading, #172338);
  font-size: 0.65rem;
  font-weight: 800;
}

.product-accessory__price--request {
  color: var(--color-muted, #65748b);
}

.product-accessory__status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;

  font-size: 0.56rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-accessory__status--in_stock {
  background: rgba(34, 197, 94, 0.13);
  color: #15803d;
}

.product-accessory__status--low_stock {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.product-accessory__status--on_request {
  background: rgba(14, 165, 233, 0.13);
  color: #0369a1;
}

.product-accessory__status--unavailable {
  background: rgba(239, 68, 68, 0.13);
  color: #b91c1c;
}

/* Kółko wystarczająco sygnalizuje wybór. */
.product-accessory__selected-text {
  display: none;
}


/* ==========================================================================
   5. PODSUMOWANIE ZAPYTANIA
   ========================================================================== */

.quote-summary {
  margin-bottom: 30px;
  padding: 24px;

  border: 1px solid var(--color-border, #d8e0eb);
  border-radius: 20px;

  background: var(--color-surface, #fff);
  box-shadow: var(--shadow-sm, 0 10px 26px rgba(18, 38, 63, 0.07));
}

.quote-summary h2 {
  margin: 0 0 18px;
}

.quote-summary__list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.quote-summary__list > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 15px;

  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border, #d8e0eb);
}

.quote-summary__list dt {
  color: var(--color-muted, #65748b);
  font-size: 0.85rem;
}

.quote-summary__list dd {
  min-width: 0;
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quote-summary__accessories {
  margin-top: 22px;
}

.quote-summary__accessories h3 {
  margin: 0 0 12px;
}

.quote-summary__accessories ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quote-summary__accessories li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;

  padding: 11px 13px;
  border-radius: 12px;
  background: var(--color-surface-soft, #f8fafc);
}

.quote-summary__accessories li > span {
  color: #0ea5e9;
  font-weight: 800;
}

.quote-summary__accessories small {
  display: block;
  margin-top: 2px;
  color: var(--color-muted, #65748b);
}


/* ==========================================================================
   6. TRYB CIEMNY
   Obsługa obu sposobów oznaczania motywu używanych w projekcie.
   ========================================================================== */

:is(body.dark-mode, [data-theme="dark"])
  :is(.product-options-card, .product-accessories, .quote-summary) {
  border-color: #30405a;
  background: #172238;
}

:is(body.dark-mode, [data-theme="dark"])
  :is(.product-option-pill, .product-accessory__card) {
  border-color: #34445d;
  background: #1d2a42;
}

:is(body.dark-mode, [data-theme="dark"]) .product-option-pill:hover,
:is(body.dark-mode, [data-theme="dark"])
  .product-accessory:hover
  .product-accessory__card,
:is(body.dark-mode, [data-theme="dark"])
  .product-option-pill:has(input:checked),
:is(body.dark-mode, [data-theme="dark"])
  .product-accessory__input:checked
  + .product-accessory__card {
  border-color: #20aae0;
  background: #20324c;
}

:is(body.dark-mode, [data-theme="dark"])
  :is(
    .product-options-card__title,
    .product-option-pill__name,
    .product-accessories__header h2,
    .product-accessory__name,
    .product-accessory__price
  ) {
  color: #fff;
}

:is(body.dark-mode, [data-theme="dark"]) .product-accessory__image {
  border-color: #34445d;
  background: #f8fafc;
}


/* ==========================================================================
   7. RESPONSYWNOŚĆ
   ========================================================================== */

@media (max-width: 900px) {
  .product-detail__info .product-accessories {
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .product-options-card,
  .product-accessories {
    padding: 16px;
    border-radius: 15px;
  }

  .product-accessories__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .product-accessories__counter {
    align-self: flex-start;
  }

  .product-option-pill {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-option-pill__extra {
    grid-column: 1;
    grid-row: auto;
  }

  .product-accessory__card {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .product-accessory__image img {
    height: 66px;
    max-height: 66px;
  }

  .product-accessory__content {
    padding-right: 36px;
  }

  .quote-summary {
    padding: 18px;
  }

  .quote-summary__list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}
.product-detail__info > .product-options-card,
.product-detail__info > .product-accessories {
  width: calc(100% - 656px);
  max-width: calc(100% - 656px);
  min-width: 0;
  margin-left: 656px;
  box-sizing: border-box;

  /* Tylko wizualne przesunięcie */
  transform: translateX(-24px);
}

.product-detail__info > .product-accessories {
  margin-top: 16px;
  padding: 14px;
}
@media (max-width: 900px) {
  .product-detail__info > .product-options-card,
  .product-detail__info > .product-accessories {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }
}

.checkout-terms {
  margin: 24px 0 18px;
  padding: 18px;

  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-soft);
}

.checkout-terms__label {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}
/*akceptacja regulaminu przed dokonaniem płatności*/
.checkout-terms__label input[type="checkbox"] {
  flex: 0 0 auto;

  width: 20px;
  height: 20px;
  margin-top: 1px;

  accent-color: #0ea5e9;
  cursor: pointer;
}

.checkout-terms__label a {
  color: #0ea5e9;
  font-weight: 700;
  text-decoration: underline;
}

.checkout-terms__errors {
  margin-top: 10px;
  color: #dc2626;
  font-size: 0.82rem;
  font-weight: 600;
}

.checkout-terms__errors p {
  margin: 0;
}

.checkout-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.terms-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.terms-status--accepted {
  color: #087443;
  background: #dcfce7;
  border: 1px solid #86efac;
}

.terms-status--missing {
  color: #9f1239;
  background: #ffe4e6;
  border: 1px solid #fda4af;
}

.terms-status__date {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}
/* =========================================================
   OSTATECZNY RESPONSYWNY HEADER
   Ten blok musi znajdować się na samym końcu pliku CSS.
========================================================= */

.site-header {
  width: 100%;
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
}

.brand,
.brand-link,
.brand-logos,
.main-nav,
.site-search,
.header-actions {
  min-width: 0;
}

/* Pełny widok — zwykły komputer */
@media (min-width: 1201px) {
  .header-inner {
    display: grid;
    grid-template-columns:
      auto
      minmax(350px, 1fr)
      minmax(220px, 300px)
      auto;
    grid-template-areas: "brand nav search cart";
    align-items: center;
    gap: clamp(12px, 1.6vw, 24px);
    padding: 12px 18px;
  }

  .brand {
    grid-area: brand;
  }

  .main-nav {
    grid-area: nav;
    display: flex;
    position: static;
  }

  .main-nav__list {
    width: 100%;
    justify-content: center;
    gap: clamp(8px, 1.2vw, 18px);
  }

  .nav-link {
    padding-inline: clamp(4px, 0.65vw, 12px);
    white-space: nowrap;
  }

  .site-search {
    grid-area: search;
    width: 100%;
    min-width: 0;
    max-width: 300px;
  }

  .menu-toggle {
    display: none;
  }

  .header-actions {
    grid-area: cart;
  }

  .cart-label {
    display: inline;
  }
}

/* Tablet, duże powiększenie i mniejsze laptopy */
@media (max-width: 1200px) {
  .site-header {
    padding: 0;
  }

  .header-inner {
    display: grid !important;
    grid-template-columns:
      auto
      minmax(180px, 1fr)
      auto
      auto;
    grid-template-areas: "brand search menu cart";
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .brand {
    grid-area: brand;
    overflow: visible;
  }

  .brand-link,
  .brand-logos {
    max-width: 100%;
    overflow: visible;
  }

  .brand-logos {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .brand-logo {
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
  }

  .brand-logo--protimeter {
    height: auto;
    max-height: 38px;
    max-width: 170px;
  }

  .brand-logo--unisens {
    height: auto;
    max-height: 25px;
    max-width: 105px;
  }

  .brand-by {
    display: inline !important;
    margin: 0;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .site-search {
    grid-area: search;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
  }

  .site-search__input {
    width: 100%;
    min-width: 0;
  }

  .menu-toggle {
    grid-area: menu;
    display: inline-flex !important;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    order: initial;
  }

  .header-actions {
    grid-area: cart;
    margin: 0;
    order: initial;
  }

  .cart-widget {
    width: auto;
    min-width: 48px;
    min-height: 44px;
    padding: 7px 12px;
    justify-content: center;
    white-space: nowrap;
  }

  .cart-label {
    display: inline;
  }

  /* Rozwijane menu pod całym paskiem */
  .main-nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
    max-height: calc(100vh - 110px);
    margin: 0 !important;
    padding: 14px !important;
    overflow-y: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }

  .main-nav.is-open {
    display: block !important;
  }

  .main-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 11px 13px;
  }
}

/* Telefon i bardzo duże powiększenie */
@media (max-width: 1000px) {
  .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas:
      "brand menu cart"
      "search search search" !important;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
  }

  .brand {
    grid-area: brand;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .brand-link {
    display: block;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .brand-logos {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
  }

  .brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .brand-logo--protimeter {
    max-width: 135px;
    max-height: 34px;
  }

  .brand-logo--unisens {
    max-width: 82px;
    max-height: 21px;
  }

  .brand-by {
    display: inline !important;
    flex: 0 0 auto;
    margin: 0;
    font-size: 11px;
    white-space: nowrap;
  }

  .site-search {
    grid-area: search;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 44px;
    margin: 0;
  }

  .site-search__input {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 6px 8px;
    font-size: 15px;
  }

  .site-search__button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }

  .menu-toggle {
    grid-area: menu;
    display: inline-flex !important;
    width: 44px;
    height: 44px;
    margin: 0;
    order: initial;
  }

  .header-actions {
    grid-area: cart;
    margin: 0;
    order: initial;
  }

  .cart-widget {
    display: inline-flex;
    width: 48px;
    min-width: 48px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }

  .cart-label {
    display: none;
  }

  .cart-icon {
    font-size: 18px;
  }

  .cart-count-badge {
    min-width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .main-nav {
    top: calc(100% + 6px) !important;
    right: 16px !important;
    left: 16px !important;
  }
}

/* Najwęższe ekrany — zachowujemy najważniejsze logo */
@media (max-width: 380px) {
  .header-inner {
    gap: 7px;
    padding-inline: 9px;
  }

  .brand-logo--protimeter {
    max-width: 105px;
    max-height: 28px;
  }

  .brand-logo--unisens {
    display: none !important;
  }

  .brand-by {
    display: none !important;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .cart-widget {
    width: 44px;
    height: 42px;
    min-width: 44px;
  }
}
/* Jasny motyw */
html:not([data-theme="dark"]) .brand-logo.logo-light {
    display: block !important;
}

html:not([data-theme="dark"]) .brand-logo.logo-dark {
    display: none !important;
}

/* Ciemny motyw */
html[data-theme="dark"] .brand-logo.logo-light {
    display: none !important;
}

html[data-theme="dark"] .brand-logo.logo-dark {
    display: block !important;
}