/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-dark: #3a0a0a; --green: #7a1c1c; --green-mid: #a03232; --green-light: #c87878;
  --cream: #f8f4ee; --cream-dark: #ede8df; --brown: #6b4c2a; --brown-light: #c49a6c;
  --text: #1e1e1e; --text-muted: #5a5a5a; --white: #ffffff; --red: #c0392b; --gold: #f4c430;
  --shadow: 0 4px 24px rgba(0,0,0,.10); --shadow-lg: 0 8px 48px rgba(0,0,0,.18);
  --radius: 12px; --radius-sm: 8px; --transition: .25s ease;
}
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a5a5a' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px !important; cursor: pointer; }
.container { width: 80%; max-width: 1700px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ===== TYPOGRAPHY ===== */
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; color: var(--green-dark); }
.section-sub   { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 12px auto 0; }
.section-tag   { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-mid); margin-bottom: 8px; }
.section-header { text-align: center; margin-bottom: 48px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 28px; border-radius: 50px; font-size: .93rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); font-family: inherit; white-space: nowrap; }
.btn--primary  { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost    { border-color: rgba(255,255,255,.7); color: var(--white); background: rgba(255,255,255,.08); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--outline  { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--login    { background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.7); color: var(--white); border-radius: 50px; padding: 8px 20px; font-size: .88rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: var(--transition); }
.btn--login:hover { background: rgba(255,255,255,.28); }
.btn--full     { width: 100%; }
.btn:disabled  { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ===== HEADER ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(58,10,10,.96); backdrop-filter: blur(12px); box-shadow: 0 2px 16px rgba(0,0,0,.3); transition: background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease; }
.header.scrolled { background: rgba(58,10,10,.5); backdrop-filter: blur(6px); box-shadow: none; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 24px; }
.logo { display: flex; align-items: center; }
.logo__img { height: 44px; width: auto; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.nav { display: flex; gap: 4px; }
.nav__link { padding: 8px 14px; border-radius: 8px; color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; transition: var(--transition); }
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.12); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.user-badge { display: flex; align-items: center; gap: 8px; }
.user-badge__name { font-size: .85rem; color: rgba(255,255,255,.85); }
.user-badge__logout { background: none; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.8); border-radius: 6px; padding: 4px 10px; font-size: .8rem; cursor: pointer; font-family: inherit; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20,4,4,.88) 0%, rgba(58,10,10,.70) 50%, rgba(90,20,20,.80) 100%), url('images/hero-bg.jpg') center/cover no-repeat; }
.hero__content { position: relative; z-index: 1; text-align: center; padding: 100px 24px 60px; }
.hero__tag { display: inline-block; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 18px; border-radius: 50px; margin-bottom: 24px; }
.hero__title { margin-bottom: 24px; line-height: 1; }
.hero__logo { height: clamp(120px, 22vw, 240px); width: auto; object-fit: contain; filter: brightness(0) invert(1); display: block; margin: 0 auto; }
.hero__sub { color: rgba(255,255,255,.8); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero__trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.hero__trust span { color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 500; }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: 1.4rem; animation: bounce 2s infinite; cursor: pointer; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===== CATEGORIES ===== */
.categories { padding: 80px 0; background: var(--cream); }
.categories__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.category-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); background: var(--white); cursor: pointer; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card__img { height: 220px; }
.category-card__img--farmed { background: linear-gradient(160deg,rgba(58,10,10,.5),rgba(122,28,28,.35)), url('https://images.unsplash.com/photo-1552825897-bb7b1c77ca80?w=800&auto=format&fit=crop') center/cover; }
.category-card__img--exotic { background: linear-gradient(160deg,rgba(90,58,32,.6),rgba(138,96,64,.5)), url('https://images.unsplash.com/photo-1474979266404-7eaacbcd87c5?w=800&auto=format&fit=crop') center/cover; }
.category-card__body { padding: 28px; flex: 1; }
.category-card__body h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--green-dark); margin-bottom: 8px; }
.category-card__body p  { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 16px; }
.category-card__link    { color: var(--green-mid); font-weight: 600; font-size: .9rem; }

