/************* ADMIN DASHBOARD *************/

.admin-dashboard {
    width: 90%;
    max-width: 1180px;
    margin: 0px auto 90px;
    z-index: 5;
}

.dashboard-hero {
    text-align: center;
    margin-bottom: 42px;
}

.dashboard-hero p {
    color: #8A6A5E;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .85rem;
    margin-bottom: 10px;
}

.dashboard-hero h1 {
    color: #B56E5A;
    font-size: clamp(2rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: .06em;
    line-height: 1.2;
}

.dashboard-hero span {
    display: inline-block;
    margin-top: 12px;
    color: #5F5651;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 35px;
}

.dashboard-card {
    background: #FFFDF9;
    border: 1px solid rgba(181,110,90,.16);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 14px 38px rgba(47,47,47,.07);
}

.dashboard-label {
    display: block;
    color: #8A6A5E;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .10em;
    margin-bottom: 14px;
}

.dashboard-card strong {
    display: block;
    color: #B56E5A;
    font-size: 2rem;
    margin-bottom: 8px;
}

.dashboard-card p {
    color: #5F5651;
    margin-bottom: 18px;
}

.dashboard-card a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #B56E5A;
    color: #fff;
    text-decoration: none;
    font-size: .95rem;
}

.dashboard-card a:hover {
    background: #9F5F4F;
}

.dashboard-alert strong {
    color: #9F5F4F;
}

.dashboard-revenue strong {
    font-size: 1.6rem;
}

.dashboard-panel {
    background: #FFFDF9;
    border: 1px solid rgba(181,110,90,.16);
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 14px 38px rgba(47,47,47,.07);
}

.dashboard-panel h2 {
    color: #B56E5A;
    font-size: 1.45rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.status-grid div {
    background: #F8F5F1;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(181,110,90,.10);
}

.status-grid span {
    display: block;
    color: #5F5651;
    font-size: .9rem;
    margin-bottom: 8px;
}

.status-grid strong {
    color: #B56E5A;
    font-size: 1.5rem;
}

.admin-products {
    width: 90%;
    max-width: 1180px;
    margin: 50px auto 90px;
    z-index: 5;
}

.category-root{

    display:flex;

    align-items:center;

    gap:12px;

    font-size:1.15rem;

    font-weight:700;

    color:#3F3835;

}

.category-child{

    display:flex;

    align-items:center;

    padding-left:45px;

    color:#6D625A;

    font-size:1rem;

}

.category-count-product{
    font-size: 0.9rem;
    font-style: italic;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.admin-page-header p {
    color: #8A6A5E;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .85rem;
}

.admin-page-header h1 {
    color: #B56E5A;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}

.admin-primary-button,
.admin-actions a,
.admin-actions button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #B56E5A;
    color: #fff;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.admin-actions button {
    background: transparent;
    color: #9F5F4F;
    border: 1px solid rgba(181,110,90,.3);
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.admin-toolbar input[type="search"] {
    flex: 1;
    min-width: 260px;
    max-width: 500px;
    padding: 14px 18px;
    border: 1px solid rgba(169, 99, 88, .18);
    border-radius: 999px;
    background: #fffdf9;
    color: #3f3835;
    font: inherit;
}

.admin-toolbar input[type="search"]:focus {
    outline: none;
    border-color: #a96358;
    box-shadow: 0 0 0 4px rgba(169, 99, 88, .12);
}

.admin-search-button,
.admin-reset-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.admin-search-button {
    background: #a96358;
    color: #fff;
}

.admin-reset-button {
    background: #f8f3ee;
    color: #6b625d;
}

.admin-table-card {
    background: #FFFDF9;
    border-radius: 22px;
    border: 1px solid rgba(181,110,90,.16);
    box-shadow: 0 14px 38px rgba(47,47,47,.07);
    overflow-x: auto;
}

.admin-products-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-products-table th,
.admin-products-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(181,110,90,.12);
    vertical-align: middle;
}

.admin-products-table th {
    color: #B56E5A;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}

.admin-products-table img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-products-table td strong {
    display: block;
    color: #2F2F2F;
}

.admin-products-table td span {
    color: #8A6A5E;
    font-size: .9rem;
}

.order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .85rem;
    background: #F8F3EE;
    color: #6D564D;
}

.order-status-paid,
.order-status-delivered {
    background: #edf7ef;
    color: #3f7a4d;
}

.order-status-cancelled {
    background: #fff0ed;
    color: #9F5F4F;
}


.stock-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #F8F3EE;
    color: #6D564D;
}

.stock-empty {
    background: #fff0ed;
    color: #9F5F4F;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-actions form {
    margin: 0;
}

/***** FILTRE ACTIFS ARCHIVES *******/

.admin-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(181,110,90,.25);
    background: #FFFDF9;
    color: #8A6A5E;
    transition: .25s;
}

