/* ============================================================
   TrivalRO Vendors / Player Shops
   Game-style vending UI using the TrivalRO design system.
   ============================================================ */

.vendor-section {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	padding: 58px 0 82px;
	overflow: hidden;
}

.vendor-section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		linear-gradient(180deg, rgba(255,255,255,.93), rgba(247,251,253,.74) 30%, rgba(234,247,254,.60) 72%, rgba(255,255,255,.94)),
		url('../../assets/background-3.jpg') center top / cover no-repeat;
	pointer-events: none;
}

.vendor-inner {
	position: relative;
	z-index: 1;
	width: min(1000px, calc(100% - 40px));
	margin: 0 auto;
}

.vendor-page-title {
	width: fit-content;
	margin: 0 auto 10px;
	padding: 13px 30px 11px;
	border-radius: 999px;
	background: linear-gradient(180deg, #2C9FDF 0%, #2C9FDF 58%, #376983 100%);
	box-shadow: inset 0 2px 1px rgba(255,255,255,.42), inset 0 -5px 0 rgba(55,105,131,.70), 0 8px 18px rgba(55,105,131,.20);
	color: #FFFFFF !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	letter-spacing: 2.4px !important;
	line-height: 1.08 !important;
	text-align: center;
	text-shadow: 2px 2px 3px rgba(55,105,131,.55);
}

.vendor-lead {
	max-width: 700px;
	margin: 0 auto 22px;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 12px;
	line-height: 1.55;
	text-align: center;
}

/* Always render the hash in a font with a clean # glyph. Grobold's # is malformed. */
.vendor-hash {
	display: inline-block;
	margin: 0 .04em;
	font-family: 'Arial Black', Arial, sans-serif !important;
	font-size: .78em;
	font-weight: 900 !important;
	letter-spacing: 0 !important;
	line-height: 1;
	vertical-align: .10em;
	text-shadow: inherit;
}

/* Vendor list toolbar */
.vendor-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 auto 16px;
	padding: 13px 15px;
	border-radius: 18px;
	background: rgba(255,255,255,.94);
	box-shadow: 0 8px 22px rgba(55,105,131,.11);
}

.vendor-toolbar-info {
	min-width: 0;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 10px;
	line-height: 1.35;
}

.vendor-toolbar-info,
.vendor-toolbar-info * {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.vendor-sort {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 7px;
}

.vendor-sort-label {
	margin-right: 2px;
	color: #718797;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.vendor-sort a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 6px 11px 5px;
	border: 1px solid rgba(44,159,223,.38);
	border-bottom-width: 3px;
	border-radius: 10px;
	background: linear-gradient(180deg, #FFFFFF, #EAF7FE);
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
	letter-spacing: .2px;
	text-decoration: none;
	text-shadow: 0 1px 0 #FFFFFF;
	transition: transform .12s ease, box-shadow .12s ease;
}

.vendor-sort a:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(55,105,131,.12);
}

/* Vendor cards */
.vendor-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 16px;
}

.vendor-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 230px;
	overflow: hidden;
	border: 0;
	border-bottom: 4px solid #2C9FDF;
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: 0 12px 26px rgba(55,105,131,.13);
	transition: transform .12s ease, box-shadow .15s ease;
}

.vendor-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 30px rgba(55,105,131,.17);
}

.vendor-card-head {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 66px;
	padding: 11px 13px;
	background: linear-gradient(180deg, #2C9FDF 0%, #2C9FDF 68%, #376983 100%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.28);
}

.vendor-icon {
	flex: 0 0 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 10px;
	background: rgba(255,255,255,.24);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.24), 0 3px 8px rgba(55,105,131,.12);
}

.vendor-icon img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.vendor-head-copy {
	min-width: 0;
	flex: 1 1 auto;
}

.vendor-shop-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #FFFFFF !important;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 12px;
	letter-spacing: .20px;
	line-height: 1.18;
	text-decoration: none !important;
	text-shadow: 0 1px 2px rgba(55,105,131,.56);
}

.vendor-owner {
	display: block;
	margin-top: 4px;
	color: rgba(255,255,255,.86);
	font-family: 'Informb', sans-serif;
	font-size: 8.5px;
	letter-spacing: .15px;
}

.vendor-owner strong {
	color: #FFFFFF;
	font-weight: 400;
}

.vendor-id-badge {
	flex: 0 0 auto;
	padding: 5px 8px 4px;
	border-radius: 999px;
	background: rgba(55,105,131,.34);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
	color: #FFFFFF;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
	text-shadow: 0 1px 1px rgba(55,105,131,.45);
}

.vendor-card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
}

.vendor-location-block {
	padding: 11px 12px;
	border-radius: 10px;
	background: #EAF7FE;
}

