/*
 * Sempre Borse – Atelier (wersja próbna)
 * Redakcyjny, „magazynowy” wygląd: duża typografia szeryfowa, numerowane sekcje,
 * cienkie linie, dużo powietrza, spokojne animacje. Dotyczy strony głównej, sklepu i karty produktu.
 * Ładowane po sempre.css i premium.css.
 */

.sb-atelier {
	--at-ink: #2b1a15;
	--at-ink-2: #3a2620;
	--at-cream: #f8f6f4;
	--at-sand: #f1ebe4;
	--at-photo: #f8f5f0;
	--at-accent: #b0856a;
	--at-muted: #7a6a60;
	--at-line: rgba(43, 26, 21, .14);
	--at-serif: var(--wp--preset--font-family--cormorant, Cormorant, Georgia, serif);
	--at-sans: var(--wp--preset--font-family--montserrat, Montserrat, Arial, sans-serif);
	--at-ease: cubic-bezier(.22, .61, .36, 1);
	--at-gutter: var(--wp--preset--spacing--50, 24px);
	--at-wide: var(--wp--style--global--wide-size, 1280px);
	/* Odstęp od krawędzi ekranu tak, żeby treść była w linii z logo */
	--at-edge: max(var(--at-gutter), calc((100vw - var(--at-wide)) / 2));
}

/* ---------- Wspólne elementy ---------- */
.sb-atelier .sb-at-section {
	max-width: var(--at-wide);
	margin: 0 auto;
	padding: clamp(80px, 9vw, 152px) var(--at-gutter);
	box-sizing: content-box;
}
.sb-at-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-family: var(--at-sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--at-accent);
}
.sb-at-eyebrow span { color: var(--at-line); }
.sb-at-line { display: inline-block; width: 44px; height: 1px; background: currentColor; }
.sb-at-num {
	margin: 0 0 18px;
	font-family: var(--at-sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--at-accent);
}
.sb-at-num span { color: var(--at-muted); font-weight: 500; }
.sb-atelier .sb-at-h2 {
	margin: 0;
	font-family: var(--at-serif);
	font-size: clamp(2.5rem, 4.4vw, 4.75rem) !important;
	font-weight: 400 !important;
	line-height: 1.02 !important;
	letter-spacing: -.01em;
	color: var(--at-ink);
}
.sb-at-h2 em,
.sb-at-hero__title em { font-style: italic; color: var(--at-accent); }
.sb-at-lead { font-size: 15.5px; line-height: 1.85; color: #4a3b33; max-width: 46ch; }

.sb-at-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 19px 36px;
	overflow: hidden;
	isolation: isolate;
	background: var(--at-ink);
	color: var(--at-cream) !important;
	font-family: var(--at-sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .26em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: color .45s var(--at-ease);
}
.sb-at-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--at-accent);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .55s var(--at-ease);
}
.sb-at-btn:hover::before,
.sb-at-btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.sb-at-btn--light { background: var(--at-cream); color: var(--at-ink) !important; }
.sb-at-btn--light:hover { color: var(--at-cream) !important; }

.sb-at-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	font-family: var(--at-sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--at-ink) !important;
	white-space: nowrap;
}
.sb-at-link::after { content: "→"; font-size: 14px; letter-spacing: 0; transition: transform .4s var(--at-ease); }
.sb-at-link:hover::after,
a:hover > .sb-at-link::after,
a:hover .sb-at-link::after { transform: translateX(6px); }
.sb-at-link--light { color: var(--at-cream) !important; }

