.shop-by-country {
	background: var(--color-surface);
}

.shop-by-country__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 38px;
}

.shop-by-country__heading h2,
.shop-by-country__heading p {
	margin-bottom: 0;
}

.shop-by-country__heading > p {
	max-width: 500px;
	color: var(--color-muted);
}

.country-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.country-card {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg, 16px);
	background: var(--color-white);
	box-shadow: 0 8px 28px rgba(16, 28, 55, .05);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.country-card:hover {
	border-color: var(--color-primary);
	box-shadow: var(--shadow-sm);
	transform: translateY(-3px);
}

.country-card:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

.country-card__flag {
	width: 64px;
	height: 64px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(16, 28, 55, .12);
}

.country-card__flag img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.country-card__content {
	min-width: 0;
	display: grid;
	gap: 3px;
}

.country-card__content strong {
	overflow-wrap: anywhere;
	font-size: 1.05rem;
}

.country-card__content small {
	color: var(--color-muted);
}

.country-card__arrow {
	color: var(--color-primary);
	font-size: 1.25rem;
	transition: transform .2s ease;
}

.country-card:hover .country-card__arrow {
	transform: translateX(3px);
}

html[dir="rtl"] .country-card:hover .country-card__arrow {
	transform: translateX(-3px);
}

.shop-by-country__action {
	margin: 32px 0 0;
	text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
	[data-country-section] .country-card {
		opacity: 0;
		transform: translateY(12px);
	}

	[data-country-section].is-visible .country-card {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 900px) {
	.country-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.shop-by-country__heading {
		display: grid;
		gap: 16px;
	}

	.country-card {
		grid-template-columns: 52px minmax(0, 1fr) auto;
		padding: 16px;
	}

	.country-card__flag {
		width: 52px;
		height: 52px;
	}
}

@media (max-width: 360px) {
	.country-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.country-card {
		transition: none;
	}
}