/* ===== SHOP LAYOUT ===== */
.products { padding: 60px 0 80px; }
.shop-inline { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }

/* Category sidebar */
.cat-sidebar { position: sticky; top: 90px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cat-sidebar__hdr { display: flex; align-items: center; padding: 16px 18px; background: var(--green-dark); color: var(--white); font-size: .9rem; }
.cat-tree { padding: 10px 8px; }
.cat-all-btn { width: 100%; text-align: left; padding: 10px 12px; border: none; background: none; font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm); color: var(--text-muted); display: flex; justify-content: space-between; transition: var(--transition); }
.cat-all-btn:hover, .cat-all-btn.active { background: var(--green); color: var(--white); }
.cat-group { margin-bottom: 4px; }
.cat-group-btn { width: 100%; text-align: left; padding: 10px 12px; border: none; background: none; font-family: inherit; font-size: .87rem; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm); color: var(--green-dark); display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.cat-group-btn:hover { background: var(--cream); }
.cat-group-btn.active { background: rgba(122,28,28,.1); color: var(--green); }
.cat-group-btn span { font-size: .75rem; background: var(--cream-dark); color: var(--text-muted); padding: 2px 7px; border-radius: 50px; }
.cat-products { padding-left: 8px; display: flex; flex-direction: column; gap: 1px; }
.cat-prod-btn { width: 100%; text-align: left; padding: 7px 12px; border: none; background: none; font-family: inherit; font-size: .82rem; cursor: pointer; border-radius: 6px; color: var(--text-muted); transition: var(--transition); }
.cat-prod-btn:hover { background: var(--cream); color: var(--green-dark); }
.cat-prod-btn.active { color: var(--green); font-weight: 600; background: rgba(122,28,28,.08); }
.cat-count { font-size: .72rem; background: var(--cream-dark); color: var(--text-muted); padding: 1px 6px; border-radius: 50px; margin-left: 4px; }

/* ===== INLINE PRODUCT VIEW ===== */
.shop-main-area { min-width: 0; }
.shop-product-view { transition: opacity .2s ease; }
.shop-product-grid { display: grid; grid-template-columns: 2fr 3fr; gap: 40px; align-items: start; margin-bottom: 60px; }

/* Gallery */
.pd-gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.pd-gallery__main img, #shopMainImg { width: 100%; height: 420px; object-fit: contain; display: block; cursor: zoom-in; transition: transform .4s; background: var(--white); }
.pd-gallery__main img:hover { transform: scale(1.03); }
.pd-badge { position: absolute; top: 14px; left: 14px; color: var(--white); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; background: var(--green); }
.pd-badge--egzotyczne { background: var(--brown); }
.pd-stock { position: absolute; bottom: 14px; left: 14px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.pd-stock--in  { background: rgba(90,20,20,.9); color: var(--white); }
.pd-stock--low { background: rgba(230,126,34,.9); color: var(--white); }
.pd-stock--out { background: rgba(192,57,43,.9); color: var(--white); }
.pd-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 3px solid transparent; transition: border-color .2s; flex-shrink: 0; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; background: var(--cream); }
.pd-thumb.active { border-color: var(--green); }
.pd-thumb:hover { border-color: var(--green-light); }

