/**
 * AdForest Child Theme - Vendor Pages Styles
 *
 * Custom styles for MM Marketplace vendor pages within the
 * AdForest theme layout framework.
 *
 * @package AdForestChild
 * @since 1.0.0
 */

/* =============================================================================
 * VENDOR PROFILE HEADER
 * ============================================================================= */

.vendor-profile-header {
	margin-bottom: 30px;
	background: #fff;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vendor-banner {
	max-height: 250px;
	overflow: hidden;
}

.vendor-banner img {
	width: 100%;
	object-fit: cover;
	object-position: center;
}

.vendor-profile-info {
	display: flex;
	padding: 25px;
	gap: 20px;
	flex-wrap: wrap;
}

.vendor-avatar {
	flex-shrink: 0;
}

.vendor-avatar-img,
.vendor-avatar img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	object-fit: cover;
}

.vendor-details {
	flex: 1;
	min-width: 250px;
}

.vendor-store-name {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 5px;
	color: #333;
}

.vendor-owner-name {
	font-size: 14px;
	color: #777;
	margin: 0 0 10px;
}

.vendor-rating {
	margin-bottom: 10px;
}

.vendor-rating .star-rating {
	display: inline-block;
	position: relative;
	font-size: 1em;
	width: 5.3em;
	height: 1.2em;
	font-family: star;
	overflow: hidden;
	line-height: 1.2em;
}

.vendor-rating .star-rating::before {
	content: "\73\73\73\73\73";
	color: #ddd;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.vendor-rating .star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.vendor-rating .star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #f0ad4e;
}

.vendor-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 12px;
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.vendor-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.vendor-meta i {
	color: #aaa;
}

.vendor-description {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 15px;
}

