/* =====================================================
   Account Dashboard Custom Styles
   ===================================================== */

/* Order Cards Container */
.dashboard-order .order-contain,
.order-contain {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
}

/* Order Box Styling */
.order-contain > .order-box,
.order-box.dashboard-bg-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.order-box.dashboard-bg-box:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Order Container - Header */
.order-container {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

/* Order Icon */
.order-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0da487 0%, #0b8d74 100%);
    color: #fff;
}

.order-icon svg {
    width: 24px;
    height: 24px;
}

/* Order status-specific icon colors */
.order-icon.status-pending {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
}

.order-icon.status-processing {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.order-icon.status-shipped {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.order-icon.status-delivered {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

.order-icon.status-cancelled {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* Order Detail */
.order-detail {
    flex: 1;
}

.order-detail h4 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.order-detail h6 {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.order-detail h6 .text-title {
    color: #555;
    font-weight: 500;
}

/* Product Order Detail - Info Section */
.product-order-detail {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.order-wrap {
    width: 100%;
}

/* Product Size List - Order Info */
.product-size {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.product-size li {
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
}

.size-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.size-box h6 {
    font-size: 12px;
    color: #888;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-box h5 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
    text-align: right;
}

.size-box h5.theme-color {
    color: #0da487;
}

.size-box .badge {
    display: inline-block;
    width: fit-content;
}

/* Product Order Detail grows to fill space */
.product-order-detail {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    flex: 1;
}

/* Order Button Group */
.order-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.order-btn-group .btn {
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.order-btn-group .btn-animation {
    background: linear-gradient(135deg, #0da487 0%, #0b8d74 100%);
    border: none;
    color: #fff;
}

.order-btn-group .btn-animation:hover {
    background: linear-gradient(135deg, #0b8d74 0%, #097a65 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 164, 135, 0.35);
}

.order-btn-group .btn-outline-primary {
    border: 2px solid #0da487;
    color: #0da487;
    background: transparent;
}

.order-btn-group .btn-outline-primary:hover {
    background: #0da487;
    color: #fff;
}

/* Badge Improvements */
.order-detail .badge,
.size-box .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge Colors - Override theme styles with high specificity */
.user-dashboard-section .dashboard-right-sidebar .dashboard-order .order-contain .order-box .order-container .order-detail h4 span.badge.bg-warning,
.order-box .badge.bg-warning,
.size-box .badge.bg-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.user-dashboard-section .dashboard-right-sidebar .dashboard-order .order-contain .order-box .order-container .order-detail h4 span.badge.bg-info,
.order-box .badge.bg-info,
.size-box .badge.bg-info {
    background: #17a2b8 !important;
    color: #fff !important;
}

.user-dashboard-section .dashboard-right-sidebar .dashboard-order .order-contain .order-box .order-container .order-detail h4 span.badge.bg-primary,
.order-box .badge.bg-primary,
.size-box .badge.bg-primary {
    background: #007bff !important;
    color: #fff !important;
}

.user-dashboard-section .dashboard-right-sidebar .dashboard-order .order-contain .order-box .order-container .order-detail h4 span.badge.bg-success,
.order-box .badge.bg-success,
.size-box .badge.bg-success {
    background: #28a745 !important;
    color: #fff !important;
}

.user-dashboard-section .dashboard-right-sidebar .dashboard-order .order-contain .order-box .order-container .order-detail h4 span.badge.bg-danger,
.order-box .badge.bg-danger,
.size-box .badge.bg-danger {
    background: #dc3545 !important;
    color: #fff !important;
}

.user-dashboard-section .dashboard-right-sidebar .dashboard-order .order-contain .order-box .order-container .order-detail h4 span.badge.bg-secondary,
.order-box .badge.bg-secondary,
.size-box .badge.bg-secondary {
    background: #6c757d !important;
    color: #fff !important;
}

/* Empty Orders Box */
.empty-box {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
}

.empty-box img {
    opacity: 0.8;
}

.empty-box h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.empty-box .text-content {
    color: #777;
    font-size: 16px;
}

/* Dashboard Background Box - General */
.dashboard-bg-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0;
}

/* Dashboard Title */
.dashboard-order .title {
    margin-bottom: 24px;
}

.dashboard-order .title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .dashboard-order .order-contain,
    .order-contain {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 991px) {
    .dashboard-order .order-contain,
    .order-contain {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .product-size li {
        padding: 10px 12px;
    }

    .size-box h5 {
        font-size: 15px;
    }

    .order-detail h4 {
        font-size: 16px;
    }

    .order-box.dashboard-bg-box {
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .order-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .order-icon svg {
        width: 20px;
        height: 20px;
    }

    .order-detail h4 {
        font-size: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-btn-group {
        flex-direction: column;
    }

    .order-btn-group .btn {
        width: 100%;
        text-align: center;
    }

    .order-box.dashboard-bg-box {
        padding: 16px;
    }

    .product-order-detail {
        padding: 12px;
    }

    .empty-box {
        padding: 40px 20px;
    }

    .empty-box h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .dashboard-order .title h2 {
        font-size: 22px;
    }

    .size-box h6 {
        font-size: 11px;
    }

    .size-box h5 {
        font-size: 14px;
    }
}

/* =====================================================
   Order Detail Page Styles
   ===================================================== */

.order-detail-page .dashboard-bg-box {
    margin-bottom: 0;
}

.order-detail-page .table th {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.order-detail-page .table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f5f5f5;
}

.order-detail-page .table tbody tr:last-child td {
    border-bottom: none;
}

/* Order Summary List */
.dashboard-bg-box .list-unstyled li {
    font-size: 14px;
}

.dashboard-bg-box .list-unstyled .text-content {
    color: #777;
}

.dashboard-bg-box .list-unstyled .theme-color {
    color: #0da487;
    font-size: 18px;
}

/* Total Contain Stats Boxes */
.total-contain {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.total-contain:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.total-contain img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.total-contain img.img-1 {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 80px;
    height: 80px;
    opacity: 0.1;
}

.total-detail h5 {
    font-size: 13px;
    color: #777;
    margin-bottom: 4px;
    font-weight: 500;
}

.total-detail h3 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* Dashboard Detail Cards */
.dashboard-detail {
    background: #f9fafb;
    border-radius: 8px;
    padding: 16px;
}

.dashboard-detail h6 {
    margin-bottom: 6px;
    font-size: 14px;
}

.dashboard-detail a {
    color: #0da487;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.dashboard-detail a:hover {
    text-decoration: underline;
}

/* Dashboard Content Title */
.dashboard-contant-title {
    margin-bottom: 12px;
}

.dashboard-contant-title h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.dashboard-contant-title h4 svg {
    width: 18px;
    height: 18px;
    color: #0da487;
}

/* =====================================================
   Address Book Styles
   ===================================================== */

.dashboard-address .title-flex {
    margin-bottom: 24px;
}

.dashboard-address .title-flex h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

/* Address Box Card */
.address-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.address-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.address-box.default-address {
    border-color: #0da487;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.address-box > div:first-child {
    flex: 1;
}

/* Address Type Label - Use theme default styling */
.address-box .label {
    /* Theme handles positioning - no override needed */
}

.address-box .label label {
    /* Use theme default - remove custom styling */
}

/* Default Badge inline with name */
.address-box .address-table .badge.bg-success {
    font-size: 10px;
    padding: 3px 8px;
    vertical-align: middle;
}

/* Radio Button */
.address-box .form-check {
    margin-bottom: 10px;
    padding-top: 25px;
}

.address-box .form-check-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.address-box .form-check-input:checked {
    background-color: #0da487;
    border-color: #0da487;
}

/* Address Table */
.address-box .address-table {
    margin-top: 10px;
}

.address-box .address-table .table {
    margin-bottom: 0;
}

.address-box .address-table td {
    padding: 6px 0;
    border: none;
    font-size: 13px;
    vertical-align: top;
}

.address-box .address-table td:first-child {
    color: #888;
    width: 80px;
    font-weight: 500;
}

.address-box .address-table td:last-child {
    color: #333;
}

.address-box .address-table td p {
    margin: 0;
    line-height: 1.5;
}

.address-box .address-table tr:first-child td {
    padding-top: 0;
    font-size: 16px;
    color: #222;
}

/* Button Group */
.address-box .button-group {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.address-box .add-button {
    background: #f8f9fa;
    border: 1px solid #eee;
    color: #555;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-box .add-button:hover {
    background: #0da487;
    border-color: #0da487;
    color: #fff;
}

.address-box .add-button svg {
    width: 14px;
    height: 14px;
}

/* Responsive Address Cards */
@media (max-width: 991px) {
    .dashboard-address .title-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .dashboard-address .title-flex h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .address-box {
        padding: 16px;
    }

    .address-box .form-check {
        padding-top: 0;
    }

    .address-box .button-group {
        flex-direction: column;
    }
}

/* =====================================================
   Profile Page Styles
   ===================================================== */

/* Profile Title */
.dashboard-profile .title {
    margin-bottom: 24px;
}

.dashboard-profile .title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

/* Profile Detail Card */
.profile-detail.dashboard-bg-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.profile-detail .dashboard-title h3 {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Profile Name Detail */
.profile-name-detail {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-name-detail h3 {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.profile-name-detail .member-since {
    font-size: 13px;
    color: #888;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px;
}

.profile-name-detail > a {
    color: #0da487;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

.profile-name-detail > a:hover {
    text-decoration: underline;
}

/* Location Profile */
.location-profile ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.location-profile .location-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-profile .location-box svg {
    width: 18px;
    height: 18px;
    color: #0da487;
}

.location-profile .location-box h6 {
    font-size: 14px;
    color: #555;
    margin: 0;
    font-weight: 400;
}

/* Profile About Card */
.profile-about.dashboard-bg-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.profile-about .dashboard-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-about .dashboard-title h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #0da487;
    border-radius: 2px;
}

/* Profile Table */
.profile-table {
    margin-bottom: 0;
}

.profile-table td {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    vertical-align: middle;
}

.profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table td:first-child {
    color: #888;
    width: 140px;
    font-weight: 500;
}

.profile-table td:last-child {
    color: #333;
}

.profile-table .edit-link {
    color: #0da487;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

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

/* Statistics Boxes */
.stat-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: #f0f5f4;
    border-color: #0da487;
}

.stat-box.clickable {
    text-decoration: none;
    cursor: pointer;
}

.stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0da487 0%, #0b8d74 100%);
    color: #fff;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
}

.stat-icon.pending {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.stat-icon.wishlist {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.stat-icon.address {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.stat-detail {
    display: flex;
    flex-direction: column;
}

.stat-detail h4 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1;
}

.stat-detail span {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

/* Responsive Profile */
@media (max-width: 991px) {
    .dashboard-profile .title h2 {
        font-size: 24px;
    }

    .profile-name-detail h3 {
        font-size: 20px;
    }

    .location-profile ul {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .profile-detail.dashboard-bg-box,
    .profile-about.dashboard-bg-box {
        padding: 16px;
    }

    .profile-name-detail {
        flex-direction: column;
    }

    .profile-table td:first-child {
        width: 100px;
    }

    .stat-box {
        padding: 12px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .stat-detail h4 {
        font-size: 18px;
    }
}

/* =====================================================
   Wishlist Page Styles
   ===================================================== */

/* Wishlist Title */
.dashboard-wishlist .title {
    margin-bottom: 24px;
}

.dashboard-wishlist .title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

/* Wishlist Product Cards */
.dashboard-wishlist .product-box-3 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.dashboard-wishlist .product-box-3:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Remove button (X) on wishlist items */
.dashboard-wishlist .close_button {
    width: 32px !important;
    height: 32px !important;
    background: rgba(220, 53, 69, 0.9) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dashboard-wishlist .close_button:hover {
    background: #dc3545 !important;
    transform: scale(1.1);
}

.dashboard-wishlist .close_button svg {
    width: 16px;
    height: 16px;
    color: #fff;
    stroke: #fff;
}

/* Wishlist Active State for heart button */
.wishlist-btn.wishlist-active,
.wishlist-btn.active {
    color: #dc3545 !important;
}

.wishlist-btn.wishlist-active svg,
.wishlist-btn.active svg {
    fill: #dc3545;
    stroke: #dc3545;
}

.wishlist-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Product content in wishlist */
.dashboard-wishlist .product-content {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    color: #777;
}

/* Product name in wishlist */
.dashboard-wishlist .product-detail .name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

/* Empty wishlist box */
.dashboard-wishlist .empty-box {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

/* Responsive Wishlist */
@media (max-width: 991px) {
    .dashboard-wishlist .title h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .dashboard-wishlist .empty-box {
        padding: 40px 20px;
    }

    .dashboard-wishlist .product-detail .name {
        font-size: 14px;
        min-height: auto;
    }
}
