/* ==========================================================================
 * A Cosmé Z - WooCommerce CSS
 * Styles spécifiques aux pages WooCommerce :
 * - Single product (page produit)
 * - Archive product (catégorie)
 * - Cart, checkout, my-account
 * - Mobile sticky cart button
 * @package acomeze
 * ========================================================================== */

.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { color: var(--gray-300); }
.breadcrumb .current { color: var(--gray-900); font-weight: 600; }

/* ==========================================================================
   PRODUCT MAIN
   ========================================================================== */
.product-main {
    display: grid; grid-template-columns: 1fr; gap: 24px;
    margin-bottom: 32px;
}
@media (min-width: 1024px) {
    .product-main { grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
}

/* Galerie */
.product-gallery { position: relative; }
.product-main-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 50%, #a7f3d0 100%);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    font-size: 120px;
    position: relative;
}
@media (min-width: 768px) { .product-main-image { font-size: 200px; } }

.product-badges-on-image {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.product-badge {
    display: inline-flex; align-items: center; padding: 4px 10px;
    border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1;
}
@media (min-width: 768px) { .product-badge { font-size: 12px; } }
.product-badge-blue { background: var(--blue); color: white; }
.product-badge-red { background: var(--red); color: white; }

.product-flag-on-image {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%; overflow: hidden;
    display: flex; border: 3px solid white; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
@media (min-width: 768px) { .product-flag-on-image { width: 36px; height: 36px; } }
.product-flag-on-image > div { width: 33.33%; height: 100%; }
.product-flag-on-image .b { background: #0055a4; }
.product-flag-on-image .w { background: white; }
.product-flag-on-image .r { background: #ef4135; }

.product-thumbs {
    display: flex; gap: 8px; margin-top: 12px;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.product-thumbs::-webkit-scrollbar { display: none; }
.product-thumb {
    width: 64px; height: 64px; border-radius: 8px;
    border: 2px solid var(--gray-200);
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; flex-shrink: 0; cursor: pointer; transition: border-color .2s;
}
@media (min-width: 768px) { .product-thumb { width: 80px; height: 80px; font-size: 36px; } }
.product-thumb.active { border-color: var(--green); }

/* Certifications */
.product-certifications {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    margin-top: 16px;
}
@media (min-width: 768px) { .product-certifications { gap: 12px; margin-top: 24px; } }
.product-cert {
    background: white; border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 12px 8px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 6px;
}
@media (min-width: 768px) { .product-cert { padding: 16px; gap: 8px; } }
.product-cert-icon { font-size: 24px; }
@media (min-width: 768px) { .product-cert-icon { font-size: 32px; } }
.product-cert-text {
    font-size: 11px; font-weight: 600; color: var(--gray-600);
    line-height: 1.2;
}
@media (min-width: 768px) { .product-cert-text { font-size: 13px; } }

/* Infos produit */
.product-info { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .product-info { gap: 16px; } }

.product-brand {
    display: inline-block;
    background: var(--green); color: white;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px; align-self: flex-start;
}
@media (min-width: 768px) { .product-brand { font-size: 12px; } }

.product-title {
    font-size: 22px; font-weight: 700; line-height: 1.2;
    text-transform: uppercase; margin: 0; color: var(--gray-900);
}
@media (min-width: 768px) { .product-title { font-size: 28px; } }
@media (min-width: 1024px) { .product-title { font-size: 32px; } }

.product-rating-line {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    color: var(--gray-500); font-size: 13px;
}
@media (min-width: 768px) { .product-rating-line { gap: 12px; font-size: 14px; } }
.product-rating-line a { color: var(--green); }

.product-description {
    font-size: 14px; color: var(--gray-600); line-height: 1.6;
}
@media (min-width: 768px) { .product-description { font-size: 15px; line-height: 1.7; } }
.product-description a { color: var(--green); text-decoration: underline; font-weight: 600; }

.product-variant-select {
    display: flex; align-items: center; gap: 6px;
    background: white; border: 2px solid var(--green);
    border-radius: 8px; padding: 10px 14px; cursor: pointer;
    font-size: 13px; font-weight: 600; align-self: flex-start;
}
@media (min-width: 768px) { .product-variant-select { padding: 10px 16px; font-size: 14px; } }
.product-variant-select::before { content: '✓'; color: var(--green); margin-right: 4px; }

.product-price-block {
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 0;
}
.product-price-label {
    font-size: 11px; color: var(--gray-500); text-transform: uppercase;
    letter-spacing: 0.5px; margin: 0 0 4px;
}
.product-price-row {
    display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; flex-wrap: wrap;
}
.product-price-current {
    font-size: 26px; font-weight: 700; color: var(--gray-900);
}
@media (min-width: 768px) { .product-price-current { font-size: 32px; } }
.product-price-volume { font-size: 12px; color: var(--gray-500); }
.product-price-ref { font-size: 11px; color: var(--gray-400); margin-top: 4px; }

/* Actions : quantité + ajouter */
.product-actions {
    display: flex; gap: 10px; align-items: stretch;
}
.product-quantity {
    display: flex; align-items: center;
    border: 1px solid var(--gray-200); border-radius: 8px;
    background: white; flex-shrink: 0;
}
.product-quantity button {
    width: 40px; height: 100%; font-size: 18px; font-weight: 600;
    color: var(--gray-600);
}
.product-quantity input {
    width: 36px; height: 100%; text-align: center; border: none;
    font-weight: 700; outline: none; background: transparent;
    -moz-appearance: textfield;
}
.product-quantity input::-webkit-outer-spin-button,
.product-quantity input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product-cart-btn {
    flex: 1; background: var(--green); color: white;
    padding: 14px 16px; font-size: 14px; font-weight: 600;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: background .2s;
    min-height: 52px;
}
@media (min-width: 768px) { .product-cart-btn { padding: 16px 24px; font-size: 16px; } }

.product-cart-btn:hover { background: var(--green-dark); }

/* ==========================================================================
   BOUTON FLOTTANT MOBILE - Sticky en bas de l'écran
   ========================================================================== */
.mobile-sticky-cart {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    background: white;
    border-top: 1px solid var(--gray-200);
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100%);
    transition: transform .3s ease;
}
.mobile-sticky-cart.visible { transform: translateY(0); }

@media (min-width: 1024px) {
    .mobile-sticky-cart { display: none !important; }
}

.mobile-sticky-cart-info {
    flex: 0 0 auto;
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.mobile-sticky-cart-price {
    font-size: 18px; font-weight: 700; color: var(--gray-900);
}
.mobile-sticky-cart-stock {
    font-size: 11px; color: var(--green-darker); font-weight: 600;
    display: flex; align-items: center; gap: 4px;
}
.mobile-sticky-cart-stock::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); display: inline-block;
}

.mobile-sticky-cart-btn {
    flex: 1;
    background: var(--green); color: white;
    padding: 14px 16px; font-size: 15px; font-weight: 700;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px; min-height: 52px;
    transition: background .2s;
}
.mobile-sticky-cart-btn:hover, .mobile-sticky-cart-btn:active { background: var(--green-dark); }

/* Empêche le contenu d'être caché derrière le bouton flottant */
@media (max-width: 1023px) {
    body.has-sticky-cart {
        padding-bottom: 80px;
    }
}

/* Encarts info */
.product-info-cards { display: flex; flex-direction: column; gap: 8px; }
.product-info-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 8px; font-size: 12px;
    flex-wrap: wrap;
}
@media (min-width: 768px) { .product-info-card { padding: 12px 16px; font-size: 13px; gap: 12px; } }

.product-info-card-stock {
    background: rgba(15, 211, 116, 0.08);
    color: var(--green-darker);
    border: 1px solid rgba(15, 211, 116, 0.2);
}
.product-info-card-shipping {
    background: rgba(59, 130, 246, 0.08);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.product-info-card-secure {
    background: var(--gray-100); color: var(--gray-600);
    border: 1px solid var(--gray-200);
}
.product-info-card-secure .payment-icons {
    margin-left: auto; display: flex; gap: 4px;
}
.product-info-card-secure .payment-icon {
    width: 28px; height: 18px; background: white; border: 1px solid var(--gray-200);
    border-radius: 3px; font-size: 9px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

.product-recommendation {
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fbbf24;
    padding: 14px 16px; border-radius: 12px;
    margin-top: 12px; flex-wrap: wrap;
}
@media (min-width: 768px) { .product-recommendation { padding: 16px 20px; gap: 16px; } }
.product-recommendation-icon { font-size: 28px; }
@media (min-width: 768px) { .product-recommendation-icon { font-size: 32px; } }
.product-recommendation-text {
    flex: 1 1 auto; font-size: 13px; font-weight: 600; color: #92400e;
    min-width: 150px;
}
@media (min-width: 768px) { .product-recommendation-text { font-size: 14px; } }
.product-recommendation-btn {
    background: #92400e; color: white; padding: 10px 14px;
    border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
@media (min-width: 768px) { .product-recommendation-btn { padding: 10px 16px; font-size: 13px; } }

/* ==========================================================================
   ONGLETS - Mobile : navigation horizontale scrollable / Desktop : sidebar
   ========================================================================== */
.product-tabs-section {
    margin: 32px 0;
    display: grid; grid-template-columns: 1fr; gap: 0;
}
@media (min-width: 1024px) {
    .product-tabs-section { grid-template-columns: 280px 1fr; gap: 32px; margin: 48px 0; }
}

.product-tabs-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 24px;
}
.product-tabs-nav::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
    .product-tabs-nav {
        flex-direction: column; overflow: hidden;
        border: 1px solid var(--gray-200); border-radius: 12px;
        margin-bottom: 0;
    }
}

.product-tab-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; text-align: left;
    color: var(--gray-600); font-size: 13px; font-weight: 600;
    transition: all .2s; flex-shrink: 0; white-space: nowrap;
    border-bottom: 3px solid transparent;
}
@media (min-width: 768px) { .product-tab-btn { font-size: 14px; padding: 14px 20px; gap: 12px; } }

@media (min-width: 1024px) {
    .product-tab-btn {
        border-bottom: 1px solid var(--gray-100);
        white-space: normal;
    }
    .product-tab-btn:hover { background: var(--gray-100); }
    .product-tab-btn.active { background: var(--green); color: white; }
}

@media (max-width: 1023px) {
    .product-tab-btn.active {
        color: var(--green); border-bottom-color: var(--green);
    }
}

.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
.product-tab-content h3 {
    font-size: 18px; font-weight: 700; margin: 0 0 12px;
    color: var(--gray-900);
}
@media (min-width: 768px) { .product-tab-content h3 { font-size: 22px; margin: 0 0 16px; } }
.product-tab-content p {
    color: var(--gray-600); line-height: 1.7; margin: 0 0 16px;
    font-size: 14px;
}
@media (min-width: 768px) { .product-tab-content p { font-size: 15px; } }

.expert-advice {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}
@media (min-width: 768px) { .expert-advice { padding: 16px 20px; } }
.expert-advice-title {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; color: #1e40af; margin-bottom: 8px;
    font-size: 14px;
}
.expert-advice p { color: #1e3a8a; font-size: 14px; }
.expert-advice strong { color: #1e3a8a; }

.faq-item {
    border-bottom: 1px solid var(--gray-200); padding: 14px 0;
}
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-weight: 600; color: var(--gray-900);
    padding-right: 12px; font-size: 14px; gap: 12px;
}
@media (min-width: 768px) { .faq-question { font-size: 15px; } }
.faq-toggle { font-size: 24px; color: var(--gray-400); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
    color: var(--gray-600); font-size: 14px;
}
.faq-item.open .faq-answer { max-height: 500px; padding-top: 12px; }

.composition-box {
    background: var(--gray-100); border-radius: 12px;
    padding: 16px; margin-top: 16px;
}
@media (min-width: 768px) { .composition-box { padding: 24px; } }
.composition-title {
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    color: var(--gray-900); margin: 0 0 4px;
}
@media (min-width: 768px) { .composition-title { font-size: 16px; } }
.composition-product { font-size: 12px; color: var(--gray-500); margin: 0 0 12px; }
.composition-list {
    font-size: 12px; color: var(--gray-600); line-height: 1.7;
    word-break: break-word;
}
@media (min-width: 768px) { .composition-list { font-size: 13px; line-height: 1.8; } }

/* RECOMMANDATIONS */
.recommendations { margin: 32px 0; }
@media (min-width: 768px) { .recommendations { margin: 48px 0; } }

.recommendations-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
@media (min-width: 768px) { .recommendations-head { margin-bottom: 24px; } }

.recommendations-title {
    font-size: 18px; font-weight: 700; text-transform: uppercase;
    margin: 0; color: var(--gray-900);
}
@media (min-width: 768px) { .recommendations-title { font-size: 22px; } }

.recommendations-link {
    background: var(--green); color: white;
    padding: 6px 12px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
}
@media (min-width: 768px) { .recommendations-link { padding: 8px 16px; font-size: 13px; } }

.recommendations-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
@media (min-width: 768px) { .recommendations-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.product-card {
    display: flex; flex-direction: column;
    background: white; border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 12px;
    transition: all .3s ease; position: relative;
}
@media (min-width: 768px) { .product-card { padding: 16px; } }

.product-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.15);
    transform: translateY(-4px);
}
.product-card-image { position: relative; padding: 12px 4px; }
@media (min-width: 768px) { .product-card-image { padding: 16px 8px; } }

.product-card-flag {
    position: absolute; top: 0; right: 0; z-index: 10;
    width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
    display: inline-flex; border: 2px solid white;
}
@media (min-width: 768px) { .product-card-flag { width: 24px; height: 24px; } }
.product-card-flag .b { background: #0055a4; width: 33.33%; }
.product-card-flag .w { background: white; width: 33.33%; }
.product-card-flag .r { background: #ef4135; width: 33.33%; }

.product-card-img {
    aspect-ratio: 1; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
}
@media (min-width: 768px) { .product-card-img { font-size: 4rem; } }

.product-card-brand { font-size: 12px; color: var(--gray-500); text-align: center; margin: 4px 0 0; }
@media (min-width: 768px) { .product-card-brand { font-size: 14px; } }

.product-card-title {
    font-size: 13px; font-weight: 500; color: var(--gray-900);
    text-align: center; line-height: 1.3; margin: 4px 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) { .product-card-title { font-size: 16px; -webkit-line-clamp: 3; } }

.product-card-variant { font-size: 11px; color: var(--gray-500); text-align: center; margin: 0; }
@media (min-width: 768px) { .product-card-variant { font-size: 12px; } }

.product-card-rating {
    display: flex; align-items: center; justify-content: center; margin-top: 4px;
}
.product-card-rating .star { font-size: 12px; }
@media (min-width: 768px) { .product-card-rating .star { font-size: 14px; } }
.product-card-rating .count { margin-left: 4px; font-size: 11px; color: var(--gray-500); }

.product-card-footer {
    margin-top: 10px; display: flex; justify-content: space-between;
    align-items: center; gap: 6px;
}
.product-card-price { font-size: 15px; font-weight: 700; color: var(--gray-900); }
@media (min-width: 768px) { .product-card-price { font-size: 18px; } }

.product-card-cart-btn {
    background: var(--green); color: white; padding: 6px;
    border-radius: 6px; display: flex; flex-shrink: 0;
}
@media (min-width: 768px) { .product-card-cart-btn { padding: 8px; } }

footer { background: white; padding: 24px 0 16px; border-top: 1px solid var(--gray-200); margin-top: 32px; }
.footer-copy { font-size: 12px; color: var(--gray-500); text-align: center; line-height: 1.5; }
.footer-copy a { color: var(--green); text-decoration: underline; }


/* ==========================================================================
   CHECKOUT - Adapté Algérie
   ========================================================================== */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}
.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px; /* anti-zoom iOS */
    background: white;
    transition: border-color .2s;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15,211,116,0.1);
}

/* Radio mode de livraison custom */
.shipping-method-acomeze {
    background: var(--gray-100);
    padding: 16px;
    border-radius: 12px;
}
.shipping-method-acomeze .input-radio {
    margin-right: 8px;
}
.shipping-method-acomeze label {
    display: flex; align-items: center; gap: 8px;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: background .2s;
}
.shipping-method-acomeze label:hover { background: white; }

/* Récap de commande */
#order_review {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
}
#order_review_heading {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 16px;
}
.woocommerce-checkout-review-order-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
}
.woocommerce-checkout-review-order-table tfoot th {
    font-weight: 700;
    color: var(--gray-900);
}

