/*
Theme Name: Greenlo Template
Theme URI: https://greenlo.pl
Author: Przemysław Adamczyk
Description: Motyw sklepu Greenlo Zaopatrzenie Laboratorium
Version: 1.0
Text Domain: greenlo-template
*/



@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap; 
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('../fonts/InstrumentSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary: #3C4F65;
    --accent: #42CE76;
    --accent-light: #A1E7BB;
    --bg-l-green: #E0F7E8;
    --bg-l-gray: #F5F6F7;
    --bg-gray: #F7F7F7;
    --bg-l-blue: #ECF4FE;
    --bg-l-red: #ffc5c5;
    --red: #dd4545;
    --border: #DDE5ED;
    --white: #FFFFFF;

    --shadow-g: 0 0 16px rgba(66, 206, 118, 0.2);

    --radius-s: 0.25rem;
    --radius-m: 0.5rem;
    --radius-l: 1rem;
    --radius-xl: 2rem;

    --star-empty:#dcdcdc;
    --star-fill:#f5a623;
}

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

body {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 100%;
    color: var(--primary);
    background-color: var(--bg-gray);
    line-height: 1.75;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

p { margin: 0 0 2rem 0; line-height: 1.75; }

.fs-s { font-size: 0.75rem; }
.fs-m { font-size: 1rem; }
.fs-l { font-size: 1.125rem; }
.fs-xl { font-size: 1.5rem; }

b, strong { font-weight: 700; }
i, em { font-style: italic; }
.fa-margin { margin: 0 1rem 0 0; }
code, kbd, samp, pre { font-family: 'Courier New', monospace; font-size: 0.9rem; }
blockquote { 
    margin: 0 0 2rem 0; 
    padding-left: 1.5rem; 
    border-left: 4px solid var(--accent);
    font-style: italic;
    color: #666; 
}

a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.4s ease-in-out, text-decoration 0.4s ease-in-out;
}
a:visited { color: var(--primary); }
a:hover { color: var(--accent); text-decoration: none; }
a:focus { outline: 2px solid var(--accent); outline-offset: 3px; }
a:active { opacity: 0.7; }

h1, h2, h3, h4 {
    font-family: 'Instrument Sans', sans-serif;
    font-style: normal;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary);
}

h1 { font-size: 2rem; /* margin: 0 0 2rem 0; */ }
h2 { font-size: 1.75rem; /* margin: 0 0 1.75rem 0 */ }
h3 { font-size: 1.3rem; /* margin: 0 0 1.5rem 0; */ }
h4 { font-size: 1.15rem; /* margin: 0 0 1.25rem 0; */ }

/* buttons */
.btn {
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.1s ease-in-out, color 0.1s ease-in-out, border-color 0.1s ease-in-out;
    border-radius: var(--radius-s);
    padding: 0.375rem 0.7rem;
    text-decoration: none;
    border: none; 
}
.btn-sqr { padding: 0; width: 37px; height: 37px; flex-shrink: 0; }
.btn-full { width: 100%; }
.btn-accent { background-color: var(--accent); color: var(--white); }
.btn-accent:hover { background-color: var(--accent-light); }
.btn-default { background-color: var(--border); color: var(--primary); }
.btn-default:hover { background-color: var(--bg-l-gray); }
a.btn-transparent:hover { color: var(--primary); }
.btn-transparent { background-color: transparent; color: var(--primary); }
.btn-transparent:hover { background-color: var(--bg-l-gray); }
.btn-green { background-color: var(--accent); color: var(--white); }
a.btn-green:hover { color: var(--white); }
a:visited.btn-green { color: var(--white); }
button.btn { appearance: none; }

/* lists */
ul, ol {
    margin: 0 0 2rem 0;
    padding: 0 0 0 1.5rem;
    list-style-position: outside;
}

/* images */
img { max-width: 100%; height: auto; display: block; }

/* inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 1rem;
    color: var(--primary);
    line-height: 1.3;
    width: 100%;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.1875rem;
    background-color: var(--white);
    transition: border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--shadow-g);
}

textarea { resize: vertical; min-height: 8rem; }

::placeholder {
    color: var(--border);
    opacity: 1;
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--bg-l-gray);
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
    margin: 0 0 2rem 0;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

th {
    font-weight: 700;
    color: var(--primary);
    background-color: var(--bg-l-gray);
}

/* containers */
main { padding: 2rem 0 0 0; }
section { margin: 0 0 2rem 0; }
.container {
    max-width: 100rem;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.flx { display: flex; gap: 2rem; }
.container__part {
    border-radius: var(--radius-m);
    background-color: var(--white);
}
.container__part-l { padding: 2rem; }
.container__part-m { padding: 1.5rem; }
.container__part-s { padding: 1.25rem; }
.container__part-xs { padding: 0.625rem 0.375rem; }

.featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-g);
}

/* header.php */