.admin-filter-tab:hover {
    background: #F8F3EE;
    color: #B56E5A;
}

.admin-filter-tab.active {
    background: #B56E5A;
    color: #fff;
    border-color: #B56E5A;
    box-shadow: 0 10px 24px rgba(181,110,90,.22);
}

/************* ADMIN FORM *************/

.admin-form-page {
    width: 90%;
    max-width: 980px;
    margin: 50px auto 90px;
    z-index: 5;
}

.admin-form-card {
    background: #FFFDF9;
    border: 1px solid rgba(181,110,90,.16);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 14px 38px rgba(47,47,47,.07);
}
.admin-form-card h2{
    color: #B56E5A;;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/************* SELECT *************/

.form-grid select{

    width:100%;

    padding:14px 18px;

    border:1px solid #D8D0C8;

    border-radius:14px;

    background:#fff;

    color:#3F3835;

    font-size:1rem;

    font-family:inherit;

    cursor:pointer;

    appearance:none;
    -webkit-appearance:none;
    -moz-appearance:none;

    transition:.25s;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23746A62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat:no-repeat;

    background-position:right 18px center;

    background-size:18px;

    padding-right:55px;

}

.form-grid select:hover{

    border-color:#BDA895;

}

.form-grid select:focus{

    outline:none;

    border-color:#A07E68;

    box-shadow:0 0 0 4px rgba(160,126,104,.15);

}

.form-grid optgroup{

    font-weight:700;

    color:#6E625B;

    background:#F8F6F3;

}

.form-grid option{

    padding:10px;

    color:#3F3835;

}

.form-full {
    grid-column: 1 / -1;
}

.admin-form-card label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    color: #5F5651;
    font-size: .95rem;
}

.admin-form-card input,
.admin-form-card textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(181,110,90,.45);
    border-radius: 16px;
    background: #fff;
    color: #2F2F2F;
    font-size: 1rem;
}

.admin-form-card textarea {
    resize: vertical;
    min-height: 130px;
}

.admin-form-card input:focus,
.admin-form-card textarea:focus {
    outline: none;
    border-color: #B56E5A;
    box-shadow: 0 0 0 3px rgba(181,110,90,.12);
}

.admin-form-card input[type="file"] {
    padding: 12px;
    background: #F8F5F1;
}

.form-actions {
    margin-top: 28px;
    display: flex;
    justify-content: flex-end;
}

.admin-secondary-button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(181,110,90,.3);
    color: #B56E5A;
    text-decoration: none;
    background: transparent;
}

.admin-secondary-button:hover {
    background: rgba(181,110,90,.08);
}


.admin-orders {
    width: 90%;
    max-width: 1180px;
    margin: 50px auto 90px;
    z-index: 5;
}

.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-orders-table th,
.admin-orders-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid rgba(181,110,90,.12);
    vertical-align: middle;
}

.admin-orders-table th {
    color: #B56E5A;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
}

.admin-orders-table td span {
    display: block;
    color: #8A6A5E;
    font-size: .9rem;
}

.order-admin-total {
    color: #B56E5A;
}

.admin-orders-table .admin-primary-button {
    padding: 9px 16px;
    font-size: .9rem;
}

.admin-order-show {
    width: 90%;
    max-width: 1180px;
    margin: 50px auto 90px;
    z-index: 5;
}


.order-show-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 30px;
}

.order-show-card {
    background: #FFFDF9;
    border: 1px solid rgba(181,110,90,.16);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 14px 38px rgba(47,47,47,.07);
}

.order-show-card h2 {
    color: #B56E5A;
    font-weight: 500;
    margin-bottom: 18px;
}

.order-show-card p {
    color: #5F5651;
    margin-bottom: 12px;
}

.order-show-card strong {
    color: #B56E5A;
    font-size: 1.3rem;
}

