/*
 * Rebrand for Dokan's storefront pages (Store List, single vendor Store,
 * and the WooCommerce shop/product pages it hooks into) — enqueued in
 * includes/dokan-integration.php on dokan_is_store_listing(),
 * dokan_is_store_page(), and is_woocommerce()/is_shop()/is_product().
 *
 * Dokan itself exposes two CSS custom properties with fallback values
 * (--dokan-button-background-color, --dokan-sidebar-background-color —
 * see wp-content/plugins/dokan-lite/assets/css/style.css) that most of its
 * own buttons/sidebar chrome already read from, so redefining those here
 * carries most of the rebrand for free instead of overriding hundreds of
 * individual Dokan selectors.
 *
 * The DM Sans font-family fix mirrors tarifs.css/front-page.css's own fix
 * for the exact same bug: Listeo's Kirki customizer injects
 * `font-family: Outfit` as a high-specificity site-wide default, which
 * Dokan's own markup inherits same as everything else.
 */

:root {
	--dokan-button-background-color: #657900;
	--dokan-sidebar-background-color: #1A2120;
}

.dokan-store-lists-wrapper,
#dokan-store-listing-filter-form-wrap,
#dokan-store-listing-filter-wrap,
.grid-view#dokan-seller-listing-wrap,
.dokan-single-store,
.dokan-dashboard-wrap,
.woocommerce div.product,
.woocommerce ul.products,
.woocommerce-page {
	font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.dokan-store-lists-wrapper *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
#dokan-store-listing-filter-form-wrap *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
#dokan-store-listing-filter-wrap *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
.grid-view#dokan-seller-listing-wrap *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
.dokan-single-store *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
.dokan-dashboard-wrap *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
.woocommerce div.product *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
.woocommerce ul.products *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]),
.woocommerce-page *:not(.dashicons):not([class*="dashicons-"]):not(.fa):not([class^="fa-"]):not([class*=" fa-"]) {
	font-family: inherit;
}

/* Store List — search + filter bar */

#dokan-store-listing-filter-form-wrap {
	margin-bottom: 20px;
}

#dokan-store-listing-filter-form-wrap .store-search-input {
	border: 1px solid #dfe4de;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
}

#dokan-store-listing-filter-form-wrap .store-search-input:focus {
	border-color: #657900;
	outline: none;
}

.dokan-btn.dokan-btn-theme {
	background: #657900;
	border-color: #657900;
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	transition: none;
}

.dokan-btn.dokan-btn-theme:hover,
.dokan-btn.dokan-btn-theme:focus {
	background: #56680a;
	border-color: #56680a;
	color: #fff;
}

/* !important here (not used elsewhere in this file) because Dokan's own
   #dokan-store-listing-filter-wrap .right .toggle-view .active rule ties
   this on specificity, and its enqueue order relative to ours isn't
   something to depend on guessing correctly. */
#dokan-store-listing-filter-wrap .right .toggle-view .active,
#dokan-store-listing-filter-wrap .toggle-view .dashicons.active,
#dokan-store-listing-filter-wrap .dokan-icon-div.active,
#dokan-store-listing-filter-wrap .dokan-icons .active {
	color: #657900 !important;
	border-color: #657900 !important;
}

/* Store cards */

.dokan-seller-wrap {
	border: 1px solid #dfe4de;
	border-radius: 12px;
	overflow: hidden;
}

.dokan-seller-wrap .store-content-info h4 a {
	color: #1A2120;
	font-weight: 700;
}

.dokan-seller-wrap .dokan-btn.dokan-btn-theme {
	background: transparent;
	color: #657900;
}

.dokan-seller-wrap .dokan-btn.dokan-btn-theme:hover {
	background: #eef3e2;
}

/* Empty state ("No vendor found!") — a plain <p class="dokan-error"> with
   just a colored top border accent (2-3px), not a full alert box. Swapped
   from Dokan's default red to the site's olive so a routine "nothing yet"
   state doesn't read as alarming. */
.grid-view#dokan-seller-listing-wrap p.dokan-error {
	border-top-color: #657900;
}

/* Single vendor store page */

.dokan-single-store .store-header {
	border-radius: 14px;
	overflow: hidden;
}

.dokan-single-store .dokan-btn.dokan-btn-theme {
	border-radius: 8px;
}

/* Shop / product pages */

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price {
	color: #657900;
	font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
	background: #657900;
	color: #fff;
	border-radius: 8px;
	font-weight: 600;
	border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce input.button:hover {
	background: #56680a;
	color: #fff;
}

.woocommerce span.onsale {
	background: #657900;
}