/*.site-header { overflow: hidden; }*/
.site-header__top { display: none; padding: 0.375rem 0; background-color: var(--bg-l-gray); block-size: 2.0625rem; }
@media (min-width: 64rem) {
    .site-header__top { display: block; }
}
.site-header__top-parts { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.site-header__main { padding: 1.25rem 0; }
.site-header__main .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.site-header__logo { order: 1; block-size: 1.625rem; }
.site-header__tabs { order: 2; display: flex; justify-content: flex-end; align-items: center; gap: 0.2rem; block-size: 1.625rem; }
.site-header__tabs button, .site-header__tabs a { display: block; font-weight: normal; }
.site-header__tab--cart a.btn { position: relative; left: 0.625rem; }
.site-header__tab--cart .cart__count { position: absolute; top: -0.75rem; left: 1.5rem; background-color: var(--accent); border-radius: 1rem; width: 1.25rem; height: 1.25rem; display: flex; align-items: center; justify-content: center; color: var(--white); }
.site-header__tab--account { display: flex; align-items: center; column-gap: 0.5rem; }
.site-header__tab--account > button .fa-margin { margin: 0; font-size: 1.125rem; }
.site-header__tab--account button span { display: none; }
.site-header__tab--account .account__menu.open { display: block; }
.site-header__tab--account .account__menu { display: none; position: absolute; top: calc(var(--header-h) - 4rem); left: 0; width: 100%; height: fit-content; background-color: var(--white); padding: 0.5rem 2rem 2rem 2rem; text-align: left; }
.site-header__tab--account .account__menu .account__menu-greeting  {margin: 0 0 1rem 0; border-top: 2px solid var(--border); padding: 1rem 0 0 0; font-weight: bold; }
.site-header__tab--account .account__menu-list { list-style: none; margin: 0; padding: 0; }
.site-header__tab--account .account__menu-list li { margin: 1rem 0; }
.site-header__tab--account .account__menu-list li a { text-decoration: none; }
.site-header__tab--account .account__menu-list li a:hover { text-decoration: underline; }
.site-header__tab--cart { position: relative; }
.rotate { transform: rotate(180deg); }

.site-header__mobile-nav.open { display: block; }

@media (min-width: 40rem) {
    .site-header__tabs { gap: 1rem; }
    .site-header__tab--account .account__toggle { position: relative; }
    .site-header__tab--account .account__menu { left: unset; right: 0; top: 100%; width: 18rem; border-bottom-left-radius: var(--radius-m); border-bottom-right-radius: var(--radius-m); z-index: 9999; }
    .site-header__tab--account a .fa-margin, .site-header__tab--account > button .fa-margin { margin: 0 1rem 0 0; }
    .site-header__tab--account button span { display: inline-block; }
}
.site-header__tab--cart a .fa-margin { margin: 0 0.5rem 0 0; }

.site-header__middle { flex: 0 0 100%; order: 3; display: flex; justify-content: space-between; gap: 1rem; align-items: center; block-size: 2.5rem; }
.site-header__middle--mobile-menu-btn { border: 1px solid var(--bg-l-gray); }
.site-header__middle--search { flex: 1; display: flex; align-items: center; height: 100%; width: 100%; flex-wrap: nowrap; position: relative; }
.site-header__middle--search-aside { border: 1px solid var(--border); border-right: none; border-bottom-left-radius: var(--radius-s); border-top-left-radius: var(--radius-s); height: 100%; padding: 0 0.625rem 0 1rem;  display: flex; align-items: center; }
.site-header__middle--search-btn { border: 1px solid var(--accent); }
.site-header__middle--search-input { height: 100%; border: 1px solid var(--border); border-left: none; display: flex; border-top-left-radius: var(--radius-s); border-bottom-right-radius: var(--radius-s); overflow: hidden; width: 100%; margin: 0 0.5rem 0 0; }
.site-header__middle--search-input input { border: none; color: var(--primary); width: 100%; height: 100%; }
.site-header__middle--search-input input:focus { outline: none; }
.site-header__middle--search-input input::placeholder { color: var(--primary); }

nav.site-header__nav { display: none; }
@media (min-width: 64rem) {
    nav.site-header__nav { display: block; block-size: 2.5rem; padding: 0 0 0.625rem 0; }
}
.desktop-nav__nav-list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    text-align: center;
}
.desktop-nav__nav-list li a { text-decoration: none; }
.desktop-nav__nav-list li a:hover { text-decoration: underline; }
.desktop-nav__nav-list li a.btn { font-weight: normal; font-size: 0.875rem; }


.nav-list-item__submenu.show-submenu { display: block; }
.nav-list-item__submenu { display: none; position: absolute; background-color: var(--white); padding: 1.25rem; left: 0; list-style: none; margin: 0; width: 100%; border-bottom-left-radius: var(--radius-m); border-bottom-right-radius: var(--radius-m); }
.nav-list-item__submenu > li { width: 20%; margin: 0.5rem 0; }
.nav-list-item__submenu > li.is-active > a { background-color: var(--bg-l-gray); }
.nav-list-item__submenu li > a { display: block; min-height: 3rem; display: flex; align-items: center; justify-content: flex-start; text-align: left; }
.nav-list-item__submenu li a:hover { text-decoration: underline; }
li.submenu-banner.submenu-banner {
    position: absolute;
    top: -1.25rem;
    right: 1.25rem;
    width: calc(50% - 4rem);
}

.nav-list-item__submenu li.is-active > .nav-list-item__submenu-2 { display: block; }
.nav-list-item__submenu-2 { display: none; position: absolute; left: calc(20% + 1.25rem); top: 1.75rem; list-style: none; width: 32%; margin: 0; padding: 0 1.25rem 1.25rem 1.25rem; z-index: 1; background-color: var(--white); border-bottom-right-radius: var(--radius-m); border-bottom-left-radius: var(--radius-m);}
@media (min-width: 80rem) { .nav-list-item__submenu-2 { width: 20%; } }
.nav-list-item__submenu-2 li  { position: relative; margin: 0.5rem 0; }
.nav-list-item__submenu-2 li:first-child  { margin: 0 0 0.5rem 0; }
.nav-list-item__submenu-2 li:last-child  { margin: 0.5rem 0 0 0; }
.nav-list-item__submenu-2 li a { width: 100%; color: var(--primary); }
.nav-list-item__submenu-2 li a:hover { text-decoration: underline; }
.mini-cart { display: none; }

.site-header__mobile-nav { display: none; position: fixed; top: 0; left: 0; height: 100%; background-color: var(--white); width: 87%; box-shadow: var(--shadow-b); overflow-y: auto; }
@media (min-width: 64rem) { .site-header__mobile-nav { display: none; } }
.mobile-nav__header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 0.75rem 0; padding: 0 0 0.75rem 0; border-bottom: 1px solid var(--border); }
.mobile-nav__nav-header { font-size: 1.5rem; margin: 2rem 0 1rem 0; }
.mobile-nav__nav-list { display: block; list-style: none; padding: 0; margin: 1.25rem 0; }
.mobile-nav__nav-list > li { margin: 1rem 0; }
.mobile-nav__nav-list > li > a { line-height: 1.3; }
.mobile-nav__nav-list > li:has(.nav-list-item__submenu) .mobile-nav__nav-list--head { display: flex; align-items: center; justify-content: space-between; }
.mobile-nav__nav-list > li > i { display: none; }
.mobile-nav__nav-list > li:has(.nav-list-item__submenu) .mobile-nav__nav-list--head > i { display: inline-block; }
.mobile-nav__nav-list .nav-list-item__submenu { padding: 0 1.25rem 0 2.5rem; position: relative; }
.mobile-nav__nav-list .nav-list-item__submenu:before { content: ''; display: block; position: absolute; left: 0.65rem; top: 0; width: 10px; background-color: var(--border); height: 100%; border-radius: 5px; opacity: 0.4; }
.mobile-nav__nav-list .nav-list-item__submenu > li { width: 100%; }
.mobile-nav__footer { padding: 0; border-top: 2px solid var(--border); }

@media (min-width: 64rem) {
    .site-header__middle--mobile-menu-btn { display: none; }
    .site-header__middle { flex: 0 0 36%; order: 2; }
    .site-header__tabs { order: 3; }
}

/* single-product.php */
.sp-page {}
.sp-page h1 {}
.sp-page h2 {}
.sp-page h3 {}

/* content-product.php */
.cp-tile {}
.cp-tile h3 {}

/* archive-product.php */

/* inquiry */

@font-face{
  font-family: 'star';
  src: url('/wp-content/themes/greenlo-template/assets/fonts/woocommerce/star.woff2') format('woff2'),
       url('/wp-content/themes/greenlo-template/assets/fonts/woocommerce/star.woff') format('woff');
  font-weight: normal; font-style: normal; font-display: swap;
}

/* Wyświetlanie ocen */
.woocommerce .star-rating,
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before { font-family: 'star' !important; }

