/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Thème enfant pour Astra
 Author:       Votre nom
 Author URI:   https://votresite.com/
 Template:     astra
 Version:      1.0.9
 Text Domain:  astra-child
*/
.woocommerce nav.woocommerce-pagination ul li a:focus, .woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--ast-global-color-0);
    color: #ffffff;
}

.woocommerce nav.woocommerce-pagination ul, .woocommerce nav.woocommerce-pagination ul li {
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-0);
}

.ast-woocommerce-container {
	margin: 20px;
}

.ast-left-sidebar #secondary {
    padding-right: 0px;
    margin-top: 0px;
}

.sidebar-main {
	margin-left: 30px;
    top: 18px !important;
    max-height: calc(-18px + 100vh) !important;
}

body.archive .ast-archive-description {
	max-width: none;
}

/* Couleur de fond du bouton */
.ur-submit-button,
.user-registration-Button {
    background-color: #1b9c85 !important; /* ta couleur personnalisée */
    color: #fff;                /* couleur du texte */
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Changement au survol */
.ur-submit-button:hover,
.user-registration-Button:hover {
    background-color: #126959 !important;  /* couleur hover */
}

.user-registration-register a,
.user-registration-LostPassword a {
	color: #126959 !important;
}

.user-registration {
	margin: auto !important;
}



.ast-shipping-text {
    display: none !important;
}


.cfvsw-swatches-option[data-slug="choix-ulterieur-de-couleur"] .cfvsw-swatch-inner {
    background: linear-gradient(45deg, red, orange, yellow, green, blue, purple) !important;
    border: 1px solid #666;
    border-radius: 3px;
}

.woocommerce ul.product-categories > li ul li:before {
	position:relative !important;
}


/* Supprime le chevron "›" par défaut des sous-catégories */
.widget_product_categories ul.children li::before {
    display: none !important;
    content: none !important;
}

/* Séparateur pour TOUTES les catégories (parents et enfants) */
.widget_product_categories li.cat-item {
    padding-bottom: 3px !important;
		margin-top:6px !important;
    margin-bottom: 6px !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Supprime uniquement les bordures du DERNIER LI de CHAQUE NIVEAU UL */
.widget_product_categories ul > li.cat-item:last-child {
    border-bottom: none !important;
}


/* Conteneur flex pour chaque ligne (déjà mis via JS) */
.widget_product_categories li.cat-item > div {
    display: flex;
    align-items: center; /* verticalement centré */
    gap: 6px;
}

/* Icône à gauche (chevron ou rond) */
.widget_product_categories .toggle-cat {
    display: inline-block;
    width: 1em;
    text-align: center;
    font-size: 1em;
    line-height: 1; /* aligne mieux avec le texte */
    color: #333;
    flex-shrink: 0;
}

/* Lien texte */
.widget_product_categories li.cat-item > div > a {
    display: inline-block;
    line-height: 1.4;
    word-break: break-word;
    flex-grow: 1;
}

.woocommerce ul.product-categories > li ul li a {
    margin-left: 0px;
}


.woocommerce-js ul.products li.product .ast-shop-product-out-of-stock, .woocommerce-js ul.products li.product .woocommerce-loop-category__title, .woocommerce-page ul.products li.product .ast-shop-product-out-of-stock, .woocommerce-page ul.products li.product .woocommerce-loop-category__title {
    background-color: rgba(255, 255, 255, .4);
}


mark.count {
    display: none !important;
}




/* Bordure autour des images de produits dans la boutique */
.woocommerce ul.products li.product>a,
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    border: 1px solid #ccc; /* bordure grise claire */
    border-radius: 4px;      /* angles légèrement arrondis, optionnel */
    box-shadow: 0 0 4px rgba(0,0,0,0.05); /* ombre douce, optionnel */
	margin-bottom: 8px;
}

.textarea-default-size {
	height: 100px;
}

/* 1) Grille produits : la carte devient un bloc flex (pour aligner le texte) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  display: flex;
  flex-direction: column;
}

/* 2) Cadre image de hauteur fixe (à ajuster) */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
  height: 200px;
	width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;           /* optionnel */
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap a {
  width: 100%;
  height: 100%;
	display: flex;
	justify-content: center;
}

/* 3) L'image rentre entièrement dans le cadre */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
  width: 100%;
  height: 100%;
	object-fit: contain;
}

/* Centre la pagination WooCommerce */
.woocommerce nav.woocommerce-pagination {
  text-align: center;
}

.woocommerce .ast-woocommerce-container .woocommerce-pagination ul.page-numbers li a:focus {
	border-style: none;
}

.woocommerce-LoopProduct-link.woocommerce-loop-product__link>div {
	position: unset !important;
}


.wp-block-search__inside-wrapper {
    margin: 10px;
}


/* Page Mon Compte/Tableau de bord */

.my-account-dashboard-custom {
	display: grid;
	gap: 24px;
	margin: 10px 0 30px;
}

.account-hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	padding: 28px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.account-hero__eyebrow {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.account-hero__title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.2;
}

.account-hero__text {
	margin: 0;
	color: #475569;
}

.account-logout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	background: #111827;
	color: #ffffff !important;
	text-decoration: none;
	font-weight: 600;
	border-radius: 12px;
	white-space: nowrap;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.account-logout-button:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.account-notice {
	padding: 18px 20px;
	border-radius: 16px;
	border: 1px solid;
}