/* Bouton "Commander" */
#place_order {
    width: 100%;
    background: var(--green);
    color: white;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s;
    min-height: 56px;
    text-transform: uppercase;
}
#place_order:hover { background: var(--green-dark); }

/* Méthodes de paiement */
.woocommerce-checkout-payment {
    background: white;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    margin-top: 16px;
}
.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.payment_methods li {
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 8px;
}
.payment_methods li label {
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   PANIER (cart)
   ========================================================================== */
.woocommerce-cart .shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.woocommerce-cart .shop_table th {
    background: var(--gray-100);
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}
.woocommerce-cart .shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.woocommerce-cart .product-thumbnail img {
    width: 80px; height: 80px; border-radius: 8px;
    object-fit: cover;
}
.woocommerce-cart .quantity input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
}
.woocommerce-cart .cart_totals {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
}
.woocommerce-cart .checkout-button {
    width: 100%;
    background: var(--green) !important;
    color: white !important;
    padding: 16px 24px;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-align: center;
    display: block;
    margin-top: 16px;
    border: none !important;
}
.woocommerce-cart .checkout-button:hover { background: var(--green-dark) !important; }

/* Page Mon compte */
.woocommerce-MyAccount-navigation ul {
    list-style: none; padding: 0; margin: 0;
    background: var(--gray-100);
    border-radius: 12px;
    overflow: hidden;
}
.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--gray-200);
}
.woocommerce-MyAccount-navigation li a {
    display: block; padding: 14px 20px;
    color: var(--gray-900); text-decoration: none;
    transition: all .2s;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--green); color: white;
}