/* Baza (szare gwiazdki) */
.woocommerce .star-rating::before { content: "SSSSS"; color: #dcdcdc; }
/* Wypełnienie (kolor oceny) – szerokość daje WooCommerce inline (np. 80%) */
.woocommerce .star-rating span::before { content: "SSSSS"; color: #f5a623; }

/* Formularz – linki 1..5: */
.woocommerce p.stars a::before { content: "S"; color: #dcdcdc; }
.woocommerce p.stars a:hover ~ a::before { color: #dcdcdc; } /* te po prawej puste */
.woocommerce p.stars a:hover::before,
.woocommerce p.stars.selected a::before { color: #f5a623; }
.woocommerce p.stars.selected a.active ~ a::before { color: #dcdcdc; }



:root {
    --primary: #3C4F65;
    --accent: #42CE76;
    --accent-light: #A1E7BB;
    --bg-l-green: #E0F7E8;
    --bg-l-gray: #F2F2F2;
    --bg-l-blue: #ECF4FE;
    --bg-l-red: #ffc5c5;
    --red: #dd4545;
    --border: #DDE5ED;
    --white: #FFFFFF;
    

    /* Fonts */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-s: 0.875rem; /* 14px */
    --font-size-m: 1rem; /* 16px */
    --font-size-l: 1.125rem; /* 18px */
    --font-size-xl: 1.5rem; /* 24px */
    --font-size-xxl: 3rem; /* 48px */

    --font-size-h1: 2.25rem; /* 36px */
    --font-size-h2: 1.875rem; /* 36px */
    --font-size-h3: 1.5rem; /* 24px */

    --line-height-base: 1.75;
    --line-height-m: 1.3;
    --line-height-heading: 1.1;

    /* Borders */
    --border-s: 1px solid var(--border);
    --border-m: 2px solid var(--border);
    --border-l: 4px solid var(--border);

    /* Links */
    --link-color: var(--accent);
    --link-hover: var(--accent-light);

    /* Icons */
    --icon-s: 1rem; /* 16px */
    --icon-m: 1.125rem; /* 18px */
    --icon-l: 1.365rem; /* 22px */

    /* Transitions */
    --tr-eio-f: all 0.3s ease-in-out;
    --tr-eio: all 0.4s ease-in-out;
    --tr-eio-s: all 0.6s ease-in-out;
    --tr-cubic: all 0.4s cubic-bezier(0.29, 2.08, 0.53, 0.7);

    /* Spacing */
    --sp-xs: 0.375rem; /* 6px */
    --sp-s: 0.625rem; /* 10px */
    --sp-m: 1.25rem; /* 20px */
    --sp-l: 2.5rem; /* 40px */
    --sp-xl: 5rem; /* 80px */

    /* Media Queries */
    --mq-xxs: 22.5rem; /* 360px */
    --mq-xs: 30rem; /* 480px */
    --mq-s: 40rem; /* 640px */
    --ms-m: 48rem; /* 768px */
    --ms-l: 64rem; /* 1024px */
    --ms-xl: 80rem; /* 1280px */
    --mx-xxl: 100rem; /* 1600px */ 

    /* Box Shadows */
    --shadow-g: 0 0 20px rgba(66, 206, 118, 0.1);
    --shadow-b: 0 0 20px rgba(0, 0, 0, 0.1);

    /* Font */
    --font-family: 'Instrument Sans', sans-serif;
}

* {
  font-family: 'Instrument Sans', sans-serif;
  font-display: swap;
}

html, body {
    box-sizing: border-box;
    font-size: 100%;
    overflow-x: hidden;    
}

.no-scroll { overflow: hidden; }
*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Colors */
.bg-green { background-color: var(--accent); }
.bg-green-l { background-color: var(--accent-light); }
.bg-gray { background-color: var(--bg-l-gray); }
.bg-blue { background-color: var(--bg-l-blue); }
.txt-white { color: var(--white); }
.txt-dark { color: var(--primary); }
.txt-green { color: var(--accent); }

/* Buttons */
button { background: none; border: none; }
.btn { border: 0; border-radius: 5px; transition: var(--tr-cubic); cursor: pointer; }
.btn:hover { transform: translateY(-5px); }
.btn-xs { padding: 0.5rem 1rem; } 
.btn-s { padding: var(--sp-s) var(--sp-m); }
.btn-m { padding: var(--sp-s) var(--sp-l); }
.btn-green { background-color: var(--accent); color: var(--white); font-weight: bold; }
.btn-gray { background-color: var(--border); color: var(--primary); font-weight: bold; }


select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0.5rem 1rem;
  border: var(--border-s);
  background-color: var(--white);
  font-size: var(--font-size-m);
  font-family: inherit;
  color: var(--primary);
  border-radius: 10px;
  background-image: url('../images/chevron-down-solid.svg');
}
select option { padding: 0.5rem; font-family: inherit; color: var(--primary); }

.filter-group select {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: var(--bg-l-gray);
    cursor: pointer;
}

body {
    overflow: visible;
    background-color: var(--white);
    color: var(--primary);
    font-family: 'Instrument Sans', sans-serif;
}

/* Containers */
.container {
    margin: 0 auto;
    padding: 0 var(--sp-m);
    max-width: 100rem;
    width: 100%;
}

.col-15 { width: 15%; flex: 0 0 15%; }
.col-25 { width: 25%; flex: 0 0 25%; }
.col-50 { width: 50%; flex: 0 0 50%; }
.col-75 { width: 75%; flex: 0 0 75%; }
.col-100 { width: 100%; flex: 0 0 100%; }

@media (max-width: 30em)   {} /* 480px */
@media (max-width: 48em)   { } /* 768px */
@media (max-width: 60em)   { } /* 960px */
@media (max-width: 64em)   { } /* 1024px */
@media (max-width: 80em)   { } /* 1280px */
@media (min-width: 90em)   { } /* 1440px */

/* Reset */
p { line-height: var(--line-height-base); font-size: 1rem; margin: 0.875rem 0 ;}
h2 { margin: 0 0 2rem 0; font-size: var(--font-size-h2); }
a { font-size: inherit; text-decoration: none; color: inherit; }
img { width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
ul.bullet-list, .product-desc__full-description ul { list-style: disc; margin: 0.875rem 0; padding: 0 0 0 2rem; line-height: var(--line-height-base); }
ul.bullet-list li, .product-desc__full-description ul li { margin: 0; }


.flx { display: flex; }
section { margin: 1rem 0; }
.slider-section { margin: 0; }
.swiper {
  width: 100%;
  height: 300px;
}





.potd {
    display: block;
    padding: var(--sp-m);
    border: 2px solid var(--accent);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-shadow: 0 0 16px rgba(66, 206, 118, 0.2);
    transition: var(--tr-eio-f);
    cursor: pointer;
    height: fit-content;
    margin: 0 0 var(--sp-m) 0;
}

.new-products .container { display: block; }

@media (min-width: 40rem) {
    .new-products .container { display: flex; column-gap: 1rem; }
    .potd { flex: 0 0 35%; max-width: 35%; }
    .np { padding: var(--sp-m); width: calc(65% - 1rem); max-width: calc(65% - 1rem + 16px); flex: 0 0 calc(65% - 1rem + 16px); }
}

@media (min-width: 60rem) {
    .potd { flex: 0 0 22.75%; max-width: 22.75%; }
    .np { flex: 0 0 calc(77.25% - 1rem + 16px); max-width: calc(77.25% - 1rem + 16px); }
}

.potd:hover { box-shadow: 0 0 36px rgba(66, 206, 118, 0.4); }
.potd_badge { position: absolute; top: -1px; right: -1px; background-color: var(--accent); border-bottom-left-radius: 1rem; padding: 0.5rem 2rem; color: var(--white); font-weight: bold;  }

.potd-wrapper__prod-cat { margin: 0.875rem 0 0.5rem 0; }
.potd-wrapper__prod-price { font-size: var(--font-size-xl); font-weight: bold; color: var(--accent); margin: 0.875rem 0 0 0; }

.product {
    padding: var(--sp-m) var(--sp-m) var(--sp-xl) var(--sp-m);
    border-radius: 1rem;
    border: var(--border-s);
    position: relative;
    transition: var(--tr-eio-s);
    min-height: 20rem; 
}
@media (min-width: 60rem) { .product { min-height: 18rem; padding: var(--sp-m) var(--sp-m) var(--sp-l) var(--sp-m);} }
@media (min-width: 100rem) { .product { min-height: 20rem; } }
.product:hover { border-color: var(--accent); box-shadow: var(--shadow-g); }
.product__add-to-favourites { position: absolute; top: 0.5rem; right: 0.5rem; font-size: var(--font-size-l); color: var(--accent); cursor: pointer; }
.product__category { font-size: var(--font-size-xs); margin: 1rem 0 0.5rem 0; }
.product__name { font-size: var(--font-size-s); font-weight: 600;}

.product__price { position: absolute; bottom: 1rem; margin: 0.875rem 0 0 0;}


.about-greenlo .container { overflow-x: hidden; }
.about-greenlo__left {
    position: relative;
    border-bottom-right-radius: 6rem;
    border-top-left-radius: 6rem;
    background-image: url(../images/about-background.png);
    background-attachment: fixed;
    background-size: 80% 23rem;
    background-position: center;
    background-repeat: no-repeat;
}
.about-greenlo h3 { font-size: var(--font-size-h2); margin: 0 0 0.875rem 0; }
.about-greenlo p { text-align: justify; }
.about-greenlo__left p { margin: 0 0 4rem 0;}
.about-greenlo__left .left__image { display: none; }
@media (min-width: 30rem) { .about-greenlo__left { background-size: 80% 35rem; } }
@media (min-width: 48rem) {
    .about-greenlo__left, .about-greenlo__right { padding: var(--sp-xl); }
    .about-greenlo__left { background-image: none; background-color: var(--bg-l-blue); width: calc(70% + 10rem); padding: 5rem 10rem 5rem 5rem; }
    .about-greenlo__left p:last-of-type{ margin: 0; }
    .about-greenlo__left .left__image {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: -25%;
    }
}
@media (min-width: 64rem) { .about-greenlo__left { width: calc(65% + 10rem); padding: 8rem 10rem 8rem 5rem;}}
@media (min-width: 80rem) {
    .about-greenlo .container { display: flex; justify-content: space-between; column-gap: 5rem; flex-wrap: wrap; }
    .about-greenlo h2 { flex: 0 0 100%; }
    .about-greenlo__left, .about-greenlo__right { width: calc(50% - 2.5rem); }
    .about-greenlo__right { padding: 8rem 0 8rem 8rem; }
}
@media (min-width: 80rem) { .about-greenlo__right { padding: 8rem 0 8rem 10rem; }}


footer { padding: var(--sp-l) 0; border-top: var(--border-s); background-color: rgba(255,255,255,0.7); backdrop-filter: blur(10px) saturate(150%); }
.footer__copyright { flex: 0 0 100%!important; text-align: center; }
.footer__part img { width: 20rem; height: auto; }
.footer__part h4 { font-size: var(--font-size-l); }
.footer__list {
    display: none; 
    list-style: none;
    padding: 0;
    margin: 1rem 0; 
    font-size: var(--font-size-s); 
}
.footer__list li { margin: 0.5rem 0; }
.footer__list li i { margin: 0 1rem 0 0; }
.part__heading { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-m) 0; border-bottom: var(--border-s); } 

@media (min-width: 60rem) {
    footer .container { display: flex; column-gap: 2rem; row-gap: 2rem; flex-wrap: wrap; }
    .footer__logo { flex: 0 0 100%!important; }
    .footer__part { flex: 0 0 calc(50% - 1rem); }
    .part__heading { border-bottom: 0; padding: 0; }
    .part__heading i { display: none; }
    .footer__list { display: block; margin: 0; }
}
@media (min-width: 80rem) {
    .footer__part { flex: 0 0 calc(25% - 1.5rem); }
}

.fblog-slider { height: auto; }
.fblog-slider .swiper-wrapper { display: flex!important; align-items: stretch; }
.fblog-slider .swiper-slide {
  display: flex;
  flex-direction: column;
}
.fblog__item {
    border: var(--border-s);
    border-radius: 0.5rem;
    overflow: hidden; 
    transition: var(--tr-eio-f);
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.fblog__item:hover { border-color: var(--accent); box-shadow: 0 0 26px rgba(66, 206, 118, 0.2); }

.fblog__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}
.fblog__content { padding: var(--sp-m); }
.fblog__date { font-size: var(--font-size-xs); }
.fblog__title { font-size: var(--font-size-l); font-weight: 600; margin: 0.5rem 0 0 0; }

.fblog-slider .product__image,
.fblog-slider .product__category,
.fblog-slider .product__name,
.fblog-slider .product__price {
  flex: 0 0 auto;
}

.product-archives .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sidebar {
    display: none;
    max-width: 18.5rem;
    flex: 0 0 18.5rem;
    border: var(--border-s);
    padding: var(--sp-l) var(--sp-m);
    border-radius: 10px;
}

.sidebar-menu { list-style: none; padding: 0; margin: 0; }
.sidebar-menu li { margin: var(--sp-s) 0; padding: var(--sp-xs); line-height: var(--line-height-m); position: relative; }

.wc-archives-wrapper {
    width: 100%;
}

.product-archives .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    column-gap: var(--sp-m); 
}

.wc-archives-wrapper { padding: var(--sp-l) 0; }
.wc-archives__sort { display: flex; align-items: center; justify-content: space-between; }
.change-view-btn { display: none; }


@media (min-width: 30rem) {
    .wc-archives__content { display: flex; column-gap: 1rem; row-gap: 1rem; flex-wrap: wrap; }
}

@media (min-width: 64rem) { .sidebar { display: block; } }
@media (min-width: 100rem) { 
    .change-view-btn { display: block; }
    .change-view-btn i { margin-right: 0.5rem; font-size: var(--font-size-l); }
    .wc-archives__heading { display: flex; justify-content: flex-end; }
}

.sidebar__filters { display: none; padding: 0px 1rem; margin: -0.5rem 0px 2rem; }
.product-filters__heading { cursor: pointer; display: flex; justify-content: space-between; align-items: center; margin: 0 0 1.5rem 0; padding: 0.5rem 1rem; border-radius: 5px; background-color: var(--bg-l-blue); }
.filter-group { margin: 0.8rem 0; }
.filter-group__list { display: none; }
.filter-group__item { margin: 0.3rem 0; }
.filter-group__title { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: inherit; }

.active-filters { margin: 1rem 0; }
.active-filters h4 { margin: 0 0 0.5rem 0; }
.active-filters__list { display: flex; column-gap: 1rem; row-gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.5rem 0; }
.active-filters__item {
    font-size: var(--font-size-s); 
    display: flex;
    padding: 0.2rem 0.5rem;
    border: var(--border-s);
    border-radius: 5px;
    flex-direction: row;
    flex-wrap: nowrap;
    column-gap: 1rem;
    align-items: center;
}
.active-filters__item a { font-weight: bold; font-size: var(--font-size-l); }
.active-filters__clear-all { background-color: var(--bg-l-gray); font-size: var(--font-size-s); }

.sidebar i { transition: var(--tr-eio-f); }
.sidebar__filters.is-open {
  display: block;
}

.rotated { transform: rotate(180deg); }


/* ---------- poziome scrollowalne breadcrumbsy ---------- */
.breadcrumb-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* opcjonalnie: ukryj pasek przewijania w WebKit */
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE 10+ */
  touch-action: pan-x; /* ⬅️ pozwala scrollować poziomo, ale tap działa normalnie */
}
.breadcrumb-wrapper::-webkit-scrollbar {
  display: none;
}

.breadcrumb-wrapper .woocommerce-breadcrumb {
  display: inline-block;
  white-space: nowrap;
  margin: 1rem 0;
}

.breadcrumb-wrapper .woocommerce-breadcrumb a { cursor: pointer;}
.breadcrumb-wrapper .woocommerce-breadcrumb a,
.breadcrumb-wrapper .woocommerce-breadcrumb span {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--text-dark);
  text-decoration: none;
}
.breadcrumb-wrapper .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}


.toast-container {
  position: fixed;
  top: 168px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* toasty nie blokują innych kliknięć */
}

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 220px;
  max-width: 300px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  color: #fff;
  background-color: #2e7d32; /* zielony dla success */
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateX(120%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.toast.toast-error {
  background-color: #c62828;
}

.toast.visible {
  opacity: 1;
  transform: translateX(0);
}

.toast .toast-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  margin-left: 10px;
}
.moje-konto__main-wrapper { margin: 2rem 0; }
.moje-konto__nav-wrapper {
  margin: 0;
  padding: 1rem;
  border: var(--border-s);
  border-radius: 10px;
  height: fit-content;
}
.moje-konto__main-wrapper .container { display: flex; flex-direction: column; gap: 2rem; }
.moje-konto__nav-wrapper i { margin-right: 1rem;  }

.moje-konto__nav { display: none; }
.moje-konto__nav li {
  padding: 0.5rem 0;
  border-bottom: var(--border-s);
}
.moje-konto__nav li:last-child { border-bottom: none; }

@media (min-width: 60rem) {
  .moje-konto__main-wrapper .container { flex-direction: row; }
  .moje-konto__nav-wrapper { flex: 0 0 calc(25% - 1rem); }
  .moje-konto__main { flex: 0 0 calc(75% - 1rem); }
  .moje-konto__nav-wrapper i { display: none; }
  .moje-konto__nav { display: block; }
}

.woocommerce-orders-table { width: 100%; border: var(--border-s); padding: 0.5rem 1rem; border-radius: 10px; }
.woocommerce-orders-table thead tr th { padding: 0.5rem 0; border-bottom: var(--border-s); }
.woocommerce-orders-table tbody tr th { padding: 1rem 0; }
.woocommerce-orders-table tbody tr td { text-align: center; }

.woocommerce-order-details { margin: 1rem 0; }
.woocommerce-order-details__title { font-size: var(--font-size-h3); margin: 0 0 1rem 0; }
.woocommerce-table--order-details { padding: 1rem; border: var(--border-s); border-radius: 10px; }
.woocommerce-table--order-details thead th { padding: 0.5rem; border-bottom: var(--border-s); text-align: left; }
.woocommerce-table--order-details tbody td { padding: 0.5rem; text-align: left; }

.order-details__table { padding: 1rem; border: var(--border-s); border-radius: 10px; width: 100%; }
.order-details__table thead tr th { padding: 0 0 1rem 0; border-bottom: var(--border-s); }
.order-details__table tbody tr td { padding: 1.3rem 0; font-size: var(--font-size-s); border-bottom: 1px dashed var(--border); }
.order-details__table tbody tr td .wc-item-meta { display: flex; align-items: center; gap: 0.5rem; font-size: var(--font-size-xs); padding: 0.3rem 0; }
.order-details__table tbody tr td .wc-item-meta p { display: inline; font-size: var(--font-size-xs); }
.order-details__table tbody tr td .wc-item-meta .wc-item-meta-label { font-weight: normal; }
.order-details__name { text-align: left; }
.order-details__qnty { width: 4rem; max-width: 4rem; text-align: center; }
.order-details__total { width: 4rem; max-width: 4rem; text-align: center; font-weight: bold; }
.order-details__table tfoot { border-top: 2px solid var(--border); }
.order-details__table tfoot tr th, .order-details__table tfoot tr td { padding: 0.2rem 0; text-align: left; }

.order-details h2 { font-size: var(--font-size-h3); margin: 2rem 0 1rem 0; }

.order-details__totals {
  padding: 1rem;
  border: var(--border-s);
  border-radius: 10px;
}

.order-details__totals .order-total-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.order-details__totals .order-total-item:last-child { border-bottom: none; }

.order-total-label { font-weight: bold; }

.checkout__wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.checkout__section {
  background: #fafafa;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.checkout__section h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #333;
}

.checkout__fields .form-row {
  margin-bottom: 1rem;
}

.checkout__client-type {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.checkout__client-type label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.shipping-fields {
  margin-top: 1rem;
}

.woocommerce-error {
  border: 1px solid var(--red)!important;
  border-radius: 10px!important;
  background-color: #fff8f9!important;
}
.woocommerce-error li { margin: 0.5rem 0!important; }

.moje-konto__main .my-account-addresses .woocommerce-Address {
    padding: 1rem;
    border: var(--border-s);
    border-radius: 10px;
    margin: 0 0 2rem 0;
}

.moje-konto__main .my-account-addresses .woocommerce-address-header {
    display: flex;
    justify-content: space-between;
    padding: 0 0 0.75rem 0;
    border-bottom: var(--border-s);
    margin: 0 0 1rem 0;
}

.moje-konto__main .my-account-addresses .woocommerce-address-header .edit {
  padding: 5px 8px;
  border-radius: 5px;
  background-color: var(--accent);
  color: var(--white);
}

.moje-konto__main .my-account-addresses .woocommerce-Address .woocommerce-address-details li {
    border-bottom: 1px dashed var(--border);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.moje-konto__main .my-account-addresses .woocommerce-Address .woocommerce-address-details li:last-child { border-bottom: none; }

@media (min-width: 64rem) {
  .moje-konto__main .my-account-addresses { display: flex; justify-content: space-between; gap: 2rem; }
  .moje-konto__main .my-account-addresses .woocommerce-Address { flex: 0 0 calc(50% - 1rem); }
}

.sub-menu {
  display: none;
    position: absolute;
    padding: 1rem;
    border-radius: 10px;
    border: var(--border-s);
    top: -2rem;
    left: calc(100% + 1rem);
    background-color: var(--white);
    z-index: 99;
    min-width: 350px;
}

.moje-konto__main h1 { margin: 0 0 2rem 0; }


@media (max-width: 1600px) {
  .product-page__variation-table {
    position: relative;
  }

  .scroll-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    animation: scroll-hint-fade 3s ease-in-out forwards;
  }

  .scroll-hint i {
    animation: scroll-hint-move 1.5s ease-in-out infinite;
  }

  @keyframes scroll-hint-fade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
  }

  @keyframes scroll-hint-move {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(-16px); }
    100% { transform: translateX(0); }
  }
}