/* Pojawianie się przy przewijaniu (tylko gdy działa JS – bez JS treść jest od razu widoczna) */
.sb-at-js .sb-at-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--at-ease), transform 1s var(--at-ease); }
.sb-at-js .sb-at-reveal.is-in { opacity: 1; transform: none; }
.sb-at-js .sb-at-steps__list .sb-at-reveal:nth-child(2) { transition-delay: .12s; }
.sb-at-js .sb-at-steps__list .sb-at-reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- Strona główna: baner ---------- */
.sb-at-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	min-height: min(calc(100svh - 128px), 920px);
	background: var(--at-cream);
}
.sb-at-hero__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(56px, 7vw, 120px) clamp(28px, 5vw, 96px) clamp(48px, 5vw, 80px) var(--at-edge);
}
.sb-atelier .sb-at-hero__title {
	margin: 0 0 30px;
	font-family: var(--at-serif);
	font-size: clamp(3.4rem, 6.6vw, 8.6rem) !important;
	font-weight: 400 !important;
	line-height: .94 !important;
	letter-spacing: -.02em;
	color: var(--at-ink);
}
.sb-at-hero__lead { max-width: 40ch; margin: 0 0 40px; font-size: 16px; line-height: 1.8; color: #4a3b33; }
.sb-at-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.sb-at-facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 560px;
	margin: clamp(48px, 6vw, 88px) 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--at-line);
}
.sb-at-facts dt { font-family: var(--at-serif); font-size: clamp(1.6rem, 2vw, 2.1rem); line-height: 1; color: var(--at-ink); }
.sb-at-facts dd { margin: 8px 0 0; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--at-muted); }

.sb-at-hero__media { position: relative; overflow: hidden; background: #3a2a22; }
.sb-at-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 80% 50%;
	animation: sb-at-kenburns 2.4s var(--at-ease) both;
}
@keyframes sb-at-kenburns { from { transform: scale(1.09); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.sb-at-hero__vertical {
	position: absolute;
	top: 50%;
	right: 22px;
	margin: 0;
	transform: translateY(-50%) rotate(180deg);
	writing-mode: vertical-rl;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .4em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .78);
}
.sb-at-hero-card {
	position: absolute;
	left: clamp(20px, 3vw, 44px);
	bottom: clamp(20px, 3vw, 44px);
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 340px;
	padding: 12px 22px 12px 12px;
	background: rgba(248, 246, 244, .92);
	backdrop-filter: blur(10px);
	text-decoration: none !important;
	color: var(--at-ink) !important;
	transition: transform .5s var(--at-ease), box-shadow .5s var(--at-ease);
}
.sb-at-hero-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(20, 10, 6, .25); }
.sb-at-hero-card__img { flex: none; width: 72px; height: 72px; background: var(--at-photo); }
.sb-at-hero-card__img img { width: 100%; height: 100%; object-fit: contain; filter: url(#sb-photo-flat); }
.sb-at-hero-card__txt { display: grid; gap: 4px; }
.sb-at-hero-card__label { font-size: 9.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--at-accent); }
.sb-at-hero-card__name { font-family: var(--at-serif); font-size: 1.35rem; line-height: 1.1; }
.sb-at-hero-card__more { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--at-muted); }

/* Pasek z przewijanym napisem */
.sb-at-marquee { overflow: hidden; background: var(--at-ink); color: var(--at-cream); }
.sb-at-marquee__track { display: flex; width: max-content; animation: sb-at-marquee 48s linear infinite; }
.sb-at-marquee:hover .sb-at-marquee__track { animation-play-state: paused; }
.sb-at-marquee span {
	display: inline-flex;
	align-items: center;
	gap: 44px;
	padding: 20px 0 20px 44px;
	font-family: var(--at-serif);
	font-size: clamp(1.15rem, 1.6vw, 1.5rem);
	font-style: italic;
	white-space: nowrap;
}
.sb-at-marquee span::after { content: ""; width: 6px; height: 6px; background: var(--at-accent); transform: rotate(45deg); }
@keyframes sb-at-marquee { to { transform: translateX(-50%); } }

/* Nagłówki sekcji */
.sb-at-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 0 40px;
	margin-bottom: clamp(44px, 5vw, 80px);
}
.sb-at-head .sb-at-num { grid-column: 1 / -1; }
.sb-at-head .sb-at-link { margin-bottom: 10px; }