/* Messages WooCommerce */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.woocommerce-message { background: rgba(15,211,116,0.08); border-left: 4px solid var(--green); color: var(--green-darker); }
.woocommerce-info { background: rgba(59,130,246,0.08); border-left: 4px solid var(--blue); color: #1e40af; }
.woocommerce-error { background: rgba(220,38,38,0.08); border-left: 4px solid var(--red); color: #991b1b; }

/* ==========================================================================
   PAGE THANKYOU (Merci)
   ========================================================================== */
.woocommerce-order {
    text-align: center;
    padding: 48px 16px;
}
.woocommerce-thankyou-order-received {
    font-size: 24px;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 24px;
}
.woocommerce-order-overview {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
    margin: 24px auto;
    max-width: 600px;
    list-style: none;
    text-align: left;
}
.woocommerce-order-overview li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}
.woocommerce-order-overview li:last-child { border-bottom: none; }
.woocommerce-order-overview li strong {
    display: block;
    color: var(--gray-900);
    font-size: 16px;
    margin-top: 4px;
}

/* Responsive checkout */
@media (max-width: 768px) {
    .woocommerce-checkout #customer_details,
    .woocommerce-checkout #order_review_heading,
    .woocommerce-checkout #order_review {
        width: 100% !important;
        float: none !important;
    }
    #order_review { margin-top: 16px; }
}