.page-contact .container { max-width: 64rem; }
.page-contact__left {
  background-color: var(--bg-l-blue);
  border-radius: 5rem 0rem 5rem 0rem;
  padding: 3rem 2rem;
}
.page-contact__info {
    border-color: #a0b0c3;
    border-radius: 2rem 0 2rem 0;
}

.page-contact__info li {
    margin: 0.7rem 0;
    padding: 0.5rem 1rem;
    background-color: #d0dded;
    border-radius: 10px;
}
.page-contact__info li i { margin: 0 0.5rem 0 0; }

.page-contact__right {
  position: relative;
  top: -3rem;
  padding: 1rem;
}

@media (min-width: 50rem) {
  .page-contact__left {
  padding: 6rem 3rem;
}
  .page-contact .container { padding: 6rem 5rem; display: flex; }
}

.inquiry-button {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  padding: 0.7rem 0.8rem;
  background-color: #2bdaba;
  border-radius: 5px;
  display: flex;
  align-items: center;
  cursor: pointer; 
  z-index: 99;
  color: var(--white);
  font-size: var(--font-size-l);
}
.inquiry-button i { font-size: var(--font-size-l); }

.inquiry-btn-txt {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  font-size: var(--font-size-m); 
}

.inquiry-count-badge {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  background-color: var(--primary);
  height: 20px;
  width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-family);
}

