/* ================================================================
   STARTER THEME - app.css
   UWAGA: Kolory, fonty, przyciski, kontenery i naglowki sa w theme-options.css
   Tutaj tylko: reset, zmienne pomocnicze, utility classes, komponenty
================================================================ */

/* ---- ZMIENNE POMOCNICZE (nie nadpisywane przez theme-options) ---- */
:root {
  /* Semantic - statusy (stale, niezalezne od motywu) */
  --color-error:        #ef4444;
  --color-error-dark:   #991b1b;
  --color-error-light:  #fef2f2;
  --color-success:      #22c55e;
  --color-success-dark: #15803d;
  --color-success-light:#f0fdf4;
  --color-warning:      #f59e0b;
  --color-warning-dark: #d97706;
  --color-warning-light:#fffbeb;
  --color-info:         #3b82f6;
  --color-info-light:   #eff6ff;
  --color-stars:        #f59e0b;
  /* Skale fontow */
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  2rem;
  --font-size-4xl:  2.75rem;
  --font-size-5xl:  3.5rem;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Promienie */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  /* Cienie */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  /* Przejscia */
  --transition: 200ms ease;

  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --line-height: 1.7;
  --color-white: #ffffff;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--line-height);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
[x-cloak] { display: none !important; }
fieldset { border: 0; margin-bottom: 10px; }

/* ---- CONTAINER ---- */
/* Nadpisujemy theme-options.css z padding-inline na pelny shorthand */
.container {
  width: 100%;
  max-width: var(--container-width, 1200px);
  margin-inline: auto;
  padding-inline: var(--container-pad, 24px);
}
.container-narrow {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--container-pad, 24px);
  width: 100%;
}

/* ---- TYPOGRAFIA - TYLKO KOLOR I FALLBACK ---- */
/* Rozmiary sa w theme-options.css */
h1,h2,h3,h4,h5,h6 { color: var(--color-dark); }
p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

/* ---- BUTTONS - BAZOWE ---- */
/* .btn rozmiar/padding/radius jest w theme-options.css */
.btn, .button, button[type="submit"], input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: var(--btn-padding, 12px 28px);
  font-size: var(--btn-font-size, 15px);
  font-weight: 600;
  border-radius: var(--btn-radius, 9999px);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-lg { padding: 1rem 2.25rem; font-size: var(--font-size-lg); }
.btn-sm { padding: 6px 16px; font-size: var(--font-size-sm); }
/* Kolory przyciskow sa w theme-options.css */
.btn-primary { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-secondary); color: var(--color-white); }
.btn-outline--light { color: var(--color-white); border-color: rgba(255,255,255,.6); }
.btn-outline--light:hover { background: var(--color-white); color: var(--color-primary); }
.btn-white { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); }
.btn-white:hover { background: var(--color-primary-light); }
.btn-block { width: 100%; text-align: center; justify-content: center; margin-top: var(--space-xs); }

/* ---- SECTION ---- */
/* Padding jest w theme-options.css (.section, .section-alt) */
.section-alt { background: var(--color-bg-alt); }
.section-header { text-align: center; margin-bottom: var(--space-xl); max-width: 680px; margin-inline: auto; }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-desc { color: var(--color-muted); font-size: var(--font-size-lg); }
.section-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-full);
  margin-top: 3px;
  margin-bottom: 3px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* ================================================================
   UTILITY CLASSES - Predefiniowane klasy pomocnicze
   Uzywaj tych klas w HTML zamiast pisac inline styles
================================================================ */

/* Flex */
.d-flex       { display: flex; }
.d-grid       { display: grid; }
.d-block      { display: block; }
.d-none       { display: none; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }


.justify-center  { justify-content: center; }


.flex-1       { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-xs  { gap: var(--space-xs); }


/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Spacing */
.mt-xs { margin-top: var(--space-xs); }


.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }

.mb-lg { margin-bottom: var(--space-lg); }

.pt-sm { padding-top: var(--space-sm); }


.pb-sm { padding-bottom: var(--space-sm); }


/* Tekst */
.text-center { text-align: center; }


.text-sm     { font-size: var(--font-size-sm); }


.text-muted  { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-white  { color: var(--color-white); }
.text-dark   { color: var(--color-dark); }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }

.text-lead   { font-size: var(--font-size-lg); color: var(--color-muted); line-height: 1.8; }
.uppercase   { text-transform: uppercase; }
.truncate    { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tla */
.bg-white    { background: var(--color-white); }
.bg-alt      { background: var(--color-bg-alt); }
.bg-primary  { background: var(--color-primary); color: var(--color-white); }
.bg-dark     { background: var(--color-dark);    color: var(--color-white); }

/* Border i shadow */
.rounded-sm   { border-radius: var(--radius-sm); }
.rounded-md   { border-radius: var(--radius-md); }
.rounded-lg   { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.shadow-sm    { box-shadow: var(--shadow-sm); }
.shadow-md    { box-shadow: var(--shadow-md); }
.shadow-lg    { box-shadow: var(--shadow-lg); }
.border       { border: 1px solid var(--color-border); }

/* Widocznosc */
.hidden          { display: none !important; }
.visible         { visibility: visible; }


.mobile-only     { display: none; }
.desktop-only    { display: block; }
@media (max-width: 768px) {
  .mobile-only    { display: block; }
  .desktop-only   { display: none; }
  .mobile-hidden  { display: none !important; }

}

/* Pozycjonowanie */
.relative { position: relative; }
.absolute { position: absolute; }

.sticky   { position: sticky; }

.w-full   { width: 100%; }
.h-full   { height: 100%; }
.overflow-hidden { overflow: hidden; }
.z-10     { z-index: 10; }
.z-100    { z-index: 100; }
.z-1000   { z-index: 1000; }

/* Aspect ratio */
.aspect-square { aspect-ratio: 1; }
.aspect-video  { aspect-ratio: 16/9; }


/* Obrazki */
.img-cover  { width: 100%; height: 100%; object-fit: cover; }
.img-contain { width: 100%; height: 100%; object-fit: contain; }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

/* Sticky - po scrollowaniu */
.site-header.is-sticky {
  box-shadow: var(--shadow-md);
}

.site-header.is-sticky .header-logo img,
.site-header.is-sticky .site-logo img {
  max-width: var(--logo-sticky-width, 120px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) 0; height: var(--header-height, 70px); transition: height 0.3s ease; }
.site-logo { font-size: var(--font-size-xl); font-weight: 800; color: var(--color-primary); }
.site-logo img,
.header-logo img,
.footer-logo img {
    width: auto;
    display: block;
}
.header-logo img {
    max-width: var(--logo-header-width, 160px);
    object-fit: contain;
    transition: max-width 0.3s ease;
}
.footer-logo img  { max-height: 60px; max-width: var(--logo-footer-width, 140px); object-fit: contain; }
.logo-text { color: var(--color-primary); }


.header-phone { display: flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--color-dark); transition: color var(--transition); }
.header-phone:hover { color: var(--color-primary); }
.header-phone svg { flex-shrink: 0; }

/* Header search */
.header-search { position: relative; }


.hamburger { color: var(--color-dark); padding: 0.4rem; }

.mobile-menu {
  background: var(--color-white); border-top: 1px solid var(--color-border);
  padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm);
}


/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(500px, 80vh, 800px);
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg--gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}


.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 680px; color: var(--color-white); padding-block: var(--space-2xl); }
.hero-heading { color: var(--color-white); margin-bottom: var(--space-md); }
.hero-sub { font-size: var(--font-size-lg); opacity: .9; margin-bottom: var(--space-lg); max-width: 540px; }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ---- PAGE HERO ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-white); padding-block: var(--space-2xl);
  text-align: center;
}
.page-hero h1 { color: var(--color-white); margin-block: var(--space-sm); }
.page-hero p { font-size: var(--font-size-lg); opacity: .85; max-width: 560px; margin-inline: auto; }
.page-hero .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0.3em 0.9em;
    border-radius: var(--radius-full);
    margin-top: 3px;
    margin-bottom: 3px;
    background: rgba(255,255,255,0.2);
    color: #ffffff;
}

/* ---- ABOUT ---- */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.about-text h2 { margin-block: var(--space-sm) var(--space-md); }
.about-text p { color: var(--color-muted); margin-bottom: var(--space-md); }
.about-img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; max-height: 440px; }


/* ---- CTA ---- */
.cta-section { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%); padding-block: var(--space-2xl); }
.cta-box { text-align: center; max-width: 680px; margin-inline: auto; color: var(--color-white); }
.cta-box h2 { color: var(--color-white); margin-bottom: var(--space-sm); }
.cta-box p { opacity: .9; font-size: var(--font-size-lg); margin-bottom: var(--space-lg); }

/* ---- CONTACT ---- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: var(--space-2xl); align-items: start; }
.contact-layout--page .contact-info h2,
.contact-layout--page .contact-form-wrap h2 { margin-bottom: var(--space-lg); }
.contact-item { display: flex; gap: var(--space-sm); align-items: flex-start; padding-block: var(--space-sm); border-bottom: 1px solid var(--color-border); }
.contact-item:last-child { border-bottom: none; }
.contact-item__icon { color: var(--color-primary); flex-shrink: 0; margin-top: 4px; display: flex; align-items: flex-start; }
.contact-item__label { display: block; font-size: var(--font-size-sm); color: var(--color-muted); }
.contact-item__value { display: block; font-weight: 600; color: var(--color-dark); }
.contact-item__value:hover { color: var(--color-primary); }


.contact-form-wrap { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); }


/* ---- CF7 FORM ---- */
.wpcf7-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea {
  width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 0.75rem 1rem; font-family: inherit; font-size: var(--font-size-base);
  transition: border-color var(--transition); background: var(--color-bg-alt);
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus { outline: none; border-color: var(--color-primary); background: white; }
.wpcf7-form textarea { height: 150px; min-height: 150px; resize: vertical; }
.wpcf7-form .wpcf7-acceptance { font-size: var(--font-size-sm); color: var(--color-muted); }
.wpcf7-form .wpcf7-acceptance a { color: var(--color-primary); text-decoration: underline; }
.wpcf7-form input[type=submit] {
  background: var(--color-primary); color: white; border: 2px solid var(--color-primary);
  border-radius: var(--radius-full); padding: 0.75rem 2rem; font-weight: 600;
  font-size: var(--font-size-base); cursor: pointer; transition: all var(--transition); width: fit-content;
}
.wpcf7-form input[type=submit]:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-1px); }
.wpcf7-not-valid-tip { font-size: var(--font-size-sm); color: var(--color-error,#ef4444); margin-top: 0.25rem; }
.wpcf7-response-output { margin-top: var(--space-sm); padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: var(--font-size-sm); }
.wpcf7-mail-sent-ok { background: #dcfce7; color: var(--color-success-dark,#166534); border: 1px solid #86efac; }
.wpcf7-mail-sent-ng, .wpcf7-validation-errors { background: var(--color-error-light); color: var(--color-error-dark,#991b1b); border: 1px solid #fca5a5; }

/* ---- STATS ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); text-align: center; }
.stat-item { padding: var(--space-lg); }
.stat-item__number { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; color: var(--color-primary); line-height: 1; }
.stat-item__label { color: var(--color-muted); font-size: var(--font-size-sm); margin-top: 0.5rem; }

/* ---- VALUES ---- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.value-card { padding: var(--space-lg); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.value-card h3 { margin-block: var(--space-sm); }
.value-card p { color: var(--color-muted); font-size: var(--font-size-sm); margin: 0; }
.value-card__icon { color: var(--color-primary); }

/* ---- TEAM ---- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.team-card { text-align: center; }
.team-card__avatar { border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-sm); aspect-ratio: 1; }
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-weight: 700; margin-bottom: 0.25rem; }
.team-card__role { color: var(--color-muted); font-size: var(--font-size-sm); }


.footer-nav ul { display: flex; flex-direction: column; gap: 0.5rem; }


.footer-contact p { font-size: var(--font-size-sm); display: flex; align-items: flex-start; gap: 0.5em; margin-bottom: 0.5rem; }

.footer-contact svg { flex-shrink: 0; margin-top: 3px; }


/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {


  .about-layout { grid-template-columns: 1fr; }
  .about-visual { order: -1; }

  .contact-layout { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 480px) {

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  
}
/* ---- SECTION CTA ---- */
.section-cta { text-align: center; margin-top: var(--space-xl); }

/* ---- REAL CARD ---- */


/* ---- PAGE HERO COMPACT ---- */
.page-hero--compact { padding-block: var(--space-xl); }

/* ---- RESPONSIVE ADDITIONS ---- */
/* ---- CF7 ROW (email + tel 50/50) ---- */
.cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.cf7-row .wpcf7-form-control-wrap { display: block; width: 100%; }
.cf7-row input { width: 100%; }
@media (max-width: 540px) { .cf7-row { grid-template-columns: 1fr; } }

/* contact-item__icon fix merged above */

/* ---- DROPDOWN PODMENU ---- */


/* ---- FOOTER CONTACT ITEMS (z ikonkami) ---- */


.footer-contact__item span { line-height: 1.5; }


/* ---- BLOG LAYOUT ---- */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-2xl); align-items: start; }
.blog-posts { display: flex; flex-direction: column; gap: var(--space-xl); }

/* Blog card */
.blog-card { display: grid; grid-template-columns: 340px 1fr; gap: var(--space-lg); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card__img-wrap { display: block; overflow: hidden; }
.blog-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; min-height: 220px; }
.blog-card:hover .blog-card__img { transform: scale(1.04); }
.blog-card__img-placeholder { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); min-height: 220px; }
.blog-card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.blog-card__meta { display: flex; align-items: center; gap: var(--space-sm); }
.blog-card__cat { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-primary); background: var(--color-primary-light); padding: 0.2rem 0.7rem; border-radius: var(--radius-full); }
.blog-card__date { font-size: var(--font-size-sm); color: var(--color-muted); }
.blog-card__title { font-size: var(--font-size-xl); margin: 0; }
.blog-card__title a:hover { color: var(--color-primary); }
.blog-card__excerpt { color: var(--color-muted); font-size: var(--font-size-sm); margin: 0; flex: 1; }
.blog-card__link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--color-primary); font-size: var(--font-size-sm); margin-top: auto; }
.blog-card__link:hover { gap: 0.6em; }
.blog-pagination { margin-top: var(--space-lg); }

/* Single post */
.post-hero-meta { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.post-hero-date { font-size: var(--font-size-sm); opacity: .7; }
.post-hero-author { display: flex; align-items: center; gap: 0.5rem; margin-top: var(--space-sm); font-size: var(--font-size-sm); opacity: .8; }
.post-author-avatar { border-radius: 50%; }
.post-featured-img { margin-bottom: var(--space-lg); border-radius: var(--radius-lg); overflow: hidden; }
.post-featured-img__img { width: 100%; max-height: 480px; object-fit: cover; }
.post-body h2 { margin-block: var(--space-lg) var(--space-sm); font-size: var(--font-size-2xl); }
.post-body h3 { margin-block: var(--space-md) var(--space-sm); }
.post-body p { color: var(--color-text); margin-bottom: var(--space-sm); }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: var(--space-sm); }
.post-body li { margin-bottom: 0.4rem; color: var(--color-text); }
.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-border); }
.post-tag { font-size: var(--font-size-sm); background: var(--color-bg-alt); border: 1px solid var(--color-border); padding: 0.25rem 0.75rem; border-radius: var(--radius-full); color: var(--color-muted); transition: all var(--transition); }
.post-tag:hover { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary-light); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-border); }
.post-nav__prev, .post-nav__next { display: flex; flex-direction: column; gap: 0.25rem; }
.post-nav__next { text-align: right; }
.post-nav span { font-size: var(--font-size-sm); color: var(--color-muted); }
.post-nav a { font-weight: 600; color: var(--color-dark); font-size: var(--font-size-sm); }
.post-nav a:hover { color: var(--color-primary); }

/* Sidebar */
.blog-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: var(--space-md); }
.sidebar-widget { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-md); }
.sidebar-widget__title { font-size: var(--font-size-base); margin-bottom: var(--space-sm); padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-primary-light); color: var(--color-dark); }
.sidebar-cats { display: flex; flex-direction: column; gap: 0.35rem; }
.sidebar-cats a { display: flex; justify-content: space-between; align-items: center; font-size: var(--font-size-sm); color: var(--color-text); padding: 0.35rem 0; border-bottom: 1px solid var(--color-border); transition: color var(--transition); }
.sidebar-cats li:last-child a { border-bottom: none; }
.sidebar-cats a:hover { color: var(--color-primary); }
.sidebar-cats span { font-size: 0.75rem; background: var(--color-bg-alt); color: var(--color-muted); padding: 0.1rem 0.5rem; border-radius: var(--radius-full); }
.sidebar-recent { display: flex; flex-direction: column; gap: 0.5rem; }
.sidebar-recent li { display: flex; flex-direction: column; gap: 2px; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); }
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent a { font-size: var(--font-size-sm); font-weight: 500; color: var(--color-dark); line-height: 1.4; }
.sidebar-recent a:hover { color: var(--color-primary); }
.sidebar-recent span { font-size: 0.72rem; color: var(--color-muted); }
.sidebar-cta { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); border-radius: var(--radius-md); padding: var(--space-lg); color: white; text-align: center; }
.sidebar-cta h3 { color: white; font-size: var(--font-size-lg); margin-bottom: 0.5rem; }
.sidebar-cta p { opacity: .85; font-size: var(--font-size-sm); margin-bottom: var(--space-md); }

/* Responsive blog */
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
}
@media (max-width: 640px) {
    .blog-card { grid-template-columns: 1fr; }
    .blog-card__img { min-height: 200px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__next { text-align: left; }
}
/* ---- CATEGORY TEMPLATE ---- */
.page-hero__back {
    display: inline-flex; align-items: center; gap: 0.4em;
    color: rgba(255,255,255,.7); font-size: var(--font-size-sm);
    font-weight: 600; margin-bottom: var(--space-sm);
    transition: color var(--transition);
}
.page-hero__back:hover { color: white; }
.icon-flip { transform: rotate(180deg); display: inline-block; }

.sidebar-cats a.is-active {
    color: var(--color-primary);
    font-weight: 700;
    background: var(--color-primary-light);
    margin-inline: -0.5rem;
    padding-inline: 0.5rem;
    border-radius: var(--radius-sm);
}
/* ---- FOOTER SOCIAL SVG ICONS ---- */


/* ================================================================
   HERO SLIDER
================================================================ */
.hero-slider { overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.7s ease;
    pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-bg--gradient2 {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0e7490 100%);
}
.hero-bg--gradient3 {
    background: linear-gradient(135deg, var(--color-accent) 0%, #4f46e5 100%);
}

/* Slider content - tylko aktywny slajd widoczny */
.hero-slider__content { position: relative; z-index: 2; }


/* Dots */
.hero-slider__dots {
    position: absolute; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%); z-index: 10;
    display: flex; gap: 0.5rem;
}
.hero-slider__dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: none; cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    padding: 0;
}
.hero-slider__dot.active { background: white; transform: scale(1.25); }