/* Info column */
.shop-info-col { display: flex; flex-direction: column; }
.pd-name { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--green-dark); margin-bottom: 12px; line-height: 1.2; }
.pd-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.pd-long { margin-bottom: 20px; }
.pd-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--cream-dark); margin-bottom: 18px; }
.pd-tab-btn { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; padding: 9px 16px; font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.pd-tab-btn:hover { color: var(--green); }
.pd-tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.pd-tab-panel { display: none; font-size: .9rem; color: var(--text-muted); line-height: 1.8; white-space: pre-line; }
.pd-tab-panel.active { display: block; }
.pd-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; background: var(--cream); border-radius: var(--radius-sm); margin-bottom: 20px; }
.pd-meta-item strong { display: block; font-size: .72rem; color: var(--green-mid); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.pd-meta-item span { font-size: .88rem; color: var(--text); }
.pd-label { font-size: .85rem; font-weight: 600; color: var(--green-dark); margin-bottom: 10px; }
.pd-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pd-pill { padding: 9px 18px; border-radius: 50px; border: 2px solid var(--cream-dark); background: var(--white); font-size: .88rem; font-weight: 600; cursor: pointer; transition: var(--transition); color: var(--text-muted); }
.pd-pill:hover { border-color: var(--green); color: var(--green); }
.pd-pill.active { background: var(--green); border-color: var(--green); color: var(--white); }
.pd-purchase { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.qty-ctrl { display: flex; align-items: center; border: 2px solid var(--cream-dark); border-radius: 50px; overflow: hidden; }
.qty-btn { width: 40px; height: 40px; border: none; background: none; font-size: 1.2rem; cursor: pointer; color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--cream); }
.qty-val { min-width: 36px; text-align: center; font-size: 1rem; font-weight: 700; }
.pd-price-block { flex: 1; }
.pd-price { font-size: 1.9rem; font-weight: 700; color: var(--green); display: block; }
.pd-price-each { font-size: .8rem; color: var(--text-muted); }
.pd-actions { margin-bottom: 16px; }
.pd-actions__row { display: flex; gap: 10px; }
.pd-actions__add  { flex: 7; }
.pd-actions__cart { flex: 3; white-space: nowrap; }
.pd-trust { display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--cream-dark); }
.pd-trust span { font-size: .78rem; color: var(--text-muted); }

/* ===== SIMILAR PRODUCTS ===== */
.shop-similar { border-top: 1px solid var(--cream-dark); padding-top: 40px; }
.shop-similar__title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--green-dark); margin-bottom: 24px; }
.shop-similar__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.similar-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: var(--transition); display: flex; flex-direction: column; }
.similar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.similar-card__img { position: relative; height: 160px; overflow: hidden; background: var(--white); }
.similar-card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.similar-card:hover .similar-card__img img { transform: scale(1.06); }
.similar-card__body { padding: 12px 14px; flex: 1; }
.similar-card__name { font-size: .9rem; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; line-height: 1.3; }
.similar-card__price { font-size: .88rem; color: var(--green); font-weight: 700; margin-bottom: 10px; }
.product-card__badge { position: absolute; top: 8px; left: 8px; color: var(--white); font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 50px; }
.product-card__badge--hodowlane { background: var(--green); }
.product-card__badge--egzotyczne { background: var(--brown); }
.product-card__btn { display: block; width: calc(100% - 28px); margin: 0 14px 14px; background: var(--green); color: var(--white); border: none; border-radius: 50px; padding: 8px 14px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; }
.product-card__btn:hover { background: var(--green-dark); }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--cream); }
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about__img { height: 460px; border-radius: var(--radius); background: linear-gradient(200deg,rgba(58,10,10,.3),rgba(0,0,0,.1)), url('images/about-bg.jpg') center/cover; box-shadow: var(--shadow-lg); }
.about__content .section-title { margin-bottom: 20px; text-align: left; }
.about__content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.about__stats { display: flex; gap: 40px; margin-top: 36px; }
.stat__num { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--green); font-weight: 700; display: block; }
.stat__label { font-size: .85rem; color: var(--text-muted); font-weight: 500; }

/* ===== CERTS + NEWSLETTER ===== */
.certs { padding: 80px 0; }
.certs-nl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.certs-nl-col .section-tag { margin-bottom: 8px; }
.certs-nl-col .section-title { font-size: 1.5rem; margin-bottom: 20px; }
.cert-main__lead { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--green-dark); margin-bottom: 14px; }
.cert-main__text { color: var(--text-muted); font-size: .93rem; line-height: 1.75; margin-bottom: 12px; display: block; }
.cert-show-btn { margin-top: 24px; }

