/* =========================================================
   STRONA GŁÓWNA — mobile-first
   ========================================================= */
.sd-home .site-content > .ast-container { max-width: 100%; padding: 0; display: block; }
.sd-home #primary { margin: 0 !important; width: 100%; }
.sd-home .entry-content > * { margin-top: 0; margin-bottom: 0; }
.sd-home .entry-header { display: none; }

.sd-sec {
	max-width: var(--sd-max);
	margin: 0 auto !important;
	padding: 40px var(--sd-gutter);
}
.sd-sec h2 { margin: 0; }
.sd-sec-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px !important;
}
.sd-sec-head h2 { margin: 0 !important; }
.sd-more, .sd-more a {
	margin: 0 !important;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--sd-nori);
}
.sd-more a { text-decoration: underline; text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; }

/* Przyciski z bloków */
.sd-btn-dark .wp-block-button__link { background: var(--sd-nori) !important; border-color: var(--sd-nori) !important; color: var(--sd-rice) !important; }
.sd-btn-ghost .wp-block-button__link { background: transparent !important; color: var(--sd-nori) !important; border: 1px solid var(--sd-nori) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; font-size: 15px !important; }
.sd-btn-ghost .wp-block-button__link:hover { background: var(--sd-nori) !important; color: var(--sd-rice) !important; }
.sd-btn-light .wp-block-button__link { background: var(--sd-rice) !important; border-color: var(--sd-rice) !important; color: var(--sd-nori) !important; }
.sd-btn-light .wp-block-button__link:hover { background: var(--sd-white) !important; color: var(--sd-nori) !important; }

/* --- B. HERO --- */
.sd-hero-wrap { padding-top: 28px; padding-bottom: 36px; }
.sd-hero { margin: 0 !important; gap: 24px !important; }
.sd-hero__text { display: flex; flex-direction: column; gap: 16px; }
.sd-hero__text > * { margin: 0 !important; }
.sd-hero__title { font-size: clamp(36px, 10.5vw, 78px) !important; line-height: .98 !important; letter-spacing: -0.035em !important; }
.sd-hero__lead { font-size: 17px; line-height: 1.55; color: var(--sd-ink); max-width: 30em; }
.sd-hero__btns { display: grid !important; grid-template-columns: 1fr; gap: 10px; margin-top: 4px !important; }
.sd-hero__btns .wp-block-button, .sd-hero__btns .wp-block-button__link { width: 100%; }
.sd-hero__btns .wp-block-button__link { min-height: 54px; }
.sd-hero__img { margin: 0 !important; border: 1px solid var(--sd-nori); overflow: hidden; }
.sd-hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* --- C. KATEGORIE (2 kolumny na telefonie) --- */
.sd-cats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--sd-nori);
	border-left: 1px solid var(--sd-nori);
}
.sd-cat {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border-right: 1px solid var(--sd-nori);
	border-bottom: 1px solid var(--sd-nori);
	text-decoration: none !important;
	color: var(--sd-nori) !important;
	background: var(--sd-rice);
	transition: background .15s ease;
}
.sd-cat:hover { background: var(--sd-white); }
.sd-cat__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--sd-sesame); }
.sd-cat__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .4s ease; }
.sd-cat:hover .sd-cat__img { transform: scale(1.04); }
.sd-cat__text { display: flex; flex-direction: column; gap: 2px; min-height: 52px; }
.sd-cat__name { font-family: var(--sd-font-head); font-weight: 800; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.sd-cat__desc { font-family: var(--sd-font-mono); font-size: 11px; line-height: 1.35; color: var(--sd-muted); }
.sd-cat__arrow { display: none; }
.sd-cat--dark { background: var(--sd-nori); color: var(--sd-rice) !important; }
.sd-cat--dark:hover { background: #222; }
.sd-cat--dark .sd-cat__desc { color: #C9C3B6; }

/* --- D. BESTSELLERY (2 kolumny na telefonie) --- */
.sd-best .sd-sec-head { margin-bottom: 20px; }
.sd-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.sd-card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.sd-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--sd-white); border: 1px solid var(--sd-sesame); overflow: hidden; }
.sd-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-badge { position: absolute; top: 8px; left: 8px; background: var(--sd-nori); color: var(--sd-rice); font-family: var(--sd-font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px; }
.sd-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.sd-card__body .sd-label { font-size: 10px; }
.sd-card__name { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--sd-nori) !important; text-decoration: none; }
.sd-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--sd-nori); padding-top: 8px; }
.sd-card__price { font-family: var(--sd-font-head); font-weight: 800; font-size: 17px; color: var(--sd-nori); }
.sd-card__price del { font-weight: 500; color: var(--sd-muted); font-size: .8em; }
.sd-card__price ins { text-decoration: none; color: var(--sd-shu); }
.sd-add {
	flex: 0 0 auto;
	min-width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--sd-nori); color: var(--sd-rice) !important;
	font-size: 22px; line-height: 1; text-decoration: none !important;
}
.sd-add:hover { background: var(--sd-shu); }
.sd-add--choose { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 0 10px; }
.sd-add.loading { opacity: .5; }
.sd-add.added { background: var(--sd-shu); }
.sd-card .added_to_cart { display: none !important; }
.sd-admin-note { border: 1px dashed var(--sd-muted); padding: 14px; font-size: 14px; color: var(--sd-muted); margin: 0; }