.status-form {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.status-form select {
    flex: 1;
    min-width: 220px;
    padding: 13px 16px;
    border-radius: 999px;
    border: 1px solid rgba(181,110,90,.25);
    background: #fff;
    color: #2F2F2F;
}

.status-form select:focus {
    outline: none;
    border-color: #B56E5A;
    box-shadow: 0 0 0 3px rgba(181,110,90,.12);
}

/************* HEADER ADMIN *************/

.admin-header {

    background: linear-gradient(
        135deg,
        #403530,
        #2F2F2F
    );

    padding: 30px 0;

    margin-bottom: 45px;

    box-shadow: 0 15px 40px rgba(0,0,0,.15);

}

.admin-header-logo{

    text-align:center;

    margin-bottom:25px;

}

.admin-badge{

    display:inline-block;

    padding:8px 18px;

    background:#B56E5A;

    color:white;

    border-radius:50px;

    font-size:.8rem;

    letter-spacing:.15em;

    margin-bottom:15px;

}

.admin-header-logo h1{

    color:white;

    font-weight:400;

    letter-spacing:.08em;

    font-size:2rem;

}
.admin-mobile-toggle {
    display: none;
}

.admin-nav{

    display:flex;

    justify-content:center;

    gap:18px;

    flex-wrap:wrap;

}

.admin-nav a{

    padding:12px 24px;

    border-radius:999px;

    text-decoration:none;

    color:white;

    border:1px solid rgba(255,255,255,.15);

    transition:.25s;

}

.admin-nav a:hover{

    background:#B56E5A;

    border-color:#B56E5A;

}

.admin-nav a.active{

    background:#B56E5A;
    border-color: #B56E5A;

}
.stats-customers{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* =========================================
   FICHE CLIENT
========================================= */

.customer-detail-page {
    min-height: 75vh;
    padding: 55px 6% 100px;
    background: #fffdf9;
    color: #3f3835;
}

.customer-detail-container {
    max-width: 1220px;
    margin: 0 auto;
}

.customer-back-link {
    display: inline-flex;
    margin-bottom: 32px;
    color: #a96358;
    text-decoration: none;
    font-weight: 700;
    transition: transform .25s ease;
}

.customer-back-link:hover {
    transform: translateX(-4px);
}

.customer-detail-hero {
    margin-bottom: 42px;
}

.customer-detail-hero p,
.customer-section-heading p {
    margin: 0 0 8px;
    color: #a96358;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.customer-detail-hero h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 400;
    line-height: 1;
    color: #2f2f2f;
}

.customer-detail-hero > span {
    color: #746a64;
}

/* Statistiques */

.customer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 34px;
}

.customer-stat-card {
    padding: 28px 22px;
    border: 1px solid rgba(169, 99, 88, .14);
    border-radius: 24px;
    background: #fffdf9;
    text-align: center;
    box-shadow: 0 16px 40px rgba(63, 56, 53, .06);
}

.customer-stat-card > span {
    display: block;
    margin-bottom: 12px;
    font-size: 1.8rem;
}

.customer-stat-card strong {
    display: block;
    margin-bottom: 7px;
    color: #a96358;
    font-size: 1.65rem;
}

.customer-stat-card p {
    margin: 0;
    color: #766b65;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Profil et adresse */

.customer-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 65px;
}

.customer-detail-card,
.customer-empty-card {
    padding: 34px;
    border: 1px solid rgba(169, 99, 88, .14);
    border-radius: 28px;
    background: #fffdf9;
    box-shadow: 0 18px 45px rgba(63, 56, 53, .06);
}

.customer-address-card {
    background: #f8f3ee;
}

.customer-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.customer-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8f3ee;
    font-size: 1.35rem;
}

.customer-address-card .customer-card-icon {
    background: #fffdf9;
}

.customer-card-heading h2,
.customer-section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
    color: #2f2f2f;
}

.customer-data-list {
    margin: 0;
}

.customer-data-list > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(169, 99, 88, .12);
}

.customer-data-list dt {
    color: #82766f;
}

.customer-data-list dd {
    margin: 0;
    color: #3f3835;
    text-align: right;
    overflow-wrap: anywhere;
}

/* Newsletter */

.customer-badge {
    display: inline-flex;
    margin-top: 24px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.customer-badge.is-active {
    background: #edf5e9;
    color: #51753a;
}

.customer-badge.is-inactive {
    background: #f8eaea;
    color: #b54848;
}

/* Commandes */

.customer-orders-section {
    margin-top: 20px;
}

.customer-section-heading {
    margin-bottom: 26px;
}

.customer-orders-list {
    display: grid;
    gap: 16px;
}

.customer-order-card {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 24px;
    align-items: center;
    padding: 22px 26px;
    border: 1px solid rgba(169, 99, 88, .14);
    border-radius: 22px;
    background: #fffdf9;
    box-shadow: 0 14px 35px rgba(63, 56, 53, .05);
}

.customer-order-card h3 {
    margin: 0 0 5px;
    color: #2f2f2f;
}

.customer-order-card p {
    margin: 0;
    color: #766b65;
}

.customer-order-card > strong {
    color: #a96358;
    font-size: 1.1rem;
}

.customer-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    background: #a96358;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(169, 99, 88, .2);
    transition: transform .25s ease;
}