/* ==========================================================================
   ARCHIVE PRODUIT (boutique, catégorie, recherche)
   ========================================================================== */
.archive-product-main { padding-bottom: 48px; }

.archive-header {
    margin-bottom: 24px;
}
.archive-header .h1 { font-size: 24px; }
@media (min-width: 768px) { .archive-header .h1 { font-size: 32px; } }
.archive-description {
    margin-top: 12px;
    color: var(--gray-600);
    font-size: 14px;
    max-width: 800px;
}

.archive-layout {
    display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 1024px) {
    .archive-layout { grid-template-columns: 260px 1fr; gap: 32px; }
}

/* Sidebar */
.archive-sidebar-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: var(--gray-100);
    border-radius: 8px; font-weight: 600; font-size: 14px;
    width: 100%; justify-content: center;
    border: none; cursor: pointer;
}
@media (min-width: 1024px) {
    .archive-sidebar-toggle { display: none; }
}

.archive-sidebar-content {
    display: none;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}
.archive-sidebar-content.open { display: block; }
@media (min-width: 1024px) {
    .archive-sidebar-content {
        display: block !important;
        position: sticky; top: 200px;
        max-height: calc(100vh - 220px);
        overflow-y: auto;
        margin-top: 0;
    }
}

.filter-block { margin-bottom: 24px; }
.filter-block:last-child { margin-bottom: 0; }
.filter-title {
    font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin: 0 0 12px; color: var(--gray-900);
    padding-bottom: 8px; border-bottom: 2px solid var(--green);
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-item a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; font-size: 14px; color: var(--gray-600);
    transition: color .2s;
}
.filter-item a:hover { color: var(--green); }
.filter-item.active a { color: var(--green); font-weight: 600; }
.filter-count {
    font-size: 12px; color: var(--gray-400);
    background: var(--gray-100); padding: 2px 8px; border-radius: 999px;
}

/* Toolbar (résultats + tri) */
.archive-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
    padding-bottom: 16px; border-bottom: 1px solid var(--gray-200);
}
.archive-results-count {
    margin: 0; font-size: 14px; color: var(--gray-600);
}
.archive-orderby select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

/* Grille */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) { .archive-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1280px) { .archive-grid { grid-template-columns: repeat(4, 1fr); } }

.archive-pagination {
    margin-top: 32px; display: flex; justify-content: center;
}
.woocommerce-pagination ul {
    display: flex; gap: 8px; list-style: none; padding: 0; margin: 0;
}
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px;
    background: white; border: 1px solid var(--gray-200);
    color: var(--gray-900); font-weight: 600; transition: all .2s;
}
.woocommerce-pagination ul li a:hover {
    background: var(--green); color: white; border-color: var(--green);
}
.woocommerce-pagination ul li span.current {
    background: var(--green); color: white; border-color: var(--green);
}

.archive-no-products {
    text-align: center; padding: 64px 16px;
    color: var(--gray-600);
}
.archive-no-products p {
    margin-bottom: 16px; font-size: 16px;
}

/* ==========================================================================
   CART PAGE
   ========================================================================== */
.cart-page { padding: 32px 0; }
.cart-page-title {
    font-size: 24px; font-weight: 700; margin: 0 0 24px;
}
@media (min-width: 768px) { .cart-page-title { font-size: 32px; } }

.cart-page-grid {
    display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 1024px) {
    .cart-page-grid { grid-template-columns: 1fr 380px; gap: 32px; }
}