/* ---------- Karty Atelier (strona główna, podobne) ---------- */
.sb-at-card { list-style: none; margin: 0; }
.sb-at-card__link { display: block; text-decoration: none !important; color: var(--at-ink) !important; }
.sb-at-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--at-photo);
}
.sb-at-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 7%;
	box-sizing: border-box;
	object-fit: contain;
	filter: url(#sb-photo-flat);
	transition: opacity .7s var(--at-ease), transform 1.2s var(--at-ease);
}
.sb-at-card__alt { opacity: 0; }
.sb-at-card.has-alt:hover .sb-at-card__main { opacity: 0; }
.sb-at-card.has-alt:hover .sb-at-card__alt { opacity: 1; }
.sb-at-card:hover .sb-at-card__media img { transform: scale(1.04); }
.sb-at-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--at-ink);
}
.sb-at-card__body { position: relative; display: grid; gap: 8px; padding-top: 20px; }
.sb-at-card__no { position: absolute; top: 20px; right: 0; font-family: var(--at-serif); font-size: 1rem; font-style: italic; color: var(--at-muted); }
.sb-at-card__title { padding-right: 36px; font-family: var(--at-serif); font-size: 1.5rem; line-height: 1.1; }
.sb-at-card .sb-dots { margin: 0; }
.sb-at-price { font-size: 13px; letter-spacing: .02em; color: #4a3b33; }
.sb-at-price .sb-price-locked,
.sb-at-price--locked { font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--at-muted); }
.sb-at-card__desc { max-width: 42ch; margin-top: 6px; font-size: 14px; line-height: 1.75; color: #4a3b33; }
.sb-at-card--feature .sb-at-card__title { font-size: clamp(2rem, 2.8vw, 3rem); }
.sb-at-card--feature .sb-at-card__no { font-size: 1.3rem; }
.sb-at-card--feature .sb-at-link { justify-self: start; margin-top: 14px; }

/* Lookbook: duży model + 4 mniejsze */
.sb-at-lookbook { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 3vw, 56px); align-items: start; }
.sb-at-lookbook ul { margin: 0; padding: 0; list-style: none; }
.sb-at-lookbook__feature { position: sticky; top: 130px; }
.sb-at-lookbook__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(20px, 2.4vw, 40px); }
.sb-at-lookbook__grid .sb-at-card__media { aspect-ratio: 1 / 1; }

/* ---------- Historia marki ---------- */
.sb-atelier .sb-at-story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 140px); align-items: center; }
.sb-at-story__media { position: relative; padding-bottom: 14%; }
.sb-at-story figure { margin: 0; overflow: hidden; background: var(--at-sand); }
.sb-at-story img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sb-at-story__big { width: 78%; aspect-ratio: 3 / 4; }
.sb-at-story__small {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 46%;
	aspect-ratio: 1 / 1;
	outline: 12px solid var(--at-cream);
}
.sb-at-story__text .sb-at-h2 { margin-bottom: 28px; }
.sb-at-ticks { margin: 36px 0 44px; padding: 0; list-style: none; border-top: 1px solid var(--at-line); }
.sb-at-ticks li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--at-line); font-size: 13.5px; color: var(--at-muted); }
.sb-at-ticks strong { font-family: var(--at-serif); font-size: 1.25rem; font-weight: 500; line-height: 1.2; color: var(--at-ink); }

