/* =====================================================
   SHOPNFOOD — Espace Client
   ===================================================== */

/* --- Neutralise les interférences Astra Pro "Modern Account" --- */
.woocommerce-account .entry-header,
.woocommerce-account .ast-above-header-wrap,
.woocommerce-account .ast-breadcrumbs-wrapper {
    display: none !important;
}

/* Astra Pro layout override : désactive le grid natif Astra sur account */
.ast-modern-woo-account-page .ast-woocommerce-account-layout {
    display: block !important;
}

/* Reset des éléments Astra Pro injectés dans la sidebar */
.shopnfood-account-sidebar-col .ast-wooaccount-user-wrapper,
.shopnfood-account-sidebar-col .ast-woo-account-avatar-section {
    display: none !important;
}

/*
 * Astra Pro injecte sur toutes les pages compte :
 *   .woocommerce-account .woocommerce-MyAccount-navigation { width: 22%; border-right: 1px solid ... }
 *   .woocommerce-account .woocommerce-MyAccount-content { width: 75%; float: ... }
 *   .woocommerce-MyAccount-navigation ul { background: var(--ast-global-color-primary); ... }
 *   .woocommerce-MyAccount-navigation ul li a { display: inline-flex; padding: 1em; color: var(...) }
 *
 * Notre <nav> porte la classe woocommerce-MyAccount-navigation (line 73 de navigation.php).
 * On neutralise chacune de ces règles dans notre contexte.
 */

/* 1. Corrige la largeur 22% imposée à la nav et le float 75% du contenu */
.shopnfood-account-sidebar-col .woocommerce-MyAccount-navigation {
    width: 100% !important;
    border-right: none !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.shopnfood-account-main .woocommerce-MyAccount-content {
    width: auto !important;
    float: none !important;
    min-width: 0;
}

/* 2. Corrige le background de couleur primaire Astra sur le <ul> de nav */
.shopnfood-account-sidebar-col .woocommerce-MyAccount-navigation ul {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/*
 * 3. Astra : .woocommerce-MyAccount-navigation ul li a → spécificité (0,1,3)
 *    Notre :  .shopnfood-sidebar-nav a                  → spécificité (0,1,1)
 *    On monte la spécificité à (0,2,1) pour l'emporter sans !important sur display/padding/color.
 */
.shopnfood-account-sidebar-col .shopnfood-sidebar-nav a {
    display: flex !important;
    align-items: center;
    gap: 11px;
    padding: 10px 13px !important;
    border-radius: 11px;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s;
    position: relative;
    outline: none;
    width: 100% !important;
    box-sizing: border-box;
}

.shopnfood-account-sidebar-col .shopnfood-sidebar-nav a:hover {
    background: #f4f7fb !important;
    color: #1a2642 !important;
    text-decoration: none !important;
}

.shopnfood-account-sidebar-col .shopnfood-sidebar-nav li.is-active > a,
.shopnfood-account-sidebar-col .shopnfood-sidebar-nav li.woocommerce-MyAccount-navigation-link--is-active > a {
    background: #EEF6FE !important;
    color: #0072BC !important;
    font-weight: 600 !important;
}

.shopnfood-account {
    background: #f4f7fb;
    min-height: 60vh;
    padding: 36px 0 72px;
}

.shopnfood-account-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Breadcrumb */
.shopnfood-account-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 24px;
}

.shopnfood-account-breadcrumb a {
    color: #0072BC;
    text-decoration: none;
    transition: opacity 0.15s;
}

.shopnfood-account-breadcrumb a:hover {
    opacity: 0.75;
    text-decoration: none;
}

.shopnfood-account-breadcrumb svg {
    width: 13px;
    height: 13px;
    color: #d1d5db;
    flex-shrink: 0;
}

.shopnfood-account-breadcrumb .snf-bc-current {
    color: #374151;
    font-weight: 500;
}

/* Page header */
.shopnfood-account-page-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #1a2642;
    margin: 0 0 6px;
    line-height: 1.2;
}

.shopnfood-account-page-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Layout */
.shopnfood-account-layout {
    display: grid;
    grid-template-columns: 0.4fr 1fr;
    gap: 28px;
    align-items: start;
}