.vendor-meta-label {
	display: block;
	margin-bottom: 5px;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 7px;
	font-weight: 700;
	letter-spacing: .65px;
	text-transform: uppercase;
}

.vendor-location-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.vendor-location-line strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 12px;
	font-weight: 400;
}

.vendor-coordinates {
	flex: 0 0 auto;
	padding: 4px 7px 3px;
	border-radius: 999px;
	background: #FFFFFF;
	color: #376983;
	font-family: 'Informb', sans-serif;
	font-size: 9px;
}

.vendor-merchant-row {
	display: grid;
	grid-template-columns: minmax(0,1fr) 95px;
	gap: 10px;
	padding: 2px 2px 0;
}

.vendor-merchant-row > span {
	min-width: 0;
}

.vendor-merchant-row small {
	display: block;
	margin-bottom: 2px;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 7px;
	letter-spacing: .55px;
	text-transform: uppercase;
}

.vendor-merchant-row strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 10px;
	font-weight: 400;
}

.vendor-card-action {
	padding: 0 14px 14px;
}

.vendor-open-btn,
.vendor-back-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 9px 15px 7px;
	border: 0;
	border-bottom: 4px solid #376983;
	border-radius: 10px;
	background: linear-gradient(180deg, #2C9FDF 0%, #2C9FDF 58%, #376983 100%);
	box-shadow: inset 0 2px 1px rgba(255,255,255,.36), 0 5px 11px rgba(55,105,131,.18);
	color: #FFFFFF !important;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 9px;
	letter-spacing: .60px;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	text-shadow: 0 1px 2px rgba(55,105,131,.55);
	text-transform: uppercase;
	transition: transform .10s ease, box-shadow .12s ease;
}

.vendor-open-btn:hover,
.vendor-back-btn:hover {
	transform: translateY(-1px);
	box-shadow: inset 0 2px 1px rgba(255,255,255,.36), 0 7px 14px rgba(55,105,131,.22);
}

.vendor-open-btn:active,
.vendor-back-btn:active {
	transform: translateY(2px);
}

.vendor-pagination {
	margin-top: 20px;
	text-align: center;
}

.vendor-pagination .paginator,
.vendor-pagination .pagination,
.vendor-pagination .pages,
.vendor-pagination table,
.vendor-pagination form {
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
	text-align: center !important;
}

/* ============================================================
   Vendor shop detail
   ============================================================ */
.vendor-shop-panel {
	margin-top: 14px;
	padding: 18px;
	border: 0;
	border-bottom: 4px solid #2C9FDF;
	border-radius: 18px;
	background: rgba(255,255,255,.95);
	box-shadow: 0 12px 28px rgba(55,105,131,.13);
}

.vendor-shop-summary {
	display: grid;
	grid-template-columns: 60px minmax(0,1fr) 155px;
	gap: 14px;
	align-items: center;
	margin-bottom: 16px;
	padding: 14px;
	border-radius: 14px;
	background: #EAF7FE;
}

.vendor-summary-icon {
	width: 52px;
	height: 52px;
	background: #FFFFFF;
	box-shadow: 0 5px 12px rgba(55,105,131,.12);
}

.vendor-summary-icon img {
	width: 38px;
	height: 38px;
}

.vendor-shop-identity {
	min-width: 0;
}

.vendor-summary-kicker {
	margin-bottom: 3px;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 8px;
	letter-spacing: .45px;
	text-transform: uppercase;
}

.vendor-summary-id {
	margin-left: 4px;
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
}

.vendor-shop-summary h3 {
	margin: 0 0 4px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #376983 !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.18 !important;
}

.vendor-shop-summary p {
	margin: 0;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 10px;
}

.vendor-shop-summary p strong {
	color: #376983;
	font-weight: 400;
}

.vendor-shop-location {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 8px;
	align-items: end;
	padding: 9px 11px;
	border-radius: 10px;
	background: #FFFFFF;
	box-shadow: 0 4px 10px rgba(55,105,131,.08);
}

.vendor-shop-location span {
	grid-column: 1 / -1;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 7px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.vendor-shop-location strong {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 10px;
	font-weight: 400;
}

.vendor-shop-location small {
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 8px;
	white-space: nowrap;
}

.vendor-inventory-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	margin: 3px 2px 12px;
}

.vendor-inventory-head h4 {
	margin: 0 0 2px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: #376983 !important;
	font-family: 'Grobold', 'Arial Black', sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.15 !important;
}

.vendor-inventory-head p {
	margin: 0;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 9px;
}

.vendor-inventory-count {
	flex: 0 0 auto;
	padding: 6px 9px 5px;
	border-radius: 999px;
	background: #EAF7FE;
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 8px;
}

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