.inquiry-panel {
    display: none;
    overflow-y: auto;
    background-color: var(--white);
}
.inquiry-panel.is-open { display: block; position: relative; z-index: 9999999; }

.inquiry-panel__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    z-index: 998;
}

.inquiry-panel__sheet {
    position: fixed;
    max-width: 64rem; 
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    background-color: var(--white);
    z-index: 999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-b);
    border-radius: 15px;
    overflow-y: auto;
}

.inquiry-panel__header {
    padding: 1.5rem 1rem;
    background-color: #2bdaba;
    color: var(--white);
}

.inquiry-panel__header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inquiry-panel__header h3 { font-weight: 500; }
.inquiry-panel__header h3 i { margin: 0 0.5rem 0 0; }

.inquiry-panel__close-btn {
    font-size: var(--font-size-l);
    color: var(--white);
    cursor: pointer;
}

@media (min-width: 50rem) {
  .inquiry-panel__content .container { display: flex; flex-wrap: wrap; gap: 2rem; }
  .inquiry-panel__products { flex: 0 0 calc(60% - 1rem); }
  .inquiry-panel__form-wrapper { flex: 0 0 calc(40% - 1rem); }
}

.inquiry-panel__copy {
    margin: 1rem 0;
    padding: 1rem 0.6rem;
    background-color: var(--bg-l-blue);
    border-radius: 10px;
}
.inquiry-panel__copy p { margin: 0; }
.inquiry-panel h4 { font-size: var(--font-size-xl); margin: 2rem 0 1rem 0; }
.product-list__item {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border: var(--border-s);
  border-radius: 10px;
  overflow: hidden;
  padding: 0.5rem;
  margin: 0 0 1rem 0;
  position: relative; 
}

