/**
 * Olympa Modern Dynamic WooCommerce My Account Page
 * Pixel-Perfect Design Matching Reference
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --mwm-acc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mwm-acc-black: #000000;
    --mwm-acc-dark: #111111;
    --mwm-acc-dark-soft: #18181b;
    --mwm-acc-gray-bg: #f4f4f5;
    --mwm-acc-gray-border: #e4e4e7;
    --mwm-acc-bg: #ffffff;
    --mwm-acc-border: #f1f5f9;
    --mwm-acc-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --mwm-acc-text-main: #09090b;
    --mwm-acc-text-muted: #71717a;
}

/* ==========================================================================
   1. PAGE HEADER & BREADCRUMBS
   ========================================================================== */

.mwm-account-page-header {
    margin-bottom: 28px;
    font-family: var(--mwm-acc-font);
}

.mwm-account-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--mwm-acc-text-muted);
    margin-bottom: 10px;
}

.mwm-account-breadcrumb a {
    color: var(--mwm-acc-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.mwm-account-breadcrumb a:hover {
    color: var(--mwm-acc-text-main);
}

.mwm-account-breadcrumb .mwm-breadcrumb-sep {
    font-size: 11px;
    color: #a1a1aa;
}

.mwm-account-breadcrumb .mwm-breadcrumb-current {
    color: #000000;
    font-weight: 700;
}

.mwm-account-page-title {
    font-family: var(--mwm-acc-font) !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--mwm-acc-text-main) !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
}

.mwm-account-page-desc {
    font-family: var(--mwm-acc-font);
    font-size: 14.5px;
    color: var(--mwm-acc-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   2. TWO-COLUMN MAIN CONTAINER LAYOUT
   ========================================================================== */

.mwm-account-layout-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
    font-family: var(--mwm-acc-font);
    box-sizing: border-box;
    width: 100%;
}

/* Hide default WooCommerce navigation when our container is rendered */
.woocommerce-MyAccount-navigation {
    display: none !important;
}

.woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================================================
   3. LEFT SIDEBAR NAVIGATION CARD
   ========================================================================== */

.mwm-account-sidebar-card {
    background: var(--mwm-acc-bg);
    border-radius: 20px;
    border: 1px solid var(--mwm-acc-border);
    box-shadow: var(--mwm-acc-card-shadow);
    padding: 30px 20px 24px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.mwm-account-user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #f4f4f5;
    margin-bottom: 16px;
}

.mwm-account-avatar-wrapper {
    position: relative;
    width: 92px;
    height: 92px;
    margin-bottom: 14px;
    display: inline-block;
}

.mwm-account-avatar-img,
.mwm-account-avatar-placeholder {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f4f5;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: block;
    box-sizing: border-box;
}

.mwm-avatar-change-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    background: #000000;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.mwm-avatar-change-overlay svg {
    width: 14px;
    height: 14px;
    stroke: #ffffff;
    stroke-width: 2;
    fill: none;
    transition: transform 0.2s ease;
}

.mwm-avatar-change-overlay:hover {
    background: #27272a;
    transform: scale(1.12);
}

.mwm-account-avatar-placeholder {
    padding: 18px;
    color: #a1a1aa;
}

.mwm-account-user-name {
    font-family: var(--mwm-acc-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--mwm-acc-text-main);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.mwm-account-user-email {
    font-family: var(--mwm-acc-font);
    font-size: 12.5px;
    color: var(--mwm-acc-text-muted);
    margin: 0;
    word-break: break-all;
}

/* Nav Menu Items List */
.mwm-account-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mwm-account-nav-item {
    margin: 0 !important;
    padding: 0 !important;
}

.mwm-account-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    font-family: var(--mwm-acc-font);
    font-size: 13.5px;
    font-weight: 600;
    color: #52525b;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mwm-account-nav-link:hover {
    background: #f4f4f5;
    color: #000000;
    transform: translateX(3px);
}

.mwm-account-nav-link.is-active,
.mwm-account-nav-item.is-active .mwm-account-nav-link {
    background: #000000 !important;
    color: #ffffff !important;
}

.mwm-account-nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.mwm-account-nav-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   4. RIGHT CONTENT MAIN CARD & DASHBOARD
   ========================================================================== */

.mwm-account-main-card {
    background: var(--mwm-acc-bg);
    border-radius: 20px;
    border: 1px solid var(--mwm-acc-border);
    box-shadow: var(--mwm-acc-card-shadow);
    padding: 36px 32px;
    box-sizing: border-box;
    min-height: 480px;
}

/* Dashboard Greeting */
.mwm-dashboard-greeting {
    margin-bottom: 34px;
}

.mwm-welcome-tag {
    display: inline-block;
    font-family: var(--mwm-acc-font);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #18181b;
    background: #f4f4f5;
    border-radius: 6px;
    padding: 4px 10px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mwm-greeting-heading {
    font-family: var(--mwm-acc-font) !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: var(--mwm-acc-text-main) !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: -0.3px !important;
}

.mwm-greeting-summary {
    font-family: var(--mwm-acc-font);
    font-size: 14px;
    color: var(--mwm-acc-text-muted);
    line-height: 1.6;
    margin: 0;
}

.mwm-greeting-summary a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mwm-greeting-summary a:hover {
    color: #52525b;
}

/* ==========================================================================
   5. FOUR QUICK-ACTION DASHBOARD CARDS (BLACK & WHITE THEME)
   ========================================================================== */

.mwm-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.mwm-action-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.mwm-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    border-color: #000000;
}

.mwm-action-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #18181b !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.mwm-action-card:hover .mwm-action-icon-circle {
    transform: scale(1.08);
    background: #000000 !important;
}

