/*
 * Breakpointy.
 *
 * 991 px — tablet: zwijamy wyszukiwarkę i menu do przycisku.
 * 767 px — telefon: układ jednokolumnowy, 2 kafle kategorii, 2 karty produktów.
 * 575 px — mały telefon: zmniejszone fonty i odstępy.
 */

@media (max-width: 991.98px) {
	.header-top__inner {
		grid-template-columns: 1fr auto;
		width: min(100% - 32px, 760px);
		padding: 14px 0 18px;
	}

	.header-brand {
		text-align: center;
	}

	.header-search {
		display: none;
	}

	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.header-nav {
		display: none;
	}

	body.nav-open .header-nav {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 300;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding: 16px 20px 24px;
		border-top: 1px solid var(--color-border);
		background: #fff;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
	}

	.header-nav__inner {
		display: block;
		width: 100%;
		min-height: 0;
	}

	.velo-link {
		justify-content: center;
		width: 100%;
		margin-bottom: 14px;
		text-align: center;
	}

	.mobile-menu-search {
		display: block;
		margin-top: 16px;
		padding-top: 16px;
		border-top: 1px solid var(--color-border);
	}

	.mobile-menu-search .product-search {
		max-width: none;
	}

	.primary-nav {
		display: block;
	}

	.primary-menu {
		display: block;
	}

	.primary-menu > .menu-item {
		display: block;
		border-bottom: 1px solid var(--color-border);
	}

	.primary-menu > .menu-item > a {
		display: inline-flex;
		width: calc(100% - 34px);
		padding: 12px 0;
		font-size: 18px;
	}

	.submenu-toggle {
		float: right;
		width: 30px;
		height: 34px;
		margin-top: 2px;
	}

	.sub-menu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0 0 10px;
		padding: 0 0 0 14px;
		border: 0;
		box-shadow: none;
	}

	.primary-menu > .menu-item.is-open > .sub-menu {
		display: block;
	}

	.sub-menu .menu-item > a {
		padding: 7px 0;
		font-size: 14px;
	}

	.intro {
		gap: 24px;
	}

	.intro__title {
		font-size: 40px;
	}

	.shop-content {
		display: block;
	}

	.shop-sidebar {
		margin-bottom: 18px;
	}

	.shop-products {
		min-width: 0;
	}

	.shop-filter-head__title {
		display: block;
	}

	.shop-filters-toggle {
		display: inline-flex;
	}

	.shop-filters {
		display: none;
	}

	.shop-sidebar.is-open .shop-filters {
		display: block;
	}

	.product-layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.product-gallery {
		grid-template-columns: 1fr;
	}

	.product-gallery__thumbs {
		flex-direction: row;
		order: 2;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.product-gallery__thumb {
		flex: 0 0 74px;
		width: 74px;
	}

	.product-gallery__thumb-image {
		width: 72px;
		height: 72px;
	}

	.product-gallery__main {
		order: 1;
	}

	.product-grid--5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		row-gap: 30px;
	}

	.footer-col--brand {
		text-align: left;
	}

	.footer-social {
		justify-content: flex-start;
	}

	.footer-logo img {
		margin-inline: 0;
	}
}

@media (max-width: 767.98px) {
	.hero {
		padding-top: 20px;
	}

	.hero-slider {
		border-radius: 14px;
	}

	.hero-slide__image {
		aspect-ratio: 970 / 250;
		border-radius: 14px;
	}

	.intro {
		grid-template-columns: 1fr;
		margin-top: 28px;
		text-align: left;
	}

	.intro__media {
		order: -1;
		justify-content: center;
	}

	.intro__image {
		max-width: 100%;
	}

	/* Obecna strona mobilna nie pokazuje nagłówka H2 nad rowerem. */
	.intro__title {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.intro__lead {
		margin-bottom: 18px;
		font-size: 16px;
	}

	.intro__button {
		min-width: 0;
		padding: 12px 24px;
		font-size: 19px;
	}

	.category-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		margin-top: 34px;
	}

	.category-tile__image {
		border-radius: 12px;
	}

	.category-tile__label {
		margin-top: 8px;
		font-size: 17px;
	}

	.brands {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px 16px;
		margin-top: 24px;
		margin-bottom: 24px;
	}

	.brand {
		min-height: 70px;
	}

	.brand__image {
		width: 120px;
	}

	.product-carousel__controls {
		top: -34px;
	}

	.product-carousel__track {
		gap: 14px;
		padding: 4px 0;
	}

	.product-carousel__track > .product-card {
		flex-basis: calc(50% - 7px);
	}

	.product-card__title {
		font-size: 16px;
	}

	.product-card__price {
		font-size: 18px;
	}

	.product-carousel .product-card__price {
		font-size: 18px;
	}

	.product-card__button {
		padding: 7px 14px;
		font-size: 14px;
	}

	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 14px;
	}

	.product-grid--5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.shop-layout {
		margin-top: 22px;
	}

	.shop-title {
		font-size: 26px;
	}

	.shop-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.woocommerce-ordering select {
		min-width: 0;
	}

	.product-title,
	.product_title {
		font-size: 21px;
	}

	.related-products__title {
		font-size: 20px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		row-gap: 24px;
	}

	.footer-col {
		padding: 0;
	}

	.footer-social {
		justify-content: center;
	}

	.footer-col--brand {
		text-align: center;
	}

	.footer-logo img {
		margin-inline: auto;
	}

	.footer-bottom__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}

@media (max-width: 575.98px) {
	.container,
	.entry-wrap,
	.hero,
	.intro,
	.category-tiles,
	.brands,
	.new-arrivals {
		width: min(100% - 28px, var(--container));
	}

	.header-top__inner {
		width: min(100% - 24px, 520px);
	}

	.header-logo img {
		width: 140px;
	}

	.header-tagline {
		font-size: 12px;
	}

	.hero-slider__dots {
		margin-top: 6px;
	}

	.category-tiles {
		gap: 10px;
	}

	.category-tile__label {
		font-size: 15px;
	}

	.brand__image {
		width: 100px;
	}

	.product-carousel__track > .product-card {
		flex-basis: calc(50% - 7px);
	}

	.product-card__title {
		font-size: 15px;
	}

	.product-card__price {
		font-size: 16px;
	}

	.product-carousel .product-card__price {
		font-size: 16px;
	}

	.product-card__button {
		font-size: 13px;
		padding: 6px 10px;
	}

	.shop-title {
		font-size: 23px;
	}

	.product-gallery__main-image {
		max-width: 100%;
	}

	.footer-heading {
		font-size: 16px;
	}

	.footer-address,
	.footer-contact {
		font-size: 14px;
	}

	.rowery-lightbox {
		padding: 14px;
	}

	.rowery-lightbox__close {
		top: 10px;
		right: 12px;
	}

	.product-landing .product-card__title {
		font-size: 17px;
	}
}
