/*
 * WooCommerce by Folk Officinalis — compte client
 * Couleurs et polices : variables --fa-* du thème (ink, text, soft, muted, line, card, chip, cream, display, radius).
 * Aucune couleur ni police en dur. Mobile d'abord.
 */
.folk-wd {
	--fwd-ink: var(--fa-ink, currentColor);
	--fwd-text: var(--fa-text, currentColor);
	--fwd-soft: var(--fa-soft, color-mix(in srgb, currentColor 72%, transparent));
	--fwd-muted: var(--fa-muted, color-mix(in srgb, currentColor 60%, transparent));
	--fwd-line: var(--fa-line, color-mix(in srgb, currentColor 16%, transparent));
	--fwd-card: var(--fa-card, color-mix(in srgb, currentColor 4%, transparent));
	--fwd-chip: var(--fa-chip, color-mix(in srgb, currentColor 8%, transparent));
	--fwd-cream: var(--fa-cream, var(--fa-chip, transparent));
	--fwd-display: var(--fa-display, inherit);
	--fwd-radius: var(--fa-radius, 16px);
}

/* ===== Menu du compte ===== */
.folk-wd .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 24px; padding: 0; }
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium) { margin: 0 0 4px; padding: 0; border: 0; background: none; }
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium)::before,
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium)::after,
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium) > a::after { content: none; display: none; }
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium) > a {
	display: flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 999px;
	color: var(--fwd-soft); font-weight: 500; text-decoration: none; transition: background .15s, color .15s;
}
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium) > a:hover { background: var(--fwd-chip); color: var(--fwd-ink); }
.folk-wd .woocommerce-MyAccount-navigation li.is-active:not(.fp-account-premium) > a { background: var(--fwd-ink); color: var(--fwd-cream, #fff); font-weight: 600; }
.folk-wd .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout > a { color: var(--fwd-muted); }

/* Doublon du bonjour : on masque l'en-tête « nom + #id » de Flatsome */
.folk-wd .account-user { display: none; }

/* Icônes du menu : à gauche du texte, alignées, toujours visibles (on neutralise le placement du thème) */
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium) > a { position: relative !important; display: flex !important; align-items: center !important; gap: 12px; }
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium) > a::before {
	content: "" !important; display: block !important; flex: none !important;
	position: static !important; inset: auto !important; float: none !important; transform: none !important;
	width: 20px !important; height: 20px !important; margin: 0 !important; padding: 0 !important;
	font-size: 0 !important; line-height: 0 !important; opacity: .85 !important; visibility: visible !important;
	background: currentColor !important;
	-webkit-mask: var(--fwd-ico) center / contain no-repeat; mask: var(--fwd-ico) center / contain no-repeat;
}
.folk-wd .woocommerce-MyAccount-navigation li:not(.fp-account-premium) > a:hover::before,
.folk-wd .woocommerce-MyAccount-navigation li.is-active:not(.fp-account-premium) > a::before { opacity: 1 !important; }
.folk-wd .woocommerce-MyAccount-navigation-link--dashboard { --fwd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7v9H4z'/%3E%3C/svg%3E"); }
.folk-wd .woocommerce-MyAccount-navigation-link--orders { --fwd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 12H7z'/%3E%3Cpath d='M9 7a3 3 0 016 0'/%3E%3C/svg%3E"); }
.folk-wd .woocommerce-MyAccount-navigation-link--downloads { --fwd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M8 11l4 4 4-4M5 19h14'/%3E%3C/svg%3E"); }
.folk-wd .woocommerce-MyAccount-navigation-link--edit-address { --fwd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6 7-11a7 7 0 10-14 0c0 5 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.folk-wd .woocommerce-MyAccount-navigation-link--payment-methods { --fwd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='12' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.folk-wd .woocommerce-MyAccount-navigation-link--edit-account { --fwd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c1-4 4-6 7-6s6 2 7 6'/%3E%3C/svg%3E"); }
.folk-wd .woocommerce-MyAccount-navigation-link--customer-logout { --fwd-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H5v16h5M15 8l4 4-4 4M19 12H9'/%3E%3C/svg%3E"); }

/* ===== Contenu ===== */
.folk-wd .woocommerce-MyAccount-content { color: var(--fwd-text); min-width: 0; }
.folk-wd .woocommerce-MyAccount-content > h2,
.folk-wd .woocommerce-MyAccount-content h3,
.folk-wd .woocommerce-Address-title h2, .folk-wd .woocommerce-Address-title h3 {
	font-family: var(--fwd-display); color: var(--fwd-ink); font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.2;
}
.folk-wd .woocommerce-MyAccount-content a:not(.button) { color: var(--fwd-ink); text-underline-offset: 3px; }

/* Messages */
.folk-wd .woocommerce-message, .folk-wd .woocommerce-info, .folk-wd .woocommerce-error {
	margin: 0 0 20px; padding: 16px 18px; border: 0; border-left: 4px solid var(--fwd-ink); border-radius: calc(var(--fwd-radius) * .7);
	background: var(--fwd-cream); color: var(--fwd-text); list-style: none;
}
.folk-wd .woocommerce-message::before, .folk-wd .woocommerce-info::before, .folk-wd .woocommerce-error::before { color: var(--fwd-ink); }
.folk-wd .woocommerce-message .button, .folk-wd .woocommerce-info .button { float: none; margin: 10px 0 0; }

/* Boutons */
.folk-wd .woocommerce .button, .folk-wd .woocommerce button.button, .folk-wd .woocommerce input.button,
.folk-wd .woocommerce a.button, .folk-wd .woocommerce-MyAccount-content .button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; margin: 0;
	border: 0; border-radius: 999px; background: var(--fwd-ink); color: var(--fwd-cream, #fff);
	font-weight: 700; letter-spacing: .02em; text-transform: none; line-height: 1; box-shadow: none; transition: opacity .15s;
}
.folk-wd .woocommerce .button:hover { opacity: .85; background: var(--fwd-ink); color: var(--fwd-cream, #fff); }

/* Formulaires */
.folk-wd .woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.folk-wd .woocommerce form .form-row label { margin: 0 0 6px; font-weight: 600; color: var(--fwd-ink); }
.folk-wd .woocommerce input[type="text"], .folk-wd .woocommerce input[type="email"], .folk-wd .woocommerce input[type="password"],
.folk-wd .woocommerce input[type="tel"], .folk-wd .woocommerce select, .folk-wd .woocommerce textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--fwd-line); border-radius: calc(var(--fwd-radius) * .7);
	background: var(--fwd-card); color: var(--fwd-text); box-shadow: none; font: inherit;
}
.folk-wd .woocommerce input:focus, .folk-wd .woocommerce select:focus, .folk-wd .woocommerce textarea:focus {
	outline: 0; border-color: var(--fwd-muted); background: var(--fwd-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fwd-muted) 22%, transparent);
}
.folk-wd .woocommerce fieldset { margin: 24px 0; padding: 20px; border: 1px solid var(--fwd-line); border-radius: var(--fwd-radius); background: var(--fwd-card); }
.folk-wd .woocommerce fieldset legend { padding: 0 8px; font-family: var(--fwd-display); font-weight: 700; color: var(--fwd-ink); }

/* ===== Bandeau de titre du thème (page « Mon compte client ») : tons sable, titre dans la police du thème ===== */
.folk-wd .page-title .title-overlay { background: var(--fwd-cream) !important; opacity: 1 !important; }
.folk-wd .page-title .title-bg, .folk-wd .page-title .bg-overlay { display: none !important; }
.folk-wd .page-title { border: 0; }
.folk-wd .page-title .page-title-inner { min-height: 0; padding: 22px 0; }
.folk-wd .page-title h1, .folk-wd .page-title .entry-title {
	font-family: var(--fwd-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); text-transform: none; letter-spacing: 0; color: var(--fwd-ink);
}
.folk-wd .page-title .is-small, .folk-wd .page-title .breadcrumbs, .folk-wd .page-title .is-xsmall { color: var(--fwd-muted); letter-spacing: .08em; }

/* ===== Tableau de bord : salutation, dernière commande, nouveautés ===== */
.fwd-dash { display: grid; gap: 32px; }
.fwd-hello__title { margin: 0; font-family: var(--fwd-display); font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -.01em; color: var(--fwd-ink); }
.fwd-hello__text { margin: 12px 0 0; max-width: 46ch; font-size: 1.05rem; line-height: 1.55; color: var(--fwd-soft); }
.fwd-hello::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 22px; border-radius: 3px; background: var(--fwd-muted); }

.fwd-block__title { margin: 0 0 12px; font-size: 12px !important; font-family: inherit !important; font-weight: 700; letter-spacing: .12em !important; text-transform: uppercase !important; color: var(--fwd-muted) !important; }

.folk-wd a.fwd-order {
	display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 18px 20px;
	border-radius: var(--fwd-radius); background: var(--fwd-card); box-shadow: inset 0 0 0 1px var(--fwd-line);
	color: var(--fwd-ink); text-decoration: none; transition: box-shadow .15s;
}
.folk-wd a.fwd-order:hover { box-shadow: inset 0 0 0 1px var(--fwd-muted); }
.fwd-order__main { display: grid; gap: 2px; grid-column: 1; }
.fwd-order__main strong { font-family: var(--fwd-display); font-size: 1.15rem; }
.fwd-order__main small { color: var(--fwd-muted); font-size: 14px; }
.fwd-order__status { grid-column: 1; justify-self: start; padding: 3px 12px; border-radius: 999px; background: var(--fwd-chip); color: var(--fwd-soft); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.fwd-order__total { grid-column: 2; grid-row: 1; font-weight: 700; justify-self: end; }
.fwd-order__go { grid-column: 2; grid-row: 2; justify-self: end; color: var(--fwd-muted); font-size: 1.2rem; transition: transform .15s; }
.fwd-order:hover .fwd-order__go, .fwd-news a:hover .fwd-order__go { transform: translateX(4px); color: var(--fwd-ink); }
.fwd-empty { margin: 0 0 14px; color: var(--fwd-soft); }

.fwd-news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--fwd-line); }
.fwd-news li { margin: 0; border-bottom: 1px solid var(--fwd-line); }
.folk-wd .fwd-news a { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; padding: 16px 2px; color: var(--fwd-ink); text-decoration: none; }
.fwd-news__tag { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fwd-muted); }
.fwd-news__title { grid-column: 1; font-family: var(--fwd-display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.fwd-news .fwd-order__go { grid-column: 2; grid-row: 1 / span 2; }

/* ===== Commandes, téléchargements : tableaux → cartes sur mobile ===== */
.folk-wd table.woocommerce-orders-table, .folk-wd table.woocommerce-table, .folk-wd table.shop_table {
	width: 100%; margin: 0 0 24px; border: 0; border-collapse: separate; border-spacing: 0 10px; background: none;
}
.folk-wd table.shop_table thead { display: none; }
.folk-wd table.shop_table tr { display: block; margin: 0 0 12px; padding: 14px 16px; border-radius: var(--fwd-radius); background: var(--fwd-card); box-shadow: inset 0 0 0 1px var(--fwd-line); }
.folk-wd table.shop_table td, .folk-wd table.shop_table th {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border: 0; text-align: right; background: none;
}
.folk-wd table.shop_table td::before { content: attr(data-title); flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fwd-muted); text-align: left; }
.folk-wd table.shop_table td.woocommerce-orders-table__cell-order-actions { justify-content: flex-start; gap: 8px; flex-wrap: wrap; padding-top: 12px; }
.folk-wd table.shop_table td.woocommerce-orders-table__cell-order-actions::before { display: none; }

/* ===== Adresses ===== */
.folk-wd .woocommerce-Addresses { display: grid; gap: 16px; margin: 0; }
.folk-wd .woocommerce-Addresses .col-1, .folk-wd .woocommerce-Addresses .col-2, .folk-wd .woocommerce-Address { float: none; width: auto; max-width: none; margin: 0; }
.folk-wd .woocommerce-Address { padding: 20px; border-radius: var(--fwd-radius); background: var(--fwd-card); box-shadow: inset 0 0 0 1px var(--fwd-line); }
.folk-wd .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; }
.folk-wd .woocommerce-Address-title h2, .folk-wd .woocommerce-Address-title h3 { margin: 0; font-size: 1.2rem; }
.folk-wd .woocommerce-Address address { font-style: normal; line-height: 1.6; color: var(--fwd-soft); }

/* ===== Connexion / inscription ===== */
.folk-wd .woocommerce-form-login, .folk-wd .woocommerce-form-register, .folk-wd form.login, .folk-wd form.register {
	margin: 0 0 20px; padding: 24px 22px; border: 0; border-radius: var(--fwd-radius); background: var(--fwd-card); box-shadow: inset 0 0 0 1px var(--fwd-line);
}
.folk-wd .u-columns h2, .folk-wd .woocommerce > h2 { font-family: var(--fwd-display); color: var(--fwd-ink); font-weight: 700; text-transform: none; letter-spacing: 0; }
.folk-wd .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.folk-wd .woocommerce-LostPassword a { color: var(--fwd-muted); }

/* ===== Tablette ===== */
@media (min-width: 700px) {
	.folk-wd .woocommerce-Addresses { grid-template-columns: 1fr 1fr; }
	.folk-wd table.shop_table thead { display: table-header-group; }
	.folk-wd table.shop_table thead th { padding: 10px 14px; text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fwd-muted); background: none; border: 0; }
	.folk-wd table.shop_table tbody tr { display: table-row; padding: 0; box-shadow: none; background: none; }
	.folk-wd table.shop_table td { display: table-cell; padding: 14px; text-align: left; background: var(--fwd-card); border: 0; border-top: 1px solid var(--fwd-line); border-bottom: 1px solid var(--fwd-line); vertical-align: middle; }
	.folk-wd table.shop_table td:first-child { border-left: 1px solid var(--fwd-line); border-radius: var(--fwd-radius) 0 0 var(--fwd-radius); }
	.folk-wd table.shop_table td:last-child { border-right: 1px solid var(--fwd-line); border-radius: 0 var(--fwd-radius) var(--fwd-radius) 0; }
	.folk-wd table.shop_table td::before { display: none; }
}