/* ---------- Spis kategorii ---------- */
.sb-at-index { position: relative; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--at-line); }
.sb-at-index__item { position: relative; border-bottom: 1px solid var(--at-line); }
.sb-at-index__link {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto 56px;
	align-items: center;
	gap: 24px;
	padding: clamp(22px, 2.4vw, 36px) 0;
	text-decoration: none !important;
	color: var(--at-ink) !important;
}
.sb-at-index__no { font-family: var(--at-serif); font-size: 1.1rem; font-style: italic; color: var(--at-muted); }
.sb-at-index__name {
	font-family: var(--at-serif);
	font-size: clamp(2rem, 4vw, 4.2rem);
	line-height: 1;
	transition: transform .6s var(--at-ease), color .4s var(--at-ease);
}
.sb-at-index__count { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--at-muted); }
.sb-at-index__arrow { justify-self: end; color: var(--at-ink); transition: transform .5s var(--at-ease); }
a.sb-at-index__link:hover .sb-at-index__name { transform: translateX(18px); font-style: italic; color: var(--at-accent); }
a.sb-at-index__link:hover .sb-at-index__arrow { transform: translateX(8px); }
.sb-at-index__img {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	width: 230px;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: contain;
	padding: 18px;
	box-sizing: border-box;
	background: var(--at-photo);
	box-shadow: 0 30px 60px rgba(43, 26, 21, .18);
	pointer-events: none;
	opacity: 0;
	transform: translate(var(--x, 60vw), var(--y, 0)) translate(-50%, -50%) scale(.85) rotate(-4deg);
	transition: opacity .35s var(--at-ease), transform .35s var(--at-ease);
	filter: url(#sb-photo-flat);
}
a.sb-at-index__link:hover .sb-at-index__img { opacity: 1; transform: translate(var(--x, 60vw), var(--y, 0)) translate(-50%, -50%) scale(1) rotate(-4deg); }
.sb-at-soon { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin: 28px 0 0; font-family: var(--at-serif); font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-style: italic; color: rgba(43, 26, 21, .45); }
.sb-at-soon span { font-family: var(--at-sans); font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--at-accent); }

/* ---------- Jak zamawiać (ciemna sekcja) ---------- */
.sb-at-steps { background: var(--at-ink); color: var(--at-cream); }
.sb-at-steps__inner { max-width: var(--at-wide); margin: 0 auto; padding: clamp(88px, 9vw, 152px) var(--at-gutter); box-sizing: content-box; }
.sb-atelier .sb-at-steps .sb-at-h2 { color: var(--at-cream); }
.sb-at-steps .sb-at-num span { color: rgba(248, 246, 244, .55); }
.sb-at-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.sb-at-steps__list li { padding-top: 32px; border-top: 1px solid rgba(248, 246, 244, .22); }
.sb-at-steps__no {
	display: block;
	margin-bottom: 26px;
	font-family: var(--at-serif);
	font-size: clamp(3.6rem, 6vw, 6rem);
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 1px var(--at-accent);
}
.sb-atelier .sb-at-steps h3 { margin: 0 0 14px; font-family: var(--at-serif); font-size: 1.85rem !important; font-weight: 400 !important; color: var(--at-cream); }
.sb-at-steps p { margin: 0; max-width: 34ch; font-size: 14.5px; line-height: 1.8; color: rgba(248, 246, 244, .72); }
.sb-at-steps__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 44px; margin-top: clamp(56px, 6vw, 96px); }

/* Instagram w nowej sekcji */
.sb-at-insta .sb-ig { margin: 0; }

/* ---------- Sklep ---------- */
.sb-at-shophead { background: var(--at-sand); }
.sb-at-shophead__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	align-items: end;
	gap: 24px 64px;
	max-width: var(--at-wide);
	margin: 0 auto;
	padding: clamp(56px, 7vw, 120px) var(--at-gutter) 0;
	box-sizing: content-box;
}
.sb-atelier .sb-at-shophead__title {
	margin: 0 !important;
	font-family: var(--at-serif);
	font-size: clamp(3.2rem, 7vw, 8.4rem) !important;
	font-weight: 400 !important;
	line-height: .92 !important;
	letter-spacing: -.02em;
	color: var(--at-ink);
}
.sb-at-shophead__meta { padding-bottom: 12px; }
.sb-at-shophead__meta .sb-at-eyebrow { margin-bottom: 14px; }
.sb-at-shophead__note { margin: 0; font-size: 14px; line-height: 1.75; color: #4a3b33; }
.sb-at-shophead__note .sb-at-link { margin-top: 16px; }
.sb-at-tabs {
	grid-column: 1 / -1;
	display: flex;
	gap: clamp(22px, 3vw, 48px);
	margin-top: clamp(36px, 4vw, 64px);
	overflow-x: auto;
	scrollbar-width: none;
}
.sb-at-tabs::-webkit-scrollbar { display: none; }
.sb-at-tab {
	position: relative;
	flex: none;
	padding: 0 0 20px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .22em;
	text-transform: uppercase;
	text-decoration: none !important;
	color: var(--at-muted) !important;
	transition: color .3s var(--at-ease);
}
.sb-at-tab sup { margin-left: 6px; font-size: 9px; letter-spacing: .05em; color: var(--at-accent); }
.sb-at-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--at-ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--at-ease); }
a.sb-at-tab:hover { color: var(--at-ink) !important; }
.sb-at-tab.is-active { color: var(--at-ink) !important; }
.sb-at-tab.is-active::after,
a.sb-at-tab:hover::after { transform: scaleX(1); }
.sb-at-tab.is-soon { color: rgba(43, 26, 21, .28) !important; cursor: default; }