.customer-detail-button:hover {
    transform: translateY(-2px);
}

.customer-empty-state,
.customer-empty-card p {
    margin: 0;
    color: #766b65;
}

/* =========================================
   PAGINATION ADMIN
========================================= */

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 42px;
}

.pagination-link,
.pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 13px;

    border: 1px solid rgba(169, 99, 88, .18);
    border-radius: 999px;

    background: #fffdf9;
    color: #6b625d;

    text-decoration: none;
    font-weight: 700;

    box-shadow: 0 8px 22px rgba(63, 56, 53, .05);
    transition: .25s ease;
}

.pagination-link:hover,
.pagination-arrow:hover {
    border-color: #a96358;
    color: #a96358;
    transform: translateY(-2px);
}

.pagination-link.is-active {
    border-color: #a96358;
    background: #a96358;
    color: #fff;
    box-shadow: 0 12px 28px rgba(169, 99, 88, .22);
}

/*****************************
PAGE FACTURES
*****************************/

.admin-main {
    width: min(92%, 1180px);
    margin: 0 auto 90px;
}

.admin-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(181, 110, 90, .14);
}

.admin-eyebrow {
    margin: 0 0 8px;
    color: #8A6A5E;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.admin-section-header h1 {
    margin: 0;
    color: #B56E5A;
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    font-weight: 500;
    line-height: 1.05;
}

.admin-section-description {
    max-width: 620px;
    margin: 12px 0 0;
    color: #6D625A;
    line-height: 1.65;
}

.invoice-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.invoice-stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px 24px;
    border: 1px solid rgba(181, 110, 90, .16);
    border-radius: 20px;
    background: #FFFDF9;
    box-shadow: 0 12px 30px rgba(47, 47, 47, .06);
}

.invoice-stat-card::after {
    content: "";
    position: absolute;
    top: -28px;
    right: -24px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(181, 110, 90, .08);
}

.invoice-stat-card span,
.invoice-stat-card small {
    display: block;
}

.invoice-stat-card span {
    color: #8A6A5E;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.invoice-stat-card strong {
    display: block;
    margin: 6px 0 2px;
    color: #B56E5A;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.15rem;
    line-height: 1;
}

.invoice-stat-card small {
    color: #746A64;
    font-size: .82rem;
}

.invoice-stat-card-muted::after {
    background: rgba(95, 86, 81, .07);
}

.admin-table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(181, 110, 90, .16);
    border-radius: 22px;
    background: #FFFDF9;
    box-shadow: 0 14px 38px rgba(47, 47, 47, .07);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 18px;
    border-bottom: 1px solid rgba(181, 110, 90, .11);
    color: #5F5651;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: #9F5F4F;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table tbody tr {
    transition: background .2s ease;
}