/* === CARD BASE === */
.shopnfood-account-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e4e9f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

/* === SIDEBAR === */
.shopnfood-account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 24px;
    overflow: hidden;
}

.shopnfood-sidebar-user {
    padding: 28px 20px 22px;
    border-bottom: 1px solid #f0f3f8;
    text-align: center;
}

.shopnfood-sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0072BC 0%, #48B8E8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    font-family: 'Poppins', sans-serif;
}

.shopnfood-sidebar-hello {
    font-size: 0.76rem;
    color: #9ca3af;
    margin-bottom: 2px;
    margin-top: 0;
}

.shopnfood-sidebar-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1a2642;
    margin-bottom: 10px;
    margin-top: 0;
}

.shopnfood-sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #EEF6FE;
    color: #0072BC;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    border: 1px solid #cce4f7;
    line-height: 1.2;
}

.shopnfood-sidebar-badge svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    stroke-width: 2.5;
}

/* Sidebar nav */
.shopnfood-sidebar-nav {
    padding: 12px 12px 4px;
    border-bottom: 1px solid #f0f3f8;
}

.shopnfood-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.shopnfood-sidebar-nav li {
    margin: 0;
    padding: 0;
}

.shopnfood-sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none !important;
    transition: background 0.12s, color 0.12s;
    position: relative;
    outline: none;
}

.shopnfood-sidebar-nav a:hover {
    background: #f4f7fb;
    color: #1a2642;
    text-decoration: none !important;
}

.shopnfood-sidebar-nav a svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke-width: 1.8;
    color: #9ca3af;
    transition: color 0.12s;
}

/* Active nav item */
.shopnfood-sidebar-nav li.is-active > a,
.shopnfood-sidebar-nav li.woocommerce-MyAccount-navigation-link--is-active > a {
    background: #EEF6FE;
    color: #0072BC;
    font-weight: 600;
}

.shopnfood-sidebar-nav li.is-active > a svg,
.shopnfood-sidebar-nav li.woocommerce-MyAccount-navigation-link--is-active > a svg {
    color: #0072BC;
}

.shopnfood-sidebar-nav li.is-active > a::after,
.shopnfood-sidebar-nav li.woocommerce-MyAccount-navigation-link--is-active > a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: #0072BC;
    border-radius: 3px 0 0 3px;
}

/* Logout special style */
.shopnfood-sidebar-nav li.woocommerce-MyAccount-navigation-link--customer-logout > a {
    color: #ef4444;
    margin-top: 4px;
}

.shopnfood-sidebar-nav li.woocommerce-MyAccount-navigation-link--customer-logout > a svg {
    color: #ef4444;
}

.shopnfood-sidebar-nav li.woocommerce-MyAccount-navigation-link--customer-logout > a:hover {
    background: #fef2f2;
}

/* Help block */
.shopnfood-sidebar-help {
    margin: 16px 12px 16px;
    background: #f4f7fb;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
}

.shopnfood-sidebar-help-icon {
    width: 36px;
    height: 36px;
    background: #e0f0fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.shopnfood-sidebar-help-icon svg {
    width: 18px;
    height: 18px;
    color: #0072BC;
    stroke-width: 1.8;
}

.shopnfood-sidebar-help-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a2642;
    margin: 0 0 4px;
}

.shopnfood-sidebar-help-text {
    font-size: 0.74rem;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.4;
}

.shopnfood-sidebar-help-btn {
    display: inline-block;
    background: #0072BC;
    color: #fff !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.15s;
}

.shopnfood-sidebar-help-btn:hover {
    background: #005fa0;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

/* === MAIN CONTENT === */
.shopnfood-account-main {
    min-width: 0;
}

.shopnfood-account-main .woocommerce-MyAccount-content {
    min-width: 0;
}

/* === SHARED BUTTONS === */
.shopnfood-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.shopnfood-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
    flex-shrink: 0;
}

.shopnfood-btn--primary {
    background: #0072BC;
    color: #fff !important;
    border-color: #0072BC;
}

