/*
 * Layout: header, hero, home sections, footer, mobile bottom bar, area dialog.
 * Mobile first (mockup 390 px), desktop from 900 px (mockup 1440 px).
 */

.as-container { width: 100%; max-width: var(--as-container); margin-inline: auto; padding-inline: 20px; box-sizing: border-box; }
@media (min-width: 900px) { .as-container { padding-inline: 40px; } }
@media (min-width: 1280px) { :root { --as-container: 1312px; } .as-container { padding-inline: 64px; } }

.as-hide-mobile { display: none !important; }
@media (min-width: 900px) {
	.as-hide-mobile { display: inline-flex !important; }
	.as-show-mobile { display: none !important; }
}

/* Storefront resets that fight our layout */
.as-header + .storefront-breadcrumb, .home .storefront-breadcrumb { margin-bottom: 0; }
.site-content { outline: none; }
body.home .site-content, body.home #content { padding: 0; }

/* ---------- Header ---------- */
.as-header { background: var(--as-forest); color: var(--as-white); }
.as-header__bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
@media (min-width: 900px) { .as-header__bar { min-height: 76px; gap: 32px; } }

.as-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--as-white); text-decoration: none; }
.as-brand:hover, .as-brand:focus { color: var(--as-white); }
.as-brand__mark {
	width: 34px; height: 34px; border-radius: 9px; background: var(--as-gold); color: var(--as-forest);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--as-font-display); font-weight: 700; font-size: 17px; flex: none;
}
.as-brand__name { font-family: var(--as-font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.5px; }
.as-brand__img { max-height: 40px; width: auto; }
@media (min-width: 900px) {
	.as-brand__mark { width: 38px; height: 38px; border-radius: 10px; font-size: 19px; }
	.as-brand__name { font-size: 22px; }
}

.as-header__nav { display: none; }
@media (min-width: 900px) {
	.as-header__nav { display: flex; gap: 28px; flex: 1; font-size: 14.5px; font-weight: 500; }
	.as-header__nav a { color: var(--as-white); text-decoration: none; min-height: var(--as-touch); display: inline-flex; align-items: center; }
	.as-header__nav a:hover { color: var(--as-gold); }
}
.as-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.as-header__link { align-items: center; gap: 8px; color: #d3e2da; font-size: 14.5px; font-weight: 500; text-decoration: none; min-height: var(--as-touch); }
.as-header__link:hover { color: var(--as-white); }

/* Language switch FR | EN as a pill (mockup) */
.as-lang--header { height: 36px; border: 1px solid rgba(255,255,255,0.35); border-radius: 18px; overflow: hidden; gap: 0; }
.as-lang--header a { min-width: 44px; min-height: 36px; padding: 0 12px; color: var(--as-white); font-size: 13px; text-decoration: none; }
.as-lang--header a[aria-current="true"] { background: var(--as-gold); color: var(--as-forest); text-decoration: none; }
@media (min-width: 900px) { .as-lang--header { height: 40px; border-radius: 20px; } .as-lang--header a { min-height: 40px; } }

/* Buttons on dark background */
.as-btn--outline-light { background: transparent; color: var(--as-white); border-color: rgba(255,255,255,0.35); border-radius: 12px; }
.as-btn--outline-light:hover, .as-btn--outline-light:focus-visible { color: var(--as-white); border-color: var(--as-white); }
.as-header .as-btn--primary { border-radius: 12px; }

/* ---------- Area button ---------- */
.as-area-btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
	border-radius: 17px; border: 1px solid rgba(255,255,255,0.35); background: transparent;
	color: var(--as-white); font: 600 12.5px/1 var(--as-font-body); cursor: pointer; white-space: nowrap; max-width: 100%;
}
.as-area-btn__label { overflow: hidden; text-overflow: ellipsis; }
.as-area-btn__pin { color: var(--as-gold); display: inline-flex; }
.as-area-btn--hero { min-height: var(--as-touch); }
.as-area-btn--search .as-area-btn__label { max-width: 200px; }
.as-area-btn--search { border: none; color: var(--as-forest); font-size: 15px; min-height: 46px; border-radius: 10px; }
.as-area-btn--search .as-area-btn__pin { color: #9a6700; }
.as-area-btn--inline { border-color: var(--as-line); color: var(--as-forest); margin-top: var(--as-space-2); min-height: var(--as-touch); }
.as-area-btn--inline .as-area-btn__pin { color: #9a6700; }

/* ---------- Hero ---------- */
.as-hero { background: var(--as-forest); color: var(--as-white); padding: 4px 0 22px; }
.as-hero__inner { display: flex; flex-direction: column; gap: 16px; }
.as-hero__main { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
.as-hero__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.as-hero__kicker { margin: 0; font-size: 13px; color: #b9cdc4; }
@media (max-width: 899px) { .as-hero__kicker { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); } } /* the h1 says it; keeps the area button on one line */
.as-hero__title { margin: 0; color: var(--as-white); font-family: var(--as-font-display); font-size: 22px; font-weight: 700; line-height: 1.2; max-width: 680px; }

.as-search { display: flex; align-items: center; gap: 10px; background: var(--as-white); border-radius: 12px; padding: 0 6px 0 14px; min-height: 48px; color: #6b726e; max-width: 760px; margin: 0; } /* Storefront adds a bottom margin to forms */
.as-search__field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.as-search input[type="search"] {
	border: none; outline: none; flex: 1; min-width: 0; min-height: 46px; padding: 0; background: transparent;
	font: 400 16px/1.2 var(--as-font-body); color: var(--as-ink); box-shadow: none;
}
.as-search__sep { width: 1px; height: 30px; background: var(--as-line); }
.as-search__submit { border-radius: 10px; min-height: 46px; }

.as-trust { display: flex; gap: 14px; align-items: center; background: #1f4a3c; border-radius: 16px; padding: 16px; }
.as-trust__icon { width: 44px; height: 44px; border-radius: 22px; background: #e3a64a; color: var(--as-forest); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.as-trust__title { margin: 0; font-weight: 700; font-size: 14px; }
.as-trust__text { margin: 2px 0 0; font-size: 12px; color: #d3e2da; line-height: 1.4; }

@media (min-width: 900px) {
	.as-hero { padding: 40px 0 52px; }
	.as-hero__inner { flex-direction: row; align-items: center; gap: 56px; }
	.as-hero__main { gap: 22px; }
	.as-hero__kicker { font-size: 15px; }
	.as-hero__title { font-size: 46px; line-height: 1.1; }
	.as-search { min-height: 60px; border-radius: 14px; padding: 0 8px 0 18px; gap: 12px; }
	.as-trust { width: 400px; flex: none; flex-direction: column; align-items: flex-start; gap: 16px; border-radius: 20px; padding: 26px; }
	.as-trust__icon { width: 52px; height: 52px; border-radius: 26px; }
	.as-trust__title { font-size: 19px; }
	.as-trust__text { font-size: 14.5px; line-height: 1.5; }
}

.as-strip { height: 6px; background: var(--as-gold); }
@media (min-width: 900px) { .as-strip { height: 8px; } }

/* ---------- Home sections ---------- */
.as-home { padding-top: 18px; padding-bottom: 32px; }
@media (min-width: 900px) { .as-home { padding-top: 34px; padding-bottom: 56px; } }
.as-home .as-section { margin-block: 0 22px; }
@media (min-width: 900px) { .as-home .as-section { margin-bottom: 34px; } }
.as-section__title { font-family: var(--as-font-display); font-size: 17px; font-weight: 700; color: var(--as-forest); }
.as-section__more { font-size: 13px; font-weight: 600; color: #8a5d00; text-decoration: none; min-height: var(--as-touch); display: inline-flex; align-items: center; }
@media (min-width: 900px) { .as-section__title { font-size: 24px; } .as-section__more { font-size: 14.5px; } }

/* Categories: 4 icon tiles on mobile, 6 pills on desktop */
.as-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.as-cats li:nth-child(n+5) { display: none; }
.as-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--as-ink); text-decoration: none; text-align: center; min-height: var(--as-touch); }
.as-cat__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--as-white); display: flex; align-items: center; justify-content: center; color: #9a6700; }
.as-cat__name { overflow-wrap: anywhere; }
@media (min-width: 900px) {
	.as-cats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
	.as-cats li:nth-child(n+5) { display: block; }
	.as-cat { flex-direction: row; background: var(--as-white); border-radius: 16px; height: 64px; padding: 0 18px; gap: 12px; font-size: 15px; font-weight: 600; text-align: left; }
	.as-cat__icon { width: auto; height: auto; background: none; border-radius: 0; }
}

/* Product cards (mockup) */
.as-products { list-style: none; margin: 0; padding: 0; }
.as-products > li { display: flex; }
.as-product { display: flex; flex-direction: column; width: 100%; color: var(--as-ink); text-decoration: none; border: none; border-radius: 14px; box-shadow: none; }
.as-product:hover .as-card__title { text-decoration: underline; }
.as-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; min-height: 0; } /* 4:3, same shape as the stored card image (version A, 2026-11-18) */
.as-card__media img { width: 100%; height: 100%; object-fit: cover; }
.as-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #e9dccb; color: #8a7a64; }
.as-products > li:nth-child(odd) .as-card__placeholder { background: #d5e6dc; color: var(--as-green); }
.as-product .as-card__body { padding: 10px 10px 12px; gap: 3px; }
.as-card__title { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-card__meta { font-size: 11px; color: #5f6662; }
.as-product .as-card__price { font-size: 14px; font-weight: 700; color: var(--as-forest); margin-top: 3px; }
.as-card__price del { color: #5f6662; font-weight: 400; }
@media (min-width: 900px) {
	.as-products { gap: 20px; }
	.as-product { border-radius: 16px; }
	.as-product .as-card__body { padding: 14px 16px 16px; }
	.as-card__title { font-size: 15px; }
	.as-card__meta { font-size: 13px; }
	.as-product .as-card__price { font-size: 16px; margin-top: 5px; }
}

.as-home__area-prompt { margin: 0 0 var(--as-space-4); font-size: var(--as-text-sm); display: flex; flex-wrap: wrap; align-items: center; gap: var(--as-space-2) var(--as-space-3); }
.as-home__area-prompt .as-area-btn--inline { margin-top: 0; }
.as-empty { background: var(--as-white); border-radius: var(--as-radius); padding: var(--as-space-6) var(--as-space-5); text-align: center; display: grid; gap: var(--as-space-3); justify-items: center; }
.as-empty p { margin: 0; }
.as-empty__title { font-family: var(--as-font-display); font-weight: 700; font-size: var(--as-text-lg); color: var(--as-forest); }

/* ---------- Footer ---------- */
.as-footer { background: var(--as-forest); color: #d3e2da; padding: 32px 0 calc(32px + 72px); font-size: var(--as-text-sm); }
@media (min-width: 900px) { .as-footer { padding-bottom: 32px; } }
.as-footer__inner { display: grid; gap: 28px; }
@media (min-width: 900px) { .as-footer__inner { grid-template-columns: minmax(220px, 1fr) 2fr; column-gap: 48px; } .as-footer__bottom { grid-column: 1 / -1; } }
.as-footer__about { display: grid; gap: 10px; align-content: start; }
.as-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--as-white); text-decoration: none; }
.as-footer p { margin: 0; }
.as-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 599px) { .as-footer__cols { grid-template-columns: 1fr 1fr; } }
.as-footer__title { color: var(--as-gold); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px !important; }
.as-footer__col ul { list-style: none; margin: 0; padding: 0; }
.as-footer__col a { color: #e6efe9; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; font-size: 14.5px; }
.as-footer__col a:hover { color: var(--as-white); text-decoration: underline; text-underline-offset: 3px; }
.as-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .12); }
.as-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.as-footer__links a { color: #d3e2da; min-height: var(--as-touch); display: inline-flex; align-items: center; font-size: 13px; }
.as-footer__copy { color: #b9cdc4; font-size: var(--as-text-xs); }

/* ---------- Mobile bottom navigation ---------- */
.as-bottom-nav {
	position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--as-white); border-top: 1px solid var(--as-line);
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 8px calc(8px + env(safe-area-inset-bottom));
}
.as-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: var(--as-touch); font-size: 11px; font-weight: 500; color: #5f6662; text-decoration: none; }
.as-bottom-nav a[aria-current="page"] { color: #9a6700; font-weight: 700; }
@media (min-width: 900px) { .as-bottom-nav { display: none; } }

/* ---------- Area dialog ---------- */
.as-dialog { border: none; border-radius: var(--as-radius-lg); padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: 0 20px 60px rgb(20 51 42 / 0.25); color: var(--as-ink); }
.as-dialog::backdrop { background: rgb(20 51 42 / 0.55); }
.as-dialog.is-fallback { position: fixed; inset: 10vh 16px auto; margin: auto; z-index: 100; }
.as-dialog__form { padding: 20px; display: grid; gap: 14px; }
.as-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.as-dialog__title { margin: 0; font-size: var(--as-text-xl); color: var(--as-forest); }
.as-dialog__close { width: var(--as-touch); height: var(--as-touch); border-radius: 50%; border: none; background: var(--as-surface-alt); color: var(--as-forest); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.as-dialog__help { margin: 0; color: var(--as-ink-muted); font-size: var(--as-text-sm); }
.as-dialog__actions { display: grid; gap: 8px; margin-top: 4px; }
.as-field { display: grid; gap: 6px; }
.as-field__label { font-weight: 600; font-size: var(--as-text-sm); }
.as-field select { width: 100%; }

/* Room for the fixed bottom bar on mobile */
@media (max-width: 899px) { body { padding-bottom: 72px; } }

/* ---------- Product page (woocommerce/single-product.php) ---------- */
.as-pdp { display: grid; gap: 20px; padding: 8px 0 24px; }
@media (min-width: 900px) { .as-pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 4px; } }

.as-pdp__media { display: grid; gap: 12px; }
.as-pdp__photo { aspect-ratio: 1 / 1; border-radius: var(--as-radius-lg); overflow: hidden; background: var(--as-white); border: 1px solid var(--as-line); }
@media (min-width: 900px) { .as-pdp__photo { border-radius: 20px; } }
.as-pdp__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-pdp__placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #6b726e; font-size: var(--as-text-sm); background: var(--as-surface-alt); }
.as-pdp__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.as-pdp__thumb { display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; border: 3px solid transparent; border-radius: var(--as-radius); overflow: hidden; background: var(--as-white); cursor: pointer; }
.as-pdp__thumb[aria-pressed="true"] { border-color: var(--as-gold); }
.as-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.as-pdp__info { display: grid; gap: 16px; align-content: start; }
.as-pdp__head p { margin: 0; }
.as-pdp__kicker { font-size: 12px; font-weight: 600; color: #8a5d00; text-transform: uppercase; letter-spacing: 0.8px; }
.as-pdp__title { margin: 4px 0 0; font-family: var(--as-font-display); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--as-forest); letter-spacing: 0; }
.as-pdp__price { margin-top: 8px !important; font-size: 22px; font-weight: 700; color: var(--as-forest); }
.as-pdp__price del { color: #5f6662; font-weight: 400; font-size: 0.75em; }
.as-pdp__price ins { text-decoration: none; }
@media (min-width: 900px) {
	.as-pdp__info { gap: 18px; }
	.as-pdp__kicker { font-size: 13px; }
	.as-pdp__title { margin-top: 6px; font-size: 34px; }
	.as-pdp__price { margin-top: 12px !important; font-size: 28px; }
}

.as-vendor-card { display: flex; align-items: center; gap: 12px; background: var(--as-white); border-radius: 14px; padding: 12px 14px; color: var(--as-ink); text-decoration: none; min-height: var(--as-touch); }
.as-vendor-card:hover, .as-vendor-card:focus-visible { color: var(--as-ink); box-shadow: var(--as-shadow); }
.as-vendor-card__avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--as-forest); color: #e3a64a; display: flex; align-items: center; justify-content: center; font-family: var(--as-font-display); font-weight: 700; }
.as-vendor-card__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.as-vendor-card__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; }
.as-vendor-card__meta { font-size: 13px; color: #5f6662; }
.as-vendor-card > .as-icon { color: #6b726e; flex: none; }
.as-vendor-card .as-badge--verified { background: #dcebe2; color: #1f5a40; }
@media (min-width: 900px) { .as-vendor-card { border-radius: 16px; padding: 14px 16px; } .as-vendor-card__avatar { width: 50px; height: 50px; } .as-vendor-card__name { font-size: 16px; } }

.as-pdp__h2 { margin: 0 0 6px; font-family: var(--as-font-body); font-size: 15px; font-weight: 700; color: var(--as-forest); }
.as-pdp__text { font-size: 14.5px; line-height: 1.6; color: #3c4440; }
.as-pdp__text p { margin: 0 0 0.6em; }
.as-pdp__text p:last-child { margin-bottom: 0; }
.as-pdp__delivery { background: var(--as-white); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; }
.as-pdp__delivery .as-pdp__h2 { margin: 0; }
.as-pdp__delivery p { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #3c4440; }
.as-pdp__delivery .as-icon { flex: none; color: #9a6700; margin-top: 1px; }
.as-pdp__delivery strong { color: var(--as-ink); }

.as-pdp__actions { display: flex; gap: 10px; align-items: stretch; }
.as-pdp__actions .as-btn { flex: 1; min-height: 52px; border-radius: 14px; font-weight: 700; font-size: 15px; }
.as-pdp__share { width: 52px; min-height: 52px; flex: none; border-radius: 14px; border: 1px solid #d8cfc2; background: var(--as-white); color: var(--as-forest); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.as-pdp__share.is-copied { border-color: var(--as-green); color: var(--as-green); }
@media (min-width: 900px) { .as-pdp__actions .as-btn, .as-pdp__share { min-height: 56px; } .as-pdp__share { width: 56px; } .as-pdp__actions .as-btn { font-size: 16px; } }

.as-pdp__meta { font-size: var(--as-text-sm); color: #5f6662; }
.as-pdp__meta:empty { display: none; }
.as-pdp__meta a { color: #5f6662; }
.as-pdp__more { margin-top: 8px; }

/* Phones: the chat button replaces the bottom navigation on product pages. */
@media (max-width: 899px) {
	.single-product .as-bottom-nav { display: none; }
	.as-pdp__actions { position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--as-white); border-top: 1px solid var(--as-line); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
	.as-pdp__actions .as-pdp__share { order: -1; }
	.as-pdp__photo { margin-inline: -1rem; border-radius: 0; border: none; aspect-ratio: 4 / 3.4; }
}
.as-section__head > a { white-space: nowrap; flex: none; }

/* Unread messages badge (header + mobile bottom bar) */
.as-header__link, .as-bottom-nav a { position: relative; }
.as-unread { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--as-gold); color: var(--as-forest); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.as-bottom-nav .as-unread { position: absolute; top: 2px; left: calc(50% + 6px); }

/* ---------- « Mon compte » (woocommerce/myaccount/form-login.php + inc/account.php) ---------- */
.as-account .content-area, .as-account .site-main { width: 100%; float: none; margin-left: 0; margin-right: 0; }
.as-account .hentry { margin-bottom: 0; }
.as-auth { max-width: 520px; margin: 8px auto 40px; }
.as-auth__head { text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: 18px; }
.as-auth__logo { width: 48px; height: 48px; border-radius: 12px; background: var(--as-gold); color: var(--as-forest); display: inline-flex; align-items: center; justify-content: center; font-family: var(--as-font-display); font-weight: 700; font-size: 24px; }
.as-auth__title { margin: 0; font-family: var(--as-font-display); font-weight: 700; font-size: 26px; color: var(--as-forest); letter-spacing: 0; }
.as-auth__lead { margin: 0; color: var(--as-ink-muted); font-size: 15px; }
.as-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #ece3d6; border-radius: var(--as-radius-pill); margin-bottom: 14px; }
.as-auth__tabs[hidden] { display: none; }
.as-auth__tabs button { min-height: var(--as-touch); border: none; border-radius: var(--as-radius-pill); background: transparent; color: var(--as-forest); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; padding: 0 12px; }
.as-auth__tabs button[aria-selected="true"] { background: var(--as-white); box-shadow: var(--as-shadow); font-weight: 700; }
.as-auth__panel { background: var(--as-white); border: 1px solid var(--as-line); border-radius: var(--as-radius-lg); padding: 22px 20px; margin-bottom: 16px; }
.as-auth__panel[hidden] { display: none; }
.as-auth.has-tabs .as-auth__h2 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.as-auth__h2 { margin: 0 0 14px; font-family: var(--as-font-display); font-weight: 700; font-size: 20px; color: var(--as-forest); }
.as-auth form { margin: 0; padding: 0; border: none; }
.as-auth .form-row { margin: 0 0 14px; padding: 0; width: 100%; float: none; }
.as-auth label { display: block; font-size: 14px; font-weight: 600; color: #3c4440; margin-bottom: 6px; }
.as-auth .required { color: var(--as-danger); text-decoration: none; border: none; }
.as-auth input.input-text, .as-auth input[type="email"], .as-auth input[type="password"], .as-auth input[type="text"], .as-auth input[type="tel"], .as-auth select {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d8cfc2; border-radius: 12px; background: var(--as-white); box-shadow: none; font: inherit; font-size: 16px; color: var(--as-ink);
}
.as-auth input:focus, .as-auth select:focus { outline: none; border-color: var(--as-green); box-shadow: var(--as-focus); background: var(--as-white); }
.as-auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.as-auth__row label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; min-height: var(--as-touch); }
.as-auth__lost { font-size: 14px; color: var(--as-green); }
.as-auth__switch { text-align: center; margin: 14px 0 0; font-size: 14px; color: var(--as-ink-muted); }
.as-auth__switch a { color: var(--as-green); font-weight: 600; }
.as-auth__note { font-size: 14px; color: var(--as-ink-muted); }
.as-auth .as-btn--block { min-height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; }
.as-auth .woocommerce-privacy-policy-text { font-size: 13px; color: var(--as-ink-muted); }
.as-auth .woocommerce-privacy-policy-text p { margin: 0 0 14px; }

/* Create an account: Dokan's « client / vendeur » choice first, as two cards. */
.as-auth form.register { display: flex; flex-direction: column; }
.as-auth form.register .vendor-customer-registration { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.as-auth form.register .vendor-customer-registration br { display: none; }
.as-auth form.register .vendor-customer-registration label.radio { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 56px; padding: 10px 14px; border: 1px solid #d8cfc2; border-radius: 14px; font-weight: 700; color: var(--as-forest); cursor: pointer; background: var(--as-white); }
.as-auth form.register .vendor-customer-registration label.radio:has(input:checked) { border: 2px solid var(--as-gold); background: #fff6df; padding: 9px 13px; }
.as-auth form.register .vendor-customer-registration input { accent-color: var(--as-forest); width: 18px; height: 18px; margin: 0; flex: none; }
.as-auth .split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.as-auth .split-row .form-row { margin-bottom: 14px; }
.as-auth .show_if_seller small, .as-auth .assigan-area-help { display: block; margin-top: 4px; font-size: 12.5px; color: var(--as-ink-muted); font-weight: 400; }
.as-auth #url-alart-mgs { float: none; font-size: 12.5px; }
.as-auth .pull-left, .as-auth .pull-right { float: none; }
.as-auth .as-auth__submit { margin-top: 4px; }
@media (max-width: 480px) {
	.as-auth__panel { padding: 18px 16px; }
	.as-auth .split-row { grid-template-columns: 1fr; gap: 0; }
}

/* Signed in: account menu + content */
.as-account--in .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.as-account--in .woocommerce-MyAccount-navigation li a { display: inline-flex; align-items: center; min-height: var(--as-touch); padding: 0 16px; border-radius: var(--as-radius-pill); background: var(--as-white); border: 1px solid var(--as-line); color: var(--as-forest); text-decoration: none; font-weight: 600; font-size: 14px; }
.as-account--in .woocommerce-MyAccount-navigation li.is-active a { background: var(--as-forest); border-color: var(--as-forest); color: var(--as-white); }
.as-account--in .woocommerce-MyAccount-navigation li a::before { display: none; }
.as-account--in .woocommerce-MyAccount-navigation, .as-account--in .woocommerce-MyAccount-content { width: 100%; float: none; margin: 0; }
.as-account--in .woocommerce-MyAccount-content { background: var(--as-white); border: 1px solid var(--as-line); border-radius: var(--as-radius-lg); padding: 22px 20px; }

/* ---------- Vendor shop page (dokan/store.php) ---------- */
.as-store-page .content-area, .as-store-page .site-main { width: 100%; float: none; margin: 0; }
.as-store { padding: 4px 0 28px; }
.as-store__head { background: var(--as-forest); color: var(--as-white); border-radius: var(--as-radius-lg); padding: 20px; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; }
.as-store__logo { width: 64px; height: 64px; border-radius: 50%; background: #e3a64a; color: var(--as-forest); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--as-font-display); font-weight: 700; font-size: 22px; flex: none; }
.as-store__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-store__body { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.as-store__name { margin: 0; font-family: var(--as-font-display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--as-white); letter-spacing: 0; }
.as-store__verified { display: inline-flex; align-items: center; gap: 4px; background: rgb(227 166 74 / 0.18); color: #f3cf8f; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; }
.as-store__facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: #d3e2da; }
.as-store__facts li { display: inline-flex; align-items: center; gap: 6px; }
.as-store__facts .as-icon { color: #e3a64a; flex: none; }
.as-store__chat { grid-column: 1 / -1; min-height: 50px; border-radius: 14px; font-weight: 700; }
@media (min-width: 900px) {
	.as-store__head { grid-template-columns: auto 1fr auto; padding: 28px 32px; border-radius: 20px; gap: 20px 24px; }
	.as-store__logo { width: 84px; height: 84px; font-size: 28px; }
	.as-store__name { font-size: 30px; }
	.as-store__chat { grid-column: auto; padding-inline: 22px; }
}
.as-store__products { margin-top: 24px; }
.as-store .pagination, .as-store .navigation { margin-top: 20px; }
.as-store .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.as-store .page-numbers { min-width: var(--as-touch); min-height: var(--as-touch); display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; background: var(--as-white); border: 1px solid var(--as-line); color: var(--as-forest); text-decoration: none; font-weight: 600; }
.as-store .page-numbers.current { background: var(--as-forest); color: var(--as-white); border-color: var(--as-forest); }

/* Dokan's search + sort bar on the shop page, in our style */
.as-store .dokan-store-products-filter-area { margin: 18px 0 0; }
.as-store .dokan-store-products-ordeby { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; position: relative; }
.as-store .dokan-store-products-filter-search { flex: 1 1 220px; min-height: 46px; padding: 0 14px; border: 1px solid #d8cfc2; border-radius: 12px; background: var(--as-white); box-shadow: none; font: inherit; font-size: 15px; }
.as-store .search-store-products { min-height: 46px; padding: 0 20px; border: none; border-radius: 12px; background: var(--as-forest) !important; color: var(--as-white) !important; font: inherit; font-weight: 700; cursor: pointer; }
.as-store .dokan-store-products-ordeby select { min-height: 46px; padding: 0 12px; border: 1px solid #d8cfc2; border-radius: 12px; background-color: var(--as-white); font: inherit; font-size: 14px; }
.as-store .dokan-ajax-store-products-search-result { position: absolute; top: 50px; left: 0; z-index: 20; }
@media (max-width: 599px) { .as-store .dokan-store-products-ordeby select { flex: 1 1 100%; } }
/* Search field takes the room left by the button, so the button is never cut off. */
.as-store .dokan-store-products-ordeby .dokan-store-products-filter-search { flex: 1 1 0; min-width: 0; width: auto; }
.as-store .dokan-store-products-ordeby .search-store-products { flex: none; width: auto; min-width: 120px; padding: 0 16px; text-align: center; }

/* ---------- Vendor dashboard (Dokan « Legacy UI » + assigan-core Vendor_Dashboard) ---------- */
.dokan-dashboard .content-area, .dokan-dashboard .site-main { width: 100%; float: none; margin: 0; }
.dokan-dashboard .dokan-dashboard-wrap { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
@media (min-width: 900px) { .dokan-dashboard .dokan-dashboard-wrap { flex-direction: row; align-items: flex-start; } }
.dokan-dashboard .dokan-dash-sidebar { width: 100%; float: none; margin: 0; padding: 14px 10px; background: var(--as-forest) !important; border-radius: var(--as-radius-lg); flex: none; }
@media (min-width: 900px) { .dokan-dashboard .dokan-dash-sidebar { width: 240px; position: sticky; top: 20px; } }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu { background: transparent !important; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
@media (min-width: 900px) { .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu { flex-direction: column; flex-wrap: nowrap; } }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li { background: transparent !important; border: none !important; margin: 0; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a { display: flex; align-items: center; gap: 10px; min-height: var(--as-touch); padding: 0 12px !important; border-radius: 12px; color: #d3e2da !important; font-size: 14.5px; font-weight: 500; text-decoration: none; background: transparent; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a i { width: 18px; text-align: center; color: inherit; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a:hover { background: #1f4a3c !important; color: var(--as-white) !important; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active > a { background: var(--as-gold) !important; color: var(--as-forest) !important; font-weight: 700; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active::after, .dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a::after { display: none !important; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links { display: flex; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgb(255 255 255 / 0.12) !important; width: 100%; }
.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links a { flex: 1; justify-content: center; }
.dokan-dashboard .dokan-dash-sidebar .navigation-submenu { background: transparent !important; padding-left: 28px; }
.dokan-dashboard .dokan-dashboard-content { flex: 1; min-width: 0; width: 100%; float: none; margin: 0; padding: 0; }
.dokan-dashboard .dokan-dash-left, .dokan-dashboard .dokan-dash-right { display: none; }
.dokan-dashboard .dokan-alert { border-radius: var(--as-radius); }
.dokan-dashboard .dokan-alert-info { background: #fdf0d5; border: 1px solid #f3d79c; color: #5c3d00; font-size: 14px; }
.dokan-dashboard .dokan-alert-info a { color: var(--as-forest); font-weight: 700; }

.as-vd { display: grid; gap: 20px; }
.as-vd__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.as-vd__hello { margin: 0; color: #5f6662; font-size: 14px; max-width: 640px; }
.as-vd__title { margin: 2px 0 0; font-family: var(--as-font-display); font-weight: 700; font-size: 28px; color: var(--as-forest); letter-spacing: 0; }
.as-vd__add { min-height: 48px; border-radius: 14px; font-weight: 700; }
.as-vd__cards { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.as-vd__card { background: var(--as-white); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 140px; }
.as-vd__card--plan { grid-column: 1 / -1; border-top: 4px solid var(--as-gold); }
@media (min-width: 1100px) { .as-vd__cards { grid-template-columns: 2fr 1fr 1fr; } .as-vd__card--plan { grid-column: auto; } }
.as-vd__card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.as-vd__label { margin: 0; font-size: 13px; color: #5f6662; font-weight: 600; }
.as-vd__plan { margin: 2px 0 0; font-family: var(--as-font-display); font-size: 22px; font-weight: 700; color: var(--as-forest); }
.as-vd__number { margin: 0; font-family: var(--as-font-display); font-size: 40px; font-weight: 700; color: var(--as-forest); line-height: 1; }
.as-vd__bar { height: 10px; border-radius: 5px; background: #ece3d6; overflow: hidden; }
.as-vd__bar span { display: block; height: 100%; background: var(--as-gold); }
.as-vd__meta { margin: 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: #5f6662; }
.as-vd__ghost { align-self: flex-start; min-height: var(--as-touch); padding: 0 16px; border-radius: 12px; border: 1px solid var(--as-forest); display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--as-forest); text-decoration: none; }
.as-vd__ghost:hover { background: var(--as-forest); color: var(--as-white); }
.as-vd__link { font-size: 13.5px; font-weight: 600; color: #8a5d00; text-decoration: none; }
.as-vd__link:hover { text-decoration: underline; }
.as-vd__status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.as-vd__status--ok { background: #dcebe2; color: #1f5a40; }
.as-vd__status--wait { background: #fdf0d5; color: #7a4f00; }
.as-vd__status--off { background: #ece3d6; color: #5f6662; }
.as-vd__panel { background: var(--as-white); border-radius: 18px; padding: 6px 18px 12px; overflow-x: auto; }
.as-vd__panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
.as-vd__panel-head h3 { margin: 0; font-family: var(--as-font-display); font-size: 20px; font-weight: 700; color: var(--as-forest); }
.as-vd__table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; border: none; }
.as-vd__table th { text-align: left; color: #5f6662; font-size: 12.5px; font-weight: 600; padding: 10px 8px 10px 0; background: none; border: none; }
.as-vd__table td { padding: 12px 8px 12px 0; border: none; border-top: 1px solid #ece3d6; background: none; vertical-align: middle; }
.as-vd__table tbody tr:nth-child(2n) td { background: none; }
.as-vd__right { text-align: right; }
.as-vd__product { display: flex; align-items: center; gap: 12px; }
.as-vd__product a { color: var(--as-ink); font-weight: 600; text-decoration: none; }
.as-vd__thumb { width: 46px; height: 46px; border-radius: 10px; background: #d6e6dc; overflow: hidden; flex: none; }
.as-vd__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-vd__small { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #d8cfc2; background: var(--as-white); color: var(--as-forest); font-weight: 600; font-size: 13px; text-decoration: none; }
.as-vd__empty { margin: 0 0 8px; color: #5f6662; font-size: 14px; }

/* Dokan buttons and accents in the vendor dashboard: our colours, not purple */
.dokan-dashboard .dokan-btn-theme, .dokan-dashboard input.dokan-btn-theme, .dokan-dashboard a.dokan-btn-theme { background: var(--as-gold) !important; border-color: var(--as-gold) !important; color: var(--as-forest) !important; border-radius: 12px; font-weight: 700; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.dokan-dashboard .dokan-btn-theme:hover { background: var(--as-gold-hover) !important; }
/* Dokan forces 3px corners on some buttons: same rounded corners everywhere in the vendor space. */
body.dokan-dashboard .dokan-dashboard-wrap .dokan-btn.dokan-btn-theme { border-radius: 12px !important; }
body.dokan-dashboard .dokan-dashboard-wrap .dokan-product-edit-form input.dokan-btn.dokan-btn-theme[name="dokan_update_product"] { border-radius: 14px !important; }
.dokan-dashboard .dokan-btn-danger { background: var(--as-white) !important; border: 1px solid var(--as-danger) !important; color: var(--as-danger) !important; border-radius: 10px; }
.dokan-dashboard .dokan-subscription-content .seller_subs_info { background: var(--as-white); border-radius: 18px; padding: 18px 20px; border: none; box-shadow: none; }
.dokan-dashboard .seller_subs_info span { color: var(--as-forest) !important; font-weight: 700; font-style: normal; }
.dokan-dashboard .seller_subs_info p { margin: 0 0 8px; }
.dokan-dashboard .product_pack_item { background: var(--as-white); border-radius: 18px; border: 1px solid var(--as-line) !important; box-shadow: none !important; }
.dokan-dashboard .product_pack_item.current_pack { border: 2px solid var(--as-gold) !important; }
.dokan-dashboard .product_pack_item .pack_price { background: var(--as-forest) !important; color: var(--as-white) !important; }
.dokan-dashboard .product_pack_item .pack_content h2 { font-family: var(--as-font-display); color: var(--as-forest); }
.dokan-dashboard .dokan-dash-sidebar + .dokan-dashboard-content .dokan-dashboard-header h1 { font-family: var(--as-font-display); color: var(--as-forest); }
.dokan-dashboard ul.subscription-tab, .dokan-dashboard .dokan-dashboard-content > ul.dokan_tabs { border: none; }
/* Vendors cannot cancel their plan themselves (customer service). */
.dokan-dashboard #dps_submit_form { display: none !important; }
.as-vd__note { margin: 0 0 14px; padding: 12px 16px; border-radius: var(--as-radius); background: var(--as-white); border: 1px solid var(--as-line); font-size: 14px; color: #3c4440; }
.as-vd__note a { color: var(--as-green); font-weight: 600; }

/* Vendor dashboard « Mes produits » (dokan/products/products-listing.php) */
/* Dokan pads its product list area by 15 px: align it with the other dashboard pages. */
.dokan-dashboard .dokan-product-listing-area.as-vp { padding: 0 !important; }
.as-vp__limit { margin: 4px 0 0; font-size: 13.5px; color: #5f6662; }
.as-vp__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.as-vp__tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.as-vp__tab { display: inline-flex; align-items: center; gap: 6px; min-height: var(--as-touch); padding: 0 14px; border-radius: 22px; background: var(--as-white); border: 1px solid var(--as-line); color: var(--as-forest); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.as-vp__tab span { font-size: 12px; color: #5f6662; }
.as-vp__tab.is-active { background: var(--as-forest); border-color: var(--as-forest); color: var(--as-white); }
.as-vp__tab.is-active span { color: #d3e2da; }
.as-vp__search { display: flex; gap: 8px; flex: 1 1 260px; max-width: 420px; }
.as-vp__search input[type="search"] { flex: 1; min-width: 0; min-height: var(--as-touch); border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-white); padding: 0 14px; font-size: 15px; box-shadow: none; }
.as-vp__search .as-btn { min-height: var(--as-touch); border-radius: 12px; }
.as-vp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.as-vp__item { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: center; background: var(--as-white); border-radius: 16px; padding: 12px; }
.as-vp__thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #d6e6dc; display: block; }
.as-vp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-vp__nophoto { display: block; width: 100%; height: 100%; }
.as-vp__body { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.as-vp__name { font-weight: 700; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.as-vp__name a { color: var(--as-forest); text-decoration: none; }
.as-vp__name a:hover { text-decoration: underline; }
.as-vp__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: #5f6662; }
.as-vp__price { font-weight: 700; color: var(--as-forest); }
.as-vp__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.as-vp__actions .as-vd__small { min-height: var(--as-touch); }
/* Dokan's list rule (ul li { padding: 0 }) was eating the card padding. */
.dokan-dashboard .dokan-dashboard-content ul.as-vp__list > li.as-vp__item { padding: 12px; }
/* « Voir » looks like the other buttons; on phones the three share the row evenly. */
.as-vp__actions .as-vd__small--plain { border-color: var(--as-line) !important; background: var(--as-white); }
@media (max-width: 599px) { .as-vp__actions > * { flex: 1 1 0; justify-content: center; text-align: center; } }
/* Dokan Pro's « encore N produit(s) » notice: the counter already says it. */
.dokan-product-listing > .dokan-alert-info { display: none; }
.dokan-product-listing > .dokan-info { display: none; } /* Dokan's « You can add unlimited products »: our own line under the title instead. */
.as-vp__full { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff6df; color: #6b4a00; font-size: 14.5px; }
.as-vp__full a { color: var(--as-forest); font-weight: 700; margin-left: 4px; }
.as-vd__small--plain { border-color: transparent; background: var(--as-surface-alt); }
.as-vd__small--danger { color: var(--as-danger); border-color: #efc9c4; }
.as-vd__small--danger:hover { background: #fbeceb; }
@media (min-width: 720px) {
	.as-vp__item { grid-template-columns: 64px 1fr auto; }
	.as-vp__actions { grid-column: auto; justify-content: flex-end; }
}
.as-vp__pages { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.as-vp__pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--as-touch); min-height: var(--as-touch); padding: 0 10px; border-radius: 12px; background: var(--as-white); color: var(--as-forest); text-decoration: none; font-weight: 600; }
.as-vp__pages .page-numbers.current { background: var(--as-forest); color: var(--as-white); }
.as-vp__none { background: var(--as-white); border-radius: 18px; padding: 32px 20px; text-align: center; display: grid; gap: 10px; justify-items: center; color: #3c4440; }
.as-vp__none p { margin: 0; max-width: 440px; }
.as-vp__none-title { font-family: var(--as-font-display); font-size: 20px; font-weight: 700; color: var(--as-forest); }

/* Vendor product editor (Dokan legacy editor, dokan/products/edit-product-single.php not overridden) */
.dokan-product-edit .vendor-earning { display: none !important; }
.dokan-product-edit .dokan-dashboard-header { border: none; margin-bottom: 18px; padding: 0; }
.dokan-product-edit .dokan-dashboard-header .entry-title { font-family: var(--as-font-display); font-weight: 700; font-size: 28px; color: var(--as-forest); letter-spacing: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dokan-product-edit .dokan-dashboard-header .dokan-right { margin-left: auto; }
/* Editor polish (2026-11-15): photo remove button, full-width prices, one style for every field. */
.dokan-product-edit .dokan-feat-image-upload { padding: 8px !important; }
.dokan-product-edit .dokan-feat-image-upload:has(.image-wrap:not(.dokan-hide)) { height: auto !important; min-height: 0 !important; }
.dokan-product-edit .dokan-feat-image-upload .image-wrap { position: relative; }
.dokan-product-edit .dokan-feat-image-upload .image-wrap img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 12px; }
.dokan-product-edit .product-edit-container .dokan-feat-image-upload a.close.dokan-remove-feat-image {
	position: absolute !important; top: 8px !important; right: 8px !important; left: auto !important; bottom: auto !important;
	width: 40px !important; height: 40px !important; display: flex !important; align-items: center; justify-content: center;
	background: rgb(20 51 42 / .85) !important; border-radius: 50% !important; color: #fff !important;
	font-size: 22px !important; line-height: 1 !important; opacity: 1 !important; text-decoration: none !important; padding: 0 !important;
}
.dokan-product-edit .product-edit-container .dokan-feat-image-upload a.close.dokan-remove-feat-image:hover { background: #b3261e !important; }
.dokan-product-edit .dokan-input-group { display: flex !important; width: 100%; }
.dokan-product-edit .dokan-input-group .wc_input_price { flex: 1 1 auto; width: auto !important; min-width: 0; }
.dokan-product-edit .sale_schedule, .dokan-product-edit .cancel_sale_schedule { color: var(--as-green) !important; font-weight: 600; font-size: 14px; }
.dokan-product-edit .dokan-select-product-category-container { border: 0 !important; padding: 0 !important; background: transparent !important; }
.dokan-product-edit .dokan-select-product-category { min-height: var(--as-touch); display: flex !important; align-items: center; justify-content: space-between; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--as-line) !important; border-radius: 12px !important; background: var(--as-white) !important; font-size: 15px; cursor: pointer; }
.dokan-product-edit .dokan-select-product-category i { color: var(--as-green) !important; }
.dokan-product-edit .dokan-input-group .dokan-input-group-addon { flex: none; width: auto !important; display: flex !important; align-items: center; padding: 0 14px !important; border: 1px solid var(--as-line) !important; border-right: 0 !important; border-radius: 12px 0 0 12px !important; background: #f7f3ec !important; color: #5f6662; font-size: 14px; font-weight: 600; }
.dokan-product-edit .dokan-input-group .wc_input_price { border-radius: 0 12px 12px 0 !important; }
.dokan-product-edit .dokan-price-container:not(:has(input, select, textarea)) { display: none !important; }
.dokan-product-edit select.dokan-form-control {
	appearance: none; -webkit-appearance: none; padding-right: 40px !important;
	background: var(--as-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2314332A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center !important;
}
.dokan-product-edit .dokan-section-heading i, .dokan-product-edit .dokan-section-toggle i { color: var(--as-forest) !important; }
.dokan-product-edit .dokan-section-heading p, .dokan-product-edit .dokan-section-heading small { font-style: normal !important; color: #5f6662; }
.dokan-product-edit input[name="dokan_update_product"] { width: 100%; min-height: 52px; border-radius: 14px !important; float: none !important; font-weight: 700; font-size: 16px; }
/* Description: no HTML « Code » tab for vendors, one row of formatting buttons. */
.dokan-product-edit #wp-post_content-wrap .wp-editor-tabs { display: none !important; }
.dokan-product-edit #wp-post_content-wrap .mce-toolbar-grp .mce-toolbar:not(:first-child) { display: none !important; }
/* Keep: text style, bold, italic, lists. Links left out on purpose (no sending buyers to outside sites). */
.dokan-product-edit #wp-post_content-wrap .mce-btn:has(.mce-i-blockquote, .mce-i-alignleft, .mce-i-aligncenter, .mce-i-alignright, .mce-i-link, .mce-i-wp_more, .mce-i-fullscreen, .mce-i-dfw, .mce-i-wp_adv) { display: none !important; }
.dokan-product-edit #wp-post_content-wrap .mce-toolbar-grp { background: #f7f3ec; border-bottom: 1px solid var(--as-line); }
.dokan-product-edit .dokan-product-status-label { font-family: var(--as-font-body); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; background: #dcebe2; color: #1f5a40; }
.dokan-product-edit .dokan-product-status-label.dokan-label-default, .dokan-product-edit .dokan-product-status-label.dokan-label-info { background: #ece3d6; color: #5f6662; }
.dokan-product-edit .dokan-product-status-label.dokan-label-warning { background: #fdf0d5; color: #7a4f00; }
.dokan-product-edit-form { background: var(--as-white); border-radius: 18px; padding: 20px; }
.dokan-product-edit-form .form-label, .dokan-product-edit-form label { font-weight: 600; color: var(--as-forest); font-size: 14px; }
.dokan-product-edit-form .dokan-form-control, .dokan-product-edit-form input[type="text"], .dokan-product-edit-form input[type="number"], .dokan-product-edit-form select {
	min-height: var(--as-touch); border-radius: 12px; border: 1px solid var(--as-line); box-shadow: none; font-size: 15px; background: var(--as-white);
}
.dokan-product-edit-form .dokan-input-group-addon { border-radius: 12px 0 0 12px; border-color: var(--as-line); background: var(--as-surface-alt); color: #5f6662; font-size: 13px; }
.dokan-product-edit-form .dokan-input-group .dokan-form-control { border-radius: 0 12px 12px 0; }
.dokan-product-edit-form .dokan-feat-image-upload { border-radius: 16px; border-color: #d8cfc2; background: var(--as-surface-alt); }
.dokan-product-edit-form .dokan-feat-image-upload .dokan-feat-image-btn { color: var(--as-green); font-weight: 700; }
.dokan-product-edit-form .dokan-product-gallery .add-image a { border-radius: 12px; }
.dokan-product-edit-form .dokan-edit-row { border-radius: 14px; border-color: var(--as-line); }
.dokan-product-edit-form .dokan-section-heading h2 { font-family: var(--as-font-display); color: var(--as-forest); font-size: 18px; }
.dokan-product-edit-form #publish { min-height: 52px; padding: 0 28px; border-radius: 14px; font-weight: 700; font-size: 16px; }
@media (max-width: 720px) {
	.dokan-product-edit-form { padding: 14px; }
	.dokan-product-edit-form .content-half-part, .dokan-product-edit-form .dokan-new-product-area > div { width: 100% !important; float: none !important; padding: 0 !important; }
	.dokan-product-edit-form #publish { width: 100%; float: none; }
}
.dokan-product-edit-form #edit-slug-box { display: none; } /* web address of the product: set automatically */
/* Editor sections vendors don't need (Dokan's Product Form Manager does not apply to the
   legacy editor). Hidden only: the fields keep their default values when saved. */
.dokan-product-edit-form .dokan-product-type-container,
.dokan-product-edit-form .dokan-form-group:has(> #product_brand),
.dokan-product-edit-form .dokan-form-group:has(> #product_tag_edit),
.dokan-product-edit-form .dokan-product-short-description,
.dokan-product-edit-form .dokan-product-inventory,
.dokan-product-edit-form .dokan-download-options,
.dokan-product-edit-form .dokan-product-shipping-tax,
.dokan-product-edit-form .dokan-linked-product-options,
.dokan-product-edit-form .dokan-attribute-variation-options,
.dokan-product-edit-form .dokan-other-options .dokan-form-group:has(#_purchase_note),
.dokan-product-edit-form .dokan-other-options .dokan-form-group:has(input[name="_enable_reviews"]),
.dokan-product-edit-form .dokan-other-options .dokan-form-group:has(#_visibility) { display: none !important; }
.as-pack-used { display: inline-flex; align-items: center; min-height: var(--as-touch); padding: 0 14px; border-radius: 12px; background: #ece3d6; color: #5f6662; font-size: 13px; font-weight: 600; }

/* Vendor « Paramètres › Ma boutique » (Dokan legacy store settings) */
#store-form .dokan-form-group:has(input[name="dokan_address[street_1]"]),
#store-form .dokan-form-group:has(input[name="setting_show_email"]),
#store-form .store-open-close-time,
#store-form .store-open-close,
.dokan-settings-content .dokan-profile-completeness,
.dokan-dashboard-content .dokan-profile-completeness { display: none !important; }
#store-form { background: var(--as-white); border-radius: 18px; padding: 20px; }
#store-form .dokan-control-label { font-weight: 600; color: var(--as-forest); font-size: 14px; }
#store-form .dokan-form-control { min-height: var(--as-touch); border-radius: 12px; border: 1px solid var(--as-line); box-shadow: none; font-size: 15px; }
#store-form .dokan-banner { border-radius: 16px; border-color: #d8cfc2; background: var(--as-surface-alt); }
.as-vs-area__value { margin: 6px 0 4px; font-weight: 700; color: var(--as-forest); }
.as-vs-area__help { margin: 0; font-size: 13px; color: #5f6662; }
.as-vs-area__help a { color: var(--as-green); font-weight: 600; }
.dokan-settings-content .dokan-dashboard-header .entry-title { font-family: var(--as-font-display); font-weight: 700; font-size: 28px; color: var(--as-forest); letter-spacing: 0; }
.dokan-settings-content .dokan-dashboard-header .entry-title small a { color: var(--as-green); font-size: 16px; }
/* « Congés » (Seller Vacation): same look as the other fields, not a grey box. */
#dokan-seller-vacation-settings { background: transparent !important; border: none !important; padding: 0 !important; margin: 0 0 16px !important; }
#dokan-seller-vacation-settings .checkbox label { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--as-ink); padding: 0; }
#dokan-seller-vacation-settings .checkbox input[type=checkbox] { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--as-green); position: static; }
/* « Congés » with dates: small buttons and the list of planned dates in the site's style. */
#dokan-seller-vacation-settings .dokan-btn-sm { min-height: 38px; padding: 0 14px !important; border-radius: 10px !important; font-weight: 600; font-size: 14px; }
#dokan-seller-vacation-settings .dokan-btn-default:first-of-type { background: var(--as-forest) !important; border-color: var(--as-forest) !important; color: var(--as-white) !important; }
#dokan-seller-vacation-settings .dokan-btn-default + .dokan-btn-default { background: transparent !important; border: 1px solid var(--as-line) !important; color: var(--as-forest) !important; }
#dokan-seller-vacation-settings table { width: 100%; border-collapse: collapse; font-size: 14px; }
#dokan-seller-vacation-settings th { text-align: left; font-weight: 600; color: #5f6662; border-bottom: 1px solid var(--as-line); padding: 8px; background: transparent; }
#dokan-seller-vacation-settings td { padding: 8px; border-bottom: 1px solid #efe8dd; color: var(--as-ink); }
#dokan-seller-vacation-settings input[type="text"], #dokan-seller-vacation-settings select, #dokan-seller-vacation-settings textarea { min-height: var(--as-touch); border: 1px solid var(--as-line); border-radius: 12px; padding: 0 12px; background: var(--as-white); font-size: 15px; }
#dokan-seller-vacation-settings textarea { padding: 10px 12px; min-height: 96px; width: 100%; }
/* « Présentation de la boutique »: same simple toolbar as the product description (no « Code » tab, no links). */
.dokan-settings-content .wp-editor-tabs { display: none !important; }
.dokan-settings-content .mce-toolbar-grp .mce-toolbar:not(:first-child) { display: none !important; }
.dokan-settings-content .mce-btn:has(.mce-i-blockquote, .mce-i-alignleft, .mce-i-aligncenter, .mce-i-alignright, .mce-i-link, .mce-i-wp_more, .mce-i-fullscreen, .mce-i-dfw, .mce-i-wp_adv) { display: none !important; }
.dokan-settings-content .mce-toolbar-grp { background: #f7f3ec; border-bottom: 1px solid var(--as-line); }
/* Dokan's date picker in the site's colours. */
.daterangepicker { border-color: var(--as-line); border-radius: 14px; font-family: inherit; }
.daterangepicker td.active, .daterangepicker td.active:hover { background-color: var(--as-forest) !important; color: var(--as-white) !important; }
.daterangepicker td.in-range { background-color: #e6f0ea; color: var(--as-forest); }
.daterangepicker .drp-buttons .btn { border-radius: 10px; min-height: 36px; padding: 0 14px; font-weight: 600; }
.daterangepicker .drp-buttons .applyBtn { background: var(--as-forest); border-color: var(--as-forest); color: var(--as-white); }
/* Text editor's « Ajouter un média » button in the site's colours. */
.dokan-settings-content .wp-media-buttons .button { border: 1px solid var(--as-line) !important; border-radius: 10px !important; color: var(--as-forest) !important; background: var(--as-white) !important; font-weight: 600; }
/* Settings header (dokan/settings/header.php) */
.dokan-dashboard .dokan-dashboard-header.as-settings-head { border: none; padding: 0; margin: 0 0 18px; }
.as-settings-head__view { display: inline-block; margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--as-green); text-decoration: none; }
.as-settings-head__view:hover { text-decoration: underline; }
.as-settings-head .dokan-update-setting-top { display: block; margin: 0; }
.as-settings-head .dokan-update-setting-top-button { float: none; padding: 0 22px; border: none; cursor: pointer; }
@media (max-width: 599px) { .as-settings-head .dokan-update-setting-top { display: none; } } /* Phones: one save button, at the end of the form. */
.dokan-settings-content form .dokan-btn-theme[type=submit], .dokan-settings-content form input.dokan-btn-theme { min-height: 48px; padding: 0 26px; border: none; border-radius: 14px !important; background: var(--as-gold) !important; color: var(--as-forest) !important; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
@media (max-width: 599px) { .dokan-settings-content form .dokan-btn-theme[type=submit], .dokan-settings-content form input.dokan-btn-theme { width: 100%; } }
@media (max-width: 720px) {
	#store-form { padding: 14px; }
	#store-form .dokan-w3, #store-form .dokan-w5, #store-form .dokan-w6, #store-form .dokan-w8 { width: 100% !important; float: none !important; text-align: left !important; }
	#store-form .ajax_prev { margin-left: 0 !important; width: 100% !important; }
}

/* WooCommerce messages (Storefront's red / blue / green bars) in our colours */
.woocommerce-error, .woocommerce-message, .woocommerce-info, .woocommerce-noreviews, p.no-comments,
.wc-block-components-notice-banner {
	border-radius: var(--as-radius); border: 1px solid var(--as-line); background: var(--as-white); color: var(--as-ink);
	padding: 14px 16px 14px 46px; font-size: 14.5px; line-height: 1.45; box-shadow: none; position: relative;
}
.woocommerce-error { background: #fbeceb; border-color: #efc9c4; color: #7a1d14; }
.woocommerce-message { background: #e6f1ea; border-color: #bcd9c7; color: #1f5a40; }
.woocommerce-info, .woocommerce-noreviews, p.no-comments { background: #fdf0d5; border-color: #f3d79c; color: #5c3d00; }
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before { left: 16px; top: 14px; color: inherit; }
.woocommerce-error a, .woocommerce-message a, .woocommerce-info a { color: inherit; font-weight: 700; text-decoration: underline; }
.woocommerce-error .button, .woocommerce-message .button, .woocommerce-info .button { background: var(--as-forest); color: var(--as-white); border-radius: 10px; text-decoration: none; }

/* Catalogue: « Tous les produits », categories, search (woocommerce/archive-product.php) */
.as-catalogue:not(.page) #primary { width: 100%; float: none; margin: 0; padding: 0; } /* Width: see « One page width everywhere ». */
.as-catalogue.page #primary { width: 100%; float: none; margin-right: 0; }
.as-shop, .as-shop * { text-decoration: none !important; }
.as-catalogue.page .entry-header .entry-title { font-family: var(--as-font-display); font-weight: 700; font-size: 28px; color: var(--as-forest); letter-spacing: 0; }
.as-catalogue.page .entry-content > p:last-child .post-edit-link, .as-catalogue.page .edit-link { display: none; }
.as-cat-page { padding-top: 8px; padding-bottom: 40px; display: grid; gap: 18px; }
.as-cat-page__head { display: grid; gap: 4px; }
.as-cat-page__title { margin: 0; font-family: var(--as-font-display); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--as-forest); letter-spacing: 0; overflow-wrap: anywhere; }
.as-cat-page__count { margin: 0; color: #5f6662; font-size: 14px; }
.as-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.as-chips::-webkit-scrollbar { display: none; }
.as-chip { display: inline-flex; align-items: center; gap: 8px; min-height: var(--as-touch); padding: 0 16px; border-radius: 22px; background: var(--as-white); border: 1px solid var(--as-line); color: var(--as-forest); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.as-chip:hover { border-color: var(--as-forest); }
.as-chip.is-active { background: var(--as-forest); border-color: var(--as-forest); color: var(--as-white); }
.as-chip--remove span[aria-hidden] { font-size: 18px; line-height: 1; color: var(--as-gold); }
.as-cat-page__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.as-cat-page__sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5f6662; margin: 0; }
/* Phones: the category row runs to the screen edge so the cut-off chip reads as « scroll for more ». */
@media (max-width: 899px) { .as-cat-page .as-chips { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; } }
.as-cat-page__sort select { min-height: var(--as-touch); border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-white); padding: 0 12px; font-size: 14px; color: var(--as-forest); }
.as-cat-page .as-empty { margin-top: 8px; }
.as-cat-page__shops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.as-cat-page__shops-label { font-size: 14px; font-weight: 600; color: #5f6662; }
.as-chip--shop { border-color: var(--as-green); color: var(--as-green); }
.as-chip--shop svg { flex: none; }

/* « Boutiques » list (dokan/store-lists-loop.php + Dokan's live search form) */
.as-catalogue .dokan-seller-search-form { margin: 0 0 18px; }
.as-catalogue .dokan-seller-search-form .dokan-w4 { width: 100%; max-width: 480px; float: none; padding: 0; }
.as-catalogue .dokan-seller-search-form .dokan-seller-search { min-height: var(--as-touch); border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-white); padding: 0 14px; font-size: 15px; box-shadow: none; }
/* Dokan's grid rows pull 15 px outside the page margin: keep the search box and cards aligned with the title. */
.dokan-seller-search-form .dokan-row, #dokan-seller-listing-wrap.as-shops { margin-left: 0 !important; margin-right: 0 !important; }
.dokan-seller-search-form .dokan-row::before, .dokan-seller-search-form .dokan-row::after { display: none; }
.dokan-seller-search-form .dokan-w4 { padding-left: 0 !important; padding-right: 0 !important; }
.as-shops__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.as-shop { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px; text-decoration: none; color: var(--as-ink); background: var(--as-white); border-radius: 18px; min-height: 88px; }
.as-shop:hover { box-shadow: 0 4px 18px rgba(20, 51, 42, .08); }
.as-shop__logo { width: 56px; height: 56px; border-radius: 50%; background: var(--as-forest); color: var(--as-gold); display: grid; place-items: center; font-family: var(--as-font-display); font-weight: 700; font-size: 18px; overflow: hidden; }
.as-shop__logo img { width: 100%; height: 100%; object-fit: cover; }
.as-shop__body { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.as-shop__name { font-weight: 700; font-size: 16px; color: var(--as-forest); overflow-wrap: anywhere; }
.as-shop__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--as-green); }
.as-shop__meta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #5f6662; }
.as-shop__go { color: var(--as-gold); }

/* Vendor « Détails du compte » (Dokan dashboard/edit-account.php) */
.dokan-dashboard .edit-account-wrap .entry-title { font-family: var(--as-font-display); font-weight: 700; font-size: 28px; color: var(--as-forest); letter-spacing: 0; margin-bottom: 16px; }
.dokan-dashboard form.edit-account { background: var(--as-white); border-radius: 18px; padding: 20px; max-width: 640px; }
.dokan-dashboard form.edit-account label { font-weight: 600; color: var(--as-forest); font-size: 14px; }
.dokan-dashboard form.edit-account .input-text { min-height: var(--as-touch); border-radius: 12px; border: 1px solid var(--as-line); background: var(--as-white); box-shadow: none; font-size: 15px; padding: 0 14px; width: 100%; }
.dokan-dashboard form.edit-account fieldset { border: 1px solid var(--as-line); border-radius: 14px; padding: 14px; margin: 12px 0; }
.dokan-dashboard form.edit-account legend { font-weight: 700; color: var(--as-forest); padding: 0 6px; }
@media (max-width: 720px) {
	.dokan-dashboard form.edit-account { padding: 14px; }
	.dokan-dashboard form.edit-account .form-row-first, .dokan-dashboard form.edit-account .form-row-last { width: 100%; float: none; }
}

/* « Signaler » (assigan-core Reports): link-buttons + dialog */
.as-report-btn { display: inline-flex; align-items: center; gap: 6px; min-height: var(--as-touch); padding: 0 4px; background: none; border: 0; color: #5f6662; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.as-report-btn:hover { color: var(--as-danger, #b3261e); }
.as-report-btn[disabled] { cursor: default; text-decoration: none; color: var(--as-green); }
.as-report-btn--head { color: #d3e2da; margin-left: auto; text-decoration: none; padding: 0 8px; }
.as-report-btn--head:hover { color: var(--as-gold); }
/* Phones: flag icon only in the conversation header, so the shop name keeps one line (label stays for screen readers). */
@media (max-width: 599px) {
	.as-report-btn--head { min-width: var(--as-touch); justify-content: center; padding: 0; }
	.as-report-btn--head span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.as-report-btn--head svg { width: 20px; height: 20px; }
}
.as-store__report { margin: -6px 0 0; }
.as-report { border: 0; border-radius: 20px; padding: 0; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px); color: var(--as-ink); box-shadow: 0 20px 60px rgba(20, 51, 42, .3); }
.as-report::backdrop { background: rgba(20, 51, 42, .55); }
.as-report__form { display: grid; gap: 12px; padding: 22px; }
.as-report__title { margin: 0; font-family: var(--as-font-display); font-size: 22px; font-weight: 700; color: var(--as-forest); }
.as-report__intro { margin: 0; font-size: 14px; color: #5f6662; }
.as-report__reasons { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.as-report__reasons legend { font-weight: 700; color: var(--as-forest); margin-bottom: 6px; font-size: 15px; }
.as-report__reason { display: flex; align-items: center; gap: 10px; min-height: var(--as-touch); padding: 0 12px; border: 1px solid var(--as-line); border-radius: 12px; cursor: pointer; font-size: 15px; }
.as-report__reason:has(input:checked) { border-color: var(--as-forest); background: #e6f1ea; }
.as-report__reason input { accent-color: var(--as-forest); width: 18px; height: 18px; }
.as-report__label { font-weight: 600; color: var(--as-forest); font-size: 14px; }
.as-report textarea { width: 100%; border: 1px solid var(--as-line); border-radius: 12px; padding: 10px 12px; font-size: 15px; font-family: inherit; resize: vertical; }
.as-report__status { margin: 0; font-size: 14px; font-weight: 600; }
.as-report__status:empty { display: none; }
.as-report__status.is-ok { color: #1f5a40; background: #e6f1ea; padding: 10px 12px; border-radius: 12px; }
.as-report__status.is-error { color: #7a1d14; background: #fbeceb; padding: 10px 12px; border-radius: 12px; }
.as-report__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.as-report__actions .as-btn { min-height: var(--as-touch); }

.as-report [hidden] { display: none !important; }

/* « Mon compte » signed in (woocommerce/myaccount/dashboard.php) */
.as-account--in .edit-link, .as-account--in .post-edit-link { display: none; }
.as-account--in .woocommerce-MyAccount-content > p:has(> a.dokan-btn), .as-account--in .woocommerce-MyAccount-content a.dokan-btn-theme { display: none; }
.as-acc__hello { font-family: var(--as-font-display); font-weight: 700; font-size: 22px; color: var(--as-forest); margin: 0 0 14px; }
.as-acc__cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.as-acc__card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--as-white); border: 1px solid var(--as-line); text-decoration: none !important; color: var(--as-ink); min-height: 88px; }
.as-acc__card:hover { border-color: var(--as-forest); }
.as-acc__card * { text-decoration: none !important; }
.as-acc__icon { width: 44px; height: 44px; border-radius: 12px; background: #e6f1ea; color: var(--as-forest); display: grid; place-items: center; flex: none; }
.as-acc__card--gold { background: var(--as-forest); border-color: var(--as-forest); color: var(--as-white); }
.as-acc__card--gold .as-acc__icon { background: var(--as-gold); color: var(--as-forest); }
.as-acc__card--gold .as-acc__title { color: var(--as-white); }
.as-acc__card--gold .as-acc__text { color: #d3e2da; }
.as-acc__body { display: grid; gap: 2px; min-width: 0; }
.as-acc__title { font-weight: 700; font-size: 16px; color: var(--as-forest); }
.as-acc__text { font-size: 13.5px; color: #5f6662; }

/* Account menu pills: beat Storefront's « .woocommerce-MyAccount-navigation ul li a » (block, no side padding). */
body.as-account--in .woocommerce-MyAccount-navigation ul { gap: 10px; border: 0; }
body.as-account--in .woocommerce-MyAccount-navigation ul li { border: 0 !important; padding: 0 !important; margin: 0; width: auto; }
body.as-account--in .woocommerce-MyAccount-navigation ul li a {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--as-touch); padding: 0 20px !important; border-radius: var(--as-radius-pill);
	background: var(--as-white); border: 1px solid var(--as-line); color: var(--as-forest);
	font-weight: 600; font-size: 14.5px; white-space: nowrap; text-decoration: none !important; transition: border-color .15s, background .15s;
}
body.as-account--in .woocommerce-MyAccount-navigation ul li a:hover { border-color: var(--as-forest); }
body.as-account--in .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--as-forest); border-color: var(--as-forest); color: var(--as-white); }
body.as-account--in .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #7a1d14; }
body.as-account--in .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { border-color: #efc9c4; background: #fbeceb; }
@media (max-width: 720px) {
	body.as-account--in .woocommerce-MyAccount-navigation ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
}

/* Page titles (Storefront sets weight 300): one style everywhere — « Mon compte », « Espace vendeur », « Boutiques », « Messages »… */
.site-main .entry-header .entry-title, .site-main h1.entry-title {
	font-family: var(--as-font-display); font-weight: 700; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; color: var(--as-forest); letter-spacing: 0; margin-bottom: 18px;
}

/* Account cards: same height, two per row on wide screens. */
.as-acc__cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-auto-rows: 1fr; }
.as-acc__cards > li { display: flex; }
.as-acc__card { width: 100%; }

/* One page width everywhere: WordPress / WooCommerce / Dokan pages use Storefront's « .col-full »
   (1064 px); align it with our header and home container (.as-container). */
.site-content > .col-full, .storefront-breadcrumb > .col-full, .site-header ~ .storefront-breadcrumb .col-full {
	max-width: var(--as-container); margin-inline: auto; padding-inline: 20px; box-sizing: border-box;
}
@media (min-width: 900px) { .site-content > .col-full, .storefront-breadcrumb > .col-full { padding-inline: 40px; } }
@media (min-width: 1280px) { .site-content > .col-full, .storefront-breadcrumb > .col-full { padding-inline: 64px; } }
/* Pages that print their own .as-container inside .col-full must not get double padding. */
.site-content > .col-full .as-container { padding-inline: 0; max-width: none; }

/* WordPress « Modifier » edit links under pages: admins use the admin bar instead. */
.site-main .edit-link, .site-main .post-edit-link, .entry-footer .edit-link { display: none !important; }

/* Vendor dashboard menu on phones: Dokan folds it behind an unlabelled « ☰ » box in an
   empty green bar. Instead: always visible, one row of pills that scrolls sideways. */
@media (max-width: 899px) {
	.dokan-dashboard .dokan-dash-sidebar { background: transparent !important; padding: 0 !important; border-radius: 0; }
	.dokan-dashboard .dokan-dash-sidebar #mobile-menu-icon, .dokan-dashboard .dokan-dash-sidebar #toggle-mobile-menu { display: none !important; }
	.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu {
		display: flex !important; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 0 0 6px !important;
		scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu::-webkit-scrollbar { display: none; }
	.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li { flex: none; }
	.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li a {
		background: var(--as-white) !important; border: 1px solid var(--as-line); color: var(--as-forest) !important;
		border-radius: var(--as-radius-pill); padding: 0 16px !important; white-space: nowrap; font-weight: 600;
	}
	.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.active > a { background: var(--as-forest) !important; border-color: var(--as-forest); color: var(--as-white) !important; }
	.dokan-dashboard .dokan-dash-sidebar ul.dokan-dashboard-menu li.dokan-common-links { display: none !important; } /* Shop, account, sign out: in « Mon compte » and the bottom bar. */
}
/* Same, with Dokan's own ID selectors (its ≤ 450 px rules use #dokan-navigation … !important). */
@media (max-width: 899px) {
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation { height: auto !important; position: static !important; }
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation #mobile-menu-icon,
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation > #mobile-menu-icon,
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation #toggle-mobile-menu { display: none !important; }
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu,
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation > input + ul.dokan-dashboard-menu {
		display: flex !important; position: static !important; width: auto !important; height: auto !important;
		background: transparent !important; animation: none !important; box-shadow: none !important;
		/* Edge to edge, so the next pill peeks out and shows the row scrolls. */
		margin: 0 -20px !important; padding: 2px 20px 6px !important; scroll-padding-inline: 20px;
	}
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu::before,
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu::after { display: none !important; }
	/* Dokan makes each item full width on phones. */
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu > li { flex: 0 0 auto !important; width: auto !important; float: none !important; }
	.dokan-dashboard .dokan-dash-sidebar #dokan-navigation ul.dokan-dashboard-menu > li.dokan-common-links { display: none !important; }
}

/* « Page introuvable » (404.php) */
.as-404 { padding-block: 32px 56px; }
.as-404__card { max-width: 620px; margin: 0 auto; padding: 36px 24px; background: var(--as-white); border-radius: 20px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.as-404__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #e6f0ea; color: var(--as-green); }
.as-404__title { margin: 0; font-family: var(--as-font-display); font-weight: 700; font-size: 30px; color: var(--as-forest); }
.as-404__text { margin: 0; max-width: 460px; color: #3c4440; font-size: 15.5px; line-height: 1.5; }
.as-404__card { grid-template-columns: minmax(0, 1fr); } /* the column follows the card, not the search box's natural width */
.as-404__search { width: 100%; min-width: 0; border: 1px solid var(--as-line); }
.as-404__search input[type="search"] { min-width: 0; width: 100%; }
.as-404__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.as-404__links .as-btn { min-height: 48px; border-radius: 12px; }
.as-404__home { color: var(--as-green); font-weight: 600; font-size: 14.5px; }
@media (max-width: 599px) {
	.as-404 { padding-block: 20px 40px; }
	.as-404__card { padding: 28px 18px; }
	.as-404__title { font-size: 26px; }
	.as-404__links { width: 100%; flex-direction: column; }
	.as-404__links .as-btn { width: 100%; }
	.as-404__search { padding-left: 12px; gap: 6px; }
	.as-404__search .as-search__field svg { display: none; } /* the button already says « Rechercher » */
	.as-404__search .as-search__submit { padding: 0 14px; }
}

/* Footer always at the bottom of the window, even on short pages (« Boutiques », empty lists,
   sign-in…): the page fills the window height and the content area takes the free space.
   The admin bar's height is taken out so signed-in admins don't get an extra scroll. */
#page.site { min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px)); min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); display: flex; flex-direction: column; }
#page.site > #content { flex: 1 0 auto; }
#page.site > .as-header, #page.site > .storefront-breadcrumb, #page.site > .as-footer { flex-shrink: 0; }

/* « Boutiques »: cards on the same row share the same height. */
.as-shops__grid > li { display: flex; }
.as-shops__grid > li > .as-shop { flex: 1; }

/* Text pages (legal pages, help): readable headings and lists in the site style. */
.page .type-page .entry-content h2 { font-family: var(--as-font-display, 'Space Grotesk', sans-serif); font-weight: 700; font-size: 1.3rem; line-height: 1.3; color: #14332A; margin: 2rem 0 .6rem; }
.page .type-page .entry-content h3 { font-family: var(--as-font-display, 'Space Grotesk', sans-serif); font-weight: 700; font-size: 1.1rem; color: #14332A; margin: 1.5rem 0 .5rem; }
.page .type-page .entry-content ul { margin: 0 0 1.2em 1.2em; }
.page .type-page .entry-content li { margin-bottom: .35em; }
.page .type-page .entry-content a { color: #2F7A52; text-decoration: underline; }

/* Justified reading text (Ghislain 2026-11-19, option B « Textes longs »): long text only —
   text pages (legal), Aide steps / tips / answers, product description. Words split with a hyphen
   at line ends so phones keep even spacing. Titles, buttons, cards, prices, banners unchanged. */
/* 2026-11-25 (audit): justified only from 600 px (on phones it leaves big gaps between words),
   and never on app screens (account, vendor space, messages), which are WordPress pages too. */
@media (min-width: 600px) {
.page .type-page .entry-content p,
.page .type-page .entry-content li,
.as-help__step p, .as-help__text, .as-help__tip p, .as-help__q p,
.as-pdp__text p, .as-pdp__text li {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	text-wrap: pretty;
}
}
body.woocommerce-account .entry-content p, body.woocommerce-account .entry-content li,
body.dokan-dashboard .entry-content p, body.dokan-dashboard .entry-content li,
.asc p, .asc li { text-align: start; }