.vendor-contact {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.vendor-contact-btn,
.vendor-phone-btn {
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	padding: 6px 14px;
	font-size: 13px;
	border-radius: 3px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.vendor-contact-btn:hover,
.vendor-phone-btn:hover {
	background: #f5f5f5;
	border-color: #ccc;
}

.vendor-social {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.vendor-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f5f5f5;
	color: #666;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.vendor-social-link:hover {
	color: #fff;
	text-decoration: none;
}

.vendor-social-facebook:hover { background: #3b5998; }
.vendor-social-twitter:hover { background: #1da1f2; }
.vendor-social-linkedin:hover { background: #0077b5; }
.vendor-social-youtube:hover { background: #ff0000; }
.vendor-social-instagram:hover { background: #e4405f; }
.vendor-social-pinterest:hover { background: #bd081c; }

/* =============================================================================
 * VENDOR TABS
 * ============================================================================= */

.vendor-tabs {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.vendor-tabs-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	border-bottom: 2px solid #eee;
	background: #fafafa;
}

.vendor-tabs-nav li {
	margin: 0;
}

.vendor-tabs-nav li a {
	display: block;
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #777;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.2s ease;
}

.vendor-tabs-nav li a:hover {
	color: #333;
}

.vendor-tabs-nav li.active a {
	color: #333;
	border-bottom-color: #f58936;
}

.vendor-tabs-content {
	padding: 25px;
}

/* =============================================================================
 * VENDOR LISTINGS / PRODUCT GRID
 * ============================================================================= */

.vendor-listings-wrapper {
	margin-top: 20px;
}

.vendor-listings-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 18px;
	color: #333;
}

.vendor-products-grid {
	margin-bottom: 20px;
}

.vendor-product-item {
	margin-bottom: 25px;
}

.vendor-product-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.25s ease;
	height: 100%;
}

.vendor-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card-thumbnail {
	position: relative;
	overflow: hidden;
	background: #f9f9f9;
}

.product-card-thumbnail img {
	width: 100%;
	display: block;
	transition: transform 0.3s ease;
}

.vendor-product-card:hover .product-card-thumbnail img {
	transform: scale(1.05);
}

.product-card-content {
	padding: 15px;
}

.product-card-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
	line-height: 1.4;
}

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

.product-card-title a:hover {
	color: #f58936;
}

.product-card-price {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	margin-bottom: 8px;
}

.product-card-price .amount {
	color: #f58936;
}

.product-card-rating {
	margin-bottom: 8px;
}

.product-card-excerpt {
	font-size: 13px;
	color: #777;
	line-height: 1.5;
}

/* =============================================================================
 * VENDOR LIST GRID (ARCHIVE PAGE)
 * ============================================================================= */

.vendor-archive-page {
	margin-bottom: 40px;
}

.vendor-archive-header {
	text-align: center;
	margin-bottom: 35px;
	padding: 30px 20px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.vendor-archive-title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #333;
}

.vendor-archive-description {
	font-size: 15px;
	color: #777;
	max-width: 600px;
	margin: 0 auto;
}

.vendor-grid {
	margin-bottom: 30px;
}

.vendor-grid-item {
	margin-bottom: 25px;
}

.vendor-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow 0.25s ease;
	height: 100%;
}

.vendor-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vendor-card-banner {
	max-height: 140px;
	overflow: hidden;
}

.vendor-card-banner img {
	width: 100%;
	object-fit: cover;
}

.vendor-card-body {
	padding: 20px;
	text-align: center;
}

.vendor-card-avatar {
	margin: -60px auto 12px;
	position: relative;
	z-index: 2;
	width: 80px;
	height: 80px;
}

.vendor-card-avatar img {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.vendor-card-name {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
}

.vendor-card-name a {
	color: #333;
	text-decoration: none;
}

.vendor-card-name a:hover {
	color: #f58936;
}

.vendor-card-meta {
	font-size: 13px;
	color: #888;
	margin-bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

.vendor-card-meta i {
	color: #ccc;
	margin-right: 4px;
}

.vendor-card-location {
	font-size: 13px;
	color: #999;
	margin-bottom: 12px;
}

.vendor-card-location i {
	margin-right: 4px;
}

.vendor-card-actions {
	margin-top: 10px;
}

.vendor-no-results {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	color: #777;
}

.vendor-no-results p {
	margin-bottom: 15px;
	font-size: 15px;
}

/* =============================================================================
 * VENDOR ABOUT SECTION
 * ============================================================================= */

.vendor-about-section {
	font-size: 14px;
	line-height: 1.7;
	color: #555;
}

.vendor-about-section h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 25px 0 12px;
	color: #333;
	border-bottom: 1px solid #eee;
	padding-bottom: 8px;
}

.vendor-about-section h3:first-child {
	margin-top: 0;
}

.vendor-details-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vendor-details-list li {
	padding: 8px 0;
	border-bottom: 1px solid #f5f5f5;
}

.vendor-details-list li:last-child {
	border-bottom: none;
}

.vendor-details-list strong {
	display: inline-block;
	min-width: 120px;
	color: #555;
}

.vendor-social-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.vendor-social-links .vendor-social-link {
	width: auto;
	height: auto;
	padding: 8px 16px;
	border-radius: 3px;
	font-size: 13px;
	gap: 6px;
}

/* =============================================================================
 * VENDOR DASHBOARD
 * ============================================================================= */

.vendor-dashboard-page {
	margin-bottom: 40px;
}

.vendor-dashboard-header {
	margin-bottom: 25px;
}

.vendor-dashboard-title {
	font-size: 24px;
	font-weight: 700;
	color: #333;
	margin: 0;
}

.vendor-dashboard-content {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	padding: 25px;
}

.vendor-not-vendor-message {
	background: #fffbf0;
	border: 1px solid #f0e6cc;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 25px;
}

.vendor-not-vendor-message h3 {
	color: #8a6d3b;
	margin: 0 0 8px;
	font-size: 16px;
}

.vendor-not-vendor-message p {
	color: #8a6d3b;
	margin: 0;
	font-size: 14px;
}

/* =============================================================================
 * PAGINATION
 * ============================================================================= */

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

.vendor-pagination .pagination {
	display: inline-flex;
	gap: 2px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.vendor-pagination .pagination li {
	margin: 0;
}

.vendor-pagination .pagination a,
.vendor-pagination .pagination span {
	display: block;
	padding: 8px 14px;
	border: 1px solid #ddd;
	border-radius: 3px;
	color: #555;
	font-size: 13px;
	text-decoration: none;
	background: #fff;
	transition: all 0.2s ease;
}

.vendor-pagination .pagination a:hover {
	background: #f5f5f5;
	color: #333;
}

.vendor-pagination .pagination .current {
	background: #f58936;
	color: #fff;
	border-color: #f58936;
}

/* =============================================================================
 * RESPONSIVE
 * ============================================================================= */

@media (max-width: 768px) {
	.vendor-profile-info {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 20px 15px;
	}

	.vendor-meta {
		justify-content: center;
	}

	.vendor-contact {
		justify-content: center;
	}

	.vendor-social {
		justify-content: center;
	}

	.vendor-tabs-nav {
		flex-wrap: wrap;
	}

	.vendor-tabs-nav li {
		flex: 1;
		min-width: 50%;
	}

	.vendor-tabs-nav li a {
		padding: 12px 15px;
		font-size: 13px;
		text-align: center;
	}

	.vendor-tabs-content {
		padding: 15px;
	}

	.vendor-archive-header {
		padding: 20px 15px;
	}

	.vendor-archive-title {
		font-size: 22px;
	}

	.vendor-details-list strong {
		min-width: 100px;
	}

	.vendor-social-links {
		flex-direction: column;
	}

	.vendor-grid-item {
		margin-bottom: 15px;
	}
}