.sb-at-shopbar { border-bottom: 1px solid var(--at-line); }
.sb-at-shopbar__inner { max-width: var(--at-wide); margin: 0 auto !important; padding: 14px var(--at-gutter); box-sizing: content-box; }
.sb-at-shopbar .wc-block-product-results-count,
.sb-at-shopbar .woocommerce-result-count { margin: 0 !important; font-size: 10.5px !important; letter-spacing: .2em; text-transform: uppercase; }
.sb-at-shopbar .wc-block-catalog-sorting,
.sb-at-shopbar .woocommerce-ordering { margin: 0 !important; }

.sb-at-shopgrid { max-width: var(--at-wide); margin: 0 auto; padding: clamp(48px, 5vw, 80px) var(--at-gutter) clamp(88px, 9vw, 140px); box-sizing: content-box; }
.sb-atelier .sb-at-collection .wc-block-product-template {
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: clamp(56px, 5vw, 96px) clamp(24px, 2.6vw, 48px) !important;
}
.sb-atelier .sb-at-collection .wc-block-product .wc-block-components-product-image,
.sb-atelier .sb-at-collection .wc-block-product .wc-block-components-product-image > a { background: var(--at-photo); }
.sb-atelier .sb-at-collection .wc-block-components-product-image img {
	aspect-ratio: 4 / 5 !important;
	object-fit: contain !important;
	padding: 7% !important;
	box-sizing: border-box;
}
.sb-atelier .sb-at-collection .wc-block-components-product-image img.sb-card__alt { aspect-ratio: auto !important; }
.sb-atelier .sb-at-collection .sb-new-badge { top: 18px; left: 18px; padding: 0; background: none; font-size: 9.5px; letter-spacing: .28em; }
.sb-atelier .sb-at-collection .sb-at-tile__row { gap: 16px; margin-top: 22px; }
.sb-atelier .sb-at-collection .sb-at-tile__title,
.sb-atelier .sb-at-collection .sb-at-tile__title a {
	margin: 0 !important;
	font-family: var(--at-serif);
	font-size: clamp(1.4rem, 1.7vw, 1.85rem) !important;
	font-weight: 400 !important;
	line-height: 1.1 !important;
	text-decoration: none !important;
	color: var(--at-ink) !important;
}
.sb-atelier .sb-at-collection .sb-at-tile__price { flex: none; margin: 4px 0 0 !important; padding: 0 !important; font-size: 13px !important; white-space: nowrap; }
.sb-atelier .sb-at-collection .sb-at-tile__price .sb-price-locked { font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--at-muted); }
.sb-atelier .sb-at-collection .wc-block-product > .wp-block-woocommerce-product-price { margin-top: 0 !important; }
.sb-atelier .sb-at-collection .wc-block-product .cfvsw_variations_form { margin-top: 12px !important; }
.sb-atelier .sb-at-collection .wc-block-product > .wc-block-components-product-button,
.sb-atelier .sb-at-collection .wc-block-product .wp-block-button.wc-block-components-product-button { margin-top: auto !important; padding-top: 16px; }
.sb-atelier .sb-at-collection .wc-block-product .wc-block-components-product-button__button,
.sb-atelier .sb-at-collection .wc-block-product .add_to_cart_button,
.sb-atelier .sb-at-collection .wc-block-product .cfvsw_ajax_add_to_cart {
	padding: 15px 14px !important;
	border-color: var(--at-line) !important;
	font-size: 10px !important;
	letter-spacing: .24em !important;
	transition: background .35s var(--at-ease), color .35s var(--at-ease), border-color .35s var(--at-ease);
}
.sb-atelier .sb-at-collection .wc-block-product:hover .wc-block-components-product-button__button,
.sb-atelier .sb-at-collection .wc-block-product:hover .add_to_cart_button,
.sb-atelier .sb-at-collection .wc-block-product:hover .cfvsw_ajax_add_to_cart { border-color: var(--at-ink) !important; }

