/* ===== ACCOUNT LAYOUT ===== */

.account-layout{
    display:flex;
    min-height:calc(100vh - 80px);
    background:#f5f7fb;
}

/* =========================================================
   ACCOUNT SIDEBAR
========================================================= */

.account-sidebar {

    width: 235px;

    min-height: calc(100vh - 76px);

    background: #111827;

    color: #ffffff;

    padding: 25px 16px;

    flex-shrink: 0;

    display: flex;

    flex-direction: column;

}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.account-sidebar-header {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 8px 25px;

    margin-bottom: 10px;

    border-bottom: 1px solid #263244;

}


.account-sidebar-icon {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #1e293b;

    border-radius: 10px;

    font-size: 18px;

}


.account-sidebar-label {

    display: block;

    margin-bottom: 3px;

    color: #94a3b8;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.08em;

}


.account-sidebar h2 {

    margin: 0;

    color: #ffffff;

    font-size: 18px;

    font-weight: 600;

}


/* =========================================================
   NAVIGATION
========================================================= */

.account-sidebar-nav {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.account-sidebar-nav a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 13px;

    color: #cbd5e1;

    text-decoration: none;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.account-sidebar-nav a span {

    width: 20px;

    text-align: center;

    font-size: 15px;

}


.account-sidebar-nav a:hover {

    background: #1e293b;

    color: #ffffff;

}


/* =========================================================
   DÉCONNEXION
========================================================= */

.account-sidebar-footer {

    margin-top: auto;

    padding-top: 20px;

    border-top: 1px solid #263244;

}


.account-sidebar-footer a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 13px;

    color: #cbd5e1;

    text-decoration: none;

    border-radius: 9px;

    font-size: 14px;

    font-weight: 500;

}


.account-sidebar-footer a:hover {

    background: #7f1d1d;

    color: #ffffff;

}

/* ===== CONTENT ===== */

.account-content{
    flex:1;
    padding:40px;
}

/* ===== TOPBAR ===== */

.account-topbar{
    margin-bottom:30px;
}

.account-topbar h1{
    font-size:32px;
    margin-bottom:10px;
}

/* ===== CARDS ===== */

.account-stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.account-card{
    background:white;
    padding:25px;
    border-radius:18px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.account-card h3{
    margin-bottom:10px;
    color:#6b7280;
}

.account-card p{
    font-size:28px;
    font-weight:bold;
}

/* ===== TABLE ===== */

.account-table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:15px;
    overflow:hidden;
}

.account-table th{
    background:#111827;
    color:white;
    text-align:left;
    padding:15px;
}

.account-table td{
    padding:15px;
    border-bottom:1px solid #eee;
}

/* ===== TRACKING ===== */

.tracking-form{
    margin-top:20px;
    display:flex;
    gap:10px;
}

.tracking-form input{
    flex:1;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
}

.tracking-form button{
    padding:14px 20px;
    background:#111827;
    color:white;
    border:none;
    border-radius:12px;
    cursor:pointer;
}

/* ===== RESPONSIVE ===== */

@media(max-width:900px){

    .account-layout{
        flex-direction:column;
    }

    .account-sidebar{
        width:100%;
    }

    .account-content{
        padding:20px;
    }

}


.tracking-form{
    margin-top:20px;
    display:flex;
    gap:10px;
}

.tracking-form input{
    flex:1;
    padding:12px;
    border-radius:10px;
    border:1px solid #ddd;
}

.tracking-form button{
    padding:12px 20px;
    border:none;
    border-radius:10px;
    background:#111827;
    color:white;
    cursor:pointer;
}
.dashboard-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:25px;

margin-bottom:40px;

}

.dashboard-card{

background:#fff;

padding:25px;

border-radius:12px;

box-shadow:0 5px 18px rgba(0,0,0,.08);

text-align:center;

}

.dashboard-card h3{

margin-bottom:10px;

}

.dashboard-card p{

font-size:28px;

font-weight:bold;

color:#1d72ff;

}

.dashboard-orders{

background:#fff;

padding:25px;

border-radius:12px;

box-shadow:0 5px 18px rgba(0,0,0,.08);

}

.account-table{

width:100%;

border-collapse:collapse;

margin-top:20px;

}

.account-table th,

.account-table td{

padding:15px;

border-bottom:1px solid #eee;

text-align:left;

}

/* =========================================================
   WISHLIST
   ========================================================= */

.wishlist-page {
    max-width: 1250px;
    margin: 0 auto;
}

.wishlist-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.wishlist-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}

.wishlist-header h1 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 32px;
    font-weight: 750;
}

.wishlist-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.wishlist-shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 650;
    transition: .2s ease;
}

.wishlist-shop-button:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.wishlist-count {
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.wishlist-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wishlist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .10);
}

.wishlist-card-image {
    position: relative;
    height: 245px;
    background: #f8fafc;
    overflow: hidden;
}

.wishlist-card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.wishlist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    transition: transform .25s ease;
}

.wishlist-card:hover .wishlist-card-image img {
    transform: scale(1.04);
}

.wishlist-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.wishlist-remove-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    margin: 0;
}

.wishlist-remove {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #dc2626;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    transition: .2s ease;
}

.wishlist-remove:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.08);
}

.wishlist-card-content {
    padding: 18px;
}

.wishlist-card-title {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.wishlist-card-title:hover {
    color: #dc2626;
}

.wishlist-card-description {
    min-height: 40px;
    margin: 0 0 15px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.wishlist-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 17px;
}

.wishlist-card-price {
    color: #111827;
    font-size: 21px;
}

.wishlist-stock,
.wishlist-out {
    font-size: 12px;
    font-weight: 700;
}

.wishlist-stock {
    color: #15803d;
}

.wishlist-out {
    color: #dc2626;
}

.wishlist-card-actions {
    display: flex;
    gap: 8px;
}

.wishlist-view-button,
.wishlist-cart-button {
    flex: 1;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.wishlist-view-button {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111827;
}

.wishlist-view-button:hover {
    background: #f9fafb;
}

.wishlist-cart-button {
    border: 0;
    background: #111827;
    color: #fff;
}

.wishlist-cart-button:hover {
    background: #dc2626;
}

.wishlist-empty {
    padding: 70px 30px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(15,23,42,.05);
}

.wishlist-empty-icon {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff5f5;
    color: #dc2626;
    font-size: 38px;
}

.wishlist-empty h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 24px;
}

.wishlist-empty p {
    margin: 0 auto 25px;
    max-width: 500px;
    color: #6b7280;
}

.wishlist-empty-button {
    display: inline-flex;
    padding: 13px 22px;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 650;
}

.wishlist-empty-button:hover {
    background: #dc2626;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1050px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {

    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wishlist-header h1 {
        font-size: 26px;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

    .wishlist-card-actions {
        flex-direction: column;
    }
}


/* =========================================================
   WISHLIST — MOBILE
========================================================= */

@media (max-width: 600px) {

    .wishlist-empty {
        min-height: 220px;

        padding: 30px 20px;
    }

    .wishlist-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   FACTURES CLIENT
========================================================= */

.account-invoices-page {
    max-width: 1200px;
    margin: 0 auto;
}


/* ===== HEADER ===== */

.invoices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 30px;
}

.invoices-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.invoices-header h1 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 32px;
    font-weight: 750;
}

.invoices-header p {
    margin: 0;

    color: #6b7280;

    font-size: 14px;
}

.invoices-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    font-size: 25px;

    box-shadow: 0 4px 15px rgba(0,0,0,.05);
}


/* ===== CARD ===== */

.invoices-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    box-shadow: 0 4px 18px rgba(15,23,42,.05);

    overflow: hidden;
}

.invoices-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 24px 26px;

    border-bottom: 1px solid #edf0f3;
}

.invoices-card-header h2 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 18px;
}

.invoices-card-header p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;
}


/* ===== TABLE ===== */

.invoices-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.invoices-table {
    width: 100%;

    border-collapse: collapse;

    background: #ffffff;
}

.invoices-table th {
    padding: 14px 22px;

    background: #f8fafc;

    color: #64748b;

    border-bottom: 1px solid #e5e7eb;

    font-size: 11px;
    font-weight: 800;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: .05em;

    white-space: nowrap;
}

.invoices-table td {
    padding: 18px 22px;

    border-bottom: 1px solid #f0f2f5;

    color: #374151;

    font-size: 14px;

    vertical-align: middle;
}

.invoices-table tbody tr:last-child td {
    border-bottom: none;
}

.invoices-table tbody tr {
    transition: background .15s ease;
}

.invoices-table tbody tr:hover {
    background: #fafbfc;
}


/* ===== COMMANDE ===== */

.invoice-order {
    display: flex;

    align-items: center;

    gap: 12px;
}

.invoice-file-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: #f3f4f6;

    border-radius: 10px;

    font-size: 17px;
}

.invoice-order strong {
    display: block;

    color: #111827;

    font-size: 14px;
}

.invoice-order small {
    display: block;

    margin-top: 3px;

    color: #9ca3af;

    font-size: 11px;
}


/* ===== DATE ===== */

.invoice-date {
    color: #4b5563;

    white-space: nowrap;
}


/* ===== PRIX ===== */

.invoice-price {
    color: #111827;

    white-space: nowrap;
}


/* ===== STATUT ===== */

.invoice-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 6px 10px;

    border-radius: 999px;

    background: #f3f4f6;

    color: #4b5563;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

.status-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #9ca3af;
}

.status-paid,
.status-delivered {
    background: #ecfdf3;

    color: #166534;
}

.status-paid .status-dot,
.status-delivered .status-dot {
    background: #22c55e;
}

.status-processing,
.status-pending {
    background: #fff7ed;

    color: #9a3412;
}

.status-processing .status-dot,
.status-pending .status-dot {
    background: #f97316;
}

.status-shipped {
    background: #eff6ff;

    color: #1d4ed8;
}

.status-shipped .status-dot {
    background: #3b82f6;
}

.status-cancelled {
    background: #fef2f2;

    color: #991b1b;
}

.status-cancelled .status-dot {
    background: #ef4444;
}


/* ===== DOWNLOAD ===== */

.invoice-action-column {
    text-align: right !important;
}

.invoice-download {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 9px 13px;

    border: 1px solid #d1d5db;

    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.invoice-download span {
    font-size: 16px;
    line-height: 1;
}

.invoice-download:hover {
    background: #111827;

    border-color: #111827;

    color: #ffffff;

    transform: translateY(-1px);
}


/* ===== AUCUNE FACTURE ===== */

.invoices-empty {
    padding: 65px 25px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    box-shadow: 0 4px 18px rgba(15,23,42,.05);

    text-align: center;
}

.invoices-empty-icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    background: #f3f4f6;

    border-radius: 16px;

    font-size: 28px;
}

.invoices-empty h2 {
    margin: 0 0 8px;

    color: #111827;

    font-size: 20px;
}

.invoices-empty p {
    margin: 0 0 25px;

    color: #6b7280;

    font-size: 14px;
}

.invoices-shop-btn {
    display: inline-flex;

    padding: 11px 18px;

    border-radius: 9px;

    background: #111827;

    color: #ffffff;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.invoices-shop-btn:hover {
    background: #1f2937;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .invoices-header {
        align-items: flex-start;
    }

    .invoices-header h1 {
        font-size: 26px;
    }

    .invoices-icon {
        width: 48px;
        height: 48px;

        font-size: 21px;
    }

    .invoices-card-header {
        padding: 20px;
    }

    .invoices-table th,
    .invoices-table td {
        padding: 14px 16px;
    }

    .invoice-download {
        padding: 8px 10px;

        font-size: 11px;
    }

}