.cart-items {
    background: white; border: 1px solid var(--gray-200);
    border-radius: 12px; overflow: hidden;
}
.shop_table .product-thumbnail img {
    border-radius: 8px;
}
.shop_table td.product-name {
    font-weight: 600; font-size: 14px;
}
.shop_table td.product-name a {
    color: var(--gray-900);
    text-decoration: none;
}
.shop_table td.product-name a:hover { color: var(--green); }
.shop_table .product-remove .remove {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--gray-100); display: inline-flex;
    align-items: center; justify-content: center;
    color: var(--gray-600); font-size: 18px; line-height: 1;
    transition: all .2s;
}
.shop_table .product-remove .remove:hover {
    background: var(--red); color: white;
}

.shop_table .actions {
    padding: 16px;
    background: var(--gray-100);
    display: flex; gap: 12px; flex-wrap: wrap;
    justify-content: space-between;
}
.shop_table .coupon {
    display: flex; gap: 8px; flex: 1; max-width: 400px;
}
.shop_table .coupon input {
    flex: 1; padding: 10px 12px;
    border: 1px solid var(--gray-200); border-radius: 8px;
    font-size: 14px;
}

/* Cart totals (récapitulatif) */
.cart_totals {
    background: var(--gray-100);
    padding: 24px;
    border-radius: 12px;
    position: sticky; top: 200px;
}
.cart_totals h2 {
    font-size: 18px; font-weight: 700; margin: 0 0 16px;
    text-transform: uppercase;
}
.cart_totals table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.cart_totals th, .cart_totals td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    text-align: left;
}
.cart_totals tr:last-child th, .cart_totals tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
}
.cart_totals .order-total {
    background: rgba(15,211,116,0.05);
}
.cart_totals .order-total .amount {
    color: var(--green-darker);
    font-size: 20px;
}

.cart-reassurance {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    display: flex; flex-direction: column; gap: 8px;
}
.reassurance-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--gray-700);
}

/* Responsive cart table */
@media (max-width: 768px) {
    .shop_table thead { display: none; }
    .shop_table tbody tr {
        display: block; padding: 16px;
        border-bottom: 1px solid var(--gray-100);
    }
    .shop_table tbody td {
        display: flex; justify-content: space-between; align-items: center;
        padding: 8px 0; border-bottom: 1px solid var(--gray-100);
    }
    .shop_table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        color: var(--gray-600);
    }
    .shop_table tbody td.product-thumbnail::before { display: none; }
    .shop_table tbody td:last-child { border-bottom: none; }
    .shop_table .actions {
        flex-direction: column;
    }
    .shop_table .coupon { max-width: 100%; }
}
/* ==========================================================================
 * A Cosmé Z - Templates WooCommerce (Lot 2 ajout)
 * À AJOUTER au fichier assets/css/woocommerce.css existant
 * ========================================================================== */

/* ============================================================
   ARCHIVE PRODUIT (boutique + catégories)
   ============================================================ */
.wc-archive {
    padding: 16px 0 48px;
}

.wc-archive-header {
    margin-bottom: 24px;
}

.wc-archive-description {
    margin-top: 12px;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.6;
    max-width: 720px;
}

/* Sous-catégories */
.wc-subcategories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
@media (min-width: 640px) {
    .wc-subcategories { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .wc-subcategories { grid-template-columns: repeat(6, 1fr); }
}

.wc-subcategory {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none;
    transition: all .2s;
    color: inherit;
}
.wc-subcategory:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15,211,116,0.1);
}
.wc-subcategory-img {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 8px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.wc-subcategory-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wc-subcategory-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--gray-900);
    line-height: 1.3;
    margin-bottom: 4px;
}
.wc-subcategory-count {
    font-size: 12px;
    color: var(--gray-500);
}

/* Toolbar */
.wc-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
}
.wc-result-count {
    font-size: 13px;
    color: var(--gray-600);
}
.wc-ordering select {
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: white;
    font-size: 13px;
    cursor: pointer;
}

/* Pagination */
.wc-pagination {
    margin-top: 32px;
    text-align: center;
}
.wc-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.wc-pagination .page-numbers li {
    display: block;
}
.wc-pagination .page-numbers a,
.wc-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 600;
    transition: all .2s;
}
.wc-pagination .page-numbers a:hover,
.wc-pagination .page-numbers .current {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* Pas de produits */
.wc-no-products {
    margin: 48px 0;
}

/* ============================================================
   PANIER
   ============================================================ */
.wc-cart {
    padding: 16px 0 48px;
}

.cart-page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--gray-900);
}
.cart-page-count {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 400;
    margin-left: 8px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .cart-grid { grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
}

.cart-items-col {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}

/* Tableau panier desktop */
.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-cart-form__contents thead th {
    background: var(--gray-100);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
}
.woocommerce-cart-form__contents tbody td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.woocommerce-cart-form__contents .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.woocommerce-cart-form__contents .product-name a {
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    display: block;
}
.woocommerce-cart-form__contents .product-name a:hover {
    color: var(--green);
}
.cart-product-brand {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 600;
    margin-bottom: 4px;
}

.woocommerce-cart-form__contents .quantity input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.woocommerce-cart-form__contents .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 20px;
    transition: all .2s;
}
.woocommerce-cart-form__contents .product-remove .remove:hover {
    background: var(--red);
    color: white;
}

/* Actions panier (coupon + update) */
.woocommerce-cart-form__contents .actions {
    padding: 16px;
    background: var(--gray-100);
}
.woocommerce-cart-form__contents .coupon {
    display: inline-flex;
    gap: 8px;
    margin-right: 8px;
}
.woocommerce-cart-form__contents .coupon input {
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
}
.woocommerce-cart-form__contents .actions .button {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Continuer mes achats */
.cart-continue-shopping {
    display: inline-block;
    margin: 16px;
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.cart-continue-shopping:hover { text-decoration: underline; }

/* Récap totaux (sticky desktop) */
.cart-collaterals {
    align-self: start;
}
@media (min-width: 1024px) {
    .cart-collaterals { position: sticky; top: 200px; }
}

.cart_totals {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}
.cart_totals h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--gray-900);
}
.cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.cart_totals table th,
.cart_totals table td {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
}
.cart_totals table td {
    text-align: right;
    font-weight: 600;
}
.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    border-bottom: none;
    padding-top: 16px;
    border-top: 2px solid var(--gray-200);
}