/* Arrows */
.hero-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
    color: white; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--transition);
    backdrop-filter: blur(4px);
}
.hero-slider__arrow:hover { background: rgba(255,255,255,.3); }
.hero-slider__arrow--prev { left: 1.5rem; }
.hero-slider__arrow--next { right: 1.5rem; }

/* ================================================================
   KARUZELA
================================================================ */
.carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem; /* miejsce na dots */
}
.carousel__track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
    overflow: visible;
}
.carousel__slide {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    padding: 0 0.6rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto;
}

/* Przyciski prev/next */
.carousel__btn {
    position: absolute; top: 50%;
    transform: translateY(calc(-50% - 1.5rem)); /* korekta o dots */
    z-index: 10;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-white); border: 1px solid var(--color-border);
    color: var(--color-primary); display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: var(--shadow-md);
    transition: all var(--transition);
}
.carousel__btn:hover:not(:disabled) {
    background: var(--color-primary); color: white; border-color: var(--color-primary);
}
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

/* Dots karuzeli */
.carousel__dots {
    position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 0.4rem;
}
.carousel__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-border); border: none; cursor: pointer;
    padding: 0; transition: background var(--transition), transform var(--transition);
}
.carousel__dot.active {
    background: var(--color-primary); transform: scale(1.3);
}

/* ================================================================
   BLOG GRID (strona glowna - 3 karty pionowe)
================================================================ */
.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.blog-card-home {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex; flex-direction: column;
}
.blog-card-home:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-home__img-wrap { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-card-home__img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.blog-card-home:hover .blog-card-home__img { transform: scale(1.04); }
.blog-card-home__body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card-home__title { font-size: var(--font-size-lg); margin: 0; }
.blog-card-home__title a:hover { color: var(--color-primary); }
.blog-card-home__excerpt { color: var(--color-muted); font-size: var(--font-size-sm); margin: 0; flex: 1; }

/* ================================================================
   RESPONSIVE KARUZELA
================================================================ */
@media (max-width: 1024px) {
    .carousel__slide { flex: 0 0 50%; }
    .carousel__btn--prev { left: 4px; }
    .carousel__btn--next { right: 4px; }
}
@media (max-width: 640px) {
    .carousel__slide { flex: 0 0 100%; }
    .blog-grid-home { grid-template-columns: 1fr; }
    .carousel { padding-inline: 40px; }
    
    
}


/* ================================================================
   CAROUSEL FIX - przyciski widoczne (override overflow:hidden)
================================================================ */
.carousel {
    overflow: visible !important;
    padding-inline: var(--space-xl);
    padding-bottom: 3rem;
}

/* Wrapper na track - tylko on ma clip */
.carousel__track-wrap {
    overflow: hidden;
    width: 100%;
}
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

@media (max-width: 1024px) {
    .carousel { padding-inline: 48px; }
}
@media (max-width: 640px) {
    /* Mobile: bez strzalek - nawigacja swipe + kropki */
    .carousel { padding-inline: 0; }
    .carousel__btn,
    .hero-slider__arrow { display: none; }
}


/* ---- KARUZELA - rowna wysokosc bokow ---- */
.carousel__track {
    align-items: stretch; /* wszystkie slajdy tej samej wysokosci */
}

/* Karty wewnatrz slajdu - pelna wysokosc */
.carousel__slide .blog-card-home {
    height: 100%;
    display: flex;
    flex-direction: column;
}
/* Body kart wypelnia wolna przestrzen */
.carousel__slide .blog-card-home__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* Link "czytaj wiecej" zawsze na dole */
.carousel__slide .blog-card__link {
    margin-top: auto;
    padding-top: 0.5rem;
}


/* ================================================================
   CAROUSEL — jednakowa wysokość boxów
================================================================ */

/* Track rozciaga dzieci do tej samej wysokosci */
.carousel__track { align-items: stretch; }

/* Slajd - pelna wysokosc tracka, flex column */
.carousel__slide {
    display: flex;
    flex-direction: column;
    height: auto;
    align-self: stretch;
}

/* Karty wewnatrz slajdu - pelna wysokosc slajdu */
.carousel__slide .blog-card-home {
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* blog-card-home body rozciaga sie */
.carousel__slide .blog-card-home__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.carousel__slide .blog-card-home__excerpt {
    flex: 1;
}

.carousel__slide .blog-card__link {
    margin-top: auto;
    padding-top: 0.5rem;
}


/* =============================================================
   HEADER — ikony koszyka i konta
   ============================================================= */

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
    overflow: visible;
}

.header-icon-btn:hover { color: var(--color-primary); background: var(--color-bg-alt); }


/* =============================================================
   FOOTER — uklad sklepowy 4 kolumny
   ============================================================= */


/* Dane kontaktowe w kolumnie 1 */


/* Footer bottom */

/* Akceptujemy - footer bottom */

/* Logo - rozmiary */
.site-logo img {
    display: block !important;
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
}


/* =============================================================
   SHOP — breadcrumb
   ============================================================= */
.shop-breadcrumb {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: .6rem 0;
}
.breadcrumb {
    display: flex; flex-wrap: wrap; gap: .25rem .5rem;
    list-style: none; margin: 0; padding: 0;
    font-size: .8rem; color: var(--color-muted);
}
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; opacity: .4; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .current { color: var(--color-text); }

/* =============================================================
   SHOP — layout (sidebar + main)
   ============================================================= */
.shop-layout { padding: 2.5rem 0 4rem; }
.shop-inner {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .shop-inner { grid-template-columns: 1fr; }
}

/* =============================================================
   SHOP — sidebar
   ============================================================= */
.shop-sidebar {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1rem 1rem 1.25rem;
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
}
.sidebar-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: .75rem; padding-bottom: .75rem;
    border-bottom: 1px solid var(--color-border);
}
.sidebar-header h3 { margin: 0; font-size: .9375rem; }
.sidebar-close {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--color-muted); padding: .25rem;
}
@media (max-width: 900px) {
    .shop-sidebar {
        position: fixed; top: 0; left: 0; height: 100vh; width: min(320px, 90vw);
        z-index: 200; overflow-y: auto; border-radius: 0;
        transform: translateX(-110%);
        transition: transform .3s ease;
        box-shadow: var(--shadow-lg);
    }
    .shop-sidebar.is-open { transform: translateX(0); }
    .sidebar-close { display: flex; }
}

.filter-group { margin-bottom: 1rem; }
.filter-group__title {
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--color-muted);
    margin: 0 0 .35rem;
}
.filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.filter-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: .2rem .5rem; border-radius: .35rem;
    font-size: .8125rem; color: var(--color-text);
    text-decoration: none; transition: background .15s, color .15s;
}
.filter-link:hover, .filter-link.is-active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}
.filter-link.is-active { font-weight: 600; }
.filter-count {
    font-size: .75rem; color: var(--color-muted);
    background: var(--color-bg-alt); border-radius: 2rem;
    padding: .1rem .45rem; min-width: 1.4rem; text-align: center;
}

/* Checkboxy --  */
.filter-list--check { gap: 0; }
.filter-checkbox {
    display: flex; align-items: center; gap: .4rem;
    font-size: .8125rem; cursor: pointer;
    padding: .18rem .25rem; border-radius: .3rem;
    transition: background .15s;
}
.filter-checkbox:hover { background: var(--color-bg-alt); }
.filter-checkbox input[type=checkbox] {
    width: 1rem; height: 1rem; accent-color: var(--color-primary);
    cursor: pointer; flex-shrink: 0;
}
.filter-checkbox span:first-of-type { flex: 1; }


.filter-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.5rem; }


/* =============================================================
   SHOP — toolbar
   ============================================================= */
.shop-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.shop-toolbar__left { display: flex; align-items: center; gap: 1rem; }
.shop-count { font-size: .875rem; color: var(--color-muted); margin: 0; }
.btn-filters-toggle {
    display: none;
    align-items: center; gap: .4rem;
    padding: .45rem .9rem; border: 1px solid var(--color-border);
    border-radius: .5rem; background: var(--color-bg);
    font-size: .875rem; font-weight: 500; cursor: pointer;
    transition: border-color .2s;
}
.btn-filters-toggle:hover { border-color: var(--color-primary); }
.filters-count {
    background: var(--color-primary); color: var(--color-white);
    border-radius: 2rem; font-size: .7rem; font-weight: 700;
    padding: .05rem .4rem; min-width: 1.2rem; text-align: center;
}
@media (max-width: 900px) { .btn-filters-toggle { display: flex; } }

.shop-sort {
    border: 1px solid var(--color-border); border-radius: .5rem;
    padding: .45rem .9rem; font-size: .875rem;
    background: var(--color-bg); cursor: pointer;
}
.shop-sort:focus { outline: 2px solid var(--color-primary); }

/* Aktywne filtry tagi */

.filter-tag {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .6rem; background: var(--color-primary-light);
    color: var(--color-primary); border: none;
    border-radius: 2rem; font-size: .8rem; font-weight: 500;
    cursor: pointer; transition: background .15s;
}
.filter-tag:hover { background: var(--color-primary-light); }

/* =============================================================
   SHOP — grid produktow
   ============================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.products-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .products-grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } .products-grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* Karta produktu */
.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: all var(--transition);
}
.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.product-card__img-wrap {
    position: relative; display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden; background: var(--color-bg-alt);
}
.product-card__img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 1rem;
    transition: transform .3s ease;
}
.product-card:hover .product-card__img { transform: scale(1.04); }
.product-card__badge {
    position: absolute; top: .75rem; left: .75rem;
    padding: .2rem .6rem; border-radius: 2rem;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em;
}
.product-card__badge--sale { background: var(--color-error,#ef4444); color: var(--color-white); }


.product-card__body {
    padding: 1rem; flex: 1;
    display: flex; flex-direction: column; gap: .35rem;
}
.product-card__cat {
    font-size: .75rem; color: var(--color-muted);
    text-transform: uppercase; letter-spacing: .04em; margin: 0;
}
.product-card__cat a { color: inherit; text-decoration: none; }
.product-card__title {
    font-size: .95rem; font-weight: 600; margin: 0; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__title a { color: var(--color-dark); text-decoration: none; }
.product-card__title a:hover { color: var(--color-primary); }
.product-card__footer {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem; margin-top: auto; padding-top: .75rem;
    border-top: 1px solid var(--color-border);
}
.product-card__price { display: flex; flex-direction: column; gap: .1rem; }
.price-regular { font-size: .8rem; color: var(--color-muted); text-decoration: line-through; }
.price-current { font-size: 1rem; font-weight: 700; color: var(--color-dark); }
.price-current .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }

.btn-add-to-cart {
    width: 2.2rem; height: 2.2rem; border-radius: .5rem; flex-shrink: 0;
    background: var(--color-primary-light); color: var(--color-primary);
    border: none; display: flex; align-items: center; justify-content: center;
    cursor: pointer; text-decoration: none; transition: background .2s, color .2s;
}
.btn-add-to-cart:hover { background: var(--color-primary); color: var(--color-white); }
.btn-add-to-cart.is-loading { opacity: .6; pointer-events: none; }
.btn-add-to-cart.is-added { background: var(--color-success,#22c55e); color: var(--color-white); }

.products-empty {
    grid-column: 1 / -1; text-align: center; padding: 4rem 2rem;
    color: var(--color-muted);
}
.products-empty svg { opacity: .3; margin-bottom: 1rem; }
.products-empty h3 { color: var(--color-text); }

/* Paginacja sklepu */
.shop-pagination {
    margin-top: 2.5rem; display: flex; justify-content: center; gap: .25rem; flex-wrap: wrap;
}
.shop-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
    border: 1px solid var(--color-border); border-radius: .5rem;
    font-size: .9rem; color: var(--color-text); text-decoration: none;
    transition: background .2s, border-color .2s;
}
.shop-pagination .page-numbers:hover,
.shop-pagination .page-numbers.current {
    background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white);
}

/* =============================================================
   SINGLE PRODUCT
   ============================================================= */
.product-single { padding: 2.5rem 0 4rem; }
.product-single__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-bottom: 3rem;
}
@media (max-width: 800px) { .product-single__inner { grid-template-columns: 1fr; gap: 2rem; } }

/* Galeria */
.product-gallery { position: sticky; top: 5rem; }
.product-gallery__main {
    border: 1px solid var(--color-border);
    border-radius: 1rem; overflow: hidden;
    background: var(--color-bg-alt);
    aspect-ratio: 1 / 1; position: relative;
    margin-bottom: .75rem;
}
.product-gallery__fancybox { display: block; width: 100%; height: 100%; }
.product-gallery__img {
    width: 100%; height: 100%; object-fit: contain; padding: 2rem;
}
.product-badge {
    position: absolute; top: 1rem; left: 1rem;
    padding: .25rem .75rem; border-radius: 2rem;
    font-size: .75rem; font-weight: 700;
}
.product-badge--sale { background: var(--color-error,#ef4444); color: var(--color-white); }

.product-gallery__thumbs {
    display: flex; gap: .5rem; flex-wrap: wrap;
}
.product-gallery__thumb {
    width: 70px; height: 70px; padding: .35rem;
    border: 2px solid var(--color-border); border-radius: .5rem;
    overflow: hidden; cursor: pointer; background: var(--color-bg-alt);
    transition: border-color .2s;
}
.product-gallery__thumb.is-active { border-color: var(--color-primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Info o produkcie */
.product-info__cat {
    font-size: .8rem; color: var(--color-muted);
    text-transform: uppercase; letter-spacing: .05em; margin: 0 0 .5rem;
}
.product-info__cat a { color: inherit; text-decoration: none; }
.product-info__title { font-size: 1.75rem; margin: 0 0 .75rem; line-height: 1.25; }

.product-info__rating { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .875rem; }
.product-info__reviews { color: var(--color-muted); }

.product-info__price {
    display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap;
    margin-bottom: 1.25rem; padding: 1.25rem;
    background: var(--color-bg-alt); border-radius: .75rem;
}
.product-price__old { font-size: 1rem; color: var(--color-muted); text-decoration: line-through; }
.product-price__current { font-size: 1.75rem; font-weight: 800; color: var(--color-dark); }
.product-price__current--sale { color: var(--color-error,#ef4444); }
.product-price__badge {
    background: var(--color-error,#ef4444); color: var(--color-white);
    padding: .2rem .6rem; border-radius: 2rem; font-size: .8rem; font-weight: 700;
}
.product-price__tax { font-size: .75rem; color: var(--color-muted); width: 100%; margin-top: -.5rem; }
.product-price__current .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; color: inherit; }

.product-info__short-desc { font-size: .9375rem; color: var(--color-text); margin-bottom: 1.25rem; line-height: 1.65; }

.product-info__stock {
    display: flex; align-items: center; gap: .4rem;
    font-size: .875rem; font-weight: 600; margin-bottom: 1.25rem;
}
.product-info__stock.is-instock  { color: var(--color-success-dark,#16a34a); }
.product-info__stock.is-outofstock { color: var(--color-error,#ef4444); }

/* Ilosc + add to cart */
.product-info__actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.qty-control {
    display: flex; align-items: center;
    border: 1px solid var(--color-border); border-radius: .6rem; overflow: hidden;
}
.qty-btn {
    width: 2.5rem; height: 2.75rem;
    background: var(--color-bg-alt); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--color-text); transition: background .15s;
}
.qty-btn:hover { background: var(--color-border); }
.qty-input {
    width: 3.5rem; height: 2.75rem; text-align: center;
    border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
    font-size: 1rem; font-weight: 600;
}
.qty-input:focus { outline: none; }


.product-info__meta { font-size: .825rem; color: var(--color-muted); margin-bottom: 1rem; }
.product-info__meta p { margin: .2rem 0; }
.product-info__meta span { font-weight: 600; color: var(--color-text); }
.product-info__meta a { color: var(--color-primary); text-decoration: none; }


.product-attrs-list { display: grid; gap: 0; }
.product-attr {
    display: grid; grid-template-columns: 140px 1fr;
    padding: .5rem 0; border-bottom: 1px solid var(--color-border);
    font-size: .875rem;
}
.product-attr dt { font-weight: 600; color: var(--color-text); }
.product-attr dd { margin: 0; color: var(--color-muted); }
.product-attrs-list--full .product-attr { grid-template-columns: 200px 1fr; }

/* Tabs */
.product-tabs { margin-top: 3rem; }
.product-tabs__nav {
    display: flex; border-bottom: 2px solid var(--color-border);
    gap: 0; margin-bottom: 1.5rem;
}
.tab-btn {
    padding: .75rem 1.5rem; background: none; border: none; border-bottom: 2px solid transparent;
    margin-bottom: -2px; font-size: .9375rem; font-weight: 500;
    color: var(--color-muted); cursor: pointer; transition: color .2s, border-color .2s;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); font-weight: 600; }
.product-tab-panel { padding: .5rem 0 1rem; }
.product-description { line-height: 1.8; font-size: .9375rem; }
.product-description p { margin-bottom: 1rem; }

/* Podobne produkty */
.related-products { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--color-border); }
.related-products__title { font-size: 1.375rem; margin-bottom: 1.5rem; }
/* =============================================================
   SHOP — price slider
   ============================================================= */
.price-slider { padding: .25rem 0 .5rem; }
.price-slider__track-wrap {
    position: relative;
    height: 1.75rem;
    display: flex; align-items: center;
}
.price-slider__track {
    position: absolute; left: 0; right: 0;
    height: 4px; background: var(--color-border);
    border-radius: 2px;
}
.price-slider__range {
    position: absolute; height: 4px;
    background: var(--color-primary); border-radius: 2px;
}
.price-slider__input {
    position: absolute; width: 100%;
    -webkit-appearance: none; appearance: none;
    height: 4px; background: transparent;
    pointer-events: none; outline: none;
}
.price-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-primary); border: 2px solid var(--color-white);
    box-shadow: var(--shadow-sm);
    pointer-events: all; cursor: pointer;
    position: relative; z-index: 2;
}
.price-slider__input::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--color-primary); border: 2px solid var(--color-white);
    box-shadow: var(--shadow-sm);
    pointer-events: all; cursor: pointer;
}
.price-slider__input--min { z-index: 3; }
.price-slider__input--max { z-index: 4; }
.price-slider__values {
    display: flex; justify-content: space-between;
    margin-top: .5rem;
}
.price-slider__val {
    font-size: .8rem; font-weight: 600; color: var(--color-text);
}

/* Loading overlay na gridzie */
.products-wrapper { position: relative; min-height: 200px; }
.products-wrapper.is-loading .products-grid { opacity: .4; pointer-events: none; transition: opacity .2s; }
.products-wrapper.is-loading .products-loading { display: flex; }
.products-loading {
    display: none;
    position: absolute; inset: 0;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.5);
}
.products-loading__spinner {
    width: 2.5rem; height: 2.5rem;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); }
}


/* Header search form */


.header-search input {
    min-width: 200px;
}
/* Menu navigation */
.wp-block-navigation,
ul.wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: var(--space-lg) !important;
}

