/* thông tin tài khoản */
.profile-container {
    padding: 0 0 40px 0;
    margin-top: 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* Sidebar Styles */
.profile-sidebar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.profile-user-info {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fce4ec;
    /* Light pink background */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ee2b5b;
    /* Primary color */
    font-weight: 700;
    font-size: 20px;
}

.user-details h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #333;
}

.user-details p {
    font-size: 13px;
    color: #ffd700;
    /* Gold color for member status */
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-menu {
    padding: 10px 0;
    list-style: none;
    margin: 0;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #4a4a4a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.profile-menu-item:hover {
    background-color: #f9f9f9;
    color: #ee2b5b;
}

.profile-menu-item.active {
    background-color: #fff0f3;
    color: #ee2b5b;
    border-left: 3px solid #ee2b5b;
}

.profile-menu-item .material-symbols-outlined {
    font-size: 20px;
}

/* Main Content Styles */
.profile-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.profile-header {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.profile-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #333;
}

.profile-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Form Styles */
.profile-form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    background-color: #fcfcfc;
}

.form-input:focus {
    border-color: #ee2b5b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(238, 43, 91, 0.1);
    background-color: #fff;
}

.form-input[readonly] {
    background-color: #f5f5f5;
    cursor: default;
    color: #777;
}

/* Radio Buttons for Gender */
.gender-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.radio-input {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.radio-input:checked {
    border-color: #ee2b5b;
}

.radio-input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: #ee2b5b;
    border-radius: 50%;
}

/* Date Selects */
.date-selects {
    display: flex;
    gap: 15px;
}

.custom-select {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    cursor: pointer;
}

/* Avatar Upload Section */
.avatar-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fce4ec;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #ee2b5b;
}

.btn-upload-avatar {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}

.btn-upload-avatar:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.upload-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

/* Action Buttons */
.btn-save {
    background-color: #ee2b5b;
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(238, 43, 91, 0.2);
}

.btn-save:hover {
    background-color: #d61c48;
}

.change-link {
    font-size: 13px;
    color: #ee2b5b;
    text-decoration: none;
    font-weight: 600;
    position: absolute;
    right: 12px;
}

.verify-badge {
    font-size: 12px;
    color: #ee2b5b;
    font-weight: 500;
    position: absolute;
    right: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        margin-bottom: 20px;
    }

    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .avatar-upload-section {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding-left: 0;
        padding-top: 30px;
        margin-top: 30px;
        order: -1;
        /* Move avatar to top on mobile */
        margin-bottom: 30px;
    }
}

/* end */


/* đơn hàng */

/* body style removed */

.btn-cancel-custom {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #d32f2f;
    color: #d32f2f;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
    background-color: #fff;
}

.btn-cancel-custom:hover {
    background-color: #d32f2f;
    color: #fff;
    text-decoration: none;
}


/* TABS STYLE */
.order-type-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-toggle-type {
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-toggle-type.active {
    background-color: #ee2b6c;
    color: white;
}

.btn-toggle-type.inactive {
    background-color: transparent;
    color: #555;
}

.custom-tabs {
    background: #fff;
    display: flex;
    border-radius: 2px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .05);
    overflow-x: auto;
}

.custom-tab-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 15px;
    cursor: pointer;
    color: #555;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    min-width: 100px;
    transition: color .2s;
}

.custom-tab-item.active {
    color: #ee4d2d;
    /* Màu cam Shopee */
    border-bottom: 2px solid #ee4d2d;
    font-weight: 500;
}

.custom-tab-item:hover {
    color: #ee4d2d;
}

/* ORDER CARD STYLE */
.order-card-new {
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .05);
    overflow: hidden;
}

