/* Seller storefront (WCFM store page), mobile first */
#wcfmmp-store { background: transparent; max-width: 1200px; margin: 0 auto; padding: 0; }
#wcfmmp-store-content, #wcfmmp-store .wcfmmp-store-page-wrap { padding: 0 16px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
#wcfmmp-store .left_sidebar, #wcfmmp-store .wcfmmp_sold_by_container { display: none !important; }
#wcfmmp-store .right_side, #wcfmmp-store .rgt { width: 100% !important; float: none !important; padding: 0 !important; margin: 0 !important; }

.mvp-store__cover {
	--x1: calc(10% + var(--seed, 0) * .15%); --x2: calc(95% - var(--seed, 0) * .12%);
	position: relative; height: 120px; overflow: hidden; border-radius: var(--mvp-r-lg); margin-top: 12px;
	background:
		radial-gradient(circle at var(--x1) 35%, var(--mvp-pop) 0 16%, transparent 16.5%),
		radial-gradient(circle at var(--x2) 80%, color-mix(in srgb, var(--mvp-accent) 70%, #fff) 0 24%, transparent 24.5%),
		var(--mvp-accent);
}
.mvp-store__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mvp-store__card { display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; padding: 0 0 8px; margin-top: -36px; position: relative; align-items: end; background: transparent !important; border: 0 !important; }
.mvp-store__avatar {
	width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 3px solid var(--mvp-paper); box-shadow: 3px 3px 0 var(--mvp-ink);
	background: var(--mvp-pop); display: grid; place-items: center;
}
.mvp-store__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mvp-store__avatar span { font: 800 1.9rem var(--mvp-font-display); color: var(--mvp-ink); }
.mvp-store__meta { grid-column: 1 / -1; }
.mvp-store__name { margin: 8px 0 2px; font-size: clamp(1.7rem, 6vw, 2.6rem) !important; }
.mvp-store__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--mvp-muted); font-size: .92rem; }
.mvp-store__bio { margin: 10px 0 0; max-width: 60ch; }
.mvp-store__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mvp-store__actions button, .mvp-store__actions a, .mvp-store__actions .wcfmmp_store_enquiry, .mvp-store__actions .wcfmmp_follow_me {
	border-radius: 999px; border: 2px solid var(--mvp-ink); background: var(--mvp-surface); color: var(--mvp-ink); padding: .55em 1.1em;
	min-height: 44px; font-weight: 700; text-decoration: none; box-shadow: 2px 2px 0 var(--mvp-ink);
}

/* Tabs as a scrollable pill row */
#wcfmmp-store .tab_links_area, #wcfmmp-store .tab_area, #wcfmmp-store .body_area, #wcfmmp-store .tab_area > div,
#wcfmmp-store .woocommerce, #wcfmmp-store .rgt { background: transparent !important; border: 0 !important; padding: 0 !important; margin-inline: 0 !important; box-shadow: none !important; }
#wcfmmp-store .tab_links_area { margin: 12px 0 16px !important; }
#wcfmmp-store ul.tab_links { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; background: transparent; border: 0; }
#wcfmmp-store ul.tab_links li { margin: 0 !important; flex: none; border: 0 !important; background: transparent !important; padding: 0 !important; }
#wcfmmp-store ul.tab_links li a {
	display: block; padding: .6em 1.2em !important; border-radius: 999px; border: 2px solid var(--mvp-line) !important; background: var(--mvp-surface) !important;
	color: var(--mvp-ink) !important; font-weight: 700; text-transform: none !important; font-size: .95rem !important; text-decoration: none; line-height: 1.2;
}
#wcfmmp-store ul.tab_links li.active a { background: var(--mvp-ink) !important; color: var(--mvp-paper) !important; border-color: var(--mvp-ink) !important; }

@media (min-width: 768px) {
	#wcfmmp-store-content, #wcfmmp-store .wcfmmp-store-page-wrap { padding: 0 32px !important; }
	.mvp-store__cover { height: 200px; }
	.mvp-store__card { grid-template-columns: 112px 1fr auto; margin-top: -56px; padding-inline: 24px; }
	.mvp-store__avatar { width: 112px; height: 112px; }
	.mvp-store__avatar span { font-size: 3rem; }
	.mvp-store__meta { grid-column: 2; }
	.mvp-store__actions { grid-column: 3; margin: 0 0 6px; }
}