.wp-block-navigation li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-navigation a {
    text-decoration: none !important;
    color: inherit !important;
    display: block !important;
    padding: 0px 0px 0px 0 !important;
}


.wp-block-navigation a:hover {
    color: var(--color-primary) !important;
}
/* Header nav menu horizontal */
.header-nav ul,
.header-nav ul li {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav > ul {
    display: flex;
    gap: 18px;
}

.header-nav li {
    position: relative;
}

.header-nav a {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--font-size-base);
}

.header-nav a:hover {
    color: var(--color-primary);
}


/* Header Navigation - Menu */
.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}


.header-nav > ul > li {
    position: relative;
}


/* Submenu */
.header-nav ul ul {
    position: absolute;
    top: 100%;
    left: -10px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 6px;
    min-width: 210px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
    visibility: hidden;
    pointer-events: none;
}

.header-nav > ul > li:hover > ul {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
    display: flex;
}

.header-nav ul ul li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header-nav ul ul a {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    font-size: var(--font-size-sm);
}

.header-nav ul ul a:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* Chevron arrow */
.header-nav li:has(ul) > a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    margin-left: 8px;
    margin-bottom: 4px;
    transform: rotate(45deg);
    opacity: 0.5;
    transition: transform 0.2s ease;
}


/* Header layout */


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

.header-nav {
    flex: 1;
}

.header-icons {
    display: flex;
    gap: 3px;
    align-items: center;
    flex-shrink: 0;
}


/* Search overlay - fade in nad strona */
[x-cloak] { display: none !important; }

.header-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: var(--space-xl);
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.header-search-box {
    background: white;
    border-radius: var(--radius-md);
    padding: 8px 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.header-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--font-size-lg);
    padding: var(--space-xs) 0;
    color: var(--color-text);
    background: transparent;
}

.header-search-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.header-search-close:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}


/* Active filters bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-bottom: var(--space-xs);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
    font-size: .8rem;
    color: var(--color-muted);
}

.btn-reset-filters {
    font-size: var(--font-size-sm);
    padding: 4px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: white;
    cursor: pointer;
    color: var(--color-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-reset-filters:hover {
    border-color: var(--color-muted);
    color: var(--color-text);
}


/* Wyszukiwarka w sidebarze */
.search-filter {
    position: relative;
}

.search-filter__input {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.search-filter__input:focus {
    border-color: var(--color-primary);
}

.search-filter__icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
    pointer-events: none;
}
/* ===== GLOBALNE PRZYCISKI ===== */
/* duplikat :root usuniety */


/* Primary button */
.button.alt, .wc-block-cart__submit-button, .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
    background: var(--color-primary);
    color: var(--color-white);
}

.button.alt:hover,
.wc-block-cart__submit-button:hover,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover {
    background: var(--color-primary-hover);
    color: var(--color-white);
}

/* Secondary / outline button */
.btn-outline,
.button:not(.alt):not(.wc-block-components-button) {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}


/* ===== WOOCOMMERCE BLOCKS - GLOBALNE STYLE ===== */

/* Kontener blokow WC */
.wc-block-cart,
.wc-block-checkout,
.woocommerce-account {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 24px);
}

/* Tabela koszyka */
.wc-block-cart-items__header,
.wc-block-cart-item__product,
.wc-block-cart-item__prices {
    font-size: var(--font-size-base);
}

/* Inputy formularzy */
.wc-block-components-text-input input,
.wc-block-components-country-input input,
.wc-block-components-select select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus,
.wc-block-components-text-input input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sekcje checkout */
.wc-block-components-checkout-step {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.wc-block-components-checkout-step__heading {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

/* Order summary */
.wc-block-components-order-summary {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

/* Strona Moje konto */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: background 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 500;
}
/* Przycisk koszyka - wiekszy border radius */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-cart .wc-block-components-button {
    border-radius: var(--radius-full) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    font-size: var(--font-size-base) !important;
}
/* ===== INPUTY ZAMOWIENIA - tak jak CF7 ===== */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="password"],
.wc-block-checkout select,
.wc-block-checkout textarea,
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-country-input input,
.wc-block-components-state-input input,
.wc-block-components-textarea textarea {
    width: 100% !important;
    border: 1px solid var(--color-border, var(--color-border)) !important;
    border-radius: var(--radius-sm, 6px) !important;
    padding: 0.75rem 1rem !important;
    font-family: inherit !important;
    font-size: var(--font-size-base, 15px) !important;
    transition: border-color var(--transition, 0.2s) !important;
    background: var(--color-bg-alt, var(--color-bg-alt)) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

.wc-block-checkout input:focus,
.wc-block-checkout select:focus,
.wc-block-checkout textarea:focus,
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus {
    border-color: var(--color-primary, var(--color-primary)) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    background: white !important;
}

/* Labele */
.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-checkout .wc-block-components-checkout-step__description {
    font-size: var(--font-size-sm) !important;
    font-weight: 500 !important;
    color: var(--color-muted) !important;
    margin-bottom: 4px !important;
    display: block !important;
}

/* Sekcje kroki checkout */
.wc-block-components-checkout-step {
    background: white !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-lg) !important;
    margin-bottom: var(--space-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

.wc-block-components-checkout-step__heading {
    font-size: var(--font-size-lg) !important;
    font-weight: 700 !important;
    color: var(--color-dark) !important;
    margin-bottom: var(--space-md) !important;
    padding-bottom: var(--space-xs) !important;
    border-bottom: 1px solid var(--color-bg-alt) !important;
}

/* Podsumowanie zamowienia po prawej */
.wc-block-components-order-summary {
    background: var(--color-bg-alt) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-md) !important;
    padding: var(--space-md) !important;
}

.wc-block-components-order-summary-item {
    padding: var(--space-xs) 0 !important;
    border-bottom: 1px solid var(--color-bg-alt) !important;
}

/* Przycisk zamow */
.wc-block-components-checkout-place-order-button {
    width: 100% !important;
    border-radius: var(--radius-full) !important;
    padding: var(--space-sm) var(--space-lg) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 700 !important;
    background: var(--color-primary, var(--color-primary)) !important;
    color: white !important;
    margin-top: var(--space-sm) !important;
}

.wc-block-components-checkout-place-order-button:hover {
    background: var(--color-primary-hover, var(--color-primary-dark)) !important;
    transform: translateY(-1px) !important;
}
/* Autofill label pozycja */
.wc-block-components-form .wc-block-components-text-input input:-webkit-autofill + label,
.wc-block-components-form .wc-block-components-text-input.is-active label,
.wc-block-components-text-input input:-webkit-autofill + label,
.wc-block-components-text-input.is-active label {
    top: 0px;
}

/* Select label */
.wc-blocks-components-select .wc-blocks-components-select__label {
    font-size: var(--font-size-sm);
}

/* Order summary */
.wc-block-components-order-summary {
    border-radius: 0 !important;
    padding: var(--space-xs) !important;
}
/* ===== STRONA PODZIEKOWANIA ===== */
.wc-thankyou {
    max-width: 860px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.wc-thankyou__hero {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.wc-thankyou__icon {
    width: 80px;
    height: 80px;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-primary);
}

.wc-thankyou__hero h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--color-dark);
}

.wc-thankyou__hero p {
    color: var(--color-muted);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
}

/* Info grid */
.wc-thankyou__info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.wc-thankyou__info-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

.wc-thankyou__info-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.wc-thankyou__info-value {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-dark);
}

.wc-thankyou__status {
    color: var(--color-success-dark,#16a34a);
}

/* Tabela produktow */
.wc-thankyou__products {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
}

.wc-thankyou__products h2 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid var(--color-bg-alt);
}

.wc-thankyou__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.wc-thankyou__table th {
    text-align: left;
    padding: 8px 12px;
    color: var(--color-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--color-bg-alt);
}

.wc-thankyou__table td {
    padding: var(--space-xs);
    border-bottom: 1px solid var(--color-bg-alt);
    vertical-align: middle;
}

.wc-thankyou__product {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.wc-thankyou__product img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.wc-thankyou__table tfoot tr.total th,
.wc-thankyou__table tfoot tr.total td {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-dark);
    padding-top: var(--space-sm);
    border-top: 2px solid var(--color-border);
}

/* Adresy */
.wc-thankyou__addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.wc-thankyou__address {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.wc-thankyou__address h3 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.wc-thankyou__address address {
    font-style: normal;
    font-size: var(--font-size-sm);
    line-height: 1.6;
    color: var(--color-dark);
}

/* Przyciski */
.wc-thankyou__actions {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
}
/* ===== MOJE KONTO ===== */
.myaccount-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-lg);
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--container-pad, 24px);
    align-items: start;
}

/* Sidebar */
.myaccount-sidebar {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

/* Avatar */
.myaccount-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.myaccount-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    flex-shrink: 0;
}

.myaccount-user__info {
    overflow: hidden;
}

.myaccount-user__info strong {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.myaccount-user__info span {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav */
.myaccount-nav {
    padding: 8px;
}

.myaccount-nav__item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.myaccount-nav__item:hover {
    background: var(--color-bg-alt);
    color: var(--color-dark);
}

.myaccount-nav__item.is-active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.myaccount-nav__item:last-child {
    color: var(--color-error,#ef4444);
    margin-top: var(--space-xs);
    border-top: 1px solid var(--color-bg-alt);
    border-radius: 0 0 8px 8px;
}

.myaccount-nav__item:last-child:hover {
    background: var(--color-error-light);
}

/* Content */
.myaccount-content {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    min-height: 400px;
}

.myaccount-content h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-bg-alt);
}

/* Tabela zamowien */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.woocommerce-orders-table th {
    text-align: left;
    padding: var(--space-xs) var(--space-sm);
    color: var(--color-muted);
    font-weight: 500;
    border-bottom: 2px solid var(--color-bg-alt);
    background: var(--color-bg-alt);
}

.woocommerce-orders-table td {
    padding: var(--space-sm);
    border-bottom: 1px solid var(--color-bg-alt);
    vertical-align: middle;
}

.woocommerce-orders-table tr:hover td {
    background: var(--color-bg-alt);
}

/* Status badge */
.woocommerce-orders-table .woocommerce-order-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.woocommerce-orders-table .wc-order-status-pending { background: #fef3c7; color: var(--color-warning-dark,#d97706); }
.woocommerce-orders-table .wc-order-status-processing { background: var(--color-primary-light); color: var(--color-primary); }
.woocommerce-orders-table .wc-order-status-completed { background: #dcfce7; color: var(--color-success-dark,#16a34a); }
.woocommerce-orders-table .wc-order-status-cancelled { background: #fee2e2; color: var(--color-error,#ef4444); }

/* Responsive */
@media (max-width: 768px) {
    .myaccount-layout {
        grid-template-columns: 1fr;
    }
    .myaccount-sidebar {
        position: static;
    }
}
fieldset { border: 0px; margin-bottom: 10px; }

/* ===== GALERIA PRODUKTU ===== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    position: sticky;
    top: 20px;
}

.product-gallery__main {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.product-gallery__fancybox {
    display: block;
    width: 100%;
    height: 100%;
}

.product-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-sm);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.product-gallery__img:hover {
    transform: scale(1.03);
}

.product-gallery__thumbs {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.product-gallery__thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--color-border);
    background: var(--color-bg-alt);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s;
    flex-shrink: 0;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
    border-color: var(--color-primary);
}

/* ===== PRZYCISKI AKCJI - ROWNA WYSOKOSC ===== */
.product-info__actions {
    display: flex;
    gap: var(--space-xs);
    align-items: stretch;
    margin: var(--space-md) 0;
}

.product-info__actions .qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.product-info__actions .qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    background: var(--color-bg-alt);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.product-info__actions .qty-btn:hover {
    background: var(--color-border);
}

.product-info__actions .qty-input {
    width: 48px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: var(--font-size-base);
    font-weight: 600;
    background: white;
    outline: none;
    padding: 0;
}

.btn-add-main {
    flex: 1;
    min-width: 180px;
    height: 50px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-main:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-add-main:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Kup teraz - ta sama wysokosc i border co dodaj do koszyka */
.product-info__actions .btn-outline.btn-lg {
    height: 50px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: white;
    font-size: var(--font-size-base);
    font-weight: 600;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}

.product-info__actions .btn-outline.btn-lg:hover {
    background: var(--color-primary-light);
}

/* ===== ZAKLADKI PRODUKTU ===== */
.product-tabs {
    margin-top: var(--space-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.product-tabs__nav {
    display: flex;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.tab-btn {
    padding: var(--space-sm) var(--space-md);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--color-dark);
}

.tab-btn.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: white;
    font-weight: 600;
}

.product-tabs__content {
    background: white;
    padding: var(--space-lg);
}

.product-tab-panel {
    line-height: 1.7;
    color: var(--color-text);
}
/* Galeria - fix widocznosci */
.product-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.product-gallery__fancybox {
    display: block;
    width: 100%;
    height: 100%;
}

.product-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-md);
    cursor: zoom-in;
    transition: transform 0.3s ease;
    display: block;
}

.product-gallery__img:hover {
    transform: scale(1.04);
}

/* Ukryj nieaktywne zdjecia zanim Alpine sie zaladuje */
.product-gallery__fancybox[x-cloak] {
    display: none;
}
/* ===== WOOCOMMERCE NOTICES ===== */
.woocommerce-notices-wrapper {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0;
}

.woocommerce-notices-wrapper:empty {
    display: none;
}

/* Baza */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.wc-block-components-notice-banner {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-xs);
    list-style: none;
    border: 1px solid transparent;
}

/* Sukces - zielony */
.woocommerce-message,
.wc-block-components-notice-banner.is-success {
    background: var(--color-success-light);
    border-color: var(--color-success);
    color: var(--color-success-dark,#15803d);
}

.woocommerce-message::before,
.wc-block-components-notice-banner.is-success::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--color-success,#22c55e);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
}

/* Blad - czerwony */
.woocommerce-error,
.wc-block-components-notice-banner.is-error {
    background: var(--color-error-light);
    border-color: var(--color-error);
    color: var(--color-error,#ef4444);
}

.woocommerce-error li {
    list-style: none;
}

.woocommerce-error::before,
.wc-block-components-notice-banner.is-error::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--color-error,#ef4444);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    margin-top: 1px;
}

/* Info - niebieski */
.woocommerce-info,
.wc-block-components-notice-banner.is-info {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.woocommerce-info::before,
.wc-block-components-notice-banner.is-info::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: var(--color-info);
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='6.5' r='0.75' fill='white' stroke-width='1.5'/%3E%3Cline x1='12' y1='11' x2='12' y2='17.5'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Linki w notkach */
.woocommerce-message a,
.woocommerce-error a,
.woocommerce-info a {
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
    margin-left: auto;
    white-space: nowrap;
}

.woocommerce-message a:hover,
.woocommerce-error a:hover,
.woocommerce-info a:hover {
    opacity: 0.8;
}


/* ===== BLOG SINGLE HERO ===== */
.post-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.post-hero-date {
    display: inline-flex;
    align-items: center;
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.post-hero-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
}

.post-hero-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    vertical-align: middle;
}
/* ===== STRONA LOGOWANIA ===== */
.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
    padding: 0 10px;
    align-items: start;
}

.login-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.login-card__header {
    margin-bottom: var(--space-lg);
}

.login-card__icon {
    width: 56px;
    height: 56px;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.login-card__icon--register {
    background: var(--color-success-light);
    color: var(--color-success-dark,#16a34a);
}

.login-card__header h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
}

.login-card__header p {
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    margin: 0;
}

/* Pola formularza */
.login-form .form-field {
    margin-bottom: var(--space-sm);
}

.login-form label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 6px;
}

.login-form .required {
    color: var(--color-error,#ef4444);
}

.login-form .woocommerce-Input {
    width: 100%;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: var(--color-bg-alt);
}

.login-form .woocommerce-Input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: white;
}

/* Checkbox row */
.form-field--checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xs);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    cursor: pointer;
}

.checkbox-label input {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

.lost-password {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-decoration: none;
}

.lost-password:hover {
    text-decoration: underline;
}

/* Przyciski */


.btn-login {
    border-radius: var(--radius-full);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-base);
    font-weight: 600;
}


@media (max-width: 640px) {
    .login-layout {
        grid-template-columns: 1fr;
    }
}
/* Polityka prywatnosci WC - mniejsza czcionka */
.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p {
    font-size: var(--font-size-sm) !important;
    color: var(--color-muted);
    line-height: 1.6;
}

.woocommerce-privacy-policy-text a {
    color: var(--color-primary);
    text-decoration: underline;
}
/* Przyciski logowania - globalny border-radius */
.login-form .login-form .login-form .login-form .btn {
    width: 100%;
    margin-top: var(--space-xs);
}

.login-form .btn-primary {
    background: var(--color-primary);
    color: white;
    border: 1px solid var(--color-primary);
}