.shopnfood-btn--primary:hover {
    background: #005fa0;
    border-color: #005fa0;
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.shopnfood-btn--secondary {
    background: #fff;
    color: #0072BC !important;
    border-color: #0072BC;
}

.shopnfood-btn--secondary:hover {
    background: #EEF6FE;
    color: #005fa0 !important;
    border-color: #005fa0;
    text-decoration: none !important;
}

.shopnfood-btn--ghost {
    background: transparent;
    color: #374151 !important;
    border-color: #e4e9f0;
}

.shopnfood-btn--ghost:hover {
    background: #f4f7fb;
    color: #1a2642 !important;
    text-decoration: none !important;
}

/* === STATUS BADGES === */
.shopnfood-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.77rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.shopnfood-status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.shopnfood-status-badge--processing {
    background: #d1fae5;
    color: #065f46;
}
.shopnfood-status-badge--processing::before { background: #10b981; }

.shopnfood-status-badge--on-hold {
    background: #f3f4f6;
    color: #374151;
}
.shopnfood-status-badge--on-hold::before { background: #9ca3af; }

.shopnfood-status-badge--completed {
    background: #d1fae5;
    color: #065f46;
}
.shopnfood-status-badge--completed::before { background: #10b981; }

.shopnfood-status-badge--pending {
    background: #f3f4f6;
    color: #374151;
}
.shopnfood-status-badge--pending::before { background: #9ca3af; }

.shopnfood-status-badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}
.shopnfood-status-badge--cancelled::before { background: #ef4444; }

.shopnfood-status-badge--failed {
    background: #fee2e2;
    color: #991b1b;
}
.shopnfood-status-badge--failed::before { background: #ef4444; }

.shopnfood-status-badge--refunded {
    background: #ecfdf5;
    color: #166534;
}
.shopnfood-status-badge--refunded::before { background: #22c55e; }

/* === DASHBOARD === */
.shopnfood-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.shopnfood-dashboard-card-inner {
    padding: 26px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.shopnfood-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.shopnfood-card-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.shopnfood-card-icon--blue   { background: #EEF6FE; color: #0072BC; }
.shopnfood-card-icon--green  { background: #ecfdf5; color: #059669; }
.shopnfood-card-icon--orange { background: #fff7ed; color: #ea580c; }
.shopnfood-card-icon--purple { background: #f5f3ff; color: #7c3aed; }
.shopnfood-card-icon--pink   { background: #fdf2f8; color: #db2777; }
.shopnfood-card-icon--gray   { background: #f9fafb; color: #6b7280; }

.shopnfood-card-title {
    font-size: 0.73rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 5px;
}

.shopnfood-card-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2642;
    margin: 0 0 6px;
    line-height: 1.3;
}

.shopnfood-card-value--small {
    font-size: 0.95rem;
}

.shopnfood-card-meta {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.55;
    flex: 1;
}

.shopnfood-card-meta--address {
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.6;
}

.shopnfood-card-empty {
    font-size: 0.84rem;
    color: #9ca3af;
    margin: 0 0 16px;
    flex: 1;
}

.shopnfood-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

/* === QUICK ACCESS === */
.shopnfood-quick-access {
    margin-bottom: 8px;
}

.shopnfood-quick-access-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2642;
    margin: 0 0 16px;
}

.shopnfood-quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.shopnfood-quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px 18px;
    text-decoration: none !important;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e4e9f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.shopnfood-quick-access-item:hover {
    border-color: #0072BC;
    box-shadow: 0 4px 18px rgba(0, 114, 188, 0.12);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.shopnfood-quick-access-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: #EEF6FE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.shopnfood-quick-access-item:hover .shopnfood-quick-access-icon {
    background: #0072BC;
}

.shopnfood-quick-access-icon svg {
    width: 22px;
    height: 22px;
    color: #0072BC;
    stroke-width: 1.8;
    transition: color 0.15s;
}

.shopnfood-quick-access-item:hover .shopnfood-quick-access-icon svg {
    color: #fff;
}

.shopnfood-quick-access-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a2642;
    margin-bottom: 3px;
    display: block;
}

.shopnfood-quick-access-desc {
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.4;
    display: block;
}

/* === ORDERS PAGE === */
.shopnfood-orders-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.shopnfood-orders-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 999px;
    padding: 9px 18px 9px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    font-family: 'Poppins', sans-serif;
}

.shopnfood-orders-filter svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.8;
    color: #9ca3af;
}

.shopnfood-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Order card */
.shopnfood-order-card {
    overflow: visible;
}

.shopnfood-order-card-top {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
}

.shopnfood-order-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0f3f8;
    background: #f9fafb;
}

.shopnfood-order-img-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f0f3f8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shopnfood-order-img-placeholder svg {
    width: 26px;
    height: 26px;
    color: #d1d5db;
    stroke-width: 1.5;
}

.shopnfood-order-header-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.shopnfood-order-number {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a2642;
    margin: 0 0 4px;
    line-height: 1.2;
}

.shopnfood-order-date {
    font-size: 0.79rem;
    color: #9ca3af;
    margin: 0;
}

.shopnfood-order-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    align-items: stretch;
}

.shopnfood-order-divider {
    height: 1px;
    background: #f0f3f8;
    margin: 0 28px;
}

.shopnfood-order-card-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 28px;
}

.shopnfood-order-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 16px;
    border-right: 1px solid #f0f3f8;
}

.shopnfood-order-stat:first-child {
    padding-left: 0;
}

.shopnfood-order-stat:last-child {
    border-right: none;
}

.shopnfood-order-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.shopnfood-order-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2642;
    line-height: 1.3;
}

/* Pagination */
.shopnfood-orders-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
}

/* Empty state */
.shopnfood-orders-empty {
    text-align: center;
    padding: 72px 32px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e4e9f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.shopnfood-orders-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #EEF6FE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.shopnfood-orders-empty-icon svg {
    width: 32px;
    height: 32px;
    color: #0072BC;
    stroke-width: 1.5;
}

.shopnfood-orders-empty-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a2642;
    margin: 0 0 10px;
}

.shopnfood-orders-empty-text {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 26px;
}

/* Help card horizontal */
.shopnfood-help-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 28px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e4e9f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.shopnfood-help-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    background: #EEF6FE;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shopnfood-help-card-icon svg {
    width: 24px;
    height: 24px;
    color: #0072BC;
    stroke-width: 1.8;
}

.shopnfood-help-card-content {
    flex: 1;
    min-width: 0;
}

.shopnfood-help-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a2642;
    margin: 0 0 3px;
}