/* Bouton commander */
.wc-proceed-to-checkout {
    margin-top: 16px;
}
.wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--green);
    color: white;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s;
    border: none;
    text-transform: uppercase;
}
.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--green-dark);
}

/* Responsive : panier en cartes empilées sur mobile */
@media (max-width: 767px) {
    .woocommerce-cart-form__contents thead {
        display: none;
    }
    .woocommerce-cart-form__contents tbody tr {
        display: grid;
        grid-template-columns: 80px 1fr auto;
        gap: 12px;
        padding: 16px;
        border-bottom: 1px solid var(--gray-100);
    }
    .woocommerce-cart-form__contents tbody td {
        padding: 0;
        border: none;
    }
    .woocommerce-cart-form__contents .product-thumbnail {
        grid-column: 1;
        grid-row: 1 / span 4;
    }
    .woocommerce-cart-form__contents .product-name {
        grid-column: 2;
    }
    .woocommerce-cart-form__contents .product-price,
    .woocommerce-cart-form__contents .product-quantity,
    .woocommerce-cart-form__contents .product-subtotal {
        grid-column: 2;
        font-size: 13px;
    }
    .woocommerce-cart-form__contents .product-price::before,
    .woocommerce-cart-form__contents .product-quantity::before,
    .woocommerce-cart-form__contents .product-subtotal::before {
        content: attr(data-title) ' : ';
        font-weight: 600;
        color: var(--gray-500);
    }
    .woocommerce-cart-form__contents .product-remove {
        grid-column: 3;
        grid-row: 1;
    }
    .woocommerce-cart-form__contents .actions {
        display: block;
    }
    .woocommerce-cart-form__contents .coupon {
        display: flex;
        margin-bottom: 12px;
        margin-right: 0;
    }
    .woocommerce-cart-form__contents .coupon input {
        flex: 1;
    }
}

/* ============================================================
   QUANTITY INPUT WC (utilisé sur cart, single product, etc.)
   ============================================================ */
.woocommerce .quantity {
    display: inline-flex;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}
.woocommerce .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.woocommerce .quantity input[type="number"] {
    -moz-appearance: textfield;
}

/* Encart Paiement à la livraison sur le panier */
.cart-cod-notice {
    margin: 16px 0;
}

/* ============================================================
   PRODUCT ARCHIVE - Single product selectors
   ============================================================ */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Override Woo default float layout */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Forcer notre grille */
.grid-products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}
@media (min-width: 768px) {
    .grid-products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}
@media (min-width: 1024px) {
    .grid-products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
/* ==========================================================================
 * A Cosmé Z - Lot 3 CSS
 * Checkout custom, page Merci, Mon Compte
 * À AJOUTER au fichier assets/css/woocommerce.css existant
 * ========================================================================== */

/* ============================================================
   CHECKOUT - Layout 2 colonnes
   ============================================================ */
.wc-checkout {
    padding: 16px 0 64px;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}
@media (min-width: 768px) { .checkout-title { font-size: 28px; } }

.checkout-back {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 600;
}
.checkout-back:hover { color: var(--green); }

/* Indicateurs étapes */
.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 32px;
    overflow-x: auto;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: var(--gray-400);
    font-weight: 600;
    font-size: 13px;
}
.checkout-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.checkout-step.done .checkout-step-num {
    background: var(--green);
    color: white;
}
.checkout-step.done .checkout-step-num::before {
    content: '✓';
}
.checkout-step.done .checkout-step-num span { display: none; }
.checkout-step.active .checkout-step-num {
    background: var(--green);
    color: white;
}
.checkout-step.active .checkout-step-label {
    color: var(--gray-900);
}
.checkout-step:not(:last-child)::after {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--gray-200);
}
.checkout-step.done:not(:last-child)::after { background: var(--green); }
@media (max-width: 600px) {
    .checkout-step-label { display: none; }
}

/* Grid checkout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr 400px;
        gap: 32px;
        align-items: start;
    }
}

/* Sections */
.checkout-section-block {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
@media (min-width: 768px) { .checkout-section-block { padding: 28px; } }

.checkout-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--gray-900);
}
.checkout-section-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.checkout-section-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0 0 20px;
}
.checkout-section-title .optional {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray-400);
    text-transform: lowercase;
    margin-left: 6px;
}

/* Champs formulaire WC override */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr 1fr;
    }
    .form-row-wide,
    .form-row.notes {
        grid-column: 1 / -1;
    }
}

.woocommerce-checkout .form-row {
    margin: 0;
    padding: 0;
}
.woocommerce-checkout .form-row label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}
.woocommerce-checkout .form-row label .required,
.woocommerce-checkout .form-row label .optional {
    margin-left: 2px;
}
.woocommerce-checkout .form-row .required {
    color: var(--red);
    text-decoration: none;
}
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100% !important;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all .2s;
    font-family: inherit;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15,211,116,0.1);
}
.woocommerce-checkout .form-row textarea {
    min-height: 80px;
    resize: vertical;
}

.woocommerce-checkout .form-row.woocommerce-validated input.input-text,
.woocommerce-checkout .form-row.woocommerce-validated select {
    border-color: var(--green);
}
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select {
    border-color: var(--red);
}