.login-form .btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.login-form .btn-outline {
    background: white;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.login-form .btn-outline:hover {
    background: var(--color-primary-light);
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
}
/* Licznik koszyka i kropka konta */
.header-cart__count {
    position: absolute;
    top: 0;
    right: -3px;
    min-width: 16px;
    height: 16px;
    background: var(--color-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0 4px;
    pointer-events: none;
    z-index: 10;
}

.account-dot {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: var(--color-success,#22c55e);
    border-radius: 50%;
    border: 2px solid white;
}
/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    flex-shrink: 0;
}

.hamburger:hover { background: var(--color-bg-alt); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    backdrop-filter: blur(2px);
}

.mobile-menu__inner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: white;
    display: flex;
    flex-direction: column;
    animation: slideInLeft 0.25s ease;
    overflow-y: auto;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-bg-alt);
    flex-shrink: 0;
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    color: var(--color-muted);
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.mobile-menu__close:hover { background: var(--color-bg-alt); }

/* Nav lista */
.mobile-menu__nav,
.mobile-menu__nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    display: block !important;
    flex-direction: unset !important;
    gap: unset !important;
}

.mobile-menu__nav li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid var(--color-bg-alt);
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-menu__nav > li > a {
    display: block !important;
    padding: var(--space-sm) var(--space-md) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 500 !important;
    color: var(--color-dark) !important;
    text-decoration: none !important;
    transition: background 0.15s !important;
}

.mobile-menu__nav > li > a:hover {
    background: var(--color-bg-alt) !important;
    color: var(--color-primary) !important;
}

/* Submenu */
.mobile-menu__nav ul li a {
    display: block !important;
    padding: 10px 20px 10px 36px !important;
    font-size: var(--font-size-sm) !important;
    color: var(--color-muted) !important;
    background: var(--color-bg-alt) !important;
}

.mobile-menu__nav ul li a:hover {
    color: var(--color-primary) !important;
    background: var(--color-primary-light) !important;
}

/* Footer */
.mobile-menu__footer {
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--color-bg-alt);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex-shrink: 0;
    margin-top: auto;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    color: var(--color-dark);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: background 0.15s;
}

.mobile-menu__link:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Responsywnosc */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
}
/* Submenu mobile - ukryte domyslnie */
.mobile-menu__nav ul {
    display: none !important;
}

.mobile-menu__nav li.is-open > ul {
    display: block !important;
}

/* Strzalka przy elementach z submenu */
.mobile-menu__nav li:has(ul) > a {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.mobile-menu__nav li:has(ul) > a::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-bottom: 2px;
}

.mobile-menu__nav li.is-open > a::after {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}
@media (max-width: 768px) {
    .product-gallery {
        position: static !important;
        top: unset !important;
    }
}
/* ===== STYLE GUIDE ===== */
.styleguide {
    padding: var(--space-xl) 0;
    background: var(--color-bg-alt);
    border-top: 4px solid var(--color-primary, var(--color-primary));
}


/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.badge--primary { background: var(--color-primary-light); color: var(--color-primary); }
.badge--success { background: var(--color-success-light); color: var(--color-success-dark,#16a34a); }
.badge--warning { background: var(--color-white)beb; color: var(--color-warning-dark,#d97706); }
.badge--error   { background: var(--color-error-light); color: var(--color-error,#ef4444); }

/* Powiadomienia */
.notice {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    border-left: 4px solid;
}

.notice--success { background: var(--color-success-light); border-color: var(--color-success,#22c55e); color: var(--color-success-dark,#15803d); }
.notice--info    { background: var(--color-primary-light); border-color: #3b82f6; color: var(--color-primary-dark); }
.notice--warning { background: var(--color-white)beb; border-color: var(--color-warning,#f59e0b); color: var(--color-warning-dark,#d97706); }
.notice--error   { background: var(--color-error-light); border-color: var(--color-error,#ef4444); color: var(--color-error,#ef4444); }

/* Karty style guide */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card__img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--color-border) 0%, var(--color-border) 100%);
}

.card__body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Ikony */
.icon-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--space-xs);
    border: 1px solid var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--color-muted);
    min-width: 64px;
    transition: background 0.2s;
}

.icon-preview:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.icon-preview svg {
    width: 24px;
    height: 24px;
}

/* btn-sm */

/* ---- FOOTER ---- */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Glowna czesc */
.footer-main {
    padding: var(--space-xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--space-xl);
}

/* Kolumna brand */
.footer-col--brand .footer-logo {
    margin-bottom: var(--space-sm);
}

.footer-col--brand .footer-logo img,
.footer-col--brand .footer-logo a img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    opacity: .6;
    font-family: var(--font-body, inherit);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 280px;
    margin-bottom: var(--space-md);
}

/* Kontakt */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.65rem;
    transition: color var(--transition);
}

.footer-contact__item:hover {
    color: var(--color-primary);
}

.footer-contact__item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    opacity: .8;
    color: var(--color-primary);
}

/* Social */
.footer-social {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    transition: all var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    border-color: var(--color-accent);
    color: var(--color-white);
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* Naglowek kolumny */
.footer-col__title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-dark);
    margin-bottom: var(--space-sm);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* Nawigacja w stopce */
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-nav li a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: block;
    transition: color var(--transition);
}

.footer-nav li a:hover {
    color: var(--color-primary);
}

/* Dolny pasek */
.footer-bar {
    border-top: 1px solid var(--color-border);
    padding: var(--space-sm) 0;
    background: var(--color-bg-alt);
}

.footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bar__copy {
    color: var(--color-muted);
    font-size: 0.8125rem;
    margin: 0;
}


/* Przycisk scroll-to-top */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #ffffff;
    fill: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.scroll-top svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
    stroke: #ffffff;
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 640px) {
    
    .footer-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
    
}

/* Page hero - biala czcionka */
.page-hero,
.page-hero h1,
.page-hero h2,
.page-hero h3,
.page-hero p,
.page-hero .post-hero-date,
.page-hero .post-hero-author,
.page-hero .section-label {
    color: #ffffff;
}

/* ===== STYLE GUIDE PAGE ===== */
.styleguide-page { background: var(--color-bg-alt); }

.sg-block {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.sg-block__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-primary);
    background: var(--color-bg-alt);
    padding: var(--space-xs) var(--space-md);
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.sg-block__inner {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.sg-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.sg-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-xs);
}

.sg-color { display: flex; flex-direction: column; gap: 6px; }
.sg-color__box { width: 100%; height: 60px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.sg-color__label { font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text); }
.sg-color__var { font-size: 10px; color: var(--color-muted); font-family: monospace; }

.sg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

.sg-box {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-muted);
    flex: 1;
}

.notice + .notice { margin-top: var(--space-xs); }

.sg-circle { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }


/* ===== PRODUCT CARD - kategoria + koszyk ===== */
.product-card__cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color var(--transition);
}
.product-card__cat:hover { color: var(--color-primary); }

