/* Focused responsive refinements for the homepage and footer. */

.products-section__more {
	display: flex;
	justify-content: center;
	margin-top: 36px;
}

.products-section__more .button {
	min-width: 286px;
}

.footer-column__toggle {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--color-accent);
	font-size: 15px;
	font-weight: 750;
	line-height: 1.2;
	text-align: left;
}

.footer-column__toggle-icon {
	display: none;
}

.footer-column__links {
	display: block;
}

/* Tablet: preserve the split hero and keep the benefits in a balanced row. */
@media (min-width: 721px) and (max-width: 980px) {
	.hero__inner {
		grid-template-columns: minmax(330px, .96fr) minmax(0, .84fr);
		min-height: 560px;
	}

	.hero__content {
		padding: 58px 24px 58px 0;
	}

	.hero h1 {
		font-size: clamp(44px, 6vw, 58px);
		letter-spacing: -.055em;
	}

	.hero__content > p {
		margin-bottom: 28px;
		font-size: 16px;
		line-height: 1.65;
	}

	.hero__actions {
		gap: 9px;
	}

	.hero__actions .button {
		min-height: 50px;
		padding-inline: 17px;
		font-size: 13px;
	}

	.hero__media {
		height: auto;
		min-height: 500px;
	}

	.hero__media img {
		object-position: 59% center;
	}
}

@media (min-width: 641px) and (max-width: 980px) {
	.product-card__media {
		height: 220px;
		aspect-ratio: auto;
	}

	.benefits {
		padding-block: 78px;
	}

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

	.benefits h2 {
		grid-column: 1 / -1;
		padding: 0;
		margin-bottom: 38px;
	}

	.benefit {
		padding: 24px 24px 8px;
		border-top: 1px solid var(--color-line);
		border-left: 1px solid var(--color-line);
	}

	.benefit:nth-of-type(1) {
		border-left: 0;
	}

	.benefit > span {
		margin-bottom: 22px;
	}
}

@media (max-width: 720px) {
	.hero__inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.hero__content {
		padding: 58px 0 26px;
	}

	.hero__media {
		height: 280px;
		min-height: 0;
	}

	.hero__media img {
		object-position: center;
	}
}

@media (max-width: 640px) {
	.topbar__inner {
		display: block;
		min-height: 36px;
	}

	.topbar__item {
		min-height: 36px;
		justify-content: center;
		padding: 5px 18px;
		border: 0 !important;
	}

	.topbar__item:nth-child(n + 2) {
		display: none;
	}

	.topbar__item svg {
		width: 20px;
		height: 20px;
		flex-basis: 20px;
	}

	.hero__content {
		padding-top: 52px;
	}

	.hero__media {
		height: 260px;
		margin-inline: calc(var(--gutter) * -1);
	}

	.hero__media img {
		object-position: center;
	}

	.category-card strong {
		font-size: 14px;
		font-weight: 750;
	}

	.products-section {
		overflow: hidden;
	}

	.products-section .section-heading {
		margin-bottom: 28px;
	}

	.product-panel {
		margin-right: calc(var(--gutter) * -1);
	}

	.product-rail {
		display: flex;
		gap: 14px;
		overflow-x: auto;
		padding: 0 var(--gutter) 14px 0;
		scroll-padding-inline: 0 var(--gutter);
		scroll-snap-type: x mandatory;
		scrollbar-color: var(--color-accent) var(--color-surface);
		scrollbar-width: thin;
		overscroll-behavior-inline: contain;
		-webkit-overflow-scrolling: touch;
	}

	.product-rail::-webkit-scrollbar {
		height: 4px;
	}

	.product-rail::-webkit-scrollbar-track {
		background: var(--color-surface);
	}

	.product-rail::-webkit-scrollbar-thumb {
		background: var(--color-accent);
	}

	.product-card {
		flex: 0 0 min(82vw, 322px);
		scroll-snap-align: start;
	}

	.product-card__media {
		height: 190px;
		aspect-ratio: auto;
	}

	.product-card__media img {
		padding: 14px;
	}

	.product-card__body {
		padding: 15px;
	}

	.product-card h3 {
		font-size: 14px;
	}

	.product-card__price {
		margin-bottom: 14px;
	}

	.price-main {
		font-size: 21px;
	}

	.products-section__more {
		margin-top: 22px;
	}

	.products-section__more .button {
		width: 100%;
		min-width: 0;
	}

	.site-footer__grid {
		row-gap: 0;
		padding-block: 48px 30px;
	}

	.site-footer__brand {
		padding-bottom: 30px;
	}

	.footer-column,
	.footer-column:nth-child(2) {
		padding: 0;
		border-top: 1px solid var(--color-line-dark);
		border-left: 0;
	}

	.footer-column h2 {
		margin: 0;
	}

	.footer-column__toggle {
		padding: 19px 0;
	}

	.footer-column__toggle-icon {
		position: relative;
		display: block;
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
	}

	.footer-column__toggle-icon::before,
	.footer-column__toggle-icon::after {
		position: absolute;
		top: 8px;
		right: 1px;
		left: 1px;
		height: 2px;
		background: currentColor;
		content: "";
		transition: opacity .18s, transform .18s;
	}

	.footer-column__toggle-icon::after {
		transform: rotate(90deg);
	}

	.footer-column.is-open .footer-column__toggle-icon::after {
		opacity: 0;
		transform: rotate(0);
	}

	.footer-column__links {
		padding-bottom: 18px;
	}

	.footer-column__links[hidden] {
		display: none;
	}
}