.shopnfood-help-card-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

/* === FORM PAGES (addresses, account edit, payment methods) === */

.shopnfood-account .woocommerce-MyAccount-content .woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

.shopnfood-account .woocommerce-MyAccount-content > h2,
.shopnfood-account .woocommerce-MyAccount-content > h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2642;
    margin: 0 0 20px;
}

/* Generic form wrapper card */
.shopnfood-account .woocommerce-MyAccount-content .edit-account,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-address-fields,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-MyAccount-paymentMethods,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-MyAccount-downloads,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-order-details,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-customer-details {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e4e9f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    padding: 32px;
    margin-bottom: 20px;
}

/* Addresses two-column layout */
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 0;
}

/* Neutralise les float/width qu'Astra applique via .woocommerce .col2-set .col-1/.col-2 */
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2 {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
}

.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Address {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e4e9f0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    padding: 28px;
}

.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* WooCommerce génère un <h2>, non un <h3> */
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Address-title h2,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #1a2642 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Address-title a {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0072BC;
    text-decoration: none;
}

.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Address-title a:hover {
    text-decoration: underline;
}

/* Tables (view order, downloads) */
.shopnfood-account .woocommerce-MyAccount-content table.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.shopnfood-account .woocommerce-MyAccount-content table.woocommerce-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 10px 12px;
    border-bottom: 2px solid #f0f3f8;
}

.shopnfood-account .woocommerce-MyAccount-content table.woocommerce-table td {
    padding: 13px 12px;
    color: #374151;
    border-bottom: 1px solid #f0f3f8;
    vertical-align: middle;
}

.shopnfood-account .woocommerce-MyAccount-content table.woocommerce-table tr:last-child td {
    border-bottom: none;
}

