/* ================================================
   ACCOUNT PAGE — REDESIGNED CSS
   ================================================ */

.page-banner .overlay {
    height: 350px !important;
}

.container {
    max-width: 1100px;
}


/* ================= TABS ================= */
.custom-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.custom-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid #e0e3e7;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 13.5px;
    font-weight: 500;
    color: #666;
    transition: all 0.25s ease;
}

.custom-tabs .nav-link:hover {
    border-color: #aaa;
    color: #111;
    background: #fafafa;
}

.custom-tabs .nav-link.active {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.custom-tabs .nav-link i {
    font-size: 13px;
}


/* ================= CARD ================= */
.card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    height: 100%;
}

.card-section-header {
    padding: 18px 22px 14px;
}

.card-section-header h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #111;
}

.card-section-header h3 i {
    font-size: 15px;
    color: #888;
}

hr {
    margin: 0;
    border-color: #f0f0f0;
}


/* ================= FORM ================= */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #777 !important;
    margin-bottom: 7px !important;
    display: block !important;
}

/* Input with icon */
.input-icon-wrap {
    position: relative;
}

.input-icon-wrap i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.input-icon-wrap .form-control,
.input-icon-wrap select.form-control {
    padding-left: 38px !important;
}

.form-control {
    height: 44px !important;
    border-radius: 10px !important;
    border: 1.5px solid #e5e7ea !important;
    font-size: 13.5px !important;
    background: #f8f9fa !important;
    color: #222 !important;
    transition: all 0.2s !important;
}

.form-control:focus {
    border-color: #111 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06) !important;
}


/* ================= BUTTONS ================= */
.btn {
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.btn-dark {
    background: #111;
    border: none;
    color: #fff;
}

.btn-dark:hover {
    background: #333;
    color: #fff;
}

.btn-outline-dark {
    background: #fff;
    border: 1.5px solid #ccc;
    color: #333;
}

.btn-outline-dark:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn-danger {
    background: #e74c3c;
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
    color: #fff;
}


/* ================= ADDRESS ================= */
.addr-card {
    position: relative;
    border: 1.5px solid #e0e3e7;
    border-radius: 14px;
    padding: 16px;
    height: 100%;
    transition: all 0.25s ease;
    background: #fff;
}

.addr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    border-color: #bbb;
}

.addr-card--default {
    border-color: #111;
    border-width: 2px;
}

.addr-radio {
    position: absolute !important;
    top: 14px;
    right: 14px;
    width: 16px;
    height: 16px;
    accent-color: #111;
    cursor: pointer;
}

.default-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #111;
    color: #fff;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.addr-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.addr-text {
    font-size: 12.5px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 8px;
}

.addr-phone {
    font-size: 12.5px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.addr-phone i {
    color: #27ae60;
    font-size: 12px;
}

.addr-actions {
    display: flex;
    gap: 8px;
}

.btn-addr {
    flex: 1;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    border: 1.5px solid transparent;
}

.btn-addr-edit {
    background: #f1f3f5;
    color: #333;
    border-color: #ddd;
}

.btn-addr-edit:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn-addr-delete {
    background: #fff0f0;
    color: #c0392b;
    border-color: #f5c6c6;
}

.btn-addr-delete:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
}


/* ================= ORDERS ================= */
.order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #fff;
    transition: background 0.2s;
}

.order-header:hover {
    background: #fafafa;
}

.order-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-chevron {
    font-size: 12px;
    color: #aaa;
    transition: transform 0.3s ease;
}

.collapse.show ~ * .order-chevron,
.order-card:has(.collapse.show) .order-chevron {
    transform: rotate(180deg);
}

.order-id {
    font-family: monospace;
    font-size: 14.5px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0.3px;
}

.order-amount-badge {
    background: #111;
    color: #fff;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 14px;
}

.btn-invoice {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-invoice:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.order-body {
    padding: 0 20px 18px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 10px;
    transition: background 0.15s;
}

.order-item:hover {
    background: #f8f9fa;
}

.order-item-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #222;
}

.sample-badge {
    background: #fff3cd;
    color: #856404;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}

.order-item-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.order-item-qty {
    font-size: 13px;
    color: #888;
}

.order-item-qty small {
    font-size: 11px;
    color: #aaa;
}

.order-item-price {
    font-size: 13.5px;
    font-weight: 700;
    color: #111;
    min-width: 75px;
    text-align: right;
}

.order-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 14px;
}

.order-total-bar strong {
    font-size: 15px;
}


/* ================= MISC ================= */
.text-muted {
    color: #888 !important;
    font-size: 13px;
    line-height: 1.6;
}

/* Small button override for address modal toggle */
.address-modal-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .custom-tabs {
        /* overflow-x: auto; */
        /* flex-wrap: nowrap; */
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .custom-tabs .nav-link {
        white-space: nowrap;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .address-modal-toggle,
    .btn-invoice,
    .btn-addr {
        width: fit-content !important;
    }

    .addr-actions {
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    .card {
        border-radius: 12px;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .order-item-right {
        width: 100%;
        justify-content: space-between;
    }

    .order-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}