/* Monochrome Icon Styles */
.mwm-icon-pink,
.mwm-icon-purple,
.mwm-icon-green,
.mwm-icon-yellow {
    background: #18181b !important;
    color: #ffffff !important;
}

.mwm-action-icon-circle svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.mwm-action-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}

.mwm-action-title {
    font-family: var(--mwm-acc-font);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--mwm-acc-text-main);
    margin: 0;
    line-height: 1.25;
}

.mwm-action-desc {
    font-family: var(--mwm-acc-font);
    font-size: 12px;
    color: var(--mwm-acc-text-muted);
    margin: 0;
    line-height: 1.35;
}

/* Monochrome Arrow Button */
.mwm-action-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f4f4f5;
    color: #18181b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    transition: all 0.2s ease;
}

.mwm-action-card:hover .mwm-action-arrow-btn {
    background: #000000;
    color: #ffffff;
    transform: translateX(3px);
}

.mwm-action-arrow-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

/* ==========================================================================
   6. WOOCOMMERCE SUB-PAGES (ORDERS, ADDRESSES, ACCOUNT DETAILS)
   ========================================================================== */

/* Subpage Header */
.mwm-subpage-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.mwm-subpage-title {
    font-family: var(--mwm-acc-font) !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--mwm-acc-text-main) !important;
    margin: 0 0 4px 0 !important;
}

.mwm-subpage-desc {
    font-family: var(--mwm-acc-font);
    font-size: 13.5px;
    color: var(--mwm-acc-text-muted);
    margin: 0;
}

/* WooCommerce Orders Table */
.mwm-account-main-card .woocommerce-orders-table,
.mwm-account-main-card .shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
}

.mwm-account-main-card .woocommerce-orders-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.mwm-account-main-card .woocommerce-orders-table td {
    padding: 16px 18px !important;
    font-size: 13.5px !important;
    color: var(--mwm-acc-text-main) !important;
    border-bottom: 1px solid #f8fafc !important;
    vertical-align: middle !important;
}

.mwm-account-main-card .woocommerce-orders-table tr:last-child td {
    border-bottom: none !important;
}

.mwm-account-main-card .woocommerce-button.view,
.mwm-account-main-card .woocommerce-orders-table__cell-order-actions a {
    background: #f4f4f5 !important;
    color: #09090b !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.mwm-account-main-card .woocommerce-button.view:hover,
.mwm-account-main-card .woocommerce-orders-table__cell-order-actions a:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Addresses Grid */
.mwm-account-main-card .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-top: 10px !important;
}

.mwm-account-main-card .woocommerce-Address {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 22px !important;
    box-sizing: border-box !important;
    float: none !important;
    width: 100% !important;
}

.mwm-account-main-card .woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

.mwm-account-main-card .woocommerce-Address-title h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.mwm-account-main-card .woocommerce-Address-title a {
    font-size: 13px !important;
    color: #000000 !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
}

.mwm-account-main-card .woocommerce-Address address {
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    font-style: normal !important;
}

/* Form Styles (Account Details & Address Edit) */
.mwm-account-main-card .woocommerce-form-row,
.mwm-account-main-card .form-row {
    margin-bottom: 16px !important;
}

.mwm-account-main-card label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.mwm-account-main-card input[type="text"],
.mwm-account-main-card input[type="email"],
.mwm-account-main-card input[type="password"],
.mwm-account-main-card select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.mwm-account-main-card input[type="text"]:focus,
.mwm-account-main-card input[type="email"]:focus,
.mwm-account-main-card input[type="password"]:focus,
.mwm-account-main-card select:focus {
    border-color: #000000 !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1) !important;
}

.mwm-account-main-card button[type="submit"],
.mwm-account-main-card .woocommerce-Button,
.mwm-account-main-card .button {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 13px 28px !important;
    border-radius: 10px !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
}

.mwm-account-main-card button[type="submit"]:hover,
.mwm-account-main-card .woocommerce-Button:hover,
.mwm-account-main-card .button:hover {
    background: #27272a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
    .mwm-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mwm-account-layout-container {
        grid-template-columns: 1fr;
    }

    .mwm-account-sidebar-card {
        padding: 20px 16px;
    }

    .mwm-account-nav-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 6px;
    }

    .mwm-account-main-card {
        padding: 24px 18px;
    }

    .mwm-action-grid {
        grid-template-columns: 1fr;
    }

    .mwm-account-main-card .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }
}