/* Przycisk dodaj do koszyka - stan w koszyku */
.btn-add-to-cart.is-in-cart {
    background: var(--color-success, #22c55e);
    color: #ffffff;
    border-color: var(--color-success, #22c55e);
}
.btn-add-to-cart.is-in-cart:hover {
    background: var(--color-success-dark, #15803d);
    border-color: var(--color-success-dark, #15803d);
}


/* ===== GWIAZDKI OPINII (WC bez woocommerce.css) ===== */
/* Formularz oceny - p.stars generowane przez single-product.js */
.comment-form-rating { margin-bottom: var(--space-md, 16px); }
.comment-form-rating label { display: block; margin-bottom: 6px; font-weight: 600; }
p.stars { display: inline-block; margin: 0; line-height: 1; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a {
    display: inline-block;
    position: relative;
    width: 28px;
    height: 28px;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none;
    border: 0;
}
p.stars a::before {
    content: '\2606'; /* pusta gwiazdka */
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    text-indent: 0;
    font-size: 26px;
    line-height: 28px;
    text-align: center;
    color: var(--color-stars, #f5a623);
}
p.stars:hover a::before { content: '\2605'; }
p.stars a:hover ~ a::before { content: '\2606'; }
p.stars.selected a::before { content: '\2605'; }
p.stars.selected a.active ~ a::before { content: '\2606'; }

/* Wyswietlanie oceny - .star-rating (lista opinii + przy tytule) */
.star-rating {
    position: relative;
    display: inline-block;
    height: 1em;
    width: 5em;
    line-height: 1;
    font-size: 18px;
    overflow: hidden;
}
.star-rating::before {
    content: '\2605\2605\2605\2605\2605';
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 0;
    color: var(--color-border, #d1d5db);
}
.star-rating span {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    height: 1em;
    padding-top: 1.5em; /* schowaj tekst "oceniono na..." */
}
.star-rating span::before {
    content: '\2605\2605\2605\2605\2605';
    position: absolute;
    top: 0;
    left: 0;
    color: var(--color-stars, #f5a623);
}

/* ===== SEKCJA OPINII (WC Reviews) ===== */
.woocommerce-Reviews { max-width: 860px; }
.woocommerce-Reviews-title {
    font-size: var(--font-size-xl, 22px);
    margin: 0 0 24px;
}

/* Lista opinii */
.woocommerce-Reviews .commentlist {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}
.woocommerce-Reviews .commentlist li.review {
    background: var(--color-bg-alt, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    padding: 20px 24px;
    margin: 0 0 16px;
}
.woocommerce-Reviews .commentlist img.avatar { display: none; }
.woocommerce-Reviews .comment-text { margin: 0; }
.woocommerce-Reviews .comment-text .star-rating { margin-bottom: 8px; }
.woocommerce-Reviews p.meta {
    margin: 0 0 10px;
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-muted, #6b7280);
}
.woocommerce-Reviews p.meta .woocommerce-review__author {
    color: var(--color-dark, #111827);
    font-weight: 600;
}
.woocommerce-Reviews .description p { margin: 0; }
.woocommerce-Reviews .description p + p { margin-top: 8px; }

/* Formularz opinii */
#review_form_wrapper { margin-top: 8px; }
#review_form .comment-reply-title {
    display: block;
    font-size: var(--font-size-lg, 18px);
    font-weight: 700;
    color: var(--color-dark, #111827);
    margin-bottom: 16px;
}
#review_form .comment-notes {
    font-size: var(--font-size-sm, 14px);
    color: var(--color-text-muted, #6b7280);
}
#review_form p { margin: 0 0 16px; }
#review_form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}
#review_form textarea,
#review_form input[type="text"],
#review_form input[type="email"] {
    width: 100%;
    border: 1px solid var(--color-border, #d1d5db);
    border-radius: var(--radius-sm, 6px);
    padding: 10px 14px;
    font: inherit;
    background: var(--color-white, #fff);
}
#review_form textarea { min-height: 140px; resize: vertical; }
#review_form textarea:focus,
#review_form input:focus {
    outline: none;
    border-color: var(--color-primary, #1e40af);
}
#review_form .comment-form-author,
#review_form .comment-form-email { max-width: 420px; }
#review_form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--font-size-sm, 14px);
}
#review_form .comment-form-cookies-consent input { margin-top: 3px; }
#review_form .comment-form-cookies-consent label {
    display: inline;
    font-weight: 400;
    margin: 0;
}

/* ===== SZABLON TEKSTOWY ===== */
.container-text {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    padding-inline: var(--container-pad, 24px);
}


/* ===== MOJE KONTO - ADRESY ===== */
.woocommerce-Addresses .woocommerce-Address-title,
.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    margin: 0;
    font-size: var(--font-size-lg, 18px);
}
.woocommerce-Address-title a.edit {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid var(--color-primary, #1e40af);
    border-radius: var(--btn-radius, 9999px);
    color: var(--color-primary, #1e40af);
    font-size: var(--font-size-sm, 14px);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition, all .2s ease);
    white-space: nowrap;
}
.woocommerce-Address-title a.edit:hover {
    background: var(--color-primary, #1e40af);
    color: var(--color-white, #fff);
}
.woocommerce-Address address {
    font-style: normal;
    line-height: 1.7;
    color: var(--color-text, #374151);
}
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.woocommerce-Addresses .woocommerce-Address {
    background: var(--color-bg-alt, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    padding: 20px 24px;
}
@media (max-width: 768px) {
    .woocommerce-Addresses { grid-template-columns: 1fr; }
}

/* ===== MOJE KONTO - FORMULARZE ===== */
/* Zapisz adres - odstep od ostatniego pola */
.woocommerce-MyAccount-content button[name="save_address"] {
    margin-top: 20px;
}

/* Dane konta - zmiana hasla jako wydzielona sekcja */
.woocommerce-EditAccountForm fieldset {
    margin: 32px 0 24px;
    padding: 20px 24px 24px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    background: var(--color-bg-alt, #f8f9fa);
}
.woocommerce-EditAccountForm fieldset legend {
    font-weight: 700;
    font-size: var(--font-size-lg, 18px);
    color: var(--color-dark, #111827);
    padding: 0 10px;
    margin-left: -10px;
}
.woocommerce-EditAccountForm button[name="save_account_details"] {
    margin-top: 8px;
}

/* ===== MOJE KONTO - LINKI W TRESCI ===== */
.myaccount-content p a:not(.button):not(.edit):not(.woocommerce-button) {
    color: var(--color-accent, #1e40af);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: var(--transition, all .2s ease);
}
.myaccount-content p a:not(.button):not(.edit):not(.woocommerce-button):hover {
    opacity: 0.75;
}

/* ===== CHECKOUT - SELECT Z PLYWAJACA ETYKIETA (Kraj/region itp.) ===== */
.wc-block-components-select,
.wc-block-components-select__container,
.wc-block-components-combobox {
    position: relative;
}
.wc-block-components-select .wc-block-components-select__label, .wc-block-components-combobox .wc-block-components-combobox-label {
    position: absolute !important;
    top: 6px !important;
    left: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: var(--color-muted, #6b7280) !important;
    z-index: 2;
    pointer-events: none;
}
.wc-block-components-select select.wc-block-components-select__select,
.wc-block-components-select select,
.wc-block-components-combobox select,
.wc-block-components-combobox input {
    padding-top: 22px !important;
    padding-bottom: 6px !important;
}

/* ===== CHECKOUT - LINKI W ZGODZIE NA REGULAMIN ===== */
.wc-block-checkout__terms a,
.wp-block-woocommerce-checkout-terms-block a {
    color: var(--color-accent, #1e40af) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.wc-block-checkout__terms a:hover,
.wp-block-woocommerce-checkout-terms-block a:hover {
    opacity: 0.75;
}

/* ===== CHECKOUT - SELECT wc-blockS-components (wlasciwy prefiks!) ===== */
.wc-blocks-components-select,
.wc-blocks-components-select__container {
    position: relative;
}
.wc-blocks-components-select__label {
    position: absolute !important;
    top: 6px !important;
    left: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: var(--color-muted, #6b7280) !important;
    z-index: 2;
    pointer-events: none;
}
select.wc-blocks-components-select__select {
    width: 100% !important;
    padding: 22px 40px 6px 16px !important;
    border: 1px solid var(--color-border, #d1d5db) !important;
    border-radius: var(--radius-sm, 6px) !important;
    background: var(--color-bg-alt, #f8f9fa) !important;
    font-size: var(--font-size-base, 15px) !important;
    appearance: none;
    -webkit-appearance: none;
}
select.wc-blocks-components-select__select:focus {
    border-color: var(--color-primary, #1e40af) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    background: #fff !important;
}
.wc-blocks-components-select__expand {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    fill: var(--color-muted, #6b7280);
}
.blog-card-home__img-wrap .blog-card__img-placeholder { height: 100%; min-height: 0; }


/* ===== STRONA 404 ===== */
.error-404 { padding-block: 100px; }
.error-404__code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.error-404 h1 { margin: 0 0 12px; }
.error-404__desc { color: var(--color-muted, #6b7280); margin: 0 0 28px; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== PODSTRONA KARUZELE - SLIDER HERO ===== */
.karuzele-hero {
    position: relative;
    min-height: 440px;
    overflow: hidden;
}
.karuzele-hero .hero-slide {
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}
.karuzele-hero__bg--1 {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}
.karuzele-hero__title {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 12px;
}
.karuzele-hero__text {
    color: rgba(255,255,255,.85);
    font-size: var(--font-size-lg, 18px);
    margin: 0 0 24px;
}

/* ===== SLIDER WEJSCIOWY (wysoki, tekst do lewej) ===== */
.karuzele-hero--tall {
    min-height: min(85vh, 760px);
}
.karuzele-hero--tall .hero-slide {
    text-align: left;
}
.karuzele-hero--tall .hero-slider__content {
    max-width: var(--container-width, 1200px);
}
.karuzele-hero--tall .karuzele-hero__inner {
    max-width: 620px;
}
.karuzele-hero--tall .karuzele-hero__title {
    font-size: clamp(34px, 5vw, 56px);
}
.karuzele-hero--tall .karuzele-hero__text {
    font-size: clamp(16px, 2vw, 20px);
}

/* ===== MOBILE: checkout / koszyk / moje konto bez podwojnych paddingow ===== */
/* Bloki WC maja wlasny wewnetrzny padding na mobile - zewnetrzny zerujemy */
@media (max-width: 768px) {
    .wc-block-cart,
    .wc-block-checkout,
    .woocommerce-account,
    .myaccount-layout,
    .woocommerce-notices-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ===== MOJE KONTO - SZCZEGOLY ZAMOWIENIA ===== */
/* Pasek statusu - WC uzywa <mark>, zdejmujemy zolte tlo przegladarki */
.myaccount-content > p:first-child,
.woocommerce-MyAccount-content > p:first-child {
    background: var(--color-bg-alt, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    padding: 14px 20px;
    line-height: 1.7;
}
.myaccount-content mark,
.woocommerce-MyAccount-content mark {
    background: transparent;
    color: var(--color-primary, #1e40af);
    font-weight: 700;
}

/* Tabela zamowienia */
.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 32px;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
}
.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    vertical-align: top;
}
.woocommerce-table--order-details thead th {
    background: var(--color-bg-alt, #f8f9fa);
    font-weight: 700;
    color: var(--color-dark, #111827);
}
.woocommerce-table--order-details th:last-child,
.woocommerce-table--order-details td:last-child {
    text-align: right;
    white-space: nowrap;
}
.woocommerce-table--order-details tbody td.product-name a {
    color: var(--color-dark, #111827);
    font-weight: 600;
    text-decoration: none;
}
.woocommerce-table--order-details tbody td.product-name a:hover {
    color: var(--color-primary, #1e40af);
}
.woocommerce-table--order-details tfoot th {
    font-weight: 600;
    color: var(--color-muted, #6b7280);
    background: none;
}
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td {
    border-bottom: none;
}
.woocommerce-table--order-details tfoot tr:nth-last-child(2) td,
.woocommerce-table--order-details tfoot tr:nth-last-child(2) th,
.woocommerce-table--order-details tfoot tr:last-child td {
    font-size: var(--font-size-lg, 17px);
}

/* Naglowki sekcji */
.woocommerce-order-details__title,
.woocommerce-column__title {
    font-size: var(--font-size-xl, 22px);
    margin: 0 0 12px;
}

/* Adresy klienta - dwie karty obok siebie */
.woocommerce-customer-details .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.woocommerce-customer-details .woocommerce-column {
    background: var(--color-bg-alt, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    padding: 18px 22px;
}
.woocommerce-customer-details .woocommerce-column__title {
    font-size: var(--font-size-lg, 18px);
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}
.woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.8;
    color: var(--color-text, #374151);
}
.woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-customer-details .woocommerce-customer-details--email {
    margin: 6px 0 0;
}
@media (max-width: 768px) {
    .woocommerce-customer-details .woocommerce-columns--addresses {
        grid-template-columns: 1fr;
    }
}

/* ===== MOJE KONTO - POBRANE PLIKI ===== */
.woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
}
.woocommerce-table--order-downloads th,
.woocommerce-table--order-downloads td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
    vertical-align: middle;
}
.woocommerce-table--order-downloads thead th {
    background: var(--color-bg-alt, #f8f9fa);
    font-weight: 700;
    color: var(--color-dark, #111827);
}
.woocommerce-table--order-downloads tbody tr:last-child td {
    border-bottom: none;
}
.woocommerce-table--order-downloads td.download-product a {
    color: var(--color-dark, #111827);
    font-weight: 600;
    text-decoration: none;
}
.woocommerce-table--order-downloads td.download-product a:hover {
    color: var(--color-primary, #1e40af);
}
.woocommerce-table--order-downloads tbody td.download-remaining,
.woocommerce-table--order-downloads tbody td.download-expires {
    color: var(--color-muted, #6b7280);
}
.woocommerce-table--order-downloads th.download-file,
.woocommerce-table--order-downloads td.download-file {
    text-align: right;
    white-space: nowrap;
}

/* ===== MOBILE: MOJE KONTO - paddingi i przewijane tabele ===== */
@media (max-width: 768px) {
    /* mniejszy padding karty tresci */
    .myaccount-content {
        padding: var(--space-sm, 12px);
    }
    /* tabele szersze niz ekran - poziomy scroll zamiast wystawania z kontenera */
    .myaccount-content .woocommerce-table--order-downloads,
    .myaccount-content .woocommerce-table--order-details,
    .myaccount-content .woocommerce-orders-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .myaccount-content .woocommerce-table--order-downloads th,
    .myaccount-content .woocommerce-table--order-downloads td,
    .myaccount-content .woocommerce-table--order-details th,
    .myaccount-content .woocommerce-table--order-details td,
    .myaccount-content .woocommerce-orders-table th,
    .myaccount-content .woocommerce-orders-table td {
        padding: 10px 12px;
        white-space: nowrap;
    }
    /* nazwa produktu moze sie lamac, reszta zostaje w nowrap */
    .myaccount-content td.download-product,
    .myaccount-content td.product-name {
        white-space: normal;
        min-width: 140px;
    }
}

/* ===== MOBILE WASKI: POBRANIA = 2 KOLUMNY (Produkt + Pobierz) ===== */
@media (max-width: 640px) {
    .woocommerce-table--order-downloads th.download-remaining,
    .woocommerce-table--order-downloads td.download-remaining,
    .woocommerce-table--order-downloads th.download-expires,
    .woocommerce-table--order-downloads td.download-expires {
        display: none;
    }
    /* przy 2 kolumnach scroll zbedny - tabela wraca do normalnego plywu */
    .myaccount-content .woocommerce-table--order-downloads {
        display: table;
        overflow-x: visible;
    }
    .myaccount-content .woocommerce-table--order-downloads td.download-file .woocommerce-MyAccount-downloads-file {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ===== PUSTY KOSZYK ===== */
.wc-block-cart__empty-cart__title {
    margin-top: 24px;
    font-size: clamp(26px, 3vw, 34px);
    padding-bottom: 12px;
}
.wp-block-woocommerce-empty-cart-block {
    padding-bottom: 48px;
}
.wp-block-woocommerce-empty-cart-block .wp-block-buttons {
    margin-top: 20px;
}
.empty-cart__shop-btn .wp-block-button__link {
    background: var(--color-primary, #1e40af);
    color: var(--color-white, #fff);
    padding: var(--btn-padding, 12px 28px);
    border-radius: var(--btn-radius, 9999px);
    font-size: var(--btn-font-size, 15px);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition, all .2s ease);
}
.empty-cart__shop-btn .wp-block-button__link:hover {
    background: var(--color-primary-hover, #1e3a8a);
}

/* Pusty koszyk - mniejsza ikona w kolorze akcentu (maska = kolor z opcji) */
.with-empty-cart-icon::before {
    content: '' !important;
    display: block !important;
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 10px !important;
    background: var(--color-accent, #1e40af) !important;
    background-image: none !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 15.5c1-1.2 2.1-1.8 3.5-1.8s2.5.6 3.5 1.8'/%3E%3Ccircle cx='9' cy='10' r='0.7' fill='%23000' stroke='none'/%3E%3Ccircle cx='15' cy='10' r='0.7' fill='%23000' stroke='none'/%3E%3C/svg%3E") !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 15.5c1-1.2 2.1-1.8 3.5-1.8s2.5.6 3.5 1.8'/%3E%3Ccircle cx='9' cy='10' r='0.7' fill='%23000' stroke='none'/%3E%3Ccircle cx='15' cy='10' r='0.7' fill='%23000' stroke='none'/%3E%3C/svg%3E") !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
}


.showcase-desc { color: var(--color-muted, #6b7280); margin-bottom: 24px; }

/* Sticky header - wysokość z opcji */
.header.is-sticky { height: var(--sticky-header-height, 72px); }

/* ===== STYLE GUIDE - naglowki grup ===== */
.showcase-group {
    padding: 72px var(--container-pad, 24px) 40px;
    margin-top: 72px;
    border-top: 1px solid var(--color-border, #e5e7eb);
    background: var(--color-bg, #fff);
    text-align: center;
}
.showcase-group:first-child { margin-top: 0; }
.showcase-group::before {
    content: 'Komponent';
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent, #6366f1);
    background: color-mix(in srgb, var(--color-accent, #6366f1) 10%, transparent);
    padding: 6px 14px;
    border-radius: var(--radius-full, 9999px);
    margin-bottom: 14px;
}
.showcase-group h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 3vw, 32px);
}
.showcase-group p {
    margin: 0 auto;
    max-width: 640px;
    color: var(--color-muted, #6b7280);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 14px;
    background: var(--color-bg-alt, #f8f9fa);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-md, 10px);
    padding: 10px 18px;
    display: inline-block;
}


/* Karuzele: miejsce na cien/border kart wewnatrz overflow:hidden + naglowki showcase */
.carousel__track-wrap { padding: 8px 0 24px; }
h3.showcase-carousel-title { text-align: center !important; margin: 0 0 8px; }

/* Menu mobilne - submenu (wciecie + odstepy) */
.mobile-menu__nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 6px 14px;
}
.mobile-menu__nav .sub-menu li {
    border-bottom: none;
}
.mobile-menu__nav .sub-menu a {
    display: block;
    padding: 9px 0;
    font-size: var(--font-size-sm);
    opacity: .85;
}

/* ---- TYPOGRAFIA TRESCI (szablon Tekstowy: .container-text) ---- */
.container-text h2,
.post-body h2 { margin: 0.6em 0 0.4em; }
.container-text h3,
.post-body h3 { margin: 0.5em 0 0.3em; }
.container-text > h2:first-child,
.container-text > h3:first-child,
.post-body > h2:first-child,
.post-body > h3:first-child { margin-top: 0; }
.container-text p,
.post-body p { margin: 0 0 1em; }
.container-text ul,
.post-body ul { list-style: disc; }
.container-text ol,
.post-body ol { list-style: decimal; }
.container-text ul,
.container-text ol,
.post-body ul,
.post-body ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.container-text li,
.post-body li { margin-bottom: 0.4em; }
.container-text blockquote,
.post-body blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--color-border); }
.container-text blockquote p,
.post-body blockquote p { margin: 0; }

/* ---- WARIANTY PRODUKTU ---- */
.product-variants {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--space-md);
}
.product-variants__row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.product-variants__label {
    min-width: 90px;
    font-weight: 600;
    font-size: var(--font-size-sm);
}
.product-variants__select {
    flex: 1;
    max-width: 280px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    font-size: var(--font-size-sm);
    cursor: pointer;
}
.product-variants__select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.product-variants__hint {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-muted);
}
.btn-add-main:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.btn.is-disabled { opacity: .5; pointer-events: none; }


/* =============================================================
   MSTCG - IDENTYFIKACJA WIZUALNA
   Nadpisania na koncu pliku - wygrywaja kaskada.
   Zrodlo: brand board mstcg.pl (sekcje 01-06)
   ============================================================= */

:root {
    /* zero zaokraglen w calym systemie */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-full: 0;

    /* powierzchnie ciemne */
    --ms-ink: #0E0716;
    --ms-surface-dk: #1C0F2B;
    --ms-line: #3B2159;

    /* tekst na ciemnym */
    --ms-on-dark: #F6EFFF;
    --ms-on-dark-soft: #C8B5E8;
    --ms-on-dark-mute: #8E7BB0;

    /* tekst na kolorach funkcyjnych */
    --ms-accent-ink: #0d2a1e;
    --ms-preorder-ink: #3b2200;

    --ms-tint: #F3E8FF;
    --ms-tint-strong: #DDC7FB;
}

body {
    font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------
   HEADER - ciemny
   ------------------------------------------------------------- */
.site-header {
    background: var(--ms-ink);
    border-bottom: 2px solid var(--ms-ink);
    box-shadow: none;
}
.site-header.is-sticky {
    box-shadow: 0 2px 0 rgba(79, 255, 176, 0.35);
}
.site-header .site-logo,
.site-header .logo-text {
    color: var(--ms-on-dark);
}

/* -------------------------------------------------------------
   MENU GLOWNE - tylko w .header-nav
   ------------------------------------------------------------- */
.header-nav a {
    color: var(--ms-on-dark-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.header-nav a:hover {
    color: #ffffff;
    border-bottom-color: var(--color-accent);
}
.header-nav .current-menu-item > a,
.header-nav .current-menu-parent > a,
.header-nav .current-menu-ancestor > a {
    color: #ffffff;
    border-bottom-color: var(--color-accent);
}
.header-nav > ul {
    gap: 22px;
}

/* Submenu na ciemnym */
.header-nav ul ul {
    background: var(--ms-surface-dk);
    border: 2px solid var(--ms-line);
    border-radius: 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    padding: 4px;
    left: -12px;
}
.header-nav ul ul a {
    color: var(--ms-on-dark-soft);
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
    padding: 9px 12px;
    border-radius: 0;
}
.header-nav ul ul a:hover {
    background: var(--ms-ink);
    color: var(--color-accent);
}

/* -------------------------------------------------------------
   IKONY HEADERA
   ------------------------------------------------------------- */
.header-icons {
    gap: 6px;
}
.header-icon-btn {
    color: var(--ms-on-dark-soft);
    transition: color 0.2s ease;
}
.header-icon-btn:hover {
    color: var(--color-accent);
}
.header-cart__count {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
    border-radius: 0;
    font-weight: 700;
    font-size: 11px;
}
.account-dot {
    background: var(--color-accent);
    border-radius: 0;
}
.hamburger {
    color: var(--ms-on-dark);
}
.hamburger span {
    background: currentColor;
}

/* -------------------------------------------------------------
   MENU MOBILNE
   ------------------------------------------------------------- */
.mobile-menu__inner {
    background: var(--ms-ink);
    border-top: 2px solid var(--ms-line);
}
/* Overlay za panelem menu - polprzezroczyste przyciemnienie strony */
.mobile-menu {
    background: rgba(14, 7, 22, 0.6) !important;
}
.mobile-menu__header {
    border-bottom: 2px solid var(--ms-line);
}
.mobile-menu__close {
    color: var(--ms-on-dark);
}
.mobile-menu__nav a {
    color: var(--ms-on-dark-soft);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.mobile-menu__nav a:hover {
    color: var(--color-accent);
}
.mobile-menu__nav ul ul a {
    text-transform: none;
    font-weight: 400;
    color: var(--ms-on-dark-mute);
}
.mobile-menu__footer {
    border-top: 2px solid var(--ms-line);
}
.mobile-menu__link {
    color: var(--ms-on-dark-soft);
}
.mobile-menu__link:hover {
    color: var(--color-accent);
}

/* -------------------------------------------------------------
   WYSZUKIWARKA
   ------------------------------------------------------------- */
.header-search-box {
    border-radius: 0;
}
.header-search-form {
    border: 2px solid var(--color-text);
    border-radius: 0;
}
.header-search-input {
    font-family: var(--font-body);
    font-size: 14px;
}
.header-search-input:focus {
    outline: none;
}

/* -------------------------------------------------------------
   STOPKA - ciemna
   ------------------------------------------------------------- */
.site-footer {
    background: var(--ms-ink);
    color: var(--ms-on-dark-mute);
}
.footer-main {
    background: var(--ms-ink);
    border-top: 2px solid var(--ms-line);
}
.footer-col__title {
    color: var(--ms-on-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer-tagline {
    color: var(--ms-on-dark-mute);
    font-size: 13px;
    line-height: 1.6;
    max-width: 280px;
}
.footer-nav a {
    color: var(--ms-on-dark-mute);
    font-size: 13px;
    transition: color 0.2s ease;
}
.footer-nav a:hover {
    color: var(--color-accent);
}
.footer-contact__item {
    color: var(--ms-on-dark-mute);
    font-size: 13px;
}
.footer-contact__item:hover {
    color: var(--color-accent);
}
.footer-contact__item svg {
    color: var(--color-primary-light, #A855F7);
}
.footer-social a {
    color: var(--ms-on-dark-mute);
    border: 1px solid var(--ms-line);
    border-radius: 0;
}
.footer-social a:hover {
    color: var(--ms-accent-ink);
    background: var(--color-accent);
    border-color: var(--color-accent);
}
.footer-bar {
    background: var(--ms-ink);
    border-top: 1px solid var(--ms-line);
}
.footer-bar__copy {
    color: var(--ms-on-dark-mute);
    font-size: 12px;
}
.scroll-top {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
    border-radius: 0;
    border: none;
}
.scroll-top:hover {
    background: #33E89A;
}

/* -------------------------------------------------------------
   PRZYCISKI - wysokosc 44, etykiety do lewej, wersaliki
   ------------------------------------------------------------- */
.btn,
.button,
.wp-element-button,
button[type="submit"] {
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary,
.button.alt,
.wc-block-cart__submit-button {
    background: var(--color-primary);
    color: #ffffff;
    border: 2px solid var(--color-primary);
}
.btn-primary:hover,
.button.alt:hover,
.wc-block-cart__submit-button:hover {
    background: #5B21B6;
    border-color: #5B21B6;
    color: #ffffff;
}
.btn-primary:active,
.button.alt:active {
    background: #4C1D95;
    border-color: #4C1D95;
}
.btn-outline,
.button:not(.alt):not(.wc-block-components-button) {
    background: transparent;
    color: #4C1D95;
    border: 2px solid #4C1D95;
}
.btn-outline:hover,
.button:not(.alt):not(.wc-block-components-button):hover {
    background: var(--ms-tint);
    color: #4C1D95;
}
.btn-accent {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
    border: 2px solid var(--color-accent);
}
.btn-accent:hover {
    background: #33E89A;
    border-color: #33E89A;
    color: var(--ms-accent-ink);
}
.btn:disabled,
.button:disabled,
.btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Na ciemnym tle glowna akcja to mieta */
.site-footer .btn-primary,
.on-dark .btn-primary {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
    border-color: var(--color-accent);
}
.site-footer .btn-primary:hover,
.on-dark .btn-primary:hover {
    background: #33E89A;
    border-color: #33E89A;
}

/* Focus wg identyfikacji: 2px mieta z odstepem 2px */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* -------------------------------------------------------------
   KARTA PRODUKTU
   ------------------------------------------------------------- */
.product-card {
    border: 2px solid var(--color-text);
    border-radius: 0;
    background: var(--color-bg);
}
.product-card:hover {
    transform: none;
    box-shadow: 6px 6px 0 var(--ms-tint-strong);
}
.product-card__img-wrap {
    aspect-ratio: 3 / 4;
    background: var(--ms-tint-strong);
    border-bottom: 2px solid var(--color-text);
}
.product-card:hover .product-card__img {
    transform: none;
}
.product-card__badge {
    border-radius: 0;
    top: 10px;
    right: 10px;
    left: auto;
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    letter-spacing: 0.08em;
}
.product-card__badge--sale {
    background: var(--color-primary);
    color: #ffffff;
}
.product-card__badge--instock {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
}
.product-card__badge--preorder {
    background: #FFB454;
    color: var(--ms-preorder-ink);
}
.product-card__badge--outofstock {
    background: #FF4D6D;
    color: #ffffff;
}
.product-card__badge--single {
    background: transparent;
    color: #4C1D95;
    border: 1px solid var(--color-primary);
}
.product-card__cat,
.product-card__cat a {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
}
.product-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}
.product-card__footer {
    border-top: 2px solid var(--color-border);
}
.product-card__price .price-sale,
.product-card__price ins {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}
.price-regular,
.product-card__price del {
    color: var(--color-muted);
    text-decoration: line-through;
}

/* -------------------------------------------------------------
   SKLEP - sidebar, filtry, breadcrumb
   ------------------------------------------------------------- */
.shop-sidebar {
    border: 2px solid var(--color-text);
    border-radius: 0;
}
.shop-breadcrumb {
    background: var(--color-bg-alt);
    border-bottom: 2px solid var(--color-border);
}
.sidebar-header {
    border-bottom: 2px solid var(--color-text);
}
.sidebar-header h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* -------------------------------------------------------------
   FORMULARZE - 44px, obramowanie 2px
   ------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea,
.wc-block-components-text-input input,
.wc-block-components-select select {
    border: 2px solid var(--color-text);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 14px;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus,
.wc-block-components-text-input input:focus {
    border-color: var(--color-primary);
    box-shadow: none;
}

/* -------------------------------------------------------------
   ETYKIETY / NAGLOWKI SEKCJI
   ------------------------------------------------------------- */
.section-label,
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
}
h1, h2, h3, h4, h5, h6 {
    text-transform: none;
}
h1 {
    letter-spacing: -0.02em;
}
h2, h3 {
    letter-spacing: -0.01em;
}

/* Ceny - tabularne cyfry */
.price,
.woocommerce-Price-amount,
.product-card__price {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

/* Stos znacznikow na karcie produktu */
.product-card__badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 2;
}
.product-card__badges .product-card__badge {
    position: static;
    top: auto;
    right: auto;
}


/* =============================================================
   MSTCG - KOMPONENTY SHOWCASE
   Gradienty fiolet->mieta zastapione plaskim inkiem,
   mieta wylacznie jako akcent (nigdy duza plaszczyzna).
   ============================================================= */

/* ---- HERO STRONY GLOWNEJ ---- */
.hero {
    min-height: clamp(440px, 68vh, 660px);
    border-bottom: 2px solid var(--color-text);
}
.hero-bg--gradient,
.hero-bg--gradient2,
.hero-bg--gradient3 {
    background: var(--ms-ink);
}
.hero-bg--gradient::after,
.hero-bg--gradient2::after,
.hero-bg--gradient3::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 78% 18%, rgba(109, 40, 217, 0.55) 0%, rgba(14, 7, 22, 0) 70%),
        radial-gradient(45% 60% at 12% 92%, rgba(79, 255, 176, 0.10) 0%, rgba(14, 7, 22, 0) 70%);
    pointer-events: none;
}
.hero-heading {
    color: var(--ms-on-dark);
    letter-spacing: -0.02em;
}
.hero-sub {
    color: var(--ms-on-dark-soft);
    opacity: 1;
    max-width: 56ch;
}
.hero-content {
    position: relative;
    z-index: 1;
}

/* ---- HERO PODSTRONY ---- */
.page-hero {
    background: var(--ms-ink);
    border-bottom: 2px solid var(--color-text);
    text-align: left;
}
.page-hero h1 {
    color: var(--ms-on-dark);
    letter-spacing: -0.02em;
}
.page-hero p {
    color: var(--ms-on-dark-soft);
    max-width: 62ch;
}
.page-hero .section-label {
    background: transparent;
    color: var(--color-accent);
    border: none;
    padding-left: 0;
}

/* ---- SEKCJA CTA ---- */
.cta-section {
    background: var(--ms-ink);
    border-block: 2px solid var(--color-text);
}
.cta-box {
    text-align: left;
    margin-inline: 0;
    max-width: 62ch;
}
.cta-box h2 {
    color: var(--ms-on-dark);
}
.cta-box p {
    color: var(--ms-on-dark-soft);
    opacity: 1;
}
.cta-box .btn-white,
.cta-section .btn-white {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
    border: 2px solid var(--color-accent);
}
.cta-box .btn-white:hover,
.cta-section .btn-white:hover {
    background: #33E89A;
    border-color: #33E89A;
    color: var(--ms-accent-ink);
}

/* Warianty przyciskow na ciemnym tle */
.btn-outline--light {
    background: transparent;
    color: var(--ms-on-dark);
    border: 2px solid var(--color-secondary);
}
.btn-outline--light:hover {
    background: #2A1140;
    color: var(--ms-on-dark);
    border-color: var(--color-secondary);
}

/* ---- ETYKIETY SEKCJI ---- */
.section-label {
    border-radius: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: 11px;
    letter-spacing: 0.16em;
    padding: 0;
}
.section-header {
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 12px;
    margin-bottom: 28px;
}
.section-header h2 {
    letter-spacing: -0.01em;
}

/* ---- BADGE ---- */
.badge {
    border-radius: 0;
    height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.badge--primary { background: var(--color-primary); color: #ffffff; }
.badge--success { background: var(--color-accent); color: var(--ms-accent-ink); }
.badge--warning { background: #FFB454; color: var(--ms-preorder-ink); }
.badge--error   { background: #FF4D6D; color: #ffffff; }

/* ---- POWIADOMIENIA ---- */
.notice {
    border-radius: 0;
    border-left-width: 4px;
}

/* ---- KARUZELE ---- */
.carousel__btn {
    border-radius: 0;
    border: 2px solid var(--color-text);
    background: var(--color-bg);
    color: var(--color-text);
}
.carousel__btn:hover:not(:disabled) {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}
.carousel__dot {
    border-radius: 0;
    width: 22px;
    height: 4px;
    background: var(--color-border);
}
.carousel__dot.active {
    background: var(--color-primary);
}
.showcase-carousel-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ---- SLIDER HERO ---- */
.karuzele-hero__title {
    color: var(--ms-on-dark);
    letter-spacing: -0.02em;
}
.karuzele-hero__text {
    color: var(--ms-on-dark-soft);
}
.hero-slider__arrow {
    border-radius: 0;
    border: 2px solid var(--ms-line);
    background: rgba(14, 7, 22, 0.7);
    color: var(--ms-on-dark);
}
.hero-slider__arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ---- KONTAKT ---- */
.contact-item__icon {
    border-radius: 0;
    border: 2px solid var(--color-text);
    background: var(--ms-tint);
    color: var(--color-primary);
}
.contact-item__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.contact-item__value {
    font-weight: 700;
}

/* ---- STYLE GUIDE ---- */
.sg-block,
.sg-box {
    border-radius: 0;
    border: 2px solid var(--color-text);
}
.sg-block__title {
    letter-spacing: 0.14em;
    color: var(--color-primary);
}
.sg-color__box {
    border-radius: 0;
    border: 2px solid var(--color-text);
}

/* =============================================================
   MSTCG - STRONA GLOWNA
   ============================================================= */

/* ---- Etykieta na ciemnym tle (slider) ---- */
.section-label--on-dark {
    color: var(--color-accent);
}

/* ---- Naglowek sekcji do lewej ---- */
.section-header--left {
    text-align: left;
    margin-inline: 0;
    max-width: 68ch;
}
.section-desc {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 8px;
}
.section-cta--left {
    text-align: left;
    margin-top: 28px;
}

/* ---- Kropki slidera hero ---- */
.hero-slider__dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.hero-slider__dot {
    width: 26px;
    height: 4px;
    border: none;
    border-radius: 0;
    background: rgba(246, 239, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}
.hero-slider__dot.active {
    background: var(--color-accent);
}

/* ---- Pasek zaufania ---- */
.ms-trust {
    background: var(--ms-surface-dk);
    border-bottom: 2px solid var(--color-text);
}
.ms-trust__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}
.ms-trust__item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px 24px;
    border-left: 1px solid var(--ms-line);
}
.ms-trust__item:first-child {
    border-left: none;
    padding-left: 0;
}
.ms-trust__item strong {
    color: var(--ms-on-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.ms-trust__item span {
    color: var(--ms-on-dark-mute);
    font-size: 12px;
}

/* ---- Kafle kategorii ---- */
.ms-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md, 20px);
}
.ms-cat {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--color-text);
    background: var(--color-bg);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}
.ms-cat:hover {
    box-shadow: 6px 6px 0 var(--ms-tint-strong);
}
.ms-cat__img-wrap {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ms-tint-strong);
    border-bottom: 2px solid var(--color-text);
}
.ms-cat__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ms-cat__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 20px;
    flex: 1;
}
.ms-cat__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.ms-cat:hover .ms-cat__title {
    color: var(--color-primary);
}
.ms-cat__desc {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}
.ms-cat__count {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-top: 4px;
}

/* ---- Siatka produktow ---- */
.ms-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md, 20px);
}

/* ---- Sekcja SEO ---- */
.ms-seo__body h2 {
    margin-bottom: 14px;
}
.ms-seo__body h3 {
    margin-top: 32px;
    margin-bottom: 10px;
}
.ms-seo__body p {
    color: var(--color-muted);
    line-height: 1.7;
    max-width: 72ch;
}

/* ---- Responsywnosc strony glownej ---- */
@media (max-width: 1024px) {
    .ms-cats { grid-template-columns: repeat(2, 1fr); }
    .ms-products-grid { grid-template-columns: repeat(2, 1fr); }
    .ms-trust__list { grid-template-columns: repeat(2, 1fr); }
    .ms-trust__item:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 640px) {
    .ms-cats { grid-template-columns: 1fr; }
    .ms-products-grid { grid-template-columns: 1fr; }
    .ms-trust__list { grid-template-columns: 1fr; }
    .ms-trust__item { border-left: none; padding-left: 0; }
}

/* =============================================================
   MSTCG - POPRAWKI v2
   ============================================================= */

/* ---- HEADER: ikony bez bialego tla ---- */
.header-icon-btn {
    color: var(--ms-on-dark-soft);
    background: none;
    border-radius: 0;
}
.header-icon-btn:hover,
.header-icon-btn:focus {
    background: none;
    color: var(--color-accent);
}
.account-dot {
    background: var(--color-accent);
    border: 2px solid var(--ms-ink);
    border-radius: 0;
    width: 7px;
    height: 7px;
}
.header-cart__count {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
    border-radius: 0;
}

/* ---- HEADER: wyszukiwarka inline ---- */
.header-search-inline {
    display: flex;
    align-items: stretch;
    flex: 1 1 260px;
    max-width: 340px;
    min-width: 0;
    border: 1px solid var(--ms-line);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease;
}
.header-search-inline:focus-within {
    border-color: var(--color-accent);
}
.header-search-inline__input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--ms-on-dark);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}
.header-search-inline__input::placeholder {
    color: var(--ms-on-dark-mute);
}
.header-search-inline__input:focus {
    border: none;
    box-shadow: none;
}
.header-search-inline__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
    border: none;
    border-radius: 0;
    background: var(--color-primary);
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}
.header-search-inline__btn:hover {
    background: var(--color-accent);
    color: var(--ms-accent-ink);
}
.header-search-inline--mobile {
    max-width: none;
    margin-bottom: 18px;
}
.header-inner {
    gap: 18px;
}
.header-nav {
    flex: 0 1 auto;
}
@media (max-width: 1200px) {
    .header-search-inline:not(.header-search-inline--mobile) { display: none; }
}

/* ---- HERO: tekst + zdjecie ---- */
.ms-hero {
    position: relative;
    background: var(--ms-ink);
    border-bottom: 2px solid var(--color-text);
    overflow: hidden;
}
.ms-hero__slide {
    display: none;
    padding-block: clamp(48px, 7vw, 88px);
}
.ms-hero__slide.active {
    display: block;
}
.ms-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.ms-hero__title {
    color: var(--ms-on-dark);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-block: 14px 16px;
}
.ms-hero__desc {
    color: var(--ms-on-dark-soft);
    font-size: 15px;
    line-height: 1.7;
    max-width: 58ch;
    margin-bottom: 28px;
}
.ms-hero__frame {
    position: relative;
    border: 2px solid var(--color-accent);
    background: var(--ms-surface-dk);
    padding: 10px;
    box-shadow: 14px 14px 0 rgba(109, 40, 217, 0.45);
}
.ms-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ---- PASEK ZAUFANIA ---- */
.ms-trust__item {
    flex-direction: row;
    align-items: center;
    gap: 14px;
}
.ms-trust__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--ms-line);
    color: var(--color-accent);
}
.ms-trust__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* ---- NAGLOWKI SEKCJI: wysrodkowane ---- */
.section-header {
    text-align: center;
    margin-inline: auto;
    max-width: 680px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 36px;
}
.section-header .section-desc {
    margin-inline: auto;
}
.section-cta {
    text-align: center;
}

/* ---- KARUZELA 4 KOLUMNY + rowne wysokosci ---- */
.carousel--4 .carousel__slide {
    flex: 0 0 25%;
}
@media (max-width: 1360px) {
    .carousel--4 .carousel__slide { flex: 0 0 calc(100% / 3); }
}
@media (max-width: 1024px) {
    .carousel--4 .carousel__slide { flex: 0 0 50%; }
}
@media (max-width: 640px) {
    .carousel--4 .carousel__slide { flex: 0 0 100%; }
}
.carousel__track {
    align-items: stretch;
}
.carousel__slide {
    height: auto;
}
.carousel__slide > .product-card {
    height: 100%;
}

/* ---- KARTA PRODUKTU: zdjecie 1:1 bez pustki ---- */
.product-card {
    height: 100%;
}
.product-card__img-wrap {
    aspect-ratio: 1 / 1;
}
.product-card__img {
    object-fit: cover;
    padding: 0;
}
.product-card__body {
    flex: 1;
}

/* ---- KAFLE KATEGORII ---- */
.ms-cat__img-wrap {
    aspect-ratio: 4 / 3;
}
.ms-cat__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.ms-cat__more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.ms-cat:hover .ms-cat__more {
    color: var(--color-primary-active, #4C1D95);
}
.ms-cat:hover .ms-cat__more svg {
    transform: translateX(3px);
}

/* ---- DLACZEGO WARTO ---- */
.ms-why {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ms-why__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px 30px;
    border: 2px solid var(--color-text);
    background: var(--color-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ms-why__card:hover {
    box-shadow: 8px 8px 0 var(--ms-tint-strong);
}
.ms-why__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}
.ms-why__title {
    font-size: 17px;
    line-height: 1.3;
    margin: 0;
}
.ms-why__text {
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}
.ms-why__card--1 { background: #F6F0FF; }
.ms-why__card--1 .ms-why__icon { background: var(--color-primary); color: #ffffff; }
.ms-why__card--2 { background: #EEFBF4; }
.ms-why__card--2 .ms-why__icon { background: var(--color-accent); color: var(--ms-accent-ink); }
.ms-why__card--3 { background: #FFF6E9; }
.ms-why__card--3 .ms-why__icon { background: #FFB454; color: var(--ms-preorder-ink); }
.ms-why__card--4 { background: var(--ms-ink); }
.ms-why__card--4 .ms-why__icon { background: var(--color-accent); color: var(--ms-accent-ink); }
.ms-why__card--4 .ms-why__title { color: var(--ms-on-dark); }
.ms-why__card--4 .ms-why__text { color: var(--ms-on-dark-soft); }

/* ---- FAQ ---- */
.ms-faq {
    max-width: 860px;
    margin-inline: auto;
    border-top: 2px solid var(--color-text);
}
.ms-faq__item {
    border-bottom: 2px solid var(--color-text);
}
.ms-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 20px 4px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.2s ease;
}
.ms-faq__q:hover {
    color: var(--color-primary);
}
.ms-faq__sign {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--color-primary);
}
.ms-faq__sign::before,
.ms-faq__sign::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
    transition: opacity 0.2s ease;
}
.ms-faq__sign::before {
    top: 8px; left: 3px; width: 12px; height: 2px;
}
.ms-faq__sign::after {
    top: 3px; left: 8px; width: 2px; height: 12px;
}
.ms-faq__item.is-open .ms-faq__sign {
    background: var(--color-primary);
}
.ms-faq__item.is-open .ms-faq__sign::before {
    background: #ffffff;
}
.ms-faq__item.is-open .ms-faq__sign::after {
    opacity: 0;
}
.ms-faq__a {
    padding: 0 4px 22px;
}
.ms-faq__a p {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.7;
    max-width: 70ch;
}

/* ---- SEKCJA SEO ---- */
.ms-seo {
    background: var(--ms-ink);
    border-block: 2px solid var(--color-text);
    padding-block: clamp(48px, 6vw, 84px);
}
.ms-seo__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(28px, 5vw, 60px);
    align-items: start;
}
.ms-seo__frame {
    border: 2px solid var(--color-accent);
    background: var(--ms-surface-dk);
    padding: 10px;
    position: sticky;
    top: 100px;
}
.ms-seo__img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.ms-seo__body h2 {
    color: var(--ms-on-dark);
    margin-block: 12px 16px;
}
.ms-seo__body h3 {
    color: var(--ms-on-dark);
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 8px;
}
.ms-seo__body p {
    color: var(--ms-on-dark-soft);
    font-size: 15px;
    line-height: 1.75;
    max-width: 68ch;
}
.ms-seo__lead {
    font-size: 16px !important;
    color: var(--ms-on-dark) !important;
}
.ms-seo .section-label {
    color: var(--color-accent);
}

/* ---- Pusta lista promocji ---- */
.ms-empty {
    padding: 28px;
    border: 2px dashed var(--color-border);
    color: var(--color-muted);
    text-align: center;
}

/* ---- RESPONSYWNOSC ---- */
@media (max-width: 1024px) {
    .ms-hero__grid { grid-template-columns: 1fr; }
    .ms-hero__media { order: -1; }
    .ms-hero__frame { box-shadow: 8px 8px 0 rgba(109, 40, 217, 0.45); }
    .ms-why { grid-template-columns: repeat(2, 1fr); }
    .ms-seo__grid { grid-template-columns: 1fr; }
    .ms-seo__frame { position: static; max-width: 420px; }
}
@media (max-width: 640px) {
    .ms-why { grid-template-columns: 1fr; }
    .ms-faq__q { font-size: 15px; }
}

/* =============================================================
   MSTCG - POPRAWKI v3
   ============================================================= */

/* ---- SLIDER: motyw ustawia .hero-slide na position:absolute,
   przez co sekcja nie ma wysokosci. Slajdy w normalnym flow. ---- */
.ms-hero__slide {
    position: relative;
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    display: none;
}
.ms-hero__slide.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ---- KARUZELA NA PELNA SZEROKOSC ---- */
.ms-carousel-full {
    width: 100%;
    padding-inline: clamp(56px, 6vw, 96px);
    box-sizing: border-box;
}
.ms-carousel-full .carousel {
    padding-inline: 0;
    max-width: none;
}
.ms-carousel-full .carousel__btn--prev {
    left: clamp(-72px, -4vw, -48px);
}
.ms-carousel-full .carousel__btn--next {
    right: clamp(-72px, -4vw, -48px);
}
@media (max-width: 900px) {
    .ms-carousel-full {
        padding-inline: 20px;
    }
    .ms-carousel-full .carousel__btn--prev { left: -4px; }
    .ms-carousel-full .carousel__btn--next { right: -4px; }
}

/* =============================================================
   MSTCG - POPRAWKI v4
   ============================================================= */

/* ---- HEADER: delikatna kreska ---- */
.site-header {
    border-bottom: 1px solid var(--ms-line);
}

/* ---- WYSZUKIWARKA: widoczna ikona, lagodny focus, wezsza ---- */
.header-search-inline {
    flex: 0 1 240px;
    max-width: 240px;
}
.header-search-inline:focus-within {
    border-color: var(--color-secondary);
}
.header-search-inline__input:focus,
.header-search-inline__input:focus-visible {
    outline: none;
    outline-offset: 0;
    border: none;
    box-shadow: none;
}
.header-search-inline__btn svg {
    display: block;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}
.header-search-inline__btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: -4px;
}

/* ---- SLIDER: gradient w tle, wiekszy opis ---- */
.ms-hero {
    background: var(--ms-ink);
}
.ms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 78% 18%, rgba(109, 40, 217, 0.55) 0%, rgba(14, 7, 22, 0) 70%),
        radial-gradient(45% 60% at 12% 92%, rgba(79, 255, 176, 0.10) 0%, rgba(14, 7, 22, 0) 70%);
    pointer-events: none;
    z-index: 0;
}
.ms-hero > .hero-slide,
.ms-hero > .hero-slider__arrow,
.ms-hero > .hero-slider__dots {
    position: relative;
    z-index: 1;
}
.ms-hero > .hero-slider__arrow,
.ms-hero > .hero-slider__dots {
    position: absolute;
}
.ms-hero__desc {
    font-size: 17px;
    line-height: 1.65;
    max-width: 54ch;
}

/* ---- KARUZELA: w kontenerze, strzalki poza trescia ---- */
.carousel--4 {
    padding-inline: 0;
}
.carousel--4 .carousel__btn--prev {
    left: -20px;
}
.carousel--4 .carousel__btn--next {
    right: -20px;
}
.carousel--4 .carousel__slide {
    padding-inline: 8px;
}
@media (max-width: 900px) {
    .carousel--4 { padding-inline: 36px; }
    .carousel--4 .carousel__btn--prev { left: 0; }
    .carousel--4 .carousel__btn--next { right: 0; }
}

/* ---- PRZYCISK DODAJ DO KOSZYKA ---- */
.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 0;
    border: 2px solid var(--color-text);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-add-to-cart:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 3px 3px 0 var(--ms-tint-strong);
}
.btn-add-to-cart:active {
    box-shadow: none;
    transform: translate(2px, 2px);
}
.btn-add-to-cart.is-in-cart {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--ms-accent-ink);
}
.btn-add-to-cart.is-in-cart:hover {
    background: #33E89A;
    border-color: #33E89A;
    color: var(--ms-accent-ink);
}
.btn-add-to-cart svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* =============================================================
   MSTCG - POPRAWKI v5
   ============================================================= */

/* ---- SLIDER: delikatne przejscie ---- */
.ms-hero__slide {
    display: none;
}
.ms-hero__slide.active {
    display: block;
    animation: ms-slide-in 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes ms-slide-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ms-hero__slide.active .ms-hero__text > * {
    animation: ms-fade-up 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.ms-hero__slide.active .ms-hero__text > *:nth-child(1) { animation-delay: 0.06s; }
.ms-hero__slide.active .ms-hero__text > *:nth-child(2) { animation-delay: 0.12s; }
.ms-hero__slide.active .ms-hero__text > *:nth-child(3) { animation-delay: 0.18s; }
.ms-hero__slide.active .ms-hero__text > *:nth-child(4) { animation-delay: 0.24s; }
.ms-hero__slide.active .ms-hero__frame {
    animation: ms-fade-in 0.7s ease 0.1s both;
}
@keyframes ms-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes ms-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .ms-hero__slide.active,
    .ms-hero__slide.active .ms-hero__text > *,
    .ms-hero__slide.active .ms-hero__frame {
        animation: none;
    }
}

/* ---- STOPKA: pasek platnosci i dostawy ---- */
.footer-badges {
    background: var(--ms-ink);
    border-top: 1px solid var(--ms-line);
}
.footer-badges__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    padding: 22px 0;
}
.footer-badges__group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-badges__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    flex-shrink: 0;
}
.footer-badges__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-badges__list li {
    padding: 5px 10px;
    border: 1px solid var(--ms-line);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ms-on-dark-soft);
}

/* ---- STOPKA: dolny pasek ---- */
.footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0;
}
.footer-bar__copy,
.footer-bar__author {
    margin: 0;
    font-size: 12px;
    color: var(--ms-on-dark-mute);
}
.footer-bar__author a {
    color: var(--ms-on-dark-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--ms-line);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-bar__author a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ---- STOPKA: dopracowanie kolumn ---- */
.footer-main {
    padding-block: clamp(40px, 5vw, 64px);
}
.footer-col__title {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ms-line);
}
.footer-nav a {
    display: inline-block;
    padding-block: 3px;
}
.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.footer-logo {
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .footer-badges__inner { gap: 20px; }
    .footer-bar__inner { justify-content: flex-start; }
}

/* =============================================================
   MSTCG - POPRAWKI v6
   ============================================================= */

/* ---- KAFLE KATEGORII: 4 kolumny ---- */
.ms-cats {
    grid-template-columns: repeat(4, 1fr);
}
.ms-cat__img-wrap {
    aspect-ratio: 4 / 3;
}
.ms-cat__body {
    padding: 16px 18px 18px;
}
.ms-cat__title {
    font-size: 17px;
}
.ms-cat__desc {
    font-size: 13px;
    line-height: 1.5;
}
.ms-cat__more {
    margin-top: 10px;
    font-size: 11px;
}

@media (max-width: 1200px) {
    .ms-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .ms-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ms-cats { grid-template-columns: 1fr; }
}

/* =============================================================
   MSTCG - POPRAWKI v7
   ============================================================= */

/* Kafle kategorii: zdjecia w oryginalnym kwadracie 1:1 */
.ms-cat__img-wrap {
    aspect-ratio: 1 / 1;
}
.ms-cat__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* =============================================================
   MSTCG - POPRAWKI v8
   ============================================================= */

/* ---- HERO PODSTRON: gradient jak w sliderze, tekst do lewej ---- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: var(--ms-ink);
    text-align: left;
    padding-block: clamp(44px, 6vw, 84px);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 80% at 78% 18%, rgba(109, 40, 217, 0.55) 0%, rgba(14, 7, 22, 0) 70%),
        radial-gradient(45% 60% at 12% 92%, rgba(79, 255, 176, 0.10) 0%, rgba(14, 7, 22, 0) 70%);
    pointer-events: none;
}
.page-hero > .container {
    position: relative;
    z-index: 1;
}
.page-hero h1 {
    color: var(--ms-on-dark);
    margin-block: 10px 12px;
    max-width: 22ch;
}
.page-hero p,
.page-hero .hero-desc {
    color: var(--ms-on-dark-soft);
    text-align: left;
    margin-inline: 0;
    max-width: 62ch;
    font-size: 15px;
    line-height: 1.7;
}
.page-hero .section-label {
    color: var(--color-accent);
}

/* ---- STRONA KONTAKT ---- */
.ms-contact {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
}
.ms-contact__heading {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-text);
}
.ms-contact__aside {
    border: 2px solid var(--color-text);
    background: var(--color-bg-alt);
    padding: 26px 24px 28px;
}
.ms-contact__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ms-contact__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ms-contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 2px solid var(--color-text);
    background: var(--color-bg);
    color: var(--color-primary);
}
.ms-contact__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ms-contact__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-muted);
}
.ms-contact__value {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    word-break: break-word;
}
a.ms-contact__value:hover {
    color: var(--color-primary);
}
.ms-contact__nip {
    margin: 18px 0 0;
    font-size: 12px;
    color: var(--color-muted);
    letter-spacing: 0.04em;
}
.ms-contact__note {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--ms-ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ms-contact__note strong {
    color: var(--color-accent);
    font-size: 13px;
    letter-spacing: 0.03em;
}
.ms-contact__note span {
    color: var(--ms-on-dark-soft);
    font-size: 13px;
    line-height: 1.6;
}
.ms-contact__form-wrap {
    border: 2px solid var(--color-text);
    padding: 26px 24px 28px;
}
.ms-contact__form-wrap .wpcf7-form-control {
    width: 100%;
}
.ms-contact__form-wrap p {
    margin-bottom: 14px;
}

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

/* ---- STOPKA: dopracowanie ---- */
.footer-tagline {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--ms-on-dark);
    margin: 0 0 18px;
    max-width: 30ch;
}
.footer-col__title {
    font-size: 13px;
    letter-spacing: 0.1em;
    color: var(--ms-on-dark);
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: none;
    position: relative;
}
.footer-col__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
}
.footer-nav a {
    color: #ffffff;
    font-size: 14px;
    opacity: 0.85;
}
.footer-nav a:hover {
    color: var(--color-accent);
    opacity: 1;
}
.footer-contact__item {
    color: var(--ms-on-dark-soft);
    font-size: 14px;
    font-weight: 600;
    padding-block: 3px;
}
.footer-contact__item:hover {
    color: var(--color-accent);
}
.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ms-line);
}
.site-footer {
    border-top: 3px solid var(--color-accent);
}

/* =============================================================
   MSTCG - POPRAWKI v9 (stopka)
   Specyficznosc podniesiona: motyw ma .footer-nav li a (0,2,1),
   ktore wygrywalo z .footer-nav a.
   ============================================================= */

/* ---- Linki menu: biale ---- */
.site-footer .footer-nav li a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    padding-block: 4px;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.site-footer .footer-nav li a:hover {
    color: var(--color-accent);
    opacity: 1;
    transform: translateX(3px);
}

/* ---- Kolumny ---- */
.footer-grid {
    gap: clamp(28px, 4vw, 56px);
}
.footer-col__title {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #ffffff;
}
.footer-contact__item {
    color: #ffffff;
    opacity: 0.9;
    font-weight: 500;
}
.footer-contact__item:hover {
    color: var(--color-accent);
    opacity: 1;
}

/* ---- Dolny pasek: copyright lewo, social prawo ---- */
.footer-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 18px 0;
}
.footer-bar__copy {
    display: flex;
    align-items: center;
    gap: 8px 18px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 12px;
    color: var(--ms-on-dark-mute);
}
.footer-bar__author {
    position: relative;
    padding-left: 19px;
    color: var(--ms-on-dark-mute);
}
.footer-bar__author::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: var(--color-accent);
}
.footer-bar__author a {
    color: var(--ms-on-dark-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--ms-line);
}
.footer-bar__author a:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}
.footer-bar__social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.footer-bar__social .footer-social {
    display: flex;
    gap: 8px;
    margin: 0;
}
.footer-bar__social .footer-social a,
.footer-bar__social a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ms-line);
    color: var(--ms-on-dark-soft);
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-bar__social a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--ms-accent-ink);
}

@media (max-width: 640px) {
    .footer-bar__inner { justify-content: flex-start; }
    .footer-bar__copy { font-size: 11px; }
}

/* =============================================================
   MSTCG - POPRAWKI v10 (stopka: 5 kolumn)
   ============================================================= */

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: clamp(24px, 3vw, 44px);
}
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}



/* =============================================================
   MSTCG - POPRAWKI v11 (sklep, filtry, cena)
   ============================================================= */

/* ---- Cena na karcie produktu: bez zaokraglen ---- */
.product-info__price {
    border-radius: 0;
    border: 2px solid var(--color-text);
    background: var(--color-bg-alt);
    padding: 18px 20px;
    align-items: center;
}
.product-price__badge {
    border-radius: 0;
    background: var(--color-primary);
    color: #ffffff;
    letter-spacing: 0.04em;
}
.product-price__current--sale {
    color: var(--color-primary);
}
.product-price__current,
.product-price__old {
    font-variant-numeric: tabular-nums;
}

/* ---- Filtry: naglowek rozwijany ---- */
.filter-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 0 10px;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
}
.filter-group__toggle .filter-group__title {
    margin: 0;
}
.filter-group__chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
    flex-shrink: 0;
}
.filter-group__chevron.is-open {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* ---- Filtry: podkategorie ---- */
.filter-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-link-row .filter-link {
    flex: 1;
}
.filter-link.is-active {
    color: var(--color-primary);
    font-weight: 700;
}
.filter-sub-toggle {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    background: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    padding: 0;
}
.filter-sub-toggle::before,
.filter-sub-toggle::after {
    content: '';
    position: absolute;
    background: var(--color-primary);
    transition: opacity 0.2s ease;
}
.filter-sub-toggle::before {
    top: 9px; left: 4px; width: 12px; height: 2px;
}
.filter-sub-toggle::after {
    top: 4px; left: 9px; width: 2px; height: 12px;
}
.filter-sub-toggle.is-open::after {
    opacity: 0;
}
.filter-sublist {
    list-style: none;
    margin: 4px 0 8px;
    padding-left: 12px;
    border-left: 2px solid var(--color-border);
}
.filter-sublist .filter-link {
    font-size: 13px;
}


/* =============================================================
   MSTCG - POPRAWKI v12 (mobile)
   Motyw wymusza !important i --color-dark na linkach menu
   mobilnego, przez co byly czarne na czarnym tle.
   ============================================================= */

/* ---- MENU MOBILNE: widoczne linki ---- */
.mobile-menu__nav > li > a {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    padding: 14px 4px !important;
}
.mobile-menu__nav > li > a:hover {
    background: transparent !important;
    color: var(--color-accent) !important;
}
.mobile-menu__nav li {
    border-bottom: 1px solid var(--ms-line) !important;
}
.mobile-menu__nav ul li a {
    color: var(--ms-on-dark-soft) !important;
    background: transparent !important;
    text-transform: none !important;
    font-weight: 400 !important;
    padding: 11px 4px 11px 20px !important;
}
.mobile-menu__nav ul li a:hover {
    color: var(--color-accent) !important;
    background: transparent !important;
}
.mobile-menu__nav ul li {
    border-bottom: none !important;
}
.mobile-menu__nav li:has(ul) > a::after {
    border-right-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* ---- MENU MOBILNE: wyszukiwarka nie rozciaga sie w pionie ---- */
.header-search-inline--mobile {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    height: 42px;
    align-self: stretch;
}
.header-search-inline--mobile .header-search-inline__input {
    height: 100%;
}
.header-search-inline--mobile .header-search-inline__btn {
    height: 100%;
    width: 46px;
}
.mobile-menu__inner {
    align-items: stretch;
    padding: 18px 20px 24px;
}
.mobile-menu__link {
    color: var(--ms-on-dark) !important;
    background: transparent !important;
    border: 2px solid var(--ms-line) !important;
    text-align: center;
}
.mobile-menu__link:hover {
    border-color: var(--color-accent) !important;
    color: var(--color-accent) !important;
}

/* ---- SLIDER: strzalki nie nachodza na tekst ---- */
@media (max-width: 1024px) {
    .ms-hero .hero-slider__arrow { display: none; }
    .ms-hero .hero-slider__dots { bottom: 16px; }
    .ms-hero__slide { padding-bottom: 52px; }
}

/* ---- MOBILE: najpierw tekst, potem zdjecie ---- */
@media (max-width: 1024px) {
    .ms-hero__grid { grid-template-columns: 1fr; }
    .ms-hero__text  { order: 1; }
    .ms-hero__media { order: 2; }
    .ms-seo__grid   { grid-template-columns: 1fr; }
    .ms-seo__body   { order: 1; }
    .ms-seo__media  { order: 2; }
    .ms-seo__frame  { position: static; max-width: 480px; }
}


/* =============================================================
   MSTCG - POPRAWKI v13 (filtry mobilne)
   Sidebar miat z-index 200, a sticky header 1000 - stad
   nakladał się na panel filtrów.
   ============================================================= */

@media (max-width: 900px) {

    .shop-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        height: 100dvh;
        max-height: 100dvh;
        width: min(340px, 92vw);
        z-index: 100000;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: none;
        border-right: 2px solid var(--color-text);
        background: var(--color-bg);
        box-shadow: 0 0 40px rgba(14, 7, 22, 0.45);
        padding: 0;
    }

    /* Naglowek panelu przyklejony na gorze */
    .shop-sidebar .sidebar-header {
        position: sticky;
        top: 0;
        z-index: 2;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 16px 18px;
        background: var(--ms-ink);
        border-bottom: 2px solid var(--color-text);
    }
    .shop-sidebar .sidebar-header h3 {
        color: var(--ms-on-dark);
        font-size: 12px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }
    .shop-sidebar .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        padding: 0;
        border: 1px solid var(--ms-line);
        background: transparent;
        color: var(--ms-on-dark);
        border-radius: 0;
    }
    .shop-sidebar .sidebar-close:hover {
        background: var(--color-accent);
        border-color: var(--color-accent);
        color: var(--ms-accent-ink);
    }

    /* Przewijana srodkowa czesc */
    .shop-sidebar .filter-group {
        flex-shrink: 0;
        margin: 0;
        padding: 14px 18px;
        border-bottom: 1px solid var(--color-border);
        overflow-y: auto;
    }
    .shop-sidebar > .filter-group:first-of-type {
        margin-top: 0;
    }

    /* Przycisk czyszczenia przyklejony na dole */
    .shop-sidebar .filter-actions {
        margin-top: auto;
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        padding: 14px 18px;
        background: var(--color-bg);
        border-top: 2px solid var(--color-text);
    }

    /* Kontener na przewijanie grup */
    .shop-sidebar {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Przyciemnienie tla pod panelem */
    .shop-sidebar::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(14, 7, 22, 0.6);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: -1;
    }
    .shop-sidebar.is-open::before {
        opacity: 1;
    }
}


/* =============================================================
   MSTCG - POPRAWKI v14 (filtry mobilne na ciemnym tle)
   ============================================================= */

@media (max-width: 900px) {

    .shop-sidebar {
        background: var(--ms-ink);
        color: var(--ms-on-dark);
        border-right: 2px solid var(--ms-line);
    }

    .shop-sidebar .filter-group {
        background: transparent;
        border-bottom: 1px solid var(--ms-line);
    }

    /* Naglowki grup */
    .shop-sidebar .filter-group__title {
        color: var(--color-accent);
    }
    .shop-sidebar .filter-group__toggle {
        background: transparent;
    }
    .shop-sidebar .filter-group__chevron {
        border-right-color: var(--color-accent);
        border-bottom-color: var(--color-accent);
    }

    /* Wyszukiwarka w panelu */
    .shop-sidebar .search-filter__input {
        background: var(--ms-surface-dk);
        border: 2px solid var(--ms-line);
        color: var(--ms-on-dark);
    }
    .shop-sidebar .search-filter__input::placeholder {
        color: var(--ms-on-dark-mute);
    }
    .shop-sidebar .search-filter__input:focus {
        border-color: var(--color-accent);
    }
    .shop-sidebar .search-filter__icon {
        color: var(--ms-on-dark-mute);
    }

    /* Linki kategorii */
    .shop-sidebar .filter-link {
        color: var(--ms-on-dark-soft);
    }
    .shop-sidebar .filter-link:hover {
        color: var(--color-accent);
    }
    .shop-sidebar .filter-link.is-active {
        color: #ffffff;
    }
    .shop-sidebar .filter-sublist {
        border-left-color: var(--ms-line);
    }

    /* Liczniki */
    .shop-sidebar .filter-count {
        background: var(--ms-surface-dk);
        color: var(--ms-on-dark-mute);
        border: 1px solid var(--ms-line);
        border-radius: 0;
    }

    /* Checkboxy */
    .shop-sidebar .filter-checkbox {
        color: var(--ms-on-dark-soft);
    }
    .shop-sidebar .filter-checkbox:hover {
        color: #ffffff;
    }
    .shop-sidebar .filter-checkbox input[type="checkbox"] {
        accent-color: var(--color-accent);
        background: var(--ms-surface-dk);
        border: 2px solid var(--ms-line);
    }

    /* Przycisk rozwijania podkategorii */
    .shop-sidebar .filter-sub-toggle {
        border-color: var(--ms-line);
    }
    .shop-sidebar .filter-sub-toggle::before,
    .shop-sidebar .filter-sub-toggle::after {
        background: var(--color-accent);
    }

    /* Suwak ceny */
    .shop-sidebar .price-slider__track {
        background: var(--ms-surface-dk);
    }
    .shop-sidebar .price-slider__range {
        background: var(--color-accent);
    }
    .shop-sidebar .price-slider__val {
        color: var(--ms-on-dark);
        font-weight: 700;
    }

    /* Stopka panelu */
    .shop-sidebar .filter-actions {
        background: var(--ms-ink);
        border-top: 2px solid var(--ms-line);
    }
    .shop-sidebar .filter-actions .btn-outline {
        color: var(--color-accent);
        border-color: var(--color-accent);
        background: transparent;
    }
    .shop-sidebar .filter-actions .btn-outline:hover {
        background: var(--color-accent);
        color: var(--ms-accent-ink);
    }
}


/* =============================================================
   MSTCG - POPRAWKI v15
   ============================================================= */

/* Mniejszy przycisk rozwijania podkategorii */
.filter-sub-toggle {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-border);
    opacity: 0.75;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}
.filter-sub-toggle:hover {
    opacity: 1;
    border-color: var(--color-primary);
}
.filter-sub-toggle::before {
    top: 6.5px;
    left: 3px;
    width: 8px;
    height: 1.5px;
}
.filter-sub-toggle::after {
    top: 3px;
    left: 6.5px;
    width: 1.5px;
    height: 8px;
}


/* =============================================================
   MSTCG - POPRAWKI v16 (hero: zdjecie 1:1)
   ============================================================= */

/* Zdjecia slajdow sa kwadratowe - ramka 4:3 je przycinala. */
.ms-hero__img {
    aspect-ratio: 1 / 1;
}
.ms-hero__frame {
    max-width: 460px;
    margin-left: auto;
}
/* Kwadrat jest wyzszy od 4:3 - siatka dostaje wezsza kolumne na zdjecie. */
.ms-hero__grid {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
}

@media (max-width: 1024px) {
    .ms-hero__grid { grid-template-columns: 1fr; }
    .ms-hero__frame { margin-inline: 0; max-width: 380px; }
}


/* =============================================================
   MSTCG - POPRAWKI v17 (wieksze zdjecie w hero)
   ============================================================= */

.ms-hero__grid {
    grid-template-columns: 1fr 0.92fr;
}
.ms-hero__frame {
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    box-shadow: 16px 16px 0 rgba(109, 40, 217, 0.45);
}

@media (max-width: 1280px) {
    .ms-hero__frame { max-width: 480px; }
}
@media (max-width: 1024px) {
    .ms-hero__grid  { grid-template-columns: 1fr; }
    .ms-hero__frame { max-width: 440px; margin-inline: 0; box-shadow: 10px 10px 0 rgba(109, 40, 217, 0.45); }
}
@media (max-width: 560px) {
    .ms-hero__frame { max-width: none; box-shadow: 8px 8px 0 rgba(109, 40, 217, 0.45); }
}


/* =============================================================
   MSTCG - POPRAWKI v18
   .footer-col--brand .footer-logo img (0,3,1) ma max-height 44px
   i wygrywa z .footer-logo img - przez to suwak szerokosci logo
   w stopce nie dzialal.
   ============================================================= */

.site-footer .footer-col--brand .footer-logo img,
.site-footer .footer-col--brand .footer-logo a img,
.site-footer .footer-logo img {
    max-height: none;
    height: auto;
    width: var(--logo-footer-width, 140px);
    max-width: 100%;
    object-fit: contain;
}

/* Wysokosc naglowka po przyklejeniu */
.site-header.is-sticky {
    height: var(--header-sticky-height, var(--header-height, 72px));
}
.site-header.is-sticky .header-inner {
    height: var(--header-sticky-height, var(--header-height, 72px));
    transition: height 0.3s ease;
}


/* =============================================================
   MSTCG - TABELE W TRESCI
   Motyw stylizuje tylko tabele WooCommerce. Zwykle <table>
   na podstronach tekstowych nie mialy zadnych regul.
   ============================================================= */

.container-text table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 15px;
    border: 2px solid var(--color-text);
}

.container-text table thead th,
.entry-content table thead th {
    background: var(--ms-ink, #0E0716);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    padding: 12px 16px;
    white-space: nowrap;
}

.container-text table td,
.entry-content table td {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border, #E9DEFF);
    vertical-align: top;
    line-height: 1.5;
}

/* Tabela bez naglowka (th w pierwszej kolumnie) */
.container-text table tbody th,
.entry-content table tbody th {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border, #E9DEFF);
    text-align: left;
    font-weight: 700;
    vertical-align: top;
}

.container-text table tbody tr:nth-child(even),
.entry-content table tbody tr:nth-child(even) {
    background: var(--color-bg-alt, #F6F4F9);
}

/* Kwoty i liczby - cyfry tabularne */
.container-text table td:nth-child(2),
.entry-content table td:nth-child(2) {
    font-variant-numeric: tabular-nums;
}

/* Przewijanie na waskich ekranach */
@media (max-width: 640px) {
    .container-text table,
    .entry-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 14px;
    }
    .container-text table td,
    .container-text table th,
    .entry-content table td,
    .entry-content table th {
        padding: 10px 12px;
    }
}

/* Cytat - wzor oswiadczenia na stronie zwrotow */
.container-text blockquote,
.entry-content blockquote {
    margin: 28px 0;
    padding: 22px 24px;
    background: var(--color-bg-alt, #F6F4F9);
    border: 2px solid var(--color-text);
    border-left-width: 5px;
    border-left-color: var(--color-primary, #6D28D9);
    font-size: 14px;
    line-height: 1.7;
}
.container-text blockquote p:last-child,
.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Akapit wprowadzajacy */
.container-text .lead,
.entry-content .lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
    padding: 18px 20px;
    background: var(--ms-tint, #F3E8FF);
    border-left: 5px solid var(--color-primary, #6D28D9);
    margin-bottom: 30px;
}


/* =============================================================
   MSTCG - TOASTY
   ============================================================= */

.ms-toasts {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: min(380px, calc(100vw - 40px));
}
.admin-bar .ms-toasts { top: 52px; }

.ms-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: var(--ms-ink, #0E0716);
    border: 2px solid var(--ms-line, #3B2159);
    border-left-width: 4px;
    color: var(--ms-on-dark, #F6EFFF);
    box-shadow: 0 10px 30px rgba(14, 7, 22, 0.4);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ms-toast.is-visible { opacity: 1; transform: translateX(0); }
.ms-toast.is-leaving { opacity: 0; transform: translateX(16px); }

.ms-toast--success { border-left-color: var(--color-accent, #4FFFB0); }
.ms-toast--error   { border-left-color: #FF4D6D; }
.ms-toast--info    { border-left-color: var(--color-secondary, #A855F7); }

.ms-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 1px;
}
.ms-toast--success .ms-toast__icon { color: var(--color-accent, #4FFFB0); }
.ms-toast--error .ms-toast__icon   { color: #FF4D6D; }
.ms-toast--info .ms-toast__icon    { color: var(--color-secondary, #A855F7); }

.ms-toast__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.ms-toast__text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    word-break: break-word;
}
.ms-toast__link {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent, #4FFFB0);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.ms-toast__link:hover { border-bottom-color: var(--color-accent, #4FFFB0); }

.ms-toast__close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    color: var(--ms-on-dark-mute, #8E7BB0);
    cursor: pointer;
    transition: color 0.15s ease;
}
.ms-toast__close:hover { color: #ffffff; }

@media (max-width: 560px) {
    .ms-toasts {
        top: auto;
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
    .admin-bar .ms-toasts { top: auto; }
    .ms-toast { transform: translateY(16px); }
    .ms-toast.is-visible { transform: translateY(0); }
    .ms-toast.is-leaving { transform: translateY(16px); }
}

@media (prefers-reduced-motion: reduce) {
    .ms-toast { transition: opacity 0.2s ease; transform: none; }
    .ms-toast.is-visible, .ms-toast.is-leaving { transform: none; }
}


/* =============================================================
   MSTCG - POPRAWKI v19 (sidebar)
   ============================================================= */

/* ---- DESKTOP: dyskretny pasek przewijania ---- */
@media (min-width: 901px) {
    .shop-sidebar {
        max-height: calc(100vh - 5rem);
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--color-border) transparent;
        scrollbar-gutter: stable;
    }
    .shop-sidebar::-webkit-scrollbar {
        width: 6px;
    }
    .shop-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
    .shop-sidebar::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 0;
    }
    .shop-sidebar::-webkit-scrollbar-thumb:hover {
        background: var(--color-secondary);
    }
    /* Pasek pojawia sie dopiero przy najechaniu na sidebar */
    .shop-sidebar:not(:hover)::-webkit-scrollbar-thumb {
        background: transparent;
    }
    .shop-sidebar:not(:hover) {
        scrollbar-color: transparent transparent;
    }
}

/* ---- MOBILE: czytelna aktywna kategoria ---- */
@media (max-width: 900px) {
    .shop-sidebar .filter-link:hover,
    .shop-sidebar .filter-link.is-active {
        background: var(--ms-surface-dk, #1C0F2B);
        color: #ffffff;
    }
    .shop-sidebar .filter-link.is-active {
        color: var(--color-accent, #4FFFB0);
        font-weight: 700;
    }
    .shop-sidebar .filter-link:hover .filter-count,
    .shop-sidebar .filter-link.is-active .filter-count {
        background: transparent;
        border-color: var(--ms-line, #3B2159);
        color: var(--ms-on-dark-soft, #C8B5E8);
    }
    /* Panel: wlasny pasek przewijania na ciemnym tle */
    .shop-sidebar {
        scrollbar-width: thin;
        scrollbar-color: var(--ms-line, #3B2159) transparent;
    }
    .shop-sidebar::-webkit-scrollbar {
        width: 4px;
    }
    .shop-sidebar::-webkit-scrollbar-thumb {
        background: var(--ms-line, #3B2159);
    }
    .shop-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }
}


/* =============================================================
   MSTCG - POPRAWKI v20
   Zdjecia produktow maja bardzo rozne proporcje (0.63-1.34),
   wiec kadrowanie przez cover ucinalo im gore i dol.
   ============================================================= */

.product-card__img-wrap {
    background: #ffffff;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.product-card:hover .product-card__img {
    transform: scale(1.03);
}

/* Galeria i zdjecie glowne na stronie produktu - tak samo */
.product-gallery__main img,
.product-gallery__thumb img {
    object-fit: contain;
    background: #ffffff;
}


/* Dane firmy na stronie kontaktu */
.ms-contact__firma {
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
}
.ms-contact__firma .ms-contact__label {
    display: block;
    margin-bottom: 8px;
}
.ms-contact__firma-nazwa {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-text);
}
.ms-contact__firma-adres {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-muted);
}
.ms-contact__firma-nip {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--color-muted);
    font-variant-numeric: tabular-nums;
}


/* Produkty bez ceny - przed premiera */
.price-soon {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #FFB454;
}
.price-soon--big {
    font-size: 22px;
}


/* Dane firmy w stopce (wymog operatora platnosci) */
.footer-firma {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ms-line);
}
.footer-firma__nazwa {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ms-on-dark-soft);
}
.footer-firma__adres,
.footer-firma__nip {
    font-size: 12px;
    color: var(--ms-on-dark-mute);
    font-variant-numeric: tabular-nums;
}


/* =============================================================
   MSTCG - POPRAWKI v21 (header mobile)
   Hamburger pojawial sie dopiero <768px, a wyszukiwarka inline
   znikala <1200px. W przedziale 768-1200 header byl szerszy niz
   ekran i hamburger wypychal sie poza prawa krawedz.
   ============================================================= */

@media (max-width: 1200px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    /* wyszukiwarka inline schodzi do menu mobilnego */
    .header-search-inline:not(.header-search-inline--mobile) { display: none; }
}

@media (max-width: 1200px) {
    .header-inner {
        flex-wrap: nowrap;
        gap: 12px;
    }
    .header-logo { flex: 0 0 auto; }
    .header-icons { margin-left: auto; }
    .hamburger { flex: 0 0 auto; }
}




/* =============================================================
   MSTCG - PRZYCISK GEOWIDGET v2
   Wtyczka narzuca max-width:200px + font-size:19px!important,
   przez co tekst 'Wybierz punkt odbioru' sie nie miescil.
   ============================================================= */

.easypack_show_geowidget,
button.easypack_show_geowidget,
.button.alt.easypack_show_geowidget,
.wc-block-checkout .easypack_show_geowidget {
    max-width: 100% !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: normal !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    line-height: 1.3 !important;
    padding: 13px 24px !important;
    margin: 14px 0 6px !important;
    background-color: var(--color-primary, #6D28D9) !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    height: auto !important;
    min-height: 0 !important;
}
.easypack_show_geowidget:hover,
button.easypack_show_geowidget:hover,
.button.alt.easypack_show_geowidget:hover {
    background-color: var(--ms-ink, #0E0716) !important;
    color: #ffffff !important;
}

.easypack_selected_point_data,
#easypack_selected_point_data,
.inpost_pl_selected_point_data_wrap {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--color-bg-alt, #F6F4F9);
    border-left: 3px solid var(--color-accent, #4FFFB0);
    font-size: 13px;
    line-height: 1.5;
}


/* =============================================================
   MSTCG - LICZNIK DARMOWEJ WYSYLKI
   ============================================================= */

.ms-freeship {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: var(--color-bg-alt, #F6F4F9);
    border: 2px solid var(--color-text, #0E0716);
    border-left-width: 4px;
    border-left-color: var(--color-primary, #6D28D9);
}
.ms-freeship.is-complete {
    border-left-color: var(--color-accent, #4FFFB0);
    background: var(--ms-tint, #F3E8FF);
}
.ms-freeship__msg {
    font-size: 14px;
    line-height: 1.45;
    color: var(--color-text, #0E0716);
    margin-bottom: 10px;
}
.ms-freeship__msg strong { font-weight: 700; }
.ms-freeship__msg--done {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #0a7a4f;
    margin-bottom: 10px;
}
.ms-freeship__bar {
    height: 8px;
    background: rgba(109, 40, 217, 0.12);
    overflow: hidden;
}
.ms-freeship__fill {
    height: 100%;
    background: var(--color-primary, #6D28D9);
    transition: width 0.4s ease;
}
.is-complete .ms-freeship__fill {
    background: var(--color-accent, #4FFFB0);
}


/* Licznik darmowej dostawy na stronie produktu */
.ms-freeship-single {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 0 0;
    padding: 11px 14px;
    background: var(--color-bg-alt, #F6F4F9);
    border-left: 3px solid var(--color-primary, #6D28D9);
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--color-text, #0E0716);
}
.ms-freeship-single svg { flex-shrink: 0; color: var(--color-primary, #6D28D9); }
.ms-freeship-single strong { font-weight: 700; }
.ms-freeship-single.is-complete {
    border-left-color: var(--color-accent, #4FFFB0);
    background: var(--ms-tint, #F3E8FF);
}
.ms-freeship-single.is-complete svg { color: #0a7a4f; }
.ms-freeship-single .amount { white-space: nowrap; }


/* =============================================================
   MSTCG - POPRAWKI v22 (header mobile - hamburger uciekal poza ekran)
   Logo 230px + ikony 128px nie miescily sie w szerokosci telefonu,
   przez co grupa z hamburgerem wypadala ~15px poza ekran. Przy
   przewinieciu sticky kurczyl logo i hamburger wracal - stad objaw.
   Rozwiazanie: na telefonach logo jest mniejsze od razu.
   ============================================================= */

@media (max-width: 480px) {
    .header-logo img,
    .site-logo img,
    .site-header.is-sticky .header-logo img,
    .site-header.is-sticky .site-logo img {
        max-width: 150px !important;
        width: auto;
    }
    .header-inner {
        gap: 10px;
    }
    .header-logo { flex-shrink: 1; min-width: 0; }
}

/* Zabezpieczenie: zaden element nie wywola poziomego przewijania strony.
   overflow-x: clip nie tworzy kontenera przewijania, wiec position:sticky
   naglowka dziala dalej poprawnie. */
html, body {
    overflow-x: clip;
    max-width: 100%;
}


/* =============================================================
   MSTCG - POPRAWKI v23 (hamburger - bialy kwadrat na iPhone)
   Na iOS stan :hover 'przykleja sie' po dotknieciu, przez co
   .hamburger:hover { background: var(--color-bg-alt) } (jasny)
   zostawal jako bialy kwadrat na ciemnym headerze. Do tego
   domyslne podswietlenie dotyku Safari.
   ============================================================= */

.hamburger {
    -webkit-tap-highlight-color: transparent;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.hamburger:active,
.hamburger:focus,
.hamburger.is-active {
    background: transparent !important;
    outline: none;
}
/* Jasne tlo pod ikona tylko na urzadzeniach z prawdziwym kursorem */
@media (hover: hover) and (pointer: fine) {
    .hamburger:hover {
        background: var(--color-bg-alt) !important;
    }
}