/* Pasek „Showroom” pod siatką */
.sb-at-showroom { background: var(--at-ink); color: var(--at-cream); }
.sb-at-showroom__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 32px clamp(32px, 5vw, 96px);
	max-width: var(--at-wide);
	margin: 0 auto;
	padding: clamp(64px, 7vw, 112px) var(--at-gutter);
	box-sizing: content-box;
}
.sb-atelier .sb-at-showroom .sb-at-h2 { color: var(--at-cream); font-size: clamp(2.2rem, 3.6vw, 3.8rem) !important; }
.sb-at-showroom .sb-at-lead { margin: 0; color: rgba(248, 246, 244, .72); }

/* ---------- Karta produktu ---------- */
.sb-atelier .sb-at-pdp { max-width: var(--at-wide); margin: 0 auto; padding: clamp(24px, 3vw, 48px) var(--at-gutter) clamp(72px, 7vw, 120px); box-sizing: content-box; }
.sb-at-pdp__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 112px); align-items: start; }
.sb-at-pdp__info { position: relative; height: 100%; }
.sb-at-pdp__sticky { position: sticky; top: 124px; }
.sb-at-crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.sb-at-crumbs a { color: var(--at-muted) !important; text-decoration: none !important; }
.sb-at-crumbs a:hover { color: var(--at-ink) !important; }
.sb-at-crumbs span { color: var(--at-line); }
.sb-atelier .sb-at-pdp__title {
	margin: 0 0 22px !important;
	font-family: var(--at-serif);
	font-size: clamp(2.8rem, 4.2vw, 4.8rem) !important;
	font-weight: 400 !important;
	line-height: .98 !important;
	letter-spacing: -.015em;
}
.sb-at-pdp__pricerow { gap: 8px 20px; margin: 0 0 28px !important; padding-bottom: 26px; border-bottom: 1px solid var(--at-line); }
.sb-atelier .sb-at-pdp__price,
.sb-atelier .sb-at-pdp__price .wc-block-components-product-price { margin: 0 !important; font-family: var(--at-serif); font-size: 2rem !important; color: var(--at-ink); }
.sb-atelier .sb-at-pdp__price .woocommerce-price-suffix,
.sb-atelier .sb-at-pdp__price small { font-family: var(--at-sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--at-muted); }
.sb-at-pdp__pricerow .sb-sku { margin: 0 !important; font-size: 10px; letter-spacing: .2em; color: var(--at-muted); }

/* Atuty pod przyciskiem */
.sb-at-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 26px; padding: 22px 0; list-style: none; border-top: 1px solid var(--at-line); border-bottom: 1px solid var(--at-line); }
.sb-at-perks li { display: grid; gap: 10px; align-content: start; font-size: 11.5px; line-height: 1.5; color: var(--at-muted); }
.sb-at-perks svg { color: var(--at-accent); }
.sb-at-perks strong { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; color: var(--at-ink); }

