/* obuvnazona.bg's home page (templates/home.php, home_filters.php, js/home-filters.js): on desktop the
   filters panel beside the heading, the banners and the category tiles; phones keep the earlier look. */
.home-top { --home-accent: var(--mobile-nav-accent, #ef0033); }
.home-filter-panel, .home-head { display: none; }

@media (min-width: 1071px) {
	.home-top { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 22px; padding-bottom: 10px; }

	/* the panel */
	.home-filter-panel { position: sticky; top: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 32px); padding: 14px 16px 16px; border: 1px solid #e6e7eb; border-radius: 12px; background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); color: #171717; }
	.home-filter-panel { font-size: 14px; }
	.home-filter-panel button { font-family: inherit; line-height: 1.25; color: inherit; cursor: pointer; }
	.home-filter-panel [hidden] { display: none !important; }
	.home-filter-panel :focus-visible { outline: 2px solid var(--home-accent); outline-offset: 2px; }
	.home-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #eceef1; }
	.home-filter-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 18px; font-weight: 800; }
	.home-filter-panel .home-filter-clear { padding: 4px 0; border: 0; background: none; color: var(--home-accent); font-size: 13px; }
	.home-filter-sections { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
	.home-filter-section { border-bottom: 1px solid #eceef1; }
	.home-filter-section summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; list-style: none; font-size: 15px; font-weight: 700; cursor: pointer; }
	.home-filter-section summary::-webkit-details-marker { display: none; }
	.home-filter-section summary::after { content: ''; width: 7px; height: 7px; margin-right: 3px; border-right: 1.75px solid; border-bottom: 1.75px solid; transform: rotate(45deg); }
	.home-filter-section[open] summary::after { margin-top: 5px; transform: rotate(225deg); }
	.home-filter-body { padding-bottom: 12px; }

	.home-filter-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
	.home-filter-sizes button, .home-filter-prices button { height: 36px; padding: 0 2px; border: 1px solid #d9dbe0; border-radius: 6px; background: #fff; font-size: 14px; }
	.home-filter-sizes button:hover, .home-filter-prices button:hover { border-color: #9ca0a8; }
	.home-filter-sizes [aria-pressed=true], .home-filter-prices [aria-pressed=true] { border-color: var(--home-accent); background: var(--home-accent); color: #fff; font-weight: 700; }
	.home-filter-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }

	.home-filter-colors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 6px; justify-items: center; }
	.home-filter-color { display: block; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; }
	.home-filter-swatch { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
	.home-filter-color:hover .home-filter-swatch { transform: scale(1.08); }
	.home-filter-color[aria-pressed=true] { outline: 2px solid var(--home-accent); outline-offset: 2px; }
	.home-filter-more { grid-column: 1 / -1; justify-self: start; padding: 2px 0; border: 0; background: none; font-size: 13px; }
	.home-filter-more::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
	.home-filter-more[aria-expanded=true]::after { margin-bottom: -1px; transform: rotate(225deg); }

	.home-filter-list { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
	.home-filter-option { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 3px 0; border: 0; background: none; font-size: 14px; text-align: left; }
	.home-filter-option--main { font-weight: 700; }
	.home-filter-option--sub { padding-left: 14px; }
	.home-filter-option[aria-pressed=true] { font-weight: 700; }
	.home-filter-check { flex: none; width: 18px; height: 18px; border: 1.5px solid #9ca0a8; border-radius: 4px; background: #fff; }
	.home-filter-option[aria-pressed=true] .home-filter-check { border-color: var(--home-accent); background: var(--home-accent) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

	.home-filter-panel .home-filter-apply { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 14px; padding: 10px 12px; border: 0; border-radius: 10px; background: linear-gradient(180deg, #ff3355, var(--home-accent)); box-shadow: 0 6px 14px rgba(239, 0, 51, .25); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
	.home-filter-apply:hover { filter: brightness(1.05); }
	.home-filter-apply:disabled { opacity: .55; cursor: default; box-shadow: none; }
	.home-filter-apply[aria-busy=true] span { opacity: .75; }

	/* heading and sort */
	.home-main { min-width: 0; }
	.home-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
	.home-head h2 { margin: 0; padding: 0; font-size: 32px; font-weight: 800; line-height: 1.15; }
	.home-sort { display: flex; align-items: center; gap: 12px; font-size: 15px; }
	.home-sort span { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
	.home-sort select { min-width: 190px; height: 42px; padding: 0 36px 0 14px; border: 1px solid #d9dbe0; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23171717' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; color: #171717; font: inherit; font-size: 15px; appearance: none; cursor: pointer; }

	/* banners: wide, rounded, arrows, the dots below */
	.home-main .banners { display: block; height: auto; }
	.home-main .big-banners { box-sizing: border-box; height: 430px; padding-bottom: 28px; --swiper-pagination-offset: 0px; --swiper-pagination-bullet-width: 10px; --swiper-pagination-bullet-height: 10px; --swiper-pagination-bullet-size: 10px; --swiper-pagination-color: #171717; --swiper-pagination-bullet-inactive-color: #b9bcc3; --swiper-pagination-bullet-inactive-opacity: 1; }
	.home-main .big-banners .swiper-slide { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: #f1f1f3; }
	.home-main .big-banners .swiper-pagination { bottom: 0 !important; }
	.home-main .big-banners .swiper-button-prev, .home-main .big-banners .swiper-button-next { top: calc(50% - 14px); width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); color: #171717; cursor: pointer; }
	.home-main .big-banners .swiper-button-prev { left: 26px; }
	.home-main .big-banners .swiper-button-next { right: 26px; }
	.home-main .big-banners .swiper-button-prev::after, .home-main .big-banners .swiper-button-next::after { font-size: 17px; font-weight: 700; }
	.home-main .big-banners .swiper-button-prev:hover, .home-main .big-banners .swiper-button-next:hover { transform: scale(1.06); }
	.home-main .big-banners .banner-content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 40px 40px 110px; }
	.home-main .big-banners .banner-desc { padding-top: 0; text-align: left; }
	.home-main .big-banners h5 { margin-bottom: 14px; font-size: 15px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; text-shadow: none; }
	.home-main .big-banners h2 { max-width: 420px; margin-bottom: 26px; font-size: 52px; font-weight: 800; line-height: 1.05; text-transform: uppercase; text-shadow: none; }
	.home-main .big-banners .button { position: static; padding: 13px 28px; border-radius: 999px; background: #171717; color: #fff; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; }
	.home-main .big-banners .button::after { content: ' →'; }

	/* category tiles with the label as a pill */
	.home-main .small-banners { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; max-width: none; padding: 22px 0 0; }
	.home-main .small-banners a { overflow: hidden; border-radius: 12px; background: #f1f1f3; }
	.home-main .small-banners a::before, .home-main .small-banners a::after { display: none; }
	.home-main .small-banners a img { aspect-ratio: 5 / 6; object-fit: cover; transition: transform .3s ease; }
	.home-main .small-banners a:hover img { transform: scale(1.04); }
	.home-main .small-banners .banner_content { justify-content: flex-start; padding: 10px 6px 0; }
	.home-main .small-banners h5.button { max-width: 100%; padding: 7px 12px; border: 0; border-radius: 999px; background: #f6efe4; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); color: #171717 !important; font-size: 12px; line-height: 1.2; font-weight: 700 !important; letter-spacing: .02em; text-align: center; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; overflow: visible; opacity: 1; }
	.home-main .small-banners a:hover h5.button { background: #171717; color: #fff !important; }
}
@media (prefers-reduced-motion: reduce) {
	.home-main .small-banners a img { transition: none; }
}

/* Desktop widths: the home page's content (main, not the header or footer) up to 1400px, in steps below. */
@media (min-width: 1071px) {
	body.page-home main .wrapper { max-width: 1440px; }
	body.page-home .products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1071px) and (max-width: 1199px) {
	.home-top { grid-template-columns: 236px minmax(0, 1fr); gap: 20px; }
	.home-filter-panel { padding: 12px 12px 14px; }
	.home-filter-sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.home-filter-colors { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.home-head h2 { font-size: 28px; }
	.home-sort select { min-width: 160px; }
	.home-main .big-banners { height: 360px; }
	.home-main .big-banners .banner-content { padding: 30px 30px 30px 90px; }
	.home-main .big-banners h2 { font-size: 40px; }
	.home-main .small-banners { gap: 10px; }
	.home-main .small-banners h5.button { padding: 6px 8px; font-size: 11px; letter-spacing: 0; }
}
@media (min-width: 1360px) {
	.home-top { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
	.home-main .big-banners { height: 480px; }
	.home-main .big-banners h2 { max-width: 480px; font-size: 58px; }
	.home-main .small-banners { gap: 16px; }
	body.page-home .products { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
}

/* Phones: as before (the tiles were outside the page's side padding). */
@media (max-width: 1070px) {
	.home-top { padding-top: 0; padding-bottom: 0; }
	.home-main .big-banners .swiper-button-prev, .home-main .big-banners .swiper-button-next { display: none; }
	.home-main .small-banners { width: auto; margin: 0 -10px; }
}