/* Mode de livraison custom (radio cards) */
.shipping-mode-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.shipping-mode-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all .2s;
    background: white;
    position: relative;
}
.shipping-mode-option:hover {
    border-color: var(--green);
    background: rgba(15,211,116,0.02);
}
.shipping-mode-option.active,
.shipping-mode-option:has(input:checked) {
    border-color: var(--green);
    background: rgba(15,211,116,0.05);
}
.shipping-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.shipping-mode-option-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.shipping-mode-option.active .shipping-mode-option-icon,
.shipping-mode-option:has(input:checked) .shipping-mode-option-icon {
    background: var(--green);
}
.shipping-mode-option-text {
    flex: 1;
}
.shipping-mode-option-text strong {
    display: block;
    color: var(--gray-900);
    font-size: 15px;
    margin-bottom: 2px;
}
.shipping-mode-option-text span {
    font-size: 13px;
    color: var(--gray-500);
}
.shipping-mode-option-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: all .2s;
    flex-shrink: 0;
}
.shipping-mode-option.active .shipping-mode-option-check,
.shipping-mode-option:has(input:checked) .shipping-mode-option-check {
    background: var(--green);
    border-color: var(--green);
}
.shipping-mode-option:not(.active):not(:has(input:checked)) .shipping-mode-option-check {
    color: transparent;
}

/* Récap commande à droite (sticky) */
.checkout-summary-col {
    position: relative;
}
.checkout-summary-sticky {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
}
@media (min-width: 1024px) {
    .checkout-summary-sticky {
        position: sticky;
        top: 200px;
    }
}

#order_review_heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--gray-900);
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

/* Lignes produits */
.checkout-review-products tr {
    border-bottom: 1px solid var(--gray-100);
}
.checkout-review-products td {
    padding: 12px 4px;
    vertical-align: middle;
}

.product-thumbnail-mini {
    position: relative;
    width: 56px;
}
.product-thumbnail-mini img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}
.product-quantity-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--gray-900);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.checkout-review-products .product-name {
    padding-left: 12px;
    font-size: 13px;
    color: var(--gray-900);
}
.checkout-product-brand {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--gray-500);
    font-weight: 700;
    margin-bottom: 2px;
}
.checkout-review-products .product-name strong {
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.checkout-review-products .product-total {
    font-weight: 600;
    color: var(--gray-900);
    text-align: right;
    white-space: nowrap;
}

/* Tfoot - totaux */
.woocommerce-checkout-review-order-table tfoot th {
    padding: 10px 4px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    border-top: 1px solid var(--gray-100);
}
.woocommerce-checkout-review-order-table tfoot td {
    padding: 10px 4px;
    text-align: right;
    font-weight: 600;
    color: var(--gray-900);
    border-top: 1px solid var(--gray-100);
}
.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    font-size: 18px;
    font-weight: 700;
    padding-top: 14px;
    border-top: 2px solid var(--gray-200);
}

/* Encart paiement à la livraison */
.checkout-cod-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15,211,116,0.08);
    border: 1px solid rgba(15,211,116,0.2);
    padding: 14px 16px;
    border-radius: 10px;
    margin: 16px 0;
}
.cod-info-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.cod-info-text strong {
    display: block;
    color: var(--green-darker);
    font-size: 14px;
    margin-bottom: 2px;
}
.cod-info-text p {
    margin: 0;
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Méthodes de paiement */
.woocommerce-checkout-payment {
    background: transparent;
    padding: 0;
    border: none;
}
.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.wc_payment_methods li {
    padding: 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
}
.wc_payment_methods li label {
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-900);
}
.wc_payment_methods li img {
    display: none;
}

/* Bouton "Confirmer ma commande" */
#place_order {
    width: 100%;
    background: var(--green);
    color: white;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .2s;
    min-height: 56px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
#place_order:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15,211,116,0.2);
}
#place_order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Trust badges sous le bouton */
.checkout-trust-badges {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray-600);
    font-weight: 500;
}
.trust-badge span:first-child {
    font-size: 14px;
}

/* ============================================================
   PAGE MERCI
   ============================================================ */
.wc-thankyou {
    padding: 32px 0 64px;
}

.thankyou-success-header {
    text-align: center;
    padding: 32px 16px;
    background: linear-gradient(135deg, rgba(15,211,116,0.05) 0%, rgba(15,211,116,0.1) 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.thankyou-icon-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.thankyou-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--gray-900);
}
@media (min-width: 768px) { .thankyou-title { font-size: 32px; } }

.thankyou-subtitle {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
}

/* Récap overview */
.thankyou-overview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .thankyou-overview {
        grid-template-columns: repeat(5, 1fr);
        padding: 24px;
    }
}

.thankyou-overview-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.thankyou-overview-item .label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.thankyou-overview-item strong {
    font-size: 14px;
    color: var(--gray-900);
}
.thankyou-overview-item strong.total {
    color: var(--green-darker);
    font-size: 16px;
}

/* Étapes suivantes */
.thankyou-next-steps {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.thankyou-next-steps h2 {
    font-size: 20px;
    margin: 0 0 20px;
    text-align: center;
}

.thankyou-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .thankyou-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.thankyou-step {
    background: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}
.thankyou-step-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.thankyou-step h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--gray-900);
}
.thankyou-step p {
    margin: 0;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* CTA WhatsApp */
.thankyou-whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}
.thankyou-whatsapp-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}
.thankyou-whatsapp-text p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}
.thankyou-whatsapp-btn {
    background: white;
    color: #25d366;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s;
    flex-shrink: 0;
}
.thankyou-whatsapp-btn:hover {
    transform: scale(1.05);
}