.card-top-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.order-code {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

.btn-link-detail {
    color: #2196f3;
    /* Màu xanh link */
    text-decoration: none;
    font-size: 14px;
}

/* Thanh xám thông tin vận chuyển */
.shipment-bar {
    background-color: #f8f8f8;
    /* Màu xám nhạt */
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.ship-info {
    color: #555;
}

.delivery-date {
    color: #ee2b6c;
    /* Màu xanh lá ngày giao */
    font-weight: 500;
}

.order-status-text {
    color: #ee4d2d;
    /* Màu cam trạng thái */
    margin-left: 10px;
}

.bar-total {
    color: #555;
}

.bar-total-price {
    color: #ee4d2d;
    font-weight: 700;
    font-size: 16px;
    margin-left: 5px;
}

/* Sản phẩm */
.product-row {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #f1f1f1;
}

.prod-img-box {
    width: 80px;
    height: 80px;
    border: 1px solid #e1e1e1;
    margin-right: 15px;
    position: relative;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-info {
    flex: 1;
}

.brand-name {
    color: #ee2b6c;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    display: block;
}

.prod-name {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}

.prod-desc {
    color: #888;
    font-size: 13px;
}

.price-qty-box {
    text-align: right;
    min-width: 120px;
}

.qty-display {
    color: #333;
    font-size: 15px;
}

.price-display {
    font-weight: 600;
    color: #333;
}

/* Footer buttons */
.card-bottom-actions {
    padding: 15px 20px;
    text-align: right;
    background: #fff;
}

.btn-buy-again-outline {
    border: 1px solid #333;
    background: #fff;
    color: #333;
    padding: 8px 30px;
    border-radius: 20px;
    /* Bo tròn như hình */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.btn-buy-again-outline:hover {
    background: #f5f5f5;
}

/* Breadcrumb styling fix */
.breadcrumb-container {
    background: transparent;
    padding: 10px 0;
}

/* end */

/* form hủy đơn */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation-name: animatetop;
    animation-duration: 0.4s
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.custom-modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-modal-body {
    padding: 20px;
    font-size: 15px;
    color: #333;
}

.custom-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-modal-secondary {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.btn-modal-secondary:hover {
    background-color: #f5f5f5;
}

.btn-modal-danger {
    padding: 8px 16px;
    background-color: #ee4d2d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-modal-danger:hover {
    background-color: #d63c1f;
    color: white;
}

/* Inline Modal CSS to avoid cache issues */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation-name: animatetop;
    animation-duration: 0.4s
}

.custom-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation-name: animatetop;
    animation-duration: 0.4s
}

@keyframes animatetop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

.custom-modal-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.custom-modal-body {
    padding: 20px;
    font-size: 15px;
    color: #333;
}

.custom-modal-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-modal-secondary {
    padding: 8px 16px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.btn-modal-danger {
    padding: 8px 16px;
    background-color: #ee4d2d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

/* end */

/* sổ địa chỉ */

.address-book-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    min-height: 400px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

/* Card địa chỉ */
.address-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    background: #fff;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.addr-name {
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

.btn-edit-addr {
    color: #0d6efd;
    /* Màu xanh link */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.btn-edit-addr:hover {
    text-decoration: underline;
}

.addr-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Badges / Tags */
.addr-tags {
    display: flex;
    gap: 10px;
}

.tag {
    padding: 4px 12px;
    border-radius: 15px;
    /* Bo tròn kiểu viên thuốc */
    font-size: 12px;
    font-weight: 500;
}

.tag-home {
    background-color: #ee2b5b;
    /* Màu xanh đậm giống hình */
    color: white;
    border: 1px solid #ee2b5b;
}

.tag-default {
    background-color: #fff;
    color: #ee4d2d;
    /* Màu cam */
    border: 1px solid #ee4d2d;
}

/* Footer Action */
.address-footer-action {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.text-ask {
    color: #555;
    font-size: 14px;
}

.btn-add-new-addr {
    background-color: #ee2b5b;
    /* Màu xanh đậm */
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    /* Bo tròn lớn */
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}


/* Modal Styles */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Use flexbox to center */
    display: flex;
}

/* Hide by default but override with inline style when needed */
.profile-modal-overlay[style*="display: none"] {
    display: none !important;
}

.profile-modal-container {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;
    overflow: hidden;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* form địa chỉ  */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row.three-col .input-wrapper {
    flex: 1;
}

.input-wrapper {
    width: 100%;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
    /* Ensure font matches */
}

.input-wrapper textarea {
    resize: vertical;
    /* Allow vertical resize only */
    min-height: 80px;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: #ee2b5b;
}

.btn-confirm-custom {
    padding: 6px 16px;
    background-color: #ee2b5b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.btn-confirm-custom:hover {
    background-color: #d61c48;
}

/* end */