.vendor-item-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 16px;
	border: 0;
	border-bottom: 3px solid rgba(44,159,223,.68);
	border-radius: 14px;
	background: #FFFFFF;
	box-shadow: 0 8px 18px rgba(55,105,131,.10);
}

.vendor-item-top {
	display: grid;
	grid-template-columns: 94px minmax(0,1fr);
	gap: 16px;
	align-items: center;
}

.vendor-item-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 94px;
	height: 94px;
	border: 0;
	border-radius: 10px;
	background: #EAF7FE;
}

.vendor-item-image img {
	width: 76px;
	height: 76px;
	max-width: none;
	max-height: none;
	object-fit: contain;
	image-rendering: pixelated;
}

.vendor-item-heading {
	min-width: 0;
}

.vendor-item-name {
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 16px;
	line-height: 1.2;
}

.vendor-item-name a {
	color: inherit !important;
	text-decoration: none !important;
}

.vendor-item-name a:hover {
	color: #2C9FDF !important;
}

.vendor-item-id {
	margin-top: 5px;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 9px;
}

.vendor-item-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 8px;
	margin-top: 14px;
	padding: 10px;
	border-radius: 10px;
	background: #F7FBFD;
}

.vendor-item-stat {
	min-width: 0;
	padding: 5px 6px;
	text-align: center;
}

.vendor-item-stat span {
	display: block;
	margin-bottom: 3px;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 7.5px;
	font-weight: 700;
	letter-spacing: .45px;
	text-transform: uppercase;
}

.vendor-item-stat strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 10.5px;
	font-weight: 400;
}

.vendor-item-cards {
	flex: 1 1 auto;
	margin-top: 11px;
	padding: 9px 2px 3px;
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 9.5px;
	line-height: 1.48;
}

.vendor-item-cards strong {
	color: #376983;
	font-weight: 400;
}

.vendor-random-options {
	margin-top: 6px;
}

.vendor-random-options ul {
	margin: 4px 0 0 16px;
	padding: 0;
}

.vendor-item-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 11px;
	padding: 11px 12px 10px;
	border-radius: 10px;
	background: #EAF7FE;
}

.vendor-item-price span {
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 9px;
	letter-spacing: .35px;
	text-transform: uppercase;
}

.vendor-item-price strong {
	color: #2C9FDF;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 15px;
	font-weight: 400;
}

.vendor-back-wrap {
	width: 190px;
	margin-top: 16px;
}

.vendor-back-wrap--center {
	margin-left: auto;
	margin-right: auto;
}

.vendor-empty {
	padding: 34px 20px;
	border: 0;
	border-radius: 14px;
	background: rgba(255,255,255,.84);
	box-shadow: 0 8px 20px rgba(55,105,131,.10);
	color: #718797;
	font-family: 'Informb', sans-serif;
	font-size: 11px;
	line-height: 1.55;
	text-align: center;
}

.vendor-empty strong {
	color: #376983;
	font-family: 'Grobold', 'Arial Black', sans-serif;
	font-size: 12px;
	font-weight: 400;
}

@media (max-width: 820px) {
	.vendor-grid,
	.vendor-item-grid {
		grid-template-columns: 1fr;
	}

	.vendor-shop-summary {
		grid-template-columns: 56px minmax(0,1fr);
	}

	.vendor-shop-location {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.vendor-section {
		padding: 46px 0 58px;
	}

	.vendor-inner {
		width: min(100% - 24px, 1000px);
	}

	.vendor-page-title {
		font-size: 17px !important;
		letter-spacing: 1.9px !important;
		padding: 11px 20px 9px;
	}

	.vendor-lead {
		font-size: 10px;
	}

	.vendor-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.vendor-sort {
		justify-content: flex-start;
	}

	.vendor-card-head {
		align-items: flex-start;
	}

	.vendor-merchant-row {
		grid-template-columns: minmax(0,1fr) 70px;
	}

	.vendor-shop-panel {
		padding: 13px;
	}

	.vendor-shop-summary {
		grid-template-columns: 50px minmax(0,1fr);
		gap: 10px;
		padding: 12px;
	}

	.vendor-summary-icon {
		width: 46px;
		height: 46px;
	}

	.vendor-summary-icon img {
		width: 34px;
		height: 34px;
	}

	.vendor-shop-summary h3 {
		font-size: 13px !important;
	}

	.vendor-inventory-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
	}

	.vendor-inventory-count {
		align-self: flex-start;
	}

	.vendor-item-stats {
		gap: 3px;
	}

	.vendor-back-wrap {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vendor-card,
	.vendor-sort a,
	.vendor-open-btn,
	.vendor-back-btn {
		transition: none !important;
	}
}