.product-list__item-img { flex: 0 0 50px; }

.product-list__item-img img {
    width: 50px;
    height: 50px;
    border: var(--border-s);
    border-radius: 5px;
    overflow: hidden;
    padding: 5px;
}

.product-list__item-meta { flex: 0 0 calc(100% - 50px - 1rem); }

.product-list__item-title {
  font-size: var(--font-size-l);
  font-weight: 500;
  margin: 0.5rem 0;
}

.product-list__wrapper {
  max-height: 500px;
  overflow-y: auto; 
}

.product-list__item-attrs {
    font-size: var(--font-size-xs);
    display: flex;
    gap: 0 0.5rem;
    flex-wrap: wrap;
}

.product-list__item-sku{
    padding: 5px 10px;
    font-size: var(--font-size-xs);
    font-weight: bold;
    background-color: var(--bg-l-blue);
    width: fit-content;
    border-radius: 5px;
    margin: 0 0 0.5rem 0;
}

.product-list__item-actions a {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 35px;
    background-color: var(--bg-l-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--tr-eio-f);
    font-size: var(--font-size-m);
    cursor: pointer;
  }

  .product-list__item-actions a:hover { background-color: var(--bg-l-red); }

.product-list__item-qty { flex: 0 0 100%; }
.product-list__item-qty input {
  border: var(--border-s);
  border-radius: 5px;
  width: 4rem;
  padding: 0;
  font-size: var(--font-size-m);
  color: var(--primary);
  font-family: var(--font-family);
  text-align: center;
}

.inquiry-panel__form-field {
  position: relative;
  margin: 0 0 1rem 0;
}

.inquiry-panel__form-field label {
    position: absolute;
    top: -1rem;
    left: calc(1rem - 5px);
    padding: 5px;
    background-color: var(--white);
    font-size: var(--font-size-s);
}

.inquiry-panel__form-field input, .inquiry-panel__form-field textarea {
    border: var(--border-s);
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    font-family: var(--font-family);
    color: var(--primary);
    font-size: var(--font-size-m);
}

.inquiry-panel__form-actions { margin: 0 0 3rem 0; }

/* Komunikaty */
.inquiry-panel__messages {
  margin: 1rem 0;
}
.inquiry-panel__messages .msg {
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.inquiry-panel__messages .msg--success {
  background: #e6f8f0;
  color: #1a7f4c;
  border: 1px solid #a4e0c0;
}
.inquiry-panel__messages .msg--error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6c6;
}