/* Détails commande */
.thankyou-order-details {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.thankyou-order-details h2,
.thankyou-address h2 {
    font-size: 18px;
    margin: 0 0 16px;
    color: var(--gray-900);
}

.thankyou-table {
    width: 100%;
    border-collapse: collapse;
}
.thankyou-table th {
    background: var(--gray-100);
    padding: 12px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
}
.thankyou-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.thankyou-table tfoot th,
.thankyou-table tfoot td {
    padding: 10px 12px;
    background: transparent;
    border-bottom: none;
    font-size: 13px;
}
.thankyou-table tfoot tr:last-child th,
.thankyou-table tfoot tr:last-child td {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    border-top: 2px solid var(--gray-200);
    padding-top: 14px;
}

/* Adresse */
.thankyou-address {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.thankyou-address-block {
    background: var(--gray-100);
    padding: 16px 20px;
    border-radius: 8px;
}
.thankyou-address-block p {
    margin: 0;
    line-height: 1.6;
}

/* Actions thankyou */
.thankyou-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 32px 0;
}

/* Failed order */
.thankyou-failed {
    text-align: center;
    padding: 64px 16px;
}
.thankyou-failed h1 {
    color: var(--red);
    font-size: 28px;
    margin: 16px 0 12px;
}
.thankyou-failed p {
    color: var(--gray-600);
    margin-bottom: 24px;
}
.woocommerce-thankyou-order-failed-actions {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   MY ACCOUNT
   ============================================================ */

/* Page connexion (login + register côte à côte) */
.myaccount-login-page {
    padding: 32px 0;
}

.myaccount-login-container {
    max-width: 1024px;
    margin: 0 auto;
}

.myaccount-login-header {
    text-align: center;
    margin-bottom: 32px;
}
.myaccount-login-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}
.myaccount-login-header p {
    color: var(--gray-600);
    margin: 0;
}

.myaccount-login-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .myaccount-login-grid.has-register {
        grid-template-columns: 1fr 1fr;
    }
    .myaccount-login-grid.login-only {
        max-width: 480px;
        margin: 0 auto;
    }
}

.myaccount-login-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}
@media (min-width: 768px) { .myaccount-login-box { padding: 32px; } }

.myaccount-login-box h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: var(--gray-900);
}

.woocommerce-form-login,
.woocommerce-form-register {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.woocommerce-form-login label,
.woocommerce-form-register label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}
.woocommerce-form-login input.input-text,
.woocommerce-form-register input.input-text,
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    background: white;
}
.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15,211,116,0.1);
}

.lost_password a {
    color: var(--gray-500);
    font-size: 13px;
    text-decoration: underline;
}
.lost_password a:hover { color: var(--green); }

/* Dashboard Mon Compte */
.myaccount-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(15,211,116,0.05) 0%, rgba(15,211,116,0.1) 100%);
    padding: 24px;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 16px;
}
.dashboard-welcome-text h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--gray-900);
}
.dashboard-welcome-text p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}
.dashboard-logout-link {
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
}
.dashboard-logout-link:hover { color: var(--red); }

/* Stats cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.dashboard-stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.dashboard-stat-icon {
    font-size: 36px;
    flex-shrink: 0;
}
.dashboard-stat-content {
    display: flex;
    flex-direction: column;
}
.dashboard-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}
.dashboard-stat-num a { color: var(--green); }
.dashboard-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Section dashboard */
.dashboard-section {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}
.dashboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.dashboard-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}
.dashboard-section-header a {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

/* Last order */
.dashboard-last-order {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--gray-100);
    border-radius: 8px;
}
@media (min-width: 768px) {
    .dashboard-last-order {
        grid-template-columns: auto 1fr auto auto;
    }
}

.last-order-info {
    display: flex;
    flex-direction: column;
}
.last-order-number {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 15px;
}
.last-order-date {
    font-size: 12px;
    color: var(--gray-500);
}

.order-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--gray-200);
    color: var(--gray-600);
}
.order-status-badge.status-processing { background: rgba(59,130,246,0.15); color: #1e40af; }
.order-status-badge.status-completed { background: rgba(15,211,116,0.15); color: var(--green-darker); }
.order-status-badge.status-on-hold { background: rgba(251,191,36,0.15); color: #92400e; }
.order-status-badge.status-cancelled,
.order-status-badge.status-failed { background: rgba(220,38,38,0.15); color: #991b1b; }

.last-order-total {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 16px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

/* Shortcuts */
.dashboard-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 768px) {
    .dashboard-shortcuts {
        grid-template-columns: repeat(4, 1fr);
    }
}

.dashboard-shortcut {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    transition: all .2s;
}
.dashboard-shortcut:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}
.dashboard-shortcut-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.dashboard-shortcut strong {
    display: block;
    color: var(--gray-900);
    font-size: 14px;
    margin-bottom: 2px;
}
.dashboard-shortcut span {
    font-size: 12px;
    color: var(--gray-500);
}

/* Navigation My Account (sidebar) */
.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 1024px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 260px 1fr;
    }
}

.woocommerce-MyAccount-navigation {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--gray-100);
}
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--gray-900);
    text-decoration: none;
    transition: all .2s;
    font-weight: 500;
    font-size: 14px;
}
.myaccount-nav-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--green);
    color: white;
}

.woocommerce-MyAccount-content {
    background: transparent;
}

/* Tableau commandes */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
}
.woocommerce-orders-table thead th {
    background: var(--gray-100);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-600);
}
.woocommerce-orders-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}
.woocommerce-orders-table tr:last-child td { border-bottom: none; }

.woocommerce-orders-table .button {
    background: var(--green);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}
.woocommerce-orders-table .button:hover {
    background: var(--green-dark);
}

/* Adresses my account */
.woocommerce-Address {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.woocommerce-Address header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
}
.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--gray-900);
}
.woocommerce-Address .edit {
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
}

.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr 1fr;
    }
}

/* Edit account form */
.woocommerce-EditAccountForm {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}
.woocommerce-EditAccountForm fieldset {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}
.woocommerce-EditAccountForm legend {
    font-weight: 700;
    font-size: 14px;
    padding: 0 8px;
}

/* Order details (single order page) */
.woocommerce-order-details {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}
.woocommerce-order-details h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--gray-900);
}

/* Notices WC */
.woocommerce-notices-wrapper {
    margin-bottom: 16px;
}