.account-notice__title {
	margin: 0 0 8px;
	font-size: 18px;
}

.account-notice__text {
	margin: 0;
	color: #334155;
}

.account-notice--pending {
	background: #fffbeb;
	border-color: #f59e0b;
}

.account-notice--success {
	background: #f0fdf4;
	border-color: #22c55e;
}

.account-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
}

.account-card {
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.account-card__title {
	margin: 0 0 18px;
	font-size: 20px;
}

.account-info-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
	margin: 0;
}

.account-info-item {
	padding: 14px 16px;
	background: #f8fafc;
	border-radius: 14px;
}

.account-info-item dt {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.account-info-item dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
}

.account-actions {
	display: grid;
	gap: 12px;
}

.account-action {
	display: block;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-action:hover {
	transform: translateY(-1px);
	border-color: #cbd5e1;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.account-action__title {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	color: #0f172a;
}

.account-action__text {
	display: block;
	color: #475569;
	font-size: 14px;
}

@media (max-width: 900px) {
	.account-grid {
		grid-template-columns: 1fr;
	}

	.account-info-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.account-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.account-hero__title {
		font-size: 24px;
	}

	.account-logout-button {
		width: 100%;
	}
}

/*quotes page */

.quotes-list-page {
	display: grid;
	gap: 24px;
	margin: 10px 0 30px;
}

.quotes-list {
	display: grid;
	gap: 20px;
}

.account-outline-button,
.account-primary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.account-primary-button {
	background: #111827;
	color: #fff !important;
	border: 1px solid #111827;
}

.account-outline-button {
	background: #fff;
	color: #111827 !important;
	border: 1px solid #d1d5db;
}

.account-primary-button:hover,
.account-outline-button:hover {
	opacity: 0.95;
	transform: translateY(-1px);
}

.quote-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.quote-card__title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.3;
	color: #0f172a;
}

.quote-card__meta {
	margin: 0;
	font-size: 14px;
	color: #64748b;
}

.quote-card__badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.quote-card__content {
	margin-bottom: 18px;
	padding: 16px;
	background: #f8fafc;
	border-radius: 14px;
	color: #334155;
}

.quote-card__content p {
	margin: 0;
}

.quote-table-wrap {
	overflow-x: auto;
}

.quote-lines-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	overflow: hidden;
}

.quote-lines-table thead th {
	padding: 14px 16px;
	text-align: left;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	background: #f8fafc;
	border-bottom: 1px solid #e5e7eb;
}

.quote-lines-table tbody td {
	padding: 16px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
	color: #0f172a;
}

.quote-lines-table tbody tr:last-child td {
	border-bottom: none;
}

.quote-line-details {
	display: grid;
	gap: 4px;
	margin-top: 8px;
	font-size: 14px;
	color: #475569;
}

.quote-card__notice {
	margin-top: 8px;
}

.quote-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.quotes-empty {
	text-align: left;
}

.quotes-empty__text {
	margin: 0;
	color: #475569;
}

@media (max-width: 640px) {
	.quote-card__header {
		flex-direction: column;
	}

	.quote-card__actions {
		flex-direction: column;
	}

	.account-outline-button,
	.account-primary-button {
		width: 100%;
	}
}


.woocommerce-account .woocommerce-MyAccount-navigation {
	display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content::after {
	content: "";
	display: block;
	clear: both;
}

.edit-account-page {
	display: grid;
	gap: 24px;
	margin: 10px 0 30px;
}

.custom-edit-account-form {
	display: grid;
	gap: 20px;
}


.custom-edit-account-form select.woocommerce-Input,
.custom-edit-account-form input.woocommerce-Input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.4;
}

.custom-edit-account-form select.woocommerce-Input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.custom-edit-account-form .account-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.custom-edit-account-form .account-form-grid {
    display: grid;
    gap: 20px;
}

.custom-edit-account-form .account-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .custom-edit-account-form .account-form-grid--2 {
        grid-template-columns: 1fr;
    }
}

.account-form-grid {
	display: grid;
	gap: 18px;
}

.account-form-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-form-field {
	margin: 0 !important;
}

.account-form-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}

.account-form-field .input-text,
.account-form-field input[type="text"],
.account-form-field input[type="email"],
.account-form-field input[type="password"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid #dbe2ea;
	border-radius: 12px;
	background: #fff;
	color: #0f172a;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-form-field .input-text:focus,
.account-form-field input[type="text"]:focus,
.account-form-field input[type="email"]:focus,
.account-form-field input[type="password"]:focus {
	border-color: #94a3b8;
	outline: none;
	box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.account-field-help {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #64748b;
}

.account-password-fieldset {
	border: 0;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 16px;
}

.account-password-note {
	margin-bottom: 18px;
}

.account-form-actions-card {
	padding-top: 20px;
	padding-bottom: 20px;
}

.account-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.custom-edit-account-form .required {
	color: #dc2626;
	font-weight: 700;
}

.custom-edit-account-form .form-row-first,
.custom-edit-account-form .form-row-last,
.custom-edit-account-form .form-row-wide {
	width: 100%;
	float: none;
}

.custom-edit-account-form .clear {
	display: none;
}

@media (max-width: 768px) {
	.account-form-grid--2 {
		grid-template-columns: 1fr;
	}

	.account-form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.account-form-actions .account-primary-button,
	.account-form-actions .account-outline-button {
		width: 100%;
	}
}