.footer__list_svg {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0.5rem 0 0 0;
}

.footer__list_svg li { width: 45px; }
.footer__list_social li { width: unset; }
.footer__list_social li a { display: flex; justify-content: center; align-items: center; }
.footer__list_social li a i { font-size: var(--font-size-xl); margin: 0 0.3rem 0 0; }

.footer__list_svg img { max-height: 35px; width: auto!important; }

.gsb img {    margin: 0.5rem 0 0 0;
    height: 80px;
    width: auto;}

    .footer__list p { font-size: var(--font-size-s); }
    

/* Payments */

.page-template-page-payments, .page-template-page-terms {
  background-image: url(images/bg-logo-blue.png);
  background-size: 370px;
  background-position: 150% 0;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.page-payments .container, .page-delivery .container, .page-terms .container  { max-width: 80rem; }
.payments__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payments__info {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow-b);
  margin: 2rem 0 3rem 0;
}
.payments__info h2 { margin: 0; color: var(--accent); }

.payments__info-company, .payments__info-bank {
  font-size: var(--font-size-m);
  margin: 1rem 0;
  padding: 1rem;
  border: 2px dashed var(--bg-l-gray);
  border-radius: 5px;
  line-height: var(--line-height-base);
}

.payments__info-company-details li { display: flex; justify-content: space-between; }

.payments__grid-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border: var(--border-s);
  border-radius: 5px;
  transition: var(--tr-eio-s);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px) saturate(200%);
}

.payments__grid-tile:hover {
  border-color: var(--accent); 
}

@media (min-width: 64rem) {
  .page-template-page-payments, .page-template-page-delivery, .page-template-page-terms { background-position: 116% -166px; background-size: 47%; }
  .page-payments, .page-terms { margin: 14rem 0 5rem 0; }
  .page-payments .container { display: flex; flex-wrap: wrap; gap: 2rem; }
  .payments__copy { flex: 0 0 100%; }
  .payments__txt, .payments__methods { flex: 0 0 calc(50% - 1rem); height: fit-content; margin: 0; }
}

.payments__accordion-item-title {
  margin: 0 0 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--bg-l-blue);
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.payments__accordion-item-title { transition: var(--tr-cubic); }

.payments__accordion-item-content {
  display: none;
  line-height: var(--line-height-base);
  padding: 0 1rem 1rem 1rem;
}

.is-rotated { transform: rotate(180deg); }


.page-template-page-delivery {
  background-image: url(images/bg-logo-blue.png), url(images/bg-logo-blue.png);
  background-size: 340px, 340px;
  background-position: 224% -27px, -141% 88%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.delivery__hero-img { display: none; }

@media (min-width: 64rem) {
  .delivery__hero {
    display: flex;
    flex-wrap: nowrap;
    gap: 6rem;
    align-items: center;
  }
}

.delivery__table-wrapper { overflow: hidden; border-radius: 15px; margin: 2rem 0; box-shadow: var(--shadow-b); }
.delivery__table-item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border);
}
.delivery__table-item:last-child{ border-bottom: 0; }
.delivery__table-img img { max-height: 35px; width: auto; }
.delivery__table-item.table-head { border-bottom: 0!important; }
.delivery__table-item.table-head .delivery__table-cell { background-color: var(--accent); color: var(--white); font-weight: bold; }

.delivery__table-cell {
  background-color: var(--white);
  padding: 4px 8px;
  text-align: center;
  display: flex;
  min-height: 70px;
  justify-content: center;
  align-items: center; 
}

.delivery__table-img { flex: 0 0 20%; }
.delivery__table-name { flex: 0 0 35%; }
.delivery__table-cost { flex: 0 0 15%; }
.delivery__table-free-shipping { flex: calc(30% - 0.8rem); }

@media (min-width: 50rem) {
  .page-delivery .container { display: flex; flex-wrap: nowrap; gap: 2rem; }
  .delivery__hero, .delivery__table { flex: 0 0 calc(50% - 1rem); }
  .page-delivery { margin: 14rem 0 5rem 0; }
  .page-template-page-delivery {
    background-size: 501px, 599px;
    background-position: 109% -22px, -15% 80%;
  }
}

.box-l-green { display: inline-block; padding: 0.5rem 1rem; background-color: var(--bg-l-green); border-radius: 5px; text-align: justify; }

.terms__content { text-align: justify; line-height: var(--line-height-m); text-wrap-mode: wrap; }
.terms__content h3 { margin: 2.5rem 0 1rem 0; }
.terms__part { margin: 2rem 0; padding: 3rem 4rem; border-radius: 15px; box-shadow: var(--shadow-b); background-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px) saturate(150%); }
.terms__ol li { margin: 0.5rem 0; word-wrap: break-word; /* Starsze przeglądarki */
  overflow-wrap: break-word;}
.terms__ol li ul { list-style: disc; padding: 0 0 0 2rem; }
.terms__ul { list-style: disc; padding: 0 0 0 2rem; }
.terms__ul li { margin: 0.5rem 0; }

.variable-cta{
  display:flex; gap:.5rem; align-items:center; flex-wrap:wrap;
  margin: 1rem 0 0 0;
}
.variable-cta i { margin-right: 0.5rem; }



    .about__svg { display: none; }
    .page-template-page-about, .page-template-page-company, .page-template-page-kontakt {
      background-image: url(images/bg-logo-blue.png);
      background-size: 370px;
      background-position: 150% 0;
      background-repeat: no-repeat;
      background-attachment: fixed;
    }

    .about-highlight { display: block; padding: 1rem; font-size: 1.2rem; line-height: 1.3; font-style: italic; background-color: var(--bg-l-blue); border-radius: 10px; margin: 1rem 0; }
    .img-round { border-radius: 10px; margin: 1.5rem 0; }
    .page-about { margin: 14rem 0 5rem 0; }
      .page-about ul { list-style: disc; padding: 0 0 0 2rem; }
      .page-about ul li { margin: 0.5rem 0; }
      .page-about h2 { margin: 2rem 0 0 0; }

    @media (min-width: 64rem) {
      .page-template-page-about, .page-template-page-company, .page-template-page-kontakt {
        background-size: 501px, 599px;
        background-position: 109% -22px, -15% 80%;
        background-image: url(images/bg-logo-blue.png), url(images/bg-logo-blue.png);
      }
      .page-about .container { max-width: 80rem; display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
      .about__copy { padding: 4rem; background-color: rgba(255, 255, 255, 0.7); backdrop-filter: blur(10px) saturate(150%); border-radius: 15px; flex: 0 0 calc(75% - 4rem); height: fit-content; }
      .about-hightlight { font-size: 1.5rem; }
      .about__svg { display: block; height: 1700px; flex: 0 0 190px; }
      .company__svg { height: 600px!important; }
    .about__svg svg { height: 100%; }
    }

    .gl-ship-method__label { display: inline-flex!important; align-items: center; gap: 1rem; }
    .gl-ship-method__label img { max-width: 50px; height: auto; }



    /* — Główna galeria produktu / obraz wyróżniony — */
.single-product .woocommerce-product-gallery,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1;         /* dostosuj do realnych proporcji zdjęć (np. 4/3) */
  min-height: 320px;            /* bezpieczny minimalny placeholder na mobile */
}
.single-product .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* — Tabela wariantów: stałe wymiary kolumny z miniaturą — */
.product__variant-table td:first-child,
.product-variants-table td.thumb,
.table-variants td.thumb {      /* dopasuj do Twoich klas tabeli */
  width: 72px;
}
.product__variant-table td:first-child img,
.product-variants-table td.thumb img,
.table-variants td.thumb img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

