/* ==========================================
   JOMBA BUYER ACCOUNT THEME & MOBILE STYLING
   ========================================== */

.buyer-account-page {
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.buyer-account-page * {
    box-sizing: border-box;
}

/* Header & Navigation */
.buyer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid #22c55e;
    background: #000000;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    flex-wrap: wrap;
}

.buyer-logo {
    color: #eab308;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
}

.buyer-logo span {
    color: #ffffff;
}

.buyer-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.buyer-nav a,
.buyer-seller-link {
    color: #d1d5db;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.buyer-nav a:hover,
.buyer-seller-link:hover {
    color: #eab308;
}

.buyer-seller-link {
    border: 1px solid #1f2937;
    padding: 7px 12px;
    border-radius: 8px;
    background: #0a0a0a;
}

/* Main Container */
.buyer-account-container {
    width: min(1180px, 94%);
    margin: 0 auto;
    padding: 32px 0 60px;
}

.buyer-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.buyer-eyebrow,
.buyer-section-label {
    color: #eab308;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 8px;
}

.buyer-welcome h1 {
    font-size: clamp(26px, 4vw, 38px);
    margin: 0 0 8px;
    color: #ffffff;
}

.buyer-welcome p:last-child {
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
    font-size: 13px;
}

.buyer-shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 8px;
    background: #eab308;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.buyer-shop-button:hover,
.buyer-save-button:hover {
    background: #fde047;
    transform: translateY(-1px);
}

/* Cards Base Design */
.buyer-profile-card,
.buyer-stat-card,
.buyer-section-card,
.buyer-help-card {
    background: rgba(12, 12, 12, 0.95);
    border: 1px solid #1f2937;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Profile Card */
.buyer-profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.buyer-avatar {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #000000;
    border: 1px solid #eab308;
    color: #eab308;
    font-size: 24px;
    font-weight: 800;
}

.buyer-profile-details {
    flex: 1;
    min-width: 0;
}

.buyer-profile-details h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #ffffff;
}

.buyer-profile-details p {
    color: #9ca3af;
    margin: 0 0 8px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.buyer-member-label {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background: #064e3b;
    color: #22c55e;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #10b981;
}

.buyer-edit-profile {
    color: #eab308;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.buyer-edit-profile:hover {
    text-decoration: underline;
}

/* Stats Grid */
.buyer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.buyer-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    color: #ffffff;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.buyer-stat-card:hover {
    border-color: #eab308;
    transform: translateY(-2px);
}

.buyer-stat-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #000000;
    color: #eab308;
    font-size: 22px;
    border: 1px solid #1f2937;
}

.buyer-stat-card p {
    color: #9ca3af;
    font-size: 12px;
    margin: 0 0 4px;
}

.buyer-stat-card h3 {
    font-size: 22px;
    margin: 0 0 4px;
    color: #ffffff;
}

.buyer-stat-card span:last-child {
    color: #6b7280;
    font-size: 11px;
}

/* Forms Grid & Sections */
.buyer-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.buyer-section-card {
    padding: 24px;
    min-width: 0;
}

.buyer-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.buyer-section-heading h2 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.buyer-address-icon {
    color: #eab308;
    font-size: 24px;
}

.buyer-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    min-width: 0;
}

.buyer-form-group label {
    color: #d1d5db;
    font-size: 12px;
    font-weight: 600;
}

.buyer-form-group input,
.buyer-form-group select,
.buyer-form-group textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    background: #000000;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.buyer-form-group input:focus,
.buyer-form-group select:focus,
.buyer-form-group textarea:focus {
    border-color: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.15);
}

.buyer-form-group input::placeholder,
.buyer-form-group textarea::placeholder {
    color: #6b7280;
}

.buyer-form-group textarea {
    resize: vertical;
    line-height: 1.5;
}

.buyer-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.buyer-save-button {
    width: 100%;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    background: #eab308;
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.buyer-form-message {
    display: none;
    margin: 12px 0 0;
    color: #22c55e;
    font-size: 12px;
    line-height: 1.5;
}

.buyer-form-message.is-visible {
    display: block;
}

.buyer-form-message.is-error {
    color: #ef4444;
}

/* Help Card */
.buyer-help-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 22px;
}

.buyer-help-card h2 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #ffffff;
}

.buyer-help-card p {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
}

.buyer-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buyer-help-actions a {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #1f2937;
    border-radius: 8px;
    color: #eab308;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: #000000;
    transition: border-color 0.2s ease;
}

.buyer-help-actions a:hover {
    border-color: #eab308;
}

.buyer-footer {
    padding: 22px 6%;
    border-top: 1px solid #1f2937;
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    background-color: #000000;
}

/* ==========================================
   FLUID MOBILE RESPONSIVENESS BREAKPOINTS
   ========================================== */
@media (max-width: 900px) {
    .buyer-account-grid {
        grid-template-columns: 1fr;
    }

    .buyer-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 16px;
    }

    .buyer-nav {
        justify-content: space-between;
        width: 100%;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        border-top: 1px solid #1f2937;
        padding-top: 10px;
    }

    .buyer-nav::-webkit-scrollbar {
        display: none;
    }

    .buyer-nav a,
    .buyer-seller-link {
        font-size: 12px;
        padding: 4px 6px;
    }

    .buyer-seller-link {
        align-self: flex-start;
        padding: 6px 10px;
    }

    .buyer-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .buyer-account-container {
        width: 95%;
        padding-top: 22px;
    }

    .buyer-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .buyer-shop-button {
        width: 100%;
    }

    .buyer-profile-card {
        padding: 16px;
        gap: 12px;
    }

    .buyer-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .buyer-edit-profile {
        width: 100%;
        text-align: right;
    }

    .buyer-stat-card {
        padding: 16px;
    }

    .buyer-section-card {
        padding: 18px;
    }

    .buyer-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .buyer-help-card {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .buyer-help-actions {
        width: 100%;
        flex-direction: column;
    }

    .buyer-help-actions a {
        width: 100%;
        text-align: center;
    }
}