/* ==========================================================================
   Sempre Borse – wygląd sklepu (sekcja 6 specyfikacji)
   Kolory: #2B1A15 brąz, #B0856A akcent, #D6C9BD separator, #F6EFE8 beż, #F8F6F4 tło, #7A6A60 tekst pomocniczy
   ========================================================================== */

:root {
	--sb-brown: #2b1a15;
	--sb-accent: #b0856a;
	--sb-line: #d6c9bd;
	--sb-beige: #f6efe8;
	--sb-light: #f8f6f4;
	--sb-muted: #7a6a60;
}

/* ---------- Przejścia między stronami (wjazd 14 px / 0,45 s, wyjście 0,2 s) ---------- */
.sb-main { animation: sbPageEnter .45s cubic-bezier(.22, .61, .36, 1) backwards; }
@keyframes sbPageEnter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
html.sb-leaving .sb-main { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
@media (prefers-reduced-motion: reduce) {
	.sb-main { animation: none; }
	html.sb-leaving .sb-main { transition: none; opacity: 1; transform: none; }
}

/* ---------- Nagłówek ---------- */
header.wp-block-template-part:has(.sb-header) { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part:has(.sb-header) { top: 32px; }
.sb-header { border-bottom: 1px solid var(--sb-line); }
.sb-header__row { min-height: 104px; gap: 16px; }
.sb-logo img { height: 100px; width: auto !important; display: block; }
.sb-nav .wp-block-navigation-item__content {
	position: relative;
	display: inline-block;
	padding: 6px 26px !important;
	color: var(--sb-brown);
	font-size: 15px;
	letter-spacing: .01em;
	text-decoration: none;
}
.sb-nav .wp-block-navigation-item + .wp-block-navigation-item .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 1px;
	height: 22px;
	transform: translateY(-50%);
	background: var(--sb-line);
}
.sb-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 26px;
	right: 26px;
	bottom: 0;
	height: 1px;
	background: var(--sb-accent);
	opacity: 0;
}
.sb-nav .wp-block-navigation-item__content:hover::after,
.sb-nav .current-menu-item > .wp-block-navigation-item__content::after { opacity: 1; }
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::before { display: none; }

.sb-header__actions { color: var(--sb-brown); }
.sb-account a,
.sb-account .label {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--sb-brown);
}
.sb-search .wp-block-search__button { background: transparent; color: var(--sb-brown); padding: 6px; border: 0; }
.sb-search .wp-block-search__button:hover { background: transparent; color: var(--sb-accent); }

@media (max-width: 781px) {
	.sb-header__row { min-height: 76px; }
	.sb-logo img { height: 64px; }
	.sb-account .label { display: none; }
	.admin-bar header.wp-block-template-part:has(.sb-header) { top: 0; }
}

/* ---------- Typografia pomocnicza ---------- */
.sb-eyebrow {
	font-size: 12px !important;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--sb-accent);
	margin-bottom: 0;
}
.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--sb-brown);
	border: 1px solid var(--sb-brown);
}
.is-style-outline > .wp-block-button__link:hover { background: var(--sb-brown); color: var(--sb-beige); }
.sb-pill > .wp-block-button__link { border-radius: 999px; }