/* --- E. JAK ZAMAWIAĆ --- */
.sd-steps-wrap { position: relative; }
.sd-steps-wrap::before, .sd-steps-wrap::after { content: ''; position: absolute; left: 50%; width: 100vw; transform: translateX(-50%); height: 1px; background: var(--sd-nori); }
.sd-steps-wrap::before { top: 0; } .sd-steps-wrap::after { bottom: 0; }
.sd-steps > .sd-step, .sd-steps-wrap > * { margin-top: 0 !important; }
.sd-steps-wrap > h2 { margin-bottom: 8px !important; }
.sd-steps { display: grid; grid-template-columns: 1fr; }
.sd-step { display: grid !important; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--sd-sesame); }
.sd-step:last-child { border-bottom: 0; padding-bottom: 0; }
.sd-step > * { margin: 0 !important; }
.sd-step__no { grid-row: span 2; font-family: var(--sd-font-mono); font-size: 14px; color: var(--sd-shu); padding-top: 4px; }
.sd-step h3 { font-size: 20px !important; }
.sd-step p:not(.sd-step__no) { font-size: 15px; color: var(--sd-ink); margin-top: 4px !important; }

/* --- F. PROMOCJA (czarna) --- */
.sd-promo { background: var(--sd-nori); color: var(--sd-rice); margin: 0 !important; gap: 0 !important; flex-direction: column-reverse; }
.sd-promo__text { padding: 28px 22px 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.sd-promo__text > * { margin: 0 !important; }
.sd-promo__text h2 { color: var(--sd-rice) !important; font-size: clamp(30px, 8vw, 52px); }
.sd-promo__text p { color: #D9D3C7; font-size: 16px; }
.sd-promo__text .sd-label { color: #C9C3B6; }
.sd-promo__text .wp-block-button, .sd-promo__text .wp-block-button__link { width: 100%; }
.sd-promo__media { min-height: 220px; }
.sd-promo__img { margin: 0 !important; height: 100%; }
.sd-promo__img img { width: 100%; height: 100%; min-height: 220px; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* --- G. DOSTAWA --- */
.sd-delivery .wp-block-columns { margin: 0 !important; gap: 24px !important; }
.sd-delivery .wp-block-column > * { margin-top: 0; }
.sd-delivery h2 { margin-bottom: 14px !important; }
.sd-delivery p { font-size: 16px; }
.sd-delivery .wp-block-button, .sd-delivery .wp-block-button__link { width: 100%; }
.sd-delivery__img { margin: 0 0 16px !important; border: 1px solid var(--sd-nori); overflow: hidden; }
.sd-delivery__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sd-facts { list-style: none; margin: 0 !important; padding: 0 !important; border-top: 1px solid var(--sd-nori); }
.sd-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--sd-nori); font-size: 15px; margin: 0; }
.sd-facts li span { font-family: var(--sd-font-mono); font-size: 12px; color: var(--sd-muted); text-align: right; }

/* =========================================================
   TABLET / KOMPUTER
   ========================================================= */
@media (min-width: 600px) {
	.sd-hero__btns { grid-template-columns: auto auto; justify-content: start; }
	.sd-hero__btns .wp-block-button, .sd-hero__btns .wp-block-button__link { width: auto; }
	.sd-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sd-promo__text .wp-block-button, .sd-promo__text .wp-block-button__link,
	.sd-delivery .wp-block-button, .sd-delivery .wp-block-button__link { width: auto; }
}
@media (min-width: 922px) {
	.sd-sec { padding-top: 72px; padding-bottom: 72px; }
	.sd-hero-wrap { padding-top: 72px; padding-bottom: 88px; }
	.sd-hero { gap: 56px !important; align-items: center !important; }
	.sd-hero__text { gap: 24px; }
	.sd-hero__lead { font-size: 18px; }
	.sd-hero__img img { aspect-ratio: 1 / 1; }
	.sd-sec-head { margin-bottom: 32px !important; }
	/* kafelki jak w makiecie: tekst po lewej, zdjęcie po prawej */
	.sd-cat { flex-direction: row-reverse; justify-content: space-between; align-items: stretch; min-height: 188px; padding: 24px; gap: 16px; }
	.sd-cat__media { flex: 0 0 132px; width: 132px; height: 132px; align-self: center; }
	.sd-cat__text { justify-content: space-between; }
	.sd-cat__name { font-size: 28px; }
	.sd-cat__desc { font-size: 12px; }
	.sd-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
	.sd-card__name { font-size: 17px; }
	.sd-card__price { font-size: 20px; }
	.sd-badge { top: 12px; left: 12px; font-size: 11px; padding: 4px 8px; }
	.sd-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 32px !important; }
	.sd-step { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--sd-nori); padding: 20px 0 0; row-gap: 10px; }
	.sd-step__no { grid-row: auto; padding: 0; }
	.sd-step h3 { font-size: 26px !important; }
	.sd-promo { flex-direction: row; }
	.sd-promo__text { padding: 64px; gap: 22px; }
	.sd-promo__media { min-height: 420px; }
	.sd-promo__img img { aspect-ratio: auto; min-height: 420px; }
	.sd-delivery .wp-block-columns { gap: 56px !important; align-items: start; }
}

/* poprawki po pierwszym podglądzie */
.sd-home .entry-content, .sd-home .ast-container, .sd-home #primary, .sd-home .site-main { max-width: none !important; }
.sd-home .entry-content > .sd-sec { width: 100%; box-sizing: border-box; }
.sd-home { overflow-x: hidden; }
@media (min-width: 922px) { .sd-hero__img img { aspect-ratio: 5 / 4; max-height: 560px; } .sd-hero__text { padding-right: 16px; } }