/* cert modal */
.cert-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 2000; align-items: center; justify-content: center; padding: 24px; }
.cert-modal.open { display: flex; }
.cert-modal__box { position: relative; max-width: min(860px, 90vw); max-height: 90vh; border-radius: var(--radius); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.cert-modal__box img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; display: block; }
.cert-modal__close { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.cert-modal__close:hover { background: rgba(0,0,0,.85); }

.certs-nl-col--nl { display: flex; align-items: center; }
.newsletter-box { background: var(--green); border-radius: var(--radius); padding: 48px 40px; width: 100%; }
.newsletter-box__title { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--white); margin-bottom: 12px; }
.newsletter-box__sub { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: 28px; line-height: 1.6; }
.newsletter__form { display: flex; flex-direction: column; gap: 12px; }
.newsletter__input { width: 100%; padding: 13px 20px; border-radius: 50px; border: none; font-family: inherit; font-size: .95rem; }
.newsletter__input:focus { outline: 2px solid rgba(255,255,255,.5); }
.newsletter__form .btn { background: var(--white); color: var(--green); border-color: var(--white); align-self: flex-start; padding: 13px 32px; }
.newsletter__form .btn:hover { background: var(--cream); }

/* ===== BOROWCZYK GROUP BUTTON ===== */
.borowczyk-btn { display: flex; align-items: center; padding: 4px 8px; border-radius: 8px; border: none; text-decoration: none; transition: var(--transition); }
.borowczyk-btn:hover { background: rgba(255,255,255,.12); }
.borowczyk-btn__logo { height: 28px; width: auto; object-fit: contain; filter: brightness(0) invert(1); display: block; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--cream); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact__items { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; font-size: .85rem; }
.contact__item > span { font-size: 1.4rem; margin-top: 2px; }
.contact__item strong { display: block; font-weight: 600; color: var(--green-dark); margin-bottom: 4px; }
.contact__item a, .contact__item span { color: var(--text-muted); line-height: 1.6; }
.contact__item a:hover { color: var(--green); }
.contact__form-wrap { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact__form-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--green-dark); margin-bottom: 20px; }
.contact__borowczyk { margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--cream-dark); }
.contact__borowczyk-text { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.contact__borowczyk-text strong { color: var(--green-dark); }
.contact__borowczyk-link { display: inline-flex; align-items: center; gap: 12px; background: var(--green-dark); padding: 10px 20px; border-radius: var(--radius); text-decoration: none; transition: var(--transition); }
.contact__borowczyk-link:hover { background: var(--green); }
.contact__borowczyk-logo { height: 34px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.contact__borowczyk-link span { font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.85); letter-spacing: .02em; }

/* ===== FORMS ===== */
.contact-form, .auth-form, .addr-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label, .auth-form label, .addr-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--green-dark); }
.contact-form input, .contact-form select, .contact-form textarea,
.auth-form input,
.addr-form input, .addr-form textarea, .addr-form select {
  padding: 12px 14px; border: 2px solid var(--cream-dark); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: inherit; transition: border-color .2s;
  background: var(--cream); width: 100%; color: var(--text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus,
.auth-form input:focus,
.addr-form input:focus, .addr-form textarea:focus, .addr-form select:focus { outline: none; border-color: var(--green); background: var(--white); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red) !important; background: #fff9f9 !important; }
.field-error { font-size: .78rem; color: var(--red); margin-top: 3px; display: none; }
.field-error.show { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-success { color: var(--green); font-size: .9rem; padding: 8px 0; }
.checkbox-label { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; font-size: .85rem; font-weight: 400 !important; color: var(--text-muted) !important; cursor: pointer; }
.checkbox-label input[type=checkbox] { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; cursor: pointer; accent-color: var(--green); }
.checkbox-label a { color: var(--green); text-decoration: underline; }
.terms-section { display: flex; flex-direction: column; gap: 12px; }

/* ===== FOOTER ===== */
.footer { background: var(--green-dark); color: rgba(255,255,255,.7); padding: 28px 0; border-top: 2px solid rgba(122,28,28,.6); }
.footer__inner { width: 80%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer__logo { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .8; }
.footer__copy { font-size: .8rem; }
.footer__links { display: flex; gap: 10px; }
.footer__links a { font-size: .8rem; color: rgba(255,255,255,.7); padding: 5px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; white-space: nowrap; min-width: 140px; text-align: center; transition: background .2s, color .2s; }
.footer__links a:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ===== FLOATING CART ===== */
.fcart { position: fixed; bottom: 24px; right: 24px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fcart__btn { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: var(--white); border: none; cursor: pointer; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); transition: var(--transition); position: relative; }
.fcart__btn:hover { background: var(--green-dark); transform: scale(1.08); }
.fcart__count { position: absolute; top: -4px; right: -4px; background: var(--brown-light); color: var(--white); font-size: .7rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--white); }
.fcart__popup { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 680px; max-height: 520px; display: flex; flex-direction: column; overflow: hidden; }
.fcart__popup-hdr { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--cream-dark); }
.fcart__popup-hdr h4 { font-family: 'Playfair Display', serif; color: var(--green-dark); font-size: 1.1rem; }
.fcart__close { background: none; border: none; font-size: 1rem; cursor: pointer; color: var(--text-muted); padding: 4px 8px; border-radius: 4px; }
.fcart__items { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fcart__empty { text-align: center; color: var(--text-muted); padding: 24px 0; font-size: .9rem; }
.fcart__footer { padding: 14px 20px; border-top: 1px solid var(--cream-dark); display: flex; flex-direction: column; gap: 10px; }
.fcart__total { display: flex; justify-content: space-between; font-size: 1rem; }
.fcart__total strong { color: var(--green); font-size: 1.1rem; }
.cart-item { display: flex; gap: 10px; align-items: center; padding: 10px; background: var(--cream); border-radius: var(--radius-sm); }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: .85rem; font-weight: 600; color: var(--green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__var  { font-size: .78rem; color: var(--text-muted); }
.cart-item__qty  { display: flex; align-items: center; gap: 6px; }
.cart-item__qty button { background: var(--white); border: 1px solid var(--cream-dark); border-radius: 4px; width: 26px; height: 26px; cursor: pointer; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.cart-item__qty span { font-size: .85rem; font-weight: 600; min-width: 18px; text-align: center; }
.cart-item__price { font-size: .9rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.cart-item__remove { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: .8rem; padding: 2px 6px; border-radius: 4px; }
.cart-item__remove:hover { color: var(--red); background: #fef0f0; }
.cart-item--mandatory .cart-item__remove { display: none; }

/* ===== MODALS ===== */
.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal.open { opacity: 1; pointer-events: all; }
.modal__box { background: var(--white); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-lg); transform: translateY(12px); transition: transform .3s; }
.modal.open .modal__box { transform: translateY(0); }
.modal__close { position: absolute; top: 16px; right: 16px; background: var(--cream); border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 1rem; cursor: pointer; color: var(--text-muted); }
.modal__close:hover { background: var(--cream-dark); }
.modal h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--green-dark); margin-bottom: 8px; }
.modal__sub { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; line-height: 1.6; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 399; opacity: 0; pointer-events: none; transition: opacity .3s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.auth-tabs { display: flex; margin-bottom: 24px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--cream-dark); }
.auth-tab { flex: 1; padding: 12px; border: none; background: none; font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--text-muted); transition: var(--transition); }
.auth-tab--active { background: var(--green); color: var(--white); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--cream-dark); }
.auth-note { text-align: center; font-size: .8rem; color: var(--text-muted); margin-top: 12px; }

/* ===== CHECKOUT ===== */
.co { position: fixed; inset: 0; background: var(--cream); z-index: 300; transform: translateY(100%); transition: transform .4s ease; overflow-y: auto; scrollbar-gutter: stable; display: flex; flex-direction: column; }
.co.open { transform: translateY(0); }
.co-hdr { position: sticky; top: 0; background: rgba(58,10,10,.98); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 70px; z-index: 10; gap: 24px; box-shadow: 0 2px 16px rgba(0,0,0,.3); }
.co-hdr__exit { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); border-radius: 8px; padding: 8px 14px; font-size: .85rem; cursor: pointer; font-family: inherit; }
.co-steps { display: flex; align-items: center; }
.co-step { display: flex; align-items: center; gap: 8px; }
.co-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; background: rgba(255,255,255,.2); color: rgba(255,255,255,.6); }
.co-step span { font-size: .85rem; color: rgba(255,255,255,.5); }
.co-step--active .co-circle { background: var(--white); color: var(--green-dark); }
.co-step--active span { color: var(--white); font-weight: 600; }
.co-step--done .co-circle { background: var(--green-light); color: var(--white); }
.co-line { width: 28px; height: 2px; background: rgba(255,255,255,.2); margin: 0 8px; }
.co-body { display: grid; grid-template-columns: 1fr 360px; gap: 40px; max-width: 1100px; margin: 0 auto; width: 100%; padding: 40px 24px 80px; align-items: start; }
.co-main { display: flex; flex-direction: column; gap: 24px; }
.co-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--green-dark); }
.co-section { background: var(--white); border-radius: var(--radius); padding: 28px; }
.co-section-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--green-dark); margin-bottom: 18px; }
.co-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.co-sidebar { position: sticky; top: 90px; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.co-sidebar h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--green-dark); margin-bottom: 16px; }
.co-sidebar-btn { margin-top: 14px; }
.co-cart-items-wrap { display: flex; flex-direction: column; gap: 10px; }
.co-cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px; background: var(--white); border-radius: var(--radius-sm); box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.co-cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.co-cart-item__name { font-weight: 600; color: var(--green-dark); font-size: .95rem; }
.co-cart-item__var  { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.co-cart-item__ctrl { display: flex; align-items: center; gap: 10px; }
.co-cart-item__price { font-weight: 700; color: var(--green); font-size: 1rem; white-space: nowrap; }
.ship-opts { display: flex; flex-direction: column; gap: 12px; }
.ship-opt { display: flex; align-items: center; gap: 16px; padding: 18px; border: 2px solid var(--cream-dark); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.ship-opt:hover { border-color: var(--green-light); }
.ship-opt.selected { border-color: var(--green); background: #f9eaea; }
.ship-opt input[type=radio] { width: 20px; height: 20px; min-width: 20px; accent-color: var(--green); cursor: pointer; }
.ship-opt__info { flex: 1; }
.ship-opt__name { font-weight: 600; color: var(--green-dark); font-size: .95rem; }
.ship-opt__desc { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.ship-opt__price { font-size: 1.05rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.pay-info-box { background: var(--cream); border-radius: var(--radius-sm); padding: 20px; font-size: .9rem; line-height: 1.8; }
.pay-info-box strong { color: var(--green-dark); }
.pay-account { font-family: monospace; font-size: 1rem; color: var(--green); font-weight: 700; word-break: break-all; }
.co-sum { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.co-sum-item { display: flex; justify-content: space-between; gap: 8px; color: var(--text-muted); }
.co-sum-item span:first-child { flex: 1; }
.co-sum-divider { height: 1px; background: var(--cream-dark); margin: 6px 0; }
.co-sum-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-top: 4px; }
.co-sum-total strong { color: var(--green); font-size: 1.2rem; }
.co-success { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.co-success-content { text-align: center; max-width: 480px; }
.co-success-icon { font-size: 4rem; margin-bottom: 20px; }
.co-success-content h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--green-dark); margin-bottom: 12px; }
.co-order-num { font-size: 1.1rem; color: var(--green); font-weight: 600; margin-bottom: 12px; }
.co-success-content p { color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }
.co-success-details { background: var(--cream); border-radius: var(--radius-sm); padding: 16px; margin: 20px 0; text-align: left; font-size: .88rem; line-height: 1.8; color: var(--text-muted); }
.co-success-details strong { color: var(--green-dark); }
.co-success-content .btn { margin-top: 24px; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--green-dark); color: var(--white); padding: 14px 28px; border-radius: 50px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 600; transition: transform .3s ease, opacity .3s ease; opacity: 0; white-space: nowrap; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== ACCOUNT DATA FORM ===== */
.acc-section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 10px; border-bottom: 1px solid var(--cream-dark); padding-bottom: 6px; }
.acc-label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.acc-input { border: 1.5px solid var(--cream-dark); border-radius: 8px; padding: 10px 14px; font-family: inherit; font-size: .95rem; color: var(--text); background: var(--white); transition: border-color .2s; width: 100%; box-sizing: border-box; }
.acc-input:focus { outline: none; border-color: var(--green); }
.acc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== ORDER HISTORY ===== */
.order-card { background: var(--cream); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px; border: 1px solid var(--cream-dark); }
.order-card__hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.order-card__hdr strong { color: var(--green-dark); font-size: .95rem; }
.order-date { color: var(--text-muted); font-size: .82rem; }
.order-card__items { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; line-height: 1.6; }
.order-card__foot { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-muted); }
.order-card__foot strong { color: var(--green); font-size: .9rem; }
.order-status { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.order-status--nowe { background: #e8f4fd; color: #2980b9; }
.order-status--przyjete { background: #fef9e7; color: #f39c12; }
.order-status--wyslane { background: #e8f5e9; color: #27ae60; }
.order-status--dostarczone { background: #d5f5e3; color: #1e8449; }
.order-status--anulowane { background: #fdedec; color: #c0392b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .container { width: 90%; }
  .shop-similar__grid { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 1100px) {
  .co-body { grid-template-columns: 1fr; }
  .co-sidebar { position: static; }
}

@media (max-width: 900px) {
  .container { width: 93%; padding: 0 16px; }
  .categories__grid { grid-template-columns: 1fr; }
  .about { padding: 64px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__img { height: 300px; }
  .about__stats { gap: 24px; flex-wrap: wrap; }
  .contact { padding: 64px 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 36px; }
  .certs { padding: 56px 0; }
  .certs-nl-grid { grid-template-columns: 1fr; gap: 40px; }
  .shop-inline { grid-template-columns: 1fr; gap: 20px; }
  .cat-sidebar { position: static; }
  .cat-sidebar__hdr { cursor: pointer; }
  .shop-product-grid { grid-template-columns: 1fr; gap: 24px; }
  .pd-gallery__main img, #shopMainImg { height: 300px; }
  .shop-similar__grid { grid-template-columns: repeat(2,1fr); }
  .footer__inner { gap: 20px; width: 90%; }
}

@media (max-width: 700px) {
  .container { width: 100%; padding: 0 16px; }

  /* Header */
  .header__inner { gap: 10px; }
  .nav {
    display: none;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column; padding: 8px 12px 16px;
    z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav__link { padding: 14px 16px; font-size: 1rem; border-radius: 8px; }
  .menu-toggle { display: flex; }
  .borowczyk-btn { display: none; }
  .user-badge__name { display: none; }
  .btn--login { padding: 8px 14px; font-size: .8rem; }

  /* Hero */
  .hero__content { padding: 90px 16px 50px; }
  .hero__title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .hero__sub { font-size: .95rem; }
  .hero__cta { gap: 10px; }
  .hero__trust { gap: 12px; }
  .hero__trust span { font-size: .75rem; }

  /* Shop */
  .products { padding: 40px 0 60px; }
  .shop-inline { grid-template-columns: 1fr; }
  .cat-sidebar { border-radius: var(--radius-sm); }
  .cat-sidebar__hdr::after { content: '▼'; margin-left: auto; font-size: .75rem; opacity: .7; }
  .cat-sidebar.collapsed .cat-tree { display: none; }
  .cat-sidebar.collapsed .cat-sidebar__hdr::after { content: '▶'; }
  .shop-product-grid { grid-template-columns: 1fr; gap: 20px; }
  .pd-gallery__main img, #shopMainImg { height: 250px; }
  .pd-gallery__thumbs { gap: 6px; }
  .pd-thumb { width: 56px; height: 56px; }
  .pd-meta { grid-template-columns: 1fr; gap: 6px; }
  .pd-tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .pd-tab-btn { padding: 9px 12px; font-size: .8rem; white-space: nowrap; }
  .pd-actions__row { flex-direction: column; gap: 8px; }
  .pd-actions__add, .pd-actions__cart { flex: none; width: 100%; }
  .pd-purchase { gap: 10px; }
  .shop-similar__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .similar-card__body { padding: 10px 12px; }
  .similar-card__img { height: 130px; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Certs */
  .cert-main__img { margin-top: 20px; }

  /* About */
  .about { padding: 48px 0; }
  .about__img { height: 240px; }
  .stat__num { font-size: 2rem; }

  /* Checkout */
  .co-hdr { padding: 0 16px; gap: 12px; }
  .co-step span { display: none; }
  .co-body { padding: 24px 16px 60px; }
  .co-section { padding: 20px 16px; }
  .co-nav { gap: 10px; }
  .co-cart-item { grid-template-columns: 48px 1fr auto; gap: 10px; }

  /* Floating cart – bottom sheet on mobile */
  .fcart { bottom: 0; right: 0; left: 0; width: 100%; align-items: stretch; }
  .fcart__btn { position: fixed; bottom: 16px; right: 16px; width: 58px; height: 58px; font-size: 1.4rem; }
  .fcart__popup {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; max-height: 80vh; border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.25);
  }

  /* Footer */
  .footer__inner { flex-direction: column; align-items: center; text-align: center; width: 90%; }

  /* Modals full-screen on mobile */
  .modal { padding: 0; align-items: flex-end; }
  .modal__box { max-width: 100%; width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; padding: 28px 20px; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 2.2rem; }
  .pd-gallery__main img, #shopMainImg { height: 210px; }
  .shop-similar__grid { grid-template-columns: 1fr; }
  .pd-pills { gap: 6px; }
  .pd-pill { padding: 8px 14px; font-size: .82rem; }
  .btn { padding: 11px 20px; font-size: .88rem; }
}

/* ===== HAMBURGER ANIMATION ===== */
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle span { transition: transform .25s ease, opacity .25s ease; }

/* ===== COOKIE CONSENT BAR ===== */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--green-dark); color: #fff;
  border-top: 2px solid var(--green);
  padding: 18px 24px;
  transform: translateY(110%);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2);
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar__inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-bar__text { flex: 1; min-width: 260px; font-size: .9rem; line-height: 1.6; }
.cookie-bar__link { color: #e8c9a0; text-underline-offset: 3px; margin-left: 8px; }
.cookie-bar__link:hover { color: #fff; }
.cookie-bar__actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-bar__accept { background: var(--green); color: #fff; border: none; padding: 10px 22px; font-size: .9rem; cursor: pointer; border-radius: var(--radius); font-weight: 600; }
.cookie-bar__accept:hover { background: #9a2c2c; }
.cookie-bar__reject { background: transparent; color: #ccc; border: 1px solid rgba(255,255,255,.3); padding: 10px 22px; font-size: .9rem; cursor: pointer; border-radius: var(--radius); font-weight: 400; }
.cookie-bar__reject:hover { color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 600px) {
  .cookie-bar { padding: 16px; }
  .cookie-bar__inner { flex-direction: column; gap: 14px; }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__accept, .cookie-bar__reject { flex: 1; text-align: center; }
}

/* ===== REGISTER FORM ERRORS ===== */
.auth-form .field-error { display: block; color: #e74c3c; font-size: .78rem; margin-top: 3px; min-height: 14px; }