/* Galeria: na komputerze mozaika (duże zdjęcie + po dwa w rzędzie), na telefonie przewijane zdjęcia jak dotąd */
@media (min-width: 1024px) {
	.sb-at-product .sb-pg { display: block; }
	.sb-at-product .sb-pg-thumbs,
	.sb-at-product .sb-pg-nav,
	.sb-at-product .sb-pg-count { display: none !important; }
	.sb-at-product .sb-pg-stage { overflow: visible; background: none; cursor: default; }
	.sb-at-product .sb-pg-track { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; transform: none !important; }
	.sb-at-product .sb-pg-slide { position: relative; background: var(--at-photo); overflow: hidden; }
	.sb-at-product .sb-pg-slide:first-child,
	.sb-at-product .sb-pg-slide:last-child:nth-child(even) { grid-column: 1 / -1; }
	.sb-at-product .sb-pg-main { cursor: zoom-in; }
	.sb-at-product .sb-pg-main img { transition: transform 1.2s var(--at-ease); }
	.sb-at-product .sb-pg-slide:hover .sb-pg-main img { transform: scale(1.03); }
	.sb-at-product .sb-pg-hint { right: auto; left: 50%; bottom: 50%; transform: translate(-50%, 50%); padding: 12px 18px; background: rgba(248, 246, 244, .9); }
	.sb-at-product .sb-pg-slide.is-hover .sb-pg-hint { opacity: 1; }
	.sb-at-product .sb-pg-slide.is-variant { animation: sb-at-flash 1.2s var(--at-ease); }
}
@keyframes sb-at-flash { 0% { box-shadow: inset 0 0 0 0 var(--at-accent); } 30% { box-shadow: inset 0 0 0 2px var(--at-accent); } 100% { box-shadow: inset 0 0 0 0 transparent; } }

/* O modelu + detale */
.sb-at-pdp__story {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(40px, 6vw, 120px);
	max-width: var(--at-wide);
	margin: 0 auto;
	padding: clamp(72px, 8vw, 136px) var(--at-gutter);
	box-sizing: content-box;
}
.sb-at-pdp__desc .sb-at-h2 { margin-bottom: 26px !important; }
.sb-atelier .sb-at-pdp__content,
.sb-atelier .sb-at-pdp__content p { font-family: var(--at-serif); font-size: clamp(1.35rem, 1.7vw, 1.7rem); line-height: 1.5; color: #4a3b33; }
.sb-at-specs .sb-at-eyebrow { margin-bottom: 26px; }
.sb-at-specs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.sb-at-spec { padding-top: 22px; border-top: 1px solid var(--at-ink); }
.sb-at-spec__label { margin: 0 0 18px; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--at-muted); }
.sb-at-spec__big { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px; font-family: var(--at-serif); font-size: clamp(2.6rem, 3.6vw, 3.8rem); line-height: 1; color: var(--at-ink); }
.sb-at-spec__big small { font-family: var(--at-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--at-muted); }
.sb-at-spec__note { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--at-muted); }
.sb-at-spec__note .sb-dots { margin: 0; }