.admin-table tbody tr:hover {
    background: rgba(248, 243, 238, .62);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table td strong {
    color: #3F3835;
}

.invoice-customer small {
    display: block;
    max-width: 230px;
    margin-top: 4px;
    overflow: hidden;
    color: #8A6A5E;
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-total {
    color: #B56E5A !important;
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-issued {
    background: #EDF7EF;
    color: #3F7A4D;
}

.status-credited {
    background: #F4F0EC;
    color: #746A64;
}

.admin-table .admin-action-link {
    min-height: 38px;
    padding: 8px 14px;
}

.admin-table .admin-action-link + .admin-action-link {
    border: 1px solid rgba(181, 110, 90, .28);
    background: transparent;
    color: #9F5F4F;
}

.admin-table .admin-action-link + .admin-action-link:hover {
    background: #F8F3EE;
}

.admin-empty-state {
    padding: 64px 24px;
    border: 1px dashed rgba(181, 110, 90, .34);
    border-radius: 22px;
    background: #FFFDF9;
    text-align: center;
}

.admin-empty-icon {
    display: grid;
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #F8F3EE;
    color: #B56E5A;
    font-size: 1.6rem;
}

.admin-empty-state h2 {
    margin: 0 0 8px;
    color: #B56E5A;
    font-weight: 500;
}

.admin-empty-state p {
    margin: 0;
    color: #746A64;
}

.invoice-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.admin-definition-list {
    margin: 0;
}

.admin-definition-list div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid #e8ded8;
}

.admin-definition-list dt {
    color: #746a64;
}

.admin-definition-list dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.invoice-admin-totals {
    width: min(100%, 420px);
    margin: 30px 0 0 auto;
}

.invoice-admin-totals p {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.invoice-admin-grand-total {
    padding-top: 16px;
    border-top: 2px solid #2f2f2f;
    font-size: 1.2rem;
}

.order-control-center {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.order-control-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid #e6dbd5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(47, 47, 47, 0.06);
}

.order-control-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee5e0;
}

.order-control-card__eyebrow {
    margin: 0 0 7px;
    color: #a96358;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.order-control-card h2 {
    margin: 0;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.order-control-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f0ece9;
    color: #625a55;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.order-control-status--success,
.order-control-status--paid,
.order-control-status--issued,
.order-control-status--delivered {
    color: #27644f;
    background: #e8f5ef;
}

.order-control-status--pending {
    color: #876312;
    background: #fff5d9;
}

.order-control-status--preparing {
    color: #395d85;
    background: #eaf2fb;
}

.order-control-status--shipped {
    color: #5b4c91;
    background: #f0ecfb;
}

.order-control-status--cancelled,
.order-control-status--failed {
    color: #9a3e3e;
    background: #faeaea;
}

.order-control-details {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
}

.order-control-details div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f0e8e4;
}

.order-control-details div:last-child {
    border-bottom: 0;
}

.order-control-details dt {
    color: #756a64;
}

.order-control-details dd {
    min-width: 0;
    margin: 0;
    font-weight: 750;
    text-align: right;
    overflow-wrap: anywhere;
}

.order-control-reference {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
        Consolas, monospace;
    font-size: 0.8rem;
}

.order-control-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
}

.order-control-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid #a96358;
    border-radius: 12px;
    color: #fff;
    background: #a96358;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.order-control-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(169, 99, 88, 0.2);
}

.order-control-button--secondary {
    color: #a96358;
    background: transparent;
}

.order-control-button--secondary:hover {
    color: #fff;
    background: #a96358;
}

.order-control-empty {
    margin: 20px 0 0;
    color: #756a64;
}

.order-control-warning {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    color: #8b4e16;
    background: #fff2df;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .order-control-center {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-control-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .order-control-center {
        grid-template-columns: 1fr;
    }

    .order-control-card:last-child {
        grid-column: auto;
    }

    .order-control-card__header {
        flex-direction: column;
    }

    .order-control-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .order-control-details dd {
        text-align: left;
    }
}
/******** MEDIA QUERY ********/

@media screen and (max-width: 900px) {

    .invoice-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .invoice-admin-grid {
        grid-template-columns: 1fr;
    }

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

    .status-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .customer-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-detail-grid {
        grid-template-columns: 1fr;
    }

    .customer-order-card {
        grid-template-columns: 1fr auto;
    }

    .customer-detail-button {
        width: fit-content;
    }
}

@media screen and (max-width: 720px) {
    .admin-main {
        width: min(92%, 620px);
        margin-bottom: 70px;
    }

    .admin-section-header {
        display: grid;
        align-items: start;
        gap: 18px;
    }

    .admin-section-header .admin-secondary-button {
        width: 100%;
        text-align: center;
    }

    .invoice-stats {
        grid-template-columns: 1fr;
    }

    .admin-table-wrapper {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .admin-table tbody {
        display: grid;
        gap: 16px;
    }

    .admin-table tbody tr {
        padding: 18px;
        border: 1px solid rgba(181, 110, 90, .16);
        border-radius: 20px;
        background: #FFFDF9;
        box-shadow: 0 12px 30px rgba(47, 47, 47, .07);
    }

    .admin-table tbody tr:hover {
        background: #FFFDF9;
    }

    .admin-table td {
        position: relative;
        min-height: 43px;
        padding: 12px 0 12px 40%;
        border-bottom: 1px solid rgba(181, 110, 90, .1);
        overflow-wrap: anywhere;
    }

    .admin-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 13px;
        left: 0;
        width: 34%;
        color: #9A766A;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .admin-table td:last-child {
        min-height: 0;
        padding: 15px 0 0;
        border-bottom: 0;
    }

    .admin-table td:last-child::before {
        display: none;
    }

    .admin-table .admin-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-table .admin-action-link {
        width: 100%;
    }
}

