/* ==========================================================================
   Shops index
   Used by: resources/views/shops/index.blade.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page
   -------------------------------------------------------------------------- */
body,
#app,
.shops-index-wrap {
	background: #fff !important;
}

.shops-index-wrap {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 18px 52px;
	box-sizing: border-box;
}

.navbar.navbar-default {
	background: #fbfdff;
	border-bottom: 1px solid #e7eef6;
	box-shadow: 0 1px 0 rgba(38, 50, 65, 0.04);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.shops-hero {
	position: relative;
	overflow: hidden;
	margin: 0 auto 28px;
	padding: 34px 42px;
	border: 1px solid #d0dee0;
	border-radius: 14px;
	background: linear-gradient(135deg, #f8fbff 0%, #fff 40%, #c2dee3 100%);
	box-shadow: 0 14px 34px rgba(38, 50, 65, 0.07);
}

.shops-hero::before,
.shops-hero::after {
	content: none;
	display: none;
}

.shops-hero-inner {
	position: relative;
	z-index: 1;
	display: block;
}

.shops-hero-content {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	row-gap: 14px;
	width: 100%;
	min-width: 0;
}

.shops-hero-copy {
	display: contents;
}

.shops-hero-title {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	color: #142236;
	font-size: clamp(26px, 2.2vw, 32px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.03em;
}

.shops-hero-title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	grid-column: 1;
	grid-row: 1;
	width: 54px;
	height: 54px;
	border: 1px solid #d9e8ef;
	border-radius: 50%;
	background: #fff;
	color: #3caa4a;
	font-size: 26px;
	box-shadow: 0 8px 20px rgba(38, 50, 65, 0.08);
}

.shops-hero-text {
	grid-column: 2;
	grid-row: 2;
	margin: 0;
	color: #344255;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Sort
   -------------------------------------------------------------------------- */
.shops-sort {
	display: flex;
	justify-content: flex-start;
	gap: 10px;
	margin: 0 0 22px;
}

.shops-sort a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 80px;
	min-height: 25px;
	padding: 3px 10px;
	border: 1px solid #dfe7ef;
	border-radius: 999px;
	background: #fff;
	color: #555;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(38, 50, 65, 0.04);
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease;
}

.shops-sort a:hover {
	border-color: #0f66c3;
	color: #0f66c3;
	text-decoration: none;
}

.shops-sort a.active {
	border-color: transparent;
	background: #0062fb;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Shop cards
   -------------------------------------------------------------------------- */
.shops-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	padding: 0 0 45px;
}

.shop-card {
	height: 100%;
	overflow: hidden;
	border: 1px solid #e9eef4;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(38, 50, 65, 0.055);
	transition:
		transform 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.shop-card:hover {
	transform: translateY(-3px);
	border-color: #bfd8ef;
	box-shadow: 0 12px 26px rgba(38, 50, 65, 0.09);
}

.shop-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 18px 14px 16px;
	text-align: center;
}

.shop-image-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 86px;
	height: 86px;
	margin: 0 auto 12px;
	overflow: hidden;
	border: 3px solid #fff;
	border-radius: 50%;
	background: #f8f8f8;
	box-shadow:
		0 0 0 1px #edf1f5,
		0 12px 24px rgba(38, 50, 65, 0.08);
}

.shop-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.shop-card:hover .shop-image {
	transform: scale(1.06);
}

.shop-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

.shop-title a {
	color: #333;
	text-decoration: none;
}

.shop-title a:hover {
	color: #0f66c3;
	text-decoration: none;
}

.shop-message {
	display: -webkit-box;
	flex: 1;
	margin-bottom: 12px;
	overflow: hidden;
	color: #666;
	font-size: 12px;
	line-height: 1.65;
	text-align: left;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.shop-message-empty {
	color: #aaa;
	text-align: center;
}

.shop-link {
	margin-top: auto;
}

.shop-link a {
	display: inline-block;
	min-width: 112px;
	padding: 7px 12px;
	border: 1px solid #d8e3ef;
	border-radius: 999px;
	background: #fff;
	color: #0f66c3;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.shop-link a:hover {
	transform: translateY(-1px);
	background: #0f66c3;
	color: #fff;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Empty state / pagination
   -------------------------------------------------------------------------- */
.shops-empty {
	padding: 42px 20px;
	border: 1px dashed #d8d8d8;
	border-radius: 14px;
	background: #fff;
	color: #777;
	text-align: center;
}

.shops-pagination {
	margin-top: 28px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive: tablet landscape / portrait
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1099px) {
	.shops-list {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 12px;
	}

	.shop-card-inner {
		padding: 14px 9px 13px;
	}

	.shop-image-link {
		width: 68px;
		height: 68px;
		margin-bottom: 10px;
	}

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

	.shop-message {
		font-size: 11px;
		line-height: 1.55;
		-webkit-line-clamp: 2;
	}

	.shop-link a {
		min-width: 96px;
		padding: 6px 9px;
		font-size: 11px;
	}

	.shops-hero {
		padding: 24px;
	}


	.shops-hero-content {
		column-gap: 12px;
		row-gap: 12px;
	}

	.shops-hero-title {
		margin: 0;
		font-size: 26px;
	}

	.shops-hero-title-icon {
		width: 70px;
		height: 70px;
		font-size: 37px;
	}

	.shops-hero-text {
		margin-bottom: 0;
		font-size: 14px;
		line-height: 1.65;
	}


}

/* --------------------------------------------------------------------------
   Responsive: mobile
   -------------------------------------------------------------------------- */
@media screen and (max-width: 767px) {
	.shops-index-wrap {
		padding: 12px 10px 38px;
	}

	.shops-hero {
		padding: 22px 16px;
		border-radius: 14px;
	}


	.shops-hero-content {
		column-gap: 10px;
		row-gap: 12px;
	}

	.shops-hero-title {
		font-size: 26px;
		line-height: 1.35;
	}

	.shops-hero-title-icon {
		width: 44px;
		height: 44px;
		font-size: 21px;
	}


	.shops-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.shop-card-inner {
		padding: 16px 10px;
	}

	.shop-image-link {
		width: 72px;
		height: 72px;
	}
}

@media screen and (max-width: 700px) {
	.shops-index-wrap {
		padding: 10px 8px 36px;
	}

	.shops-hero {
		margin-bottom: 24px;
		padding: 20px 18px 22px;
	}


	.shops-hero-content {
		column-gap: 9px;
		row-gap: 12px;
	}

	.shops-hero-title {
		margin: 0;
		font-size: 25px;
		letter-spacing: 0.01em;
	}

	.shops-hero-title-icon {
		width: 42px;
		height: 42px;
		font-size: 20px;
	}

	.shops-hero-text {
		margin-bottom: 0;
		font-size: 14px;
		line-height: 1.75;
	}


	.shops-list {
		padding-bottom: 36px;
	}

	.shops-sort {
		margin-bottom: 20px;
	}
}

@media screen and (max-width: 600px) {
	.shops-sort {
		overflow-x: auto;
		white-space: nowrap;
	}
}

@media screen and (max-width: 420px) {
	.shops-index-wrap {
		padding: 8px 6px 34px;
	}

	.shops-hero {
		padding: 18px 16px 20px;
	}


	.shops-hero-content {
		column-gap: 8px;
		row-gap: 10px;
	}

	.shops-hero-title {
		font-size: 23px;
		line-height: 1.38;
	}

	.shops-hero-title-icon {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}

	.shops-hero-text {
		font-size: 13px;
	}


	.shops-list {
		gap: 10px;
	}

	.shop-image-link {
		width: 62px;
		height: 62px;
	}
}