/* Z tej samej kolekcji – przewijany pas */
.sb-at-related { max-width: var(--at-wide); margin: 0 auto; padding: 0 var(--at-gutter) clamp(96px, 9vw, 152px); box-sizing: content-box; }
.sb-at-related__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.sb-at-rail-nav { display: flex; gap: 10px; }
.sb-at-rail-nav button {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--at-line);
	border-radius: 50%;
	background: transparent;
	color: var(--at-ink);
	cursor: pointer;
	transition: background .3s var(--at-ease), color .3s var(--at-ease), border-color .3s var(--at-ease);
}
.sb-at-rail-nav button:hover { background: var(--at-ink); border-color: var(--at-ink); color: var(--at-cream); }
.sb-at-rail-nav button:disabled { opacity: .3; pointer-events: none; }
.sb-at-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * 32px) / 4);
	gap: 32px;
	margin: 0;
	padding: 0 0 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	list-style: none;
}
.sb-at-rail::-webkit-scrollbar { display: none; }
.sb-at-rail > li { scroll-snap-align: start; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.sb-atelier .sb-at-collection .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.sb-at-lookbook { grid-template-columns: minmax(0, 1fr); }
	.sb-at-lookbook__feature { position: static; }
	.sb-at-lookbook__feature .sb-at-card__media { aspect-ratio: 1 / 1; }
	.sb-at-rail { grid-auto-columns: calc((100% - 2 * 24px) / 2.6); gap: 24px; }
	.sb-at-perks { grid-template-columns: minmax(0, 1fr); }
	.sb-at-perks li { grid-template-columns: 24px minmax(0, 1fr); align-items: start; }
}
@media (max-width: 1023px) {
	.sb-at-pdp__grid { grid-template-columns: minmax(0, 1fr); }
	.sb-at-pdp__sticky { position: static; }
	.sb-at-pdp__story { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Telefon ---------- */
@media (max-width: 781px) {
	.sb-at-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.sb-at-hero__media { order: -1; height: 62svh; min-height: 380px; }
	.sb-at-hero__img { object-position: 76% 50%; }
	.sb-at-hero__vertical { display: none; }
	.sb-at-hero-card { right: 16px; left: 16px; bottom: 16px; max-width: none; }
	.sb-at-hero__text { padding: 44px var(--at-gutter) 56px; }
	.sb-at-hero__lead { font-size: 15px; }
	.sb-at-facts { gap: 12px; }
	.sb-at-facts dd { font-size: 9px; letter-spacing: .14em; }
	.sb-at-head { grid-template-columns: minmax(0, 1fr); }
	.sb-at-head .sb-at-link { justify-self: start; margin-top: 22px; }
	.sb-at-lookbook__grid { gap: 36px 14px; }
	.sb-at-card__title { font-size: 1.2rem; padding-right: 22px; }
	.sb-at-card__no { font-size: .9rem; }
	.sb-atelier .sb-at-story { grid-template-columns: minmax(0, 1fr); }
	.sb-at-ticks li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.sb-at-index__link { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; }
	.sb-at-index__arrow,
	.sb-at-index__img { display: none; }
	.sb-at-index__count { font-size: 9px; letter-spacing: .14em; }
	.sb-at-steps__list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.sb-at-shophead__inner { grid-template-columns: minmax(0, 1fr); }
	.sb-at-shophead__meta { padding-bottom: 0; }
	.sb-atelier .sb-at-collection .wc-block-product-template { gap: 44px 14px !important; }
	.sb-atelier .sb-at-collection .sb-at-tile__row { gap: 6px; margin-top: 14px; }
	.sb-atelier .sb-at-collection .sb-at-tile__row > .sb-at-tile__title { flex: 0 0 100% !important; }
	.sb-atelier .sb-at-collection .sb-at-tile__title,
	.sb-atelier .sb-at-collection .sb-at-tile__title a { font-size: 1.2rem !important; }
	.sb-at-showroom__inner { grid-template-columns: minmax(0, 1fr); }
	.sb-at-showroom__inner .sb-at-btn { justify-self: start; }
	.sb-at-rail { grid-auto-columns: 70%; gap: 16px; }
	.sb-at-rail-nav { display: none; }
	.sb-at-specs__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.sb-at-marquee__track,
	.sb-at-hero__img { animation: none; }
	.sb-at-js .sb-at-reveal { opacity: 1; transform: none; transition: none; }
}

/* Kółka wariantów (Variation Swatches) trafiają do wiersza z nazwą – pod nazwą i ceną, na całą szerokość */
.sb-atelier .sb-at-collection .sb-at-tile__row { flex-wrap: wrap !important; }
.sb-atelier .sb-at-collection .sb-at-tile__row > .sb-at-tile__title { flex: 1 1 0; min-width: 0; }
.sb-atelier .sb-at-collection .sb-at-tile__row > .cfvsw_variations_form,
.sb-atelier .sb-at-collection .sb-at-tile__row > .variations_form { order: 3; flex: 0 0 100%; margin: 4px 0 0 !important; }
@media (max-width: 781px) {
	.sb-atelier .sb-at-collection .cfvsw_variations_form,
	.sb-atelier .sb-at-collection .cfvsw-shop-variations { max-width: 100%; }
	.sb-atelier .sb-at-collection .cfvsw-shop-variations { table-layout: fixed; width: 100%; }
	.sb-atelier .sb-at-collection .cfvsw-shop-container { flex-wrap: wrap !important; row-gap: 4px !important; }
}
@media (max-width: 781px) {
	.sb-atelier .sb-at-collection .sb-at-tile__row > .cfvsw_variations_form,
	.sb-atelier .sb-at-collection .sb-at-tile__row > .variations_form { width: 100%; }
	.sb-atelier .sb-at-collection .cfvsw-shop-variations td { display: block; width: 100%; }
}