@media screen and (max-width: 420px) {
    .admin-table td {
        padding-top: 34px;
        padding-left: 0;
    }

    .admin-table td::before {
        top: 11px;
        width: 100%;
    }

    .admin-table .admin-actions {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {

.admin-header {
        padding: 22px 16px;
        margin-bottom: 28px;
    }

    .admin-header-logo {
        margin-bottom: 18px;
    }

    .admin-header-logo h1 {
        font-size: 1.5rem;
    }
/* BOUTON MOBILE */

    .admin-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;

        width: 100%;
        max-width: 520px;

        min-height: 48px;

        margin: 0 auto;

        padding: 0 18px;

        border:
            1px solid rgba(
                255,
                255,
                255,
                .18
            );

        border-radius: 16px;

        background:
            rgba(
                255,
                255,
                255,
                .08
            );

        color: #fff;

        font: inherit;
        font-size: .92rem;
        font-weight: 600;

        cursor: pointer;

        backdrop-filter: blur(8px);
    }
    .admin-mobile-arrow {
        width: 22px;
        height: 22px;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        transform-origin: center;

        transition:
            transform .25s ease;
    }

    .admin-mobile-arrow svg {
        width: 18px;
        height: 18px;

        fill: none;
        stroke: currentColor;

        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .admin-mobile-toggle[
        aria-expanded="true"
    ]
    .admin-mobile-arrow {
        transform: rotate(180deg);
    }

    /* MENU FERMÉ */

    .admin-nav {
        display: none;

        width: 100%;
        max-width: 520px;

        margin: 8px auto 0;

        padding: 6px;

        background:
            rgba(
                255,
                255,
                255,
                .07
            );

        border:
            1px solid rgba(
                255,
                255,
                255,
                .12
            );

        border-radius: 16px;
    }

    /* MENU OUVERT */

    .admin-nav.is-open {
        display: grid;

        grid-template-columns: 1fr;

        gap: 3px;
    }


    .admin-nav a {
        width: 100%;

        display: flex;
        align-items: center;

        padding: 11px 14px;

        border: 0;
        border-radius: 10px;

        color: #fff;

        text-align: left;
    }


    .admin-nav a:hover,
    .admin-nav a.active {
        background: #B56E5A;
    }


.admin-primary-button,
.admin-actions a,
.admin-actions button{
    border-radius: 25px;
}
    
    .order-show-grid {
        grid-template-columns: 1fr;
    }

    .status-form {
        flex-direction: column;
    }

    .status-form .admin-primary-button {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-actions .admin-primary-button {
        width: 100%;
        text-align: center;
    }

    .dashboard-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .customer-detail-page {
        padding: 40px 5% 70px;
    }

    .customer-stats {
        grid-template-columns: 1fr;
    }

    .customer-detail-card,
    .customer-empty-card {
        padding: 24px;
        border-radius: 22px;
    }

    .customer-data-list > div {
        display: block;
    }

    .customer-data-list dd {
        margin-top: 6px;
        text-align: left;
    }

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

    .customer-detail-button {
        width: 100%;
    }
}






/* =========================================
   PRODUITS ADMIN — RESPONSIVE PREMIUM
   Ajout pour products.php
========================================= */

.admin-products .admin-page-header {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(181, 110, 90, .12);
}

.admin-products .admin-page-header p {
    margin: 0 0 8px;
}

.admin-products .admin-page-header h1 {
    margin: 0;
}

.admin-products .admin-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(181, 110, 90, .20);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.admin-products .admin-primary-button:hover {
    transform: translateY(-2px);
    background: #9F5F4F;
    box-shadow: 0 14px 30px rgba(181, 110, 90, .28);
}

.admin-products .admin-toolbar:first-of-type {
    margin-bottom: 16px;
}

.admin-products .admin-filter-tabs {
    margin-top: 0;
}

.admin-products-table tbody tr {
    transition: background .2s ease;
}

.admin-products-table tbody tr:hover {
    background: rgba(248, 243, 238, .55);
}

.admin-products-table td {
    color: #5F5651;
}

.admin-products-table td small {
    display: block;
    margin-top: 6px;
    color: #9A8E87;
    font-size: .78rem;
}

.product-cell-price {
    white-space: nowrap;
    color: #B56E5A !important;
    font-weight: 700;
}

.product-cell-category strong {
    font-weight: 600;
}

.product-cell-description {
    max-width: 280px;
    line-height: 1.55;
}

.admin-actions a,
.admin-actions button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    font-weight: 600;
    transition: .2s ease;
}

.admin-actions a:hover {
    background: #9F5F4F;
    transform: translateY(-1px);
}

.admin-actions button:hover {
    background: #fff0ed;
    border-color: rgba(159, 95, 79, .45);
}

@media screen and (max-width: 1000px) {
    .admin-products {
        width: 94%;
    }

    .admin-products-table th,
    .admin-products-table td {
        padding: 15px 12px;
    }

    .product-cell-description {
        max-width: 210px;
    }

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

    .admin-actions a,
    .admin-actions button {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .admin-products {
        width: min(92%, 620px);
        margin: 28px auto 70px;
    }

    .admin-products .admin-page-header {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 22px;
    }

    .admin-products .admin-page-header h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.08;
    }

    .admin-products .admin-primary-button {
        width: 100%;
    }

    .admin-products .admin-toolbar {
        width: 100%;
        margin: 18px 0;
    }

    .admin-products .admin-toolbar input[type="search"] {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .admin-products .admin-filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-products .admin-filter-tab {
        width: 100%;
        padding: 10px 12px;
        text-align: center;
        font-size: .86rem;
    }

    .admin-table-card {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .admin-products-table,
    .admin-products-table tbody,
    .admin-products-table tr,
    .admin-products-table td {
        display: block;
        width: 100%;
    }

    .admin-products-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .admin-products-table tbody {
        display: grid;
        gap: 18px;
    }

    .admin-products-table tbody tr {
        padding: 18px;
        border: 1px solid rgba(181, 110, 90, .16);
        border-radius: 22px;
        background: #FFFDF9;
        box-shadow: 0 12px 32px rgba(47, 47, 47, .07);
    }

    .admin-products-table tbody tr:hover {
        background: #FFFDF9;
    }

    .admin-products-table td {
        position: relative;
        min-height: 42px;
        padding: 12px 0 12px 42%;
        border-bottom: 1px solid rgba(181, 110, 90, .10);
        text-align: left;
        overflow-wrap: anywhere;
    }

    .admin-products-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 13px;
        left: 0;
        width: 36%;
        color: #9A766A;
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .admin-products-table td:last-child {
        border-bottom: 0;
    }

    .admin-products-table .product-cell-image {
        display: flex;
        align-items: center;
        gap: 16px;
        min-height: 110px;
        padding-left: 42%;
    }

    .admin-products-table img {
        width: 92px;
        height: 92px;
        border-radius: 18px;
        box-shadow: 0 8px 20px rgba(47, 47, 47, .10);
    }

    .product-cell-description {
        max-width: none;
        line-height: 1.5;
    }

    .admin-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding-top: 14px !important;
        padding-left: 0 !important;
    }

    .admin-actions::before {
        display: none;
    }

    .admin-actions form,
    .admin-actions a,
    .admin-actions button {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .admin-products {
        width: 92%;
    }

    .admin-products .admin-filter-tabs {
        grid-template-columns: 1fr;
    }

    .admin-products-table tbody tr {
        padding: 16px;
        border-radius: 18px;
    }

    .admin-products-table td,
    .admin-products-table .product-cell-image {
        padding-left: 0;
        padding-top: 36px;
    }

    .admin-products-table td::before {
        top: 12px;
        width: 100%;
    }

    .admin-products-table .product-cell-image {
        align-items: flex-start;
        min-height: 0;
    }

    .admin-products-table img {
        width: 100%;
        height: 190px;
    }

    .admin-actions {
        grid-template-columns: 1fr;
        padding-top: 14px !important;
    }
}


/* =========================================
   DÉTAIL D’UNE FACTURE
========================================= */

.invoice-show-page .admin-section-header {
    align-items: center;
}

.invoice-show-page .admin-section-description strong {
    color: #3F3835;
    font-weight: 700;
}

.invoice-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.invoice-header-actions .admin-action-link {
    min-height: 46px;
    padding: 11px 20px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(181, 110, 90, .18);
}

.invoice-header-actions .invoice-back-link {
    border: 1px solid rgba(181, 110, 90, .28);
    background: transparent;
    color: #9F5F4F;
    box-shadow: none;
}

.invoice-header-actions .invoice-back-link:hover {
    background: #F8F3EE;
    color: #9F5F4F;
}

.invoice-show-page .admin-card {
    padding: 28px;
    border: 1px solid rgba(181, 110, 90, .16);
    border-radius: 22px;
    background: #FFFDF9;
    box-shadow: 0 14px 38px rgba(47, 47, 47, .07);
}

.admin-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}

.admin-card-heading > span {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #F8F3EE;
    color: #B56E5A;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
}

.admin-card-heading h2 {
    margin: 0;
    color: #B56E5A;
    font-size: 1.4rem;
    font-weight: 500;
}

.admin-card-heading p {
    margin: 3px 0 0;
    color: #8A6A5E;
    font-size: .82rem;
}

.invoice-show-page .admin-definition-list div {
    align-items: center;
    padding: 13px 0;
    border-color: rgba(181, 110, 90, .11);
}

.invoice-show-page .admin-definition-list div:first-child {
    padding-top: 0;
}

.invoice-show-page .admin-definition-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.invoice-show-page .admin-definition-list dt {
    color: #746A64;
    font-size: .88rem;
}

.invoice-show-page .admin-definition-list dd {
    max-width: 60%;
    color: #3F3835;
    overflow-wrap: anywhere;
}

.invoice-customer-name {
    margin: 0 0 6px;
    color: #3F3835;
    font-size: 1.15rem;
}

.invoice-customer-email {
    margin: 0 0 22px;
    color: #A96358;
    overflow-wrap: anywhere;
}

.invoice-customer-address {
    position: relative;
    margin: 0;
    padding: 18px 20px 18px 44px;
    border-radius: 16px;
    background: #F8F5F1;
    color: #5F5651;
    font-style: normal;
    line-height: 1.55;
}

.invoice-customer-address::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 22px;
    width: 8px;
    height: 8px;
    border: 2px solid #B56E5A;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.invoice-customer-address p {
    margin: 0;
}

.invoice-lines-card {
    margin-top: 0;
}

.invoice-lines-card .admin-table-wrapper {
    border-radius: 16px;
    box-shadow: none;
}

.invoice-lines-card .admin-table th:nth-child(n + 2),
.invoice-lines-card .admin-table td:nth-child(n + 2) {
    text-align: right;
}

.invoice-lines-card .admin-table td:first-child {
    color: #3F3835;
    font-weight: 600;
}

.invoice-admin-totals {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #F8F5F1;
}

.invoice-admin-totals p {
    align-items: center;
    margin: 0;
    padding: 8px 0;
    color: #746A64;
}

.invoice-admin-totals strong {
    color: #3F3835;
    white-space: nowrap;
}

.invoice-admin-totals .invoice-admin-grand-total {
    margin-top: 8px;
    padding-top: 17px;
    border-top: 1px solid rgba(181, 110, 90, .28);
    color: #3F3835;
    font-size: 1.1rem;
}

.invoice-admin-grand-total strong {
    color: #B56E5A;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.65rem;
}

@media screen and (max-width: 720px) {
    .invoice-show-page .admin-section-header {
        align-items: stretch;
    }

    .invoice-header-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .invoice-header-actions .admin-action-link {
        width: 100%;
    }

    .invoice-show-page .admin-card {
        padding: 21px;
        border-radius: 20px;
    }

    .invoice-show-page .admin-definition-list div {
        display: grid;
        gap: 5px;
    }

    .invoice-show-page .admin-definition-list dd {
        max-width: none;
        text-align: left;
    }

    .invoice-lines-card .admin-table td,
    .invoice-lines-card .admin-table td:last-child {
        min-height: 43px;
        padding: 12px 0 12px 42%;
        border-bottom: 1px solid rgba(181, 110, 90, .1);
        text-align: right;
    }

    .invoice-lines-card .admin-table td::before,
    .invoice-lines-card .admin-table td:last-child::before {
        display: block;
        width: 36%;
        text-align: left;
    }

    .invoice-lines-card .admin-table td:last-child {
        border-bottom: 0;
    }

    .invoice-lines-card .admin-table td:first-child {
        text-align: right;
    }

    .invoice-admin-totals {
        width: 100%;
        padding: 18px;
    }
}

@media screen and (max-width: 420px) {
    .invoice-show-page .admin-card {
        padding: 18px;
    }

    .invoice-lines-card .admin-table td,
    .invoice-lines-card .admin-table td:last-child {
        padding: 34px 0 12px;
        text-align: left;
    }

    .invoice-lines-card .admin-table td::before,
    .invoice-lines-card .admin-table td:last-child::before {
        width: 100%;
    }

    .invoice-lines-card .admin-table td:first-child {
        text-align: left;
    }
}