/* — Box „Opcje zakupu” / listy benefitów: zarezerwuj wysokość — */
.product__buybox,
.product__benefits {
  min-height: 160px;            /* placeholder zanim dojdą fonty/ikony */
}

/* — Nagłówek: bez zmiany wysokości po „sticky”/class-toggle — */
.site-header,
.site-header.is-sticky {
  height: 72px;                 /* jeden stały wymiar, bez skakania */
}

/* ===========================
   404 PAGE
   =========================== */

.page-404 {
  padding: clamp(2rem, 3vw, 4rem) 0 5rem;
}

.page-404 .notfound__hero {
  text-align: center;
  margin: 1rem 0 1.25rem;
}
.page-404 .notfound__hero h1 {
  margin: 0 0 .5rem;
  line-height: 1.2;
  font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem);
  letter-spacing: -0.01em;
}
.page-404 .notfound__hero p {
  max-width: 70ch;
  margin: 0 auto;
  color: var(--text-muted, #6b7280);
}

/* Actions (buttons) */
.page-404 .notfound__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 2.25rem;
}

/* Local button styles (scoped, nie nadpisują globalnego .btn) */
.page-404 .btn {
  --btn-bg: var(--accent, #10b981);
  --btn-fg: var(--on-accent, #ffffff);
  --btn-bd: var(--accent, #10b981);
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease;
  box-shadow: var(--shadow-b, 0 6px 18px rgba(0,0,0,.08));
}
.page-404 .btn--secondary {
  --btn-bg: var(--surface, #ffffff);
  --btn-fg: var(--text, #111827);
  --btn-bd: var(--border, #e5e7eb);
}
.page-404 .btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text, #111827);
  --btn-bd: transparent;
  box-shadow: none;
}
.page-404 .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-b, 0 10px 24px rgba(0,0,0,.10));
}
.page-404 .btn:active {
  transform: translateY(0);
}
.page-404 .btn:focus-visible {
  outline: 3px solid var(--accent, #10b981);
  outline-offset: 2px;
}

/* Search block */
.page-404 .notfound__search {
  max-width: 900px;
  margin: 0 auto 2rem;
}
.page-404 .notfound__search h2 {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem);
  margin: 0 0 .75rem;
}

/* Wrapper na wzór headera, ale wyrównany do 404 */
.page-404 .main-search__wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: .5rem;
  padding: .35rem;
  border-radius: .9rem;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--white, #ffffff);
  box-shadow: var(--shadow-b, 0 10px 24px rgba(0,0,0,.06));
}
.page-404 .main-search__aside,
.page-404 .main-search__menu-btn {
  display: none; /* w 404 nie potrzebujemy przycisku menu */
}
.page-404 .main-search__input {
  display: flex;
  align-items: center;
  padding: .25rem .5rem;
}
.page-404 .main-search__input input[type="search"] {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  padding: .6rem .25rem;
}
.page-404 .main-search__search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem .9rem;
  border: 1px solid var(--accent, #10b981);
  background: var(--accent, #10b981);
  color: var(--on-accent, #ffffff);
  border-radius: .65rem;
  cursor: pointer;
  transition: filter .12s ease, transform .12s ease;
}
.page-404 .main-search__search-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Quick links & categories */
.page-404 .notfound__links,
.page-404 .notfound__categories {
  margin-top: 2rem;
}
.page-404 .notfound__links h2,
.page-404 .notfound__categories h2 {
  font-size: clamp(1.125rem, 1rem + .5vw, 1.35rem);
  margin: 0 0 .75rem;
}

.page-404 .notfound__links-list,
.page-404 .notfound__cat-list {
  --min: 180px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  gap: .75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-404 .notfound__links-item a,
.page-404 .notfound__cat-item a {
  display: block;
  padding: .875rem 1rem;
  border-radius: .75rem;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface, #ffffff);
  color: var(--text, #111827);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.page-404 .notfound__links-item a:hover,
.page-404 .notfound__cat-item a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent, #10b981) 30%, #e5e7eb);
  box-shadow: var(--shadow-b, 0 10px 24px rgba(0,0,0,.08));
}

/* A11y */
.page-404 :where(a, button):focus-visible {
  outline: 3px solid var(--accent, #10b981);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .page-404 * { transition: none !important; }
}

/* Dark mode (jeśli globalnie nie nadpisujesz) */
@media (prefers-color-scheme: dark) {
  .page-404 .notfound__hero p { color: var(--text-muted, #9ca3af); }
  .page-404 .main-search__wrapper,
  .page-404 .notfound__links-item a,
  .page-404 .notfound__cat-item a {
    background: var(--surface, #0b0f14);
    border-color: var(--border, #1f2937);
    box-shadow: none;
    color: var(--text, #e5e7eb);
  }
  .page-404 .btn--secondary {
    --btn-bg: var(--surface, #0b0f14);
    --btn-fg: var(--text, #e5e7eb);
    --btn-bd: var(--border, #1f2937);
  }
}
.page-404 .main-search__input { border: none!important; }

/* Lightbox – ultralekki */
.gl-noscroll { overflow: hidden; }

.gl-lightbox{
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0,0,0,.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease;
}
.gl-lightbox.is-open{
  opacity: 1;
  visibility: visible;
}
.gl-lightbox__stage{
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
}
.gl-lightbox__stage img{
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: .5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.gl-lightbox__caption{
  margin-top: .5rem;
  text-align: center;
  font-size: .95rem;
  color: #fff;
  opacity: .9;
}
.gl-lightbox__close{
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer;
}
.gl-lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.gl-lightbox__prev{ left: 1rem; }
.gl-lightbox__next{ right: 1rem; }

.gl-lightbox__nav:hover,
.gl-lightbox__close:hover{
  background: rgba(255,255,255,.2);
}

/* Miniatury w tabeli wariantów */
.product-variation-table .variation-thumb{
  cursor: zoom-in;
  border-radius: .5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
}
.product-variation-table .variation-thumb:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
}

/* Mobile */
@media (max-width: 640px){
  .gl-lightbox{ padding: 1rem; }
  .gl-lightbox__nav,
  .gl-lightbox__close{ width: 38px; height: 38px; font-size: 1.2rem; }
}

.vt-img, .vt-img picture { display: flex;  justify-content: center; }