/* ---------- Strona główna: baner ---------- */
.sb-hero { overflow: hidden; }
.sb-hero .wp-block-cover__background {
	opacity: 1 !important;
	background: linear-gradient(90deg, #f8f6f4 0%, #f8f6f4 30%, rgba(248, 246, 244, .86) 42%, rgba(248, 246, 244, 0) 64%) !important;
}
.sb-hero .wp-block-cover__image-background {
	transform: scale(1.06) translate3d(var(--sb-hx, 0px), var(--sb-hy, 0px), 0);
	transition: transform 1.6s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}
.sb-hero.is-in .wp-block-cover__image-background { transform: scale(1.02) translate3d(var(--sb-hx, 0px), var(--sb-hy, 0px), 0); }
.sb-hero .wp-block-cover__inner-container { width: 100% !important; max-width: 1280px; margin-inline: auto !important; }
.sb-hero__content { color: var(--sb-brown); max-width: 540px !important; margin-left: 0 !important; margin-right: auto !important; }
.sb-hero__title { font-size: clamp(3rem, 6vw, 5.4rem) !important; font-weight: 500; margin: .3em 0 .35em; }
.sb-hero__title em { color: var(--sb-accent); font-style: italic; }
.sb-hero__lead { max-width: 430px; color: #4a3b33; }
.sb-hero__buttons { margin-top: 1.6rem; }
.sb-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	list-style: none;
	padding: 0;
	margin: 1.8rem 0 0;
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--sb-muted);
}
.sb-feat { position: relative; padding-left: 22px; max-width: 130px; }
.sb-feat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1px;
	width: 14px;
	height: 14px;
	background: var(--sb-accent);
	-webkit-mask: var(--sb-icon) center / contain no-repeat;
	mask: var(--sb-icon) center / contain no-repeat;
}
.sb-feat--b2b { --sb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='8' width='18' height='13'/%3E%3Cpath d='M3 12h18M12 8v13M7.5 8C5 8 5 4 7.5 4 10 4 12 8 12 8s2-4 4.5-4C19 4 19 8 16.5 8'/%3E%3C/svg%3E"); }
.sb-feat--ship { --sb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M1 6h13v10H1zM14 10h4l4 4v2h-8z'/%3E%3Ccircle cx='6' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }
.sb-feat--new { --sb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E"); }

@media (max-width: 781px) {
	/* Telefon: zdjęcie na górze, tekst niżej na jasnym tle (ciemny tytuł nie ginie na zdjęciu). */
	.sb-hero { min-height: 0 !important; padding-top: 300px !important; align-items: flex-end !important; }
	.sb-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(248, 246, 244, 0) 0, rgba(248, 246, 244, 0) 190px, rgba(248, 246, 244, .9) 265px, #f8f6f4 300px, #f8f6f4 100%) !important;
	}
	.sb-hero .wp-block-cover__image-background { object-position: 72% 0 !important; height: 360px !important; bottom: auto !important; }
	.sb-hero__content { padding-left: 0 !important; padding-right: 0 !important; }
	.sb-hero__title { margin-top: .1em; }
	.sb-hero__buttons .wp-block-button { width: 100%; }
	.sb-hero__buttons .wp-block-button__link { width: 100%; text-align: center; }
	.sb-intro__inner { align-items: flex-start !important; }
	.sb-intro__inner > * { text-align: left !important; }
	.sb-intro__sep { margin-left: 0 !important; }
}

/* ---------- Strona główna: tekst i Instagram ---------- */
.sb-intro__inner { align-items: flex-end; gap: 1.1rem; }
.sb-intro__title { font-size: clamp(2.6rem, 5.2vw, 4.4rem) !important; font-weight: 500; }
.sb-intro__sep { width: min(500px, 100%) !important; margin: .4rem 0 !important; border: 0; height: 1px; }
.sb-intro__text { max-width: 520px; font-size: 1.05rem; }

.sb-ig { position: relative; }
.sb-ig__track {
	display: flex;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}
.sb-ig__track::-webkit-scrollbar { display: none; }
.sb-ig__item { flex: 0 0 calc((100% - 32px) / 3); scroll-snap-align: start; }
.sb-ig__item img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.sb-ig__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 30px;
	height: 30px;
	transform: translateY(-50%);
	border: 1px solid var(--sb-line);
	border-radius: 50%;
	background: #fff;
	color: var(--sb-brown);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.sb-ig__prev { left: 8px; }
.sb-ig__next { right: 8px; }
.sb-insta__cta { margin-top: 28px !important; }
@media (max-width: 781px) { .sb-ig__item { flex-basis: 78%; } }

/* ---------- Przyciski kategorii, siatka, znaczek „Nowość” ---------- */
.sb-cat-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.is-layout-constrained > .sb-cat-buttons { max-width: var(--wp--style--global--wide-size) !important; }
.sb-cat-button {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid var(--sb-line);
	color: var(--sb-brown);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.sb-cat-button:hover { border-color: var(--sb-brown); color: var(--sb-brown); }
.sb-cat-button.is-active { background: var(--sb-brown); border-color: var(--sb-brown); color: var(--sb-beige); }

.wc-block-components-product-image { position: relative; }
.sb-new-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 5px 10px;
	background: var(--sb-brown);
	color: var(--sb-beige);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.wc-block-product .wp-block-post-title,
.wc-block-product .wp-block-post-title a { font-family: var(--wp--preset--font-family--cormorant); font-size: 1.35rem; font-weight: 600; text-decoration: none; }
.wc-block-components-product-image img { background: var(--sb-light); }

/* ---------- Karta produktu ---------- */
.sb-product__title { font-size: clamp(2.2rem, 3.4vw, 3rem) !important; font-weight: 500; margin-bottom: .2em; }
.sb-product__price, .sb-product__price .price { font-size: 1.25rem; }
.woocommerce-price-suffix { font-size: .75em; font-weight: 400; opacity: .7; margin-left: 4px; }
.sb-sku { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sb-muted); margin: .4rem 0 1.2rem; }
.sb-sku__value { color: var(--sb-brown); font-weight: 500; }
.sb-product__form table.variations { border: 0; margin: 0 0 1rem; width: 100%; }
.sb-product__form table.variations tr { display: block; margin-bottom: 14px; }
.sb-product__form table.variations th,
.sb-product__form table.variations td { display: block; padding: 0; text-align: left; border: 0; }
.sb-product__form table.variations th.label label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--sb-brown);
}
.sb-product__form table.variations th.label { display: block !important; margin-bottom: 8px; }
.sb-product__form .cfvsw-selected-label { display: none !important; }
.sb-opt-value { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--sb-muted); }
.sb-product__form .reset_variations,
.sb-product__form .woocommerce-variation-availability,
.sb-product__form .stock { display: none !important; }
.sb-product__form form.cart:not(.variations_form),
.sb-product__form .woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: stretch; margin-top: 8px; }
.sb-product__form .quantity input.qty { width: 72px; height: 100%; min-height: 50px; border: 1px solid var(--sb-line); text-align: center; }
.sb-product__form .single_add_to_cart_button,
.sb-b2b-locked__button { flex: 1; min-height: 50px; }
.sb-product__desc { margin-top: 1.4rem; color: #4a3b33; }
.sb-dims { font-size: 14px; color: var(--sb-muted); }
.sb-dims strong { color: var(--sb-brown); font-weight: 600; }

/* Galeria produktu */
.sb-pg { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
.sb-pg-thumbs { display: flex; flex-direction: column; gap: 10px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.sb-pg-thumb { flex: 0 0 auto; width: 88px; height: 88px; padding: 0; border: 1px solid #ddd2ca; border-radius: 6px; background: #fff; overflow: hidden; cursor: pointer; }
.sb-pg-thumb[aria-current="true"] { border: 2px solid var(--sb-brown); }
.sb-pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-pg-stage { position: relative; overflow: hidden; background: var(--sb-light); touch-action: pan-y; }
.sb-pg-track { display: flex; transition: transform .45s cubic-bezier(.22, .61, .36, 1); }
.sb-pg-track.is-instant { transition: none; }
.sb-pg-slide { flex: 0 0 100%; }
.sb-pg-main { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: transparent; cursor: zoom-in; }
.sb-pg-main img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.sb-pg-nav { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.sb-pg-nav button {
	width: 44px;
	height: 44px;
	border: 1px solid var(--sb-brown);
	border-radius: 50%;
	background: #fff;
	color: var(--sb-brown);
	font-size: 29px;
	line-height: 1;
	cursor: pointer;
}
@media (max-width: 749px) {
	.sb-pg { grid-template-columns: 1fr; }
	.sb-pg-thumbs { order: 2; flex-direction: row; overflow-x: auto; overflow-y: hidden; max-height: none !important; }
	.sb-pg-thumb { width: 64px; height: 64px; }
	.sb-pg-nav { right: 12px; bottom: 12px; }
	.sb-pg-nav button { width: 42px; height: 42px; font-size: 27px; }
}

/* Powiększenie zdjęcia */
/* Przeglądanie zdjęć na pełnym ekranie (style w premium.css) */

/* Podobne produkty */
.sb-related { margin-top: 72px; }
.sb-related__title { text-align: center; font-size: clamp(2rem, 3vw, 2.6rem) !important; font-weight: 500; margin-bottom: 28px; }
.sb-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.sb-card__link { display: block; color: var(--sb-brown); text-decoration: none; }
.sb-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--sb-light); }
.sb-card__title { display: block; margin-top: 10px; font-family: var(--wp--preset--font-family--cormorant); font-size: 1.3rem; font-weight: 600; }
.sb-card__price { font-size: 14px; }
@media (max-width: 781px) { .sb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

/* ---------- Koszyk, kasa, konto ---------- */
.sb-cart-note { font-size: 13px; color: var(--sb-muted); margin: 10px 0 16px; }
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce-page form .input-text {
	border: 1px solid var(--sb-line);
	border-radius: 2px;
	padding: 12px 14px;
	background: #fff;
	color: var(--sb-brown);
}
.woocommerce form .input-text:focus { border-color: var(--sb-brown); outline: none; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .checkout-button {
	background: var(--sb-brown);
	color: var(--sb-beige);
	border-radius: 0;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: 13px;
	font-weight: 600;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--sb-accent); color: #fff; }

/* ---------- Stopka ---------- */
.sb-footer { font-size: 14px; }
.sb-footer__brand { font-size: 1.6rem !important; letter-spacing: .06em; color: var(--sb-beige) !important; font-weight: 500; margin: 0; }
.sb-footer__block strong { letter-spacing: .08em; font-weight: 500; }
.sb-footer a { text-decoration: none; }
.sb-footer a:hover { color: var(--sb-accent) !important; }
.sb-social .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 4px;
	background: var(--sb-beige);
	color: var(--sb-brown) !important;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}
.sb-social .wp-block-button__link::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--sb-icon) center / contain no-repeat;
	mask: var(--sb-icon) center / contain no-repeat;
}
.sb-social--facebook { --sb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V4h-3c-2.8 0-4 1.7-4 4.3V11H7v4h3v9h4v-9h3l1-4h-4V8.6c0-.4.3-.6.6-.6z'/%3E%3C/svg%3E"); }
.sb-social--instagram { --sb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.5'/%3E%3C/svg%3E"); }
.sb-social .wp-block-button__link:hover { background: var(--sb-accent); color: #fff !important; }
.sb-footer__sep { margin: 36px 0 18px !important; opacity: .5; }
.sb-footer__bottom { font-size: 12px; color: #d9c3b0; }

/* Oznaczenie projektu dokumentu (np. polityka prywatności przed sprawdzeniem przez prawnika) */
.sb-draft-note { padding: 12px 14px; border: 1px solid #a3261b; background: #fbe4e2; color: #a3261b; font-size: 14px; }
.sb-draft-note strong { color: #a3261b; }

/* ---------- Telefon: kategorie w jednym przewijanym rzędzie, kupon w koszyku ---------- */
@media (max-width: 781px) {
	.sb-cat-buttons { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; margin-right: calc(-1 * var(--wp--style--root--padding-right, 16px)); }
	.sb-cat-buttons::-webkit-scrollbar { display: none; }
	.sb-cat-buttons > * { flex: none; white-space: nowrap; }
	.woocommerce-cart table.cart td.actions .coupon { display: flex; flex-direction: column; gap: 8px; float: none; width: 100%; }
	.woocommerce-cart table.cart td.actions .coupon .input-text,
	.woocommerce-cart table.cart td.actions .coupon .button { width: 100% !important; margin: 0 !important; }
	.woocommerce-cart table.cart td.actions > .button { width: 100%; margin-top: 8px; }
}
@media (max-width: 599px) {
	/* Lista produktów na telefonie: 2 kolumny (więcej modeli na ekranie). */
	.wc-block-product-template__responsive.wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 20px 14px !important; }
	.wc-block-product-template .wp-block-post-title { font-size: 1rem !important; }
	.woocommerce-cart .wc-proceed-to-checkout .checkout-button { width: 100%; display: block; text-align: center; }
}
@media (max-width: 599px) {
	/* Formularze (kontakt, rejestracja, adresy, kasa): na telefonie jedno pole w wierszu. */
	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last,
	.sb-contact .form-row-first,
	.sb-contact .form-row-last { float: none !important; width: 100% !important; }
}

/* ---------- Telefon: menu na całym ekranie ---------- */
.sb-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base, #f8f6f4) !important;
	padding: 28px 24px !important;
}
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 56px !important; align-items: flex-start !important; }
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 4px !important; }
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--cormorant, serif);
	font-size: 2rem !important;
	line-height: 1.25;
	padding: .2em 0 !important;
	color: var(--wp--preset--color--contrast, #2b1a15) !important;
}
.sb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }
