/* T-MAYEE My Account — v1.0.3 */
:root {
    --tm-black: #0a0a0a;
    --tm-white: #fff;
    --tm-g100:  #f3f3f3;
    --tm-g200:  #e5e5e5;
    --tm-g400:  #aaa;
    --tm-g500:  #666;
    --tm-sw:    260px;   /* sidebar width */
    --tm-ease:  0.22s cubic-bezier(.4,0,.2,1);
}

/* ── Hide Astra/WC page title ── */
.woocommerce-account .entry-title,
.woocommerce-account .ast-archive-description,
.woocommerce-MyAccount-navigation { display:none!important; }

/* ── Fullbleed escape from Astra container ── */
.tmayee-wrap {
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    width: 100vw; max-width: 100vw;
    display: flex;
    min-height: 100vh;
    background: var(--tm-g100);
    font-family: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    font-size: 14px; color: var(--tm-black); line-height: 1.6;
    box-sizing: border-box;
    overflow-x: hidden;
}
.tmayee-wrap *, .tmayee-wrap *::before, .tmayee-wrap *::after { box-sizing: border-box; }

/* ════════════════════════════════════
   SIDEBAR
════════════════════════════════════ */
.tmayee-sidebar {
    width: var(--tm-sw);
    min-height: 100vh;
    background: var(--tm-black);
    color: var(--tm-white);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    /* sticky on desktop */
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.tmayee-logo {
    display: block;
    font-size: 16px; font-weight: 900; letter-spacing: 5px;
    color: var(--tm-white); text-decoration: none;
    padding: 26px 22px 22px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.tmayee-logo:hover { color: var(--tm-white); text-decoration: none; }

.tmayee-user-pill {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.tmayee-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.13);
    color: var(--tm-white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.tmayee-uname  { font-size: 13px; font-weight: 600; }
.tmayee-uemail { font-size: 11px; color: rgba(255,255,255,.38); }

.tmayee-nav {
    flex: 1; display: flex; flex-direction: column;
    gap: 2px; padding: 14px 10px;
}
.tmayee-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 13px; border-radius: 10px;
    color: rgba(255,255,255,.48); text-decoration: none;
    font-size: 13px; font-weight: 500;
    transition: background var(--tm-ease), color var(--tm-ease);
}
.tmayee-nav-link:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); text-decoration: none; }
.tmayee-nav-link.active { background: var(--tm-white) !important; color: var(--tm-black) !important; }
.tmayee-logout:hover { color: #ff6b6b; background: rgba(255,107,107,.1); }

.tmayee-sidebar-foot {
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.tmayee-brand-tag {
    text-align: center; font-size: 10px; letter-spacing: 2px;
    color: rgba(255,255,255,.13); text-transform: uppercase; padding: 10px 0 2px; margin: 0;
}

/* ════════════════════════════════════
   MAIN
════════════════════════════════════ */
.tmayee-main {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column;
}

/* Topbar */
.tmayee-topbar {
    height: 58px; background: var(--tm-white);
    border-bottom: 1px solid var(--tm-g200);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; position: sticky; top: 0; z-index: 50; gap: 12px;
}
.tmayee-topbar-left  { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tmayee-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tmayee-page-title   { font-size: 15px; font-weight: 700; letter-spacing: -.2px; white-space: nowrap; }
.tmayee-greeting     { font-size: 13px; color: var(--tm-g400); white-space: nowrap; }
.tmayee-shop-link {
    font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--tm-black); text-decoration: none;
    border: 2px solid var(--tm-black); padding: 5px 13px; border-radius: 99px;
    transition: all var(--tm-ease); white-space: nowrap;
}
.tmayee-shop-link:hover { background: var(--tm-black); color: var(--tm-white); text-decoration: none; }

/* Burger (desktop: hidden) */
.tmayee-burger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; padding: 6px;
    cursor: pointer; border-radius: 8px; transition: background var(--tm-ease);
    flex-shrink: 0;
}
.tmayee-burger:hover { background: var(--tm-g100); }
.tmayee-burger span {
    display: block; width: 20px; height: 2px;
    background: var(--tm-black); border-radius: 2px;
    transition: all var(--tm-ease);
}

/* Body */
.tmayee-body { flex: 1; padding: 24px; }

/* ════════════════════════════════════
   STATS
════════════════════════════════════ */
.tm-stats {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 12px; margin-bottom: 26px;
}
.tm-stat {
    background: var(--tm-white); border-radius: 14px;
    padding: 20px 16px; border: 1px solid var(--tm-g200);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.tm-num {
    display: block; font-size: 30px; font-weight: 800;
    letter-spacing: -1px; line-height: 1; margin-bottom: 5px;
}
.tm-lbl {
    display: block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px; color: var(--tm-g400);
}

/* ════════════════════════════════════
   LABELS & CARDS
════════════════════════════════════ */
.tm-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--tm-g400); margin: 0 0 12px;
}
.tm-cards { display: flex; flex-direction: column; gap: 10px; }

.tm-card {
    background: var(--tm-white); border-radius: 14px;
    padding: 16px 18px; border: 1px solid var(--tm-g200);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow var(--tm-ease);
}
.tm-card:hover { box-shadow: 0 3px 14px rgba(0,0,0,.09); }
.tm-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.tm-card-top strong { font-size: 14px; font-weight: 700; }
.tm-card-item { font-size: 14px; font-weight: 500; margin: 0 0 6px; }
.tm-extra     { font-size: 12px; color: var(--tm-g400); font-weight: 400; }
.tm-card-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--tm-g400); margin: 0 0 14px;
}
.tm-card-meta strong { color: var(--tm-black); }
.tm-card-actions { display: flex; align-items: center; gap: 8px; }

/* ════════════════════════════════════
   BUTTONS
════════════════════════════════════ */
.tm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 9px 18px; border-radius: 99px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    border: 2px solid transparent; transition: all var(--tm-ease);
    cursor: pointer; white-space: nowrap; font-family: inherit;
}
.tm-btn-dark    { background: var(--tm-black); color: var(--tm-white); border-color: var(--tm-black); }
.tm-btn-dark:hover { background: #222; border-color: #222; color: var(--tm-white); text-decoration: none; transform: translateY(-1px); }
.tm-btn-outline { background: transparent; color: var(--tm-black); border-color: var(--tm-g200); }
.tm-btn-outline:hover { border-color: var(--tm-black); text-decoration: none; }

/* ════════════════════════════════════
   BADGES
════════════════════════════════════ */
.tm-badge {
    display: inline-block; padding: 3px 10px; border-radius: 99px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
}
.tm-badge-processing, .tm-badge-on-hold { background:#fff3e0; color:#e65100; }
.tm-badge-completed                     { background:#e8f5e9; color:#2e7d32; }
.tm-badge-shipped                       { background:#e3f2fd; color:#1565c0; }
.tm-badge-cancelled, .tm-badge-refunded,
.tm-badge-failed                        { background:#fce4ec; color:#b71c1c; }
.tm-badge-pending                       { background:var(--tm-g100); color:var(--tm-g500); }

/* ════════════════════════════════════
   MISC
════════════════════════════════════ */
.tm-view-all {
    display: inline-block; margin-top: 16px;
    font-size: 13px; font-weight: 700; color: var(--tm-black); text-decoration: none;
}
.tm-view-all:hover { text-decoration: underline; }
.tm-empty {
    background: var(--tm-white); border-radius: 14px; border: 1px solid var(--tm-g200);
    padding: 48px 24px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.tm-empty p { color: var(--tm-g500); margin: 0; }

/* WC forms inside our layout */
.tmayee-body .woocommerce-EditAccountForm,
.tmayee-body .woocommerce-address-fields,
.tmayee-body form.woocommerce-form {
    background: var(--tm-white); padding: 24px;
    border-radius: 14px; border: 1px solid var(--tm-g200);
}
.tmayee-body label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .8px; color: var(--tm-g500); margin-bottom: 5px; display: block;
}
.tmayee-body input.input-text,
.tmayee-body select,
.tmayee-body textarea {
    width: 100%; padding: 10px 13px;
    border: 1px solid var(--tm-g200); border-radius: 8px;
    font-size: 14px; color: var(--tm-black); background: var(--tm-white);
    outline: none; -webkit-appearance: none; font-family: inherit;
    transition: border-color var(--tm-ease);
}
.tmayee-body input.input-text:focus { border-color: var(--tm-black); }
.tmayee-body .woocommerce-Button,
.tmayee-body button[type="submit"],
.tmayee-body input[type="submit"] {
    background: var(--tm-black)!important; color: var(--tm-white)!important;
    border: none!important; border-radius: 99px!important;
    padding: 11px 26px!important; font-weight: 700!important;
    font-size: 13px!important; cursor: pointer; -webkit-appearance: none;
}
.tmayee-body .woocommerce-order-details,
.tmayee-body .woocommerce-customer-details {
    background: var(--tm-white); border-radius: 14px;
    border: 1px solid var(--tm-g200); padding: 22px; margin-bottom: 18px;
}

/* ════════════════════════════════════
   OVERLAY (mobile drawer backdrop)
════════════════════════════════════ */
.tmayee-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 199;
    opacity: 0; transition: opacity var(--tm-ease); pointer-events: none;
}
.tmayee-overlay.show { opacity: 1; pointer-events: all; }

/* ════════════════════════════════════
   RESPONSIVE — MOBILE (≤860px)
════════════════════════════════════ */
@media (max-width: 860px) {
    /* Sidebar: off-screen drawer */
    .tmayee-sidebar {
        position: fixed !important;
        top: 0; left: 0; height: 100% !important;
        width: 280px; z-index: 300;
        transform: translateX(-100%);
        transition: transform var(--tm-ease);
        box-shadow: none;
    }
    .tmayee-sidebar.open {
        transform: translateX(0) !important;
        box-shadow: 6px 0 32px rgba(0,0,0,.25);
    }

    /* Show overlay */
    .tmayee-overlay { display: block; }

    /* Show burger */
    .tmayee-burger { display: flex; }

    /* Topbar */
    .tmayee-topbar { padding: 0 14px; height: 52px; }
    .tmayee-greeting { display: none; }

    /* Body */
    .tmayee-body { padding: 14px 14px 40px; }

    /* Stats — compact 3-in-a-row */
    .tm-stats { grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 20px; }
    .tm-stat  { padding: 14px 10px; border-radius: 10px; }
    .tm-num   { font-size: 22px; }
    .tm-lbl   { font-size: 9px; }

    /* Cards — full-width buttons */
    .tm-card { padding: 14px 14px; }
    .tm-card-actions { flex-direction: column; }
    .tm-card-actions .tm-btn { width: 100%; }

    /* Burger open state */
    .tmayee-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .tmayee-burger.open span:nth-child(2) { opacity: 0; }
    .tmayee-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 400px) {
    .tm-stats { grid-template-columns: 1fr 1fr; }
    .tm-stats .tm-stat:last-child { grid-column: 1 / -1; }
    .tmayee-shop-link { display: none; }
}