/* Specificity fixes against WCFM defaults */
#wcfmmp-store ul.tab_links, #wcfmmp-store .tab_links_area::before, #wcfmmp-store .tab_links_area::after { background: transparent !important; border: 0 !important; box-shadow: none !important; }
#wcfmmp-store .mvp-store__name { color: var(--mvp-ink) !important; font-family: var(--mvp-font-display) !important; text-transform: none !important; }
#wcfmmp-store .mvp-store__actions a, #wcfmmp-store .mvp-store__actions button, #wcfmmp-store .mvp-store__actions span { color: var(--mvp-ink) !important; }
#wcfmmp-store ul.tab_links li { width: auto !important; float: none !important; }
#wcfmmp-store #wcfm_home, #wcfmmp-store .wcfm_buttons { display: none !important; }
#wcfmmp-store ul.products li.product { padding: 0 !important; }
#wcfmmp-store ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
#wcfmmp-store ul.products::before { display: none; }
@media (min-width: 768px) { #wcfmmp-store ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { #wcfmmp-store ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
#wcfmmp-store ul.tab_links li.active, #wcfmmp-store ul.tab_links li::before, #wcfmmp-store ul.tab_links li::after { border: 0 !important; box-shadow: none !important; background: transparent !important; }
#wcfmmp-store ul.products li.product .astra-shop-thumbnail-wrap, #wcfmmp-store ul.products li.product > a { padding: 0 !important; margin: 0 !important; }
#wcfmmp-store ul.products li.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Sellers list */
.wcfmmp-store-wrap { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; }
.wcfmmp-store-wrap::before, .wcfmmp-store-wrap::after { display: none !important; }
.mvp-seller-tile { width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.mvp-seller-tile__link { position: relative; display: block; height: 100%; padding-bottom: 14px; border-radius: var(--mvp-r); overflow: hidden; background: var(--mvp-surface); border: 1px solid var(--mvp-line); text-decoration: none; color: var(--mvp-ink); text-align: center; transition: transform .15s, border-color .15s; }
.mvp-seller-tile__link:hover { transform: translateY(-3px); border-color: var(--mvp-ink); }
.mvp-seller-tile__cover { display: block; height: 64px; background: radial-gradient(circle at calc(10% + var(--seed) * .15%) 40%, var(--mvp-pop) 0 20%, transparent 21%), var(--mvp-accent); }
.mvp-seller-tile__avatar { display: grid; place-items: center; width: 56px; height: 56px; margin: -28px auto 8px; position: relative; border-radius: 50%; overflow: hidden; border: 3px solid var(--mvp-surface); background: var(--mvp-pop); font: 800 1.4rem var(--mvp-font-display); }
.mvp-seller-tile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mvp-seller-tile__name { display: block; padding-inline: 8px; font: 800 1.05rem var(--mvp-font-display); }
.mvp-seller-tile__count { display: block; color: var(--mvp-muted); font-size: .88rem; }
@media (min-width: 768px) { .wcfmmp-store-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) { .wcfmmp-store-wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sellers list filters: drop the map and the empty extra field, tidy the rest */
.wcfmmp-product-geolocate-search-form, .wcfmmp-store-search-form .wcfmmp-store-search-radius, .wcfmmp-store-search-form .wcfmmp-map-wrapper { display: none !important; }
#wcfmmp-stores-lists .wcfmmp-store-search-form, #wcfmmp-stores-lists .wcfmmp-store-search-form form { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.mvp-empty { padding: 20px; border-radius: var(--mvp-r); border: 2px dashed var(--mvp-line); color: var(--mvp-muted); text-align: center; max-width: 48ch; }

/* Sellers filters: keep name search and sorting only */
.wcfmmp-store-search-form #wcfmmp_store_category, .wcfmmp-store-search-form #wcfmmp_store_country, .wcfmmp-store-search-form .select2-container,
.wcfmmp-store-search-form input:not(.wcfmmp-store-search):not([type="hidden"]) { display: none !important; }
.wcfmmp-store-search-form { margin-bottom: 16px; }
.wcfmmp-store-search-form .wcfmmp-store-search { width: 100%; }
.wcfmmp-store-search-form > *:not(input.wcfmmp-store-search) { display: none !important; }
#wcfmmp-stores-lists .mvp-seller-tile a, #wcfmmp-stores-lists .mvp-seller-tile a span { text-decoration: none !important; color: var(--mvp-ink) !important; }
#wcfmmp-stores-lists .mvp-seller-tile .mvp-seller-tile__count { color: var(--mvp-muted) !important; }

.mvp-store__avatar span, .mvp-seller-tile__avatar { color: var(--mvp-pop-ink); }
.mvp-swipe__cat { }