/* WC Buttons inside account pages */
.shopnfood-account .woocommerce-MyAccount-content .button:not(.shopnfood-btn),
.shopnfood-account .woocommerce-MyAccount-content button[type="submit"]:not(.shopnfood-btn),
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Button:not(.shopnfood-btn) {
    background: #0072BC !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 11px 28px !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    font-family: 'Poppins', sans-serif !important;
    transition: background 0.15s !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.shopnfood-account .woocommerce-MyAccount-content .button:not(.shopnfood-btn):hover,
.shopnfood-account .woocommerce-MyAccount-content button[type="submit"]:not(.shopnfood-btn):hover,
.shopnfood-account .woocommerce-MyAccount-content .woocommerce-Button:not(.shopnfood-btn):hover {
    background: #005fa0 !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* WC Notices */
.shopnfood-account .woocommerce-message,
.shopnfood-account .woocommerce-error,
.shopnfood-account .woocommerce-info {
    border-radius: 14px !important;
    border-left-width: 4px !important;
    margin-bottom: 20px !important;
    font-size: 0.88rem !important;
}

/* Form inputs inside account */
.shopnfood-account .woocommerce-MyAccount-content input[type="text"],
.shopnfood-account .woocommerce-MyAccount-content input[type="email"],
.shopnfood-account .woocommerce-MyAccount-content input[type="password"],
.shopnfood-account .woocommerce-MyAccount-content input[type="tel"],
.shopnfood-account .woocommerce-MyAccount-content select,
.shopnfood-account .woocommerce-MyAccount-content textarea {
    border-radius: 10px !important;
    border-color: #e4e9f0 !important;
    padding: 11px 14px !important;
    font-size: 0.88rem !important;
    font-family: 'Poppins', sans-serif !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}

.shopnfood-account .woocommerce-MyAccount-content input[type="text"]:focus,
.shopnfood-account .woocommerce-MyAccount-content input[type="email"]:focus,
.shopnfood-account .woocommerce-MyAccount-content input[type="password"]:focus,
.shopnfood-account .woocommerce-MyAccount-content select:focus,
.shopnfood-account .woocommerce-MyAccount-content textarea:focus {
    border-color: #0072BC !important;
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.12) !important;
    outline: none !important;
}

/* === RESPONSIVE — Tablet === */
@media (max-width: 1024px) {
    .shopnfood-account-layout {
        grid-template-columns: 244px 1fr;
        gap: 20px;
    }

    .shopnfood-quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shopnfood-account-container {
        padding: 0 20px;
    }
}

/* === RESPONSIVE — Mobile === */
@media (max-width: 768px) {
    .shopnfood-account {
        padding: 20px 0 48px;
    }

    .shopnfood-account-container {
        padding: 0 16px;
    }

    .shopnfood-account-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shopnfood-account-sidebar {
        position: static;
    }

    .shopnfood-account-page-title {
        font-size: 1.5rem;
    }

    .shopnfood-account-page-subtitle {
        font-size: 0.86rem;
    }

    .shopnfood-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .shopnfood-quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .shopnfood-order-card-top {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .shopnfood-order-header-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .shopnfood-order-header-actions .shopnfood-btn {
        flex: 1;
        justify-content: center;
    }

    .shopnfood-order-card-bottom {
        grid-template-columns: repeat(2, 1fr);
        padding: 16px 20px;
        gap: 14px;
    }

    .shopnfood-order-stat {
        padding: 0;
        border-right: none;
    }

    .shopnfood-order-divider {
        margin: 0 20px;
    }

    .shopnfood-help-card {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        gap: 14px;
    }

    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-1,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-Addresses .col-2 {
        float: none !important;
        width: auto !important;
    }

    .shopnfood-account .woocommerce-MyAccount-content .edit-account,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-address-fields,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-MyAccount-paymentMethods,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-MyAccount-downloads,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-order-details,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-customer-details,
    .shopnfood-account .woocommerce-MyAccount-content .woocommerce-Address {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .shopnfood-account-breadcrumb {
        display: none;
    }

    .shopnfood-quick-access-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shopnfood-order-card-bottom {
        grid-template-columns: 1fr 1fr;
    }
}
