/* --- Global Styles & Fonts --- */
body {
    font-family: 'Poppins', sans-serif !important;
    background-color: #ffffff;
    color: #212529;
}

/* --- Header --- */
.header-top-bar {
    background-color: #005d4b;
    padding: 8px 0;
    font-size: 0.8rem;
}
.header-top-bar a {
    color: #ffffff;
    text-decoration: none;
    padding: 0 10px;
    font-weight: 500;
}
.subscribe-link {
    font-weight: 600;
}
.main-nav {
    border-bottom: 1px solid #dee2e6;
}
.logo {
    height: 40px;
}
.main-nav .nav-link {
    color: #212529;
    font-weight: 500;
    margin: 0 10px;
}
.nav-icon {
    font-size: 1.5rem;
    color: #212529;
    margin-left: 15px;
}

/* --- Main Content --- */
/* --- Main Content --- */
/* (Keep your .account-title rule here) */

/* Replace all your existing .account-sidebar and .logout-link rules with this block */
.account-sidebar li {
    padding: 0.5rem 0; /* Add vertical spacing between items */
}

/* Add divider lines ONLY between the first two items */
.account-sidebar ul li:nth-child(1),
.account-sidebar ul li:nth-child(2) {
    border-bottom: 1px solid #e9ecef;
}

.account-sidebar a {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-left: none; /* Remove old active indicator */
    background-color: transparent !important; /* Remove background on hover */
    transition: color 0.2s ease;
}

.account-sidebar a:hover {
    color: #212529;
}

.account-sidebar a.active {
    color: #212529;
    font-weight: 700; /* Make active link bold */
}

.account-sidebar a i {
    margin-right: 1rem;
    font-size: 1.4rem;
    width: 24px;
    color: #6c757d; /* Icons are gray by default */
    transition: color 0.2s ease;
}

/* Make icon black for active and hovered links */
.account-sidebar a.active i,
.account-sidebar a:hover i {
    color: #212529;
}

/* Styles for the Logout link */
.logout-link {
    color: #dc3545 !important;
}

.logout-link:hover {
    color: #a71d2a !important; /* Darker red on hover */
}

.logout-link i {
    color: #dc3545 !important; /* Red icon */
}

.logout-link:hover i {
    color: #a71d2a !important; /* Darker red icon on hover */
}
.account-title {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* --- Tabs --- */
/* --- Tabs (Figma Design Update) --- */
.account-tabs {
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
    border-bottom: none;
    display: inline-flex;
}
.account-tabs .nav-item {
    margin: 0;
}
/* Replace with this */
.account-tabs .nav-item .nav-link {
    background-color: transparent;
    border: none;
    color: #6c757d;
    border-radius: 8px; /* Slightly squared corners */
    font-weight: 500;
    font-size: 0.95rem; /* Slightly smaller text */
    padding: 8px 22px; /* Reduced padding */
    transition: all 0.2s ease-in-out;
}
.account-tabs .nav-item .nav-link.active {
    background-color: #ffffff;
    color: #212529;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    transform: scale(1.02);
}
.btn-upload {
    font-weight: 500;
    border-radius: 50px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    color: #212529;
    padding: 8px 20px;
}
.btn-delete {
    font-weight: 500;
    border-width: 2px;
    border-radius: 50px;
    padding: 8px 20px;
}
/* --- Form (Final Design Refinement - Underline Style) --- */
.tab-content {
    border: none; /* Remove the old border */
}

/* Reset the form group container */
#account-info-section .form-group {
    border: none;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    position: static; /* Revert relative positioning */
}

/* Style the labels as per the design */
#account-info-section .form-group label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: none;
    letter-spacing: 0;
}

/* Style the form inputs with an underline */
#account-info-section .form-control {
    border: none;
    border-bottom: 1px solid #dee2e6; /* The underline */
    border-radius: 0;
    background-color: transparent;
    padding: 0.25rem 0; /* Adjust vertical padding */
    height: auto;
    font-size: 1.1rem;
    font-weight: 500;
    color: #212529;
}
#account-info-section .form-control:focus {
    box-shadow: none;
    border-color: #212529; /* Black focus line */
}

/* Handle the "Not verify" text positioning */
#account-info-section .input-group {
    align-items: center;
}
#account-info-section .not-verified-text {
    position: static;
    margin-left: 1rem;
    background-color: transparent;
}
#account-info-section #account .form-control {
    padding-right: 0;
}

/* --- Password Tab Styles --- */
.password-toggle-icon {
    position: absolute;
    top: 55%;
    right: 5px;
    transform: translateY(-50%);
    z-index: 3;
    text-decoration: none;
    line-height: 1;
}
.password-toggle-icon:focus {
    box-shadow: none;
}
#currentPassword {
    padding-right: 45px;
}

/* Reusable light outline button style */
.btn-outline-light-gray {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    color: #343a40;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.btn-outline-light-gray:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #343a40;
}

/* --- Modal Styles --- */
.modal-backdrop.show {
    opacity: 0.7;
}
.modal-content {
    border-radius: 12px;
    border: none;
}
.modal-header {
    border-bottom: 1px solid #f0f0f0;
}
.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.modal-body {
    padding: 2rem;
}

/* Profile Pictures Modal */
.picture-label {
    color: #adb5bd;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.profile-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2rem;
}
.profile-pic-modal {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.btn-pill {
    border-radius: 50px !important;
    font-weight: 600;
    padding: 8px 24px;
    border-width: 2px;
}
.btn-pill.btn-light {
    border-color: #dee2e6;
}
.btn-pill.btn-light:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}
.btn-pill.btn-outline-danger {
    color: #dc3545;
}

/* Change Password Modal */
#changePasswordModal .modal-content {
    border-radius: 16px;
}
.change-password-modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
}
.form-control-modal {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 45px 12px 16px;
    font-size: 1rem;
    height: 50px;
}
.form-control-modal:focus {
    border-color: #ff5a1f;
    box-shadow: 0 0 0 0.25rem rgba(255, 90, 31, 0.25);
}
.password-toggle-icon-modal {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(2px);
    z-index: 5;
}
.trouble-link {
    color: #ff5a1f;
    font-weight: 600;
    text-decoration: underline;
}
.btn-save-password {
    background-color: #ff5a1f;
    color: #fff;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
}
.btn-save-password:hover {
    background-color: #e64a0f;
    color: #fff;
}

/* Success Modal */
#successModal .modal-content {
    border-radius: 16px;
    border: none;
}
.success-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e9f7ef;
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-icon-wrapper .bi-check-lg {
    color: #28a745;
    font-size: 2.5rem;
    font-weight: bold;
}
.success-message {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

/* --- Responsive Styles (Mobile First) --- */
@media (max-width: 767.98px) {
    /* Header Adjustments */
    .header-top-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav .header-right-actions {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
        margin-top: 20px;
    }
    .main-nav .btn {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
    .header-icons {
        margin-top: 10px;
    }
    .nav-icon {
        margin-left: 0;
        margin-right: 20px;
    }
    /* Main Content Layout */
    .account-sidebar {
        margin-bottom: 40px;
    }
    .account-title {
        font-size: 2rem;
    }
    .tab-content .p-4 {
        padding: 1.5rem !important;
    }
    /* Profile Picture Section in Account Tab */
    #account .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
    }
    #account .profile-pic + div {
        margin-left: 0 !important;
        margin-top: 20px;

    }

    /* Form Input Group in Account Tab */
    #account .input-group {
        position: relative;
    }
    #account .form-control {
        padding-right: 110px;
    }
    #account .not-verified-text {
        position: absolute;
        right: 0;
        bottom: 10px;
    }
}

@media (max-width: 576px) {
    #changePasswordModal .modal-content,
    #successModal .modal-content {
        padding: 1rem;
    }
    .change-password-modal-title {
        font-size: 1.1rem;
    }
    .modal-body {
        padding: 1.5rem 1rem;
    }
}

/* --- Add New Address Modal Styles --- */
.form-section-title {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* Target only form controls within this specific modal */
#addNewAddressModal .form-control {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}
#addNewAddressModal .form-control:focus {
    box-shadow: none;
    border-color: #ff5a1f; /* Use orange focus color */
}

/* Style the phone number prefix */
#addNewAddressModal .input-group-text {
    background: none;
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
    padding-left: 0;
    font-weight: 500;
}

/* Adjustments for the modal layout */
#addNewAddressModal .modal-header, #addNewAddressModal .modal-footer {
    border: none;
}

/* --- Address Tab List Styles --- */
.address-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    gap: 1rem;
}
.address-icon {
    color: #dc3545; /* Red pin icon */
    font-size: 1.25rem;
    padding-top: 0.1rem;
}
.address-details {
    flex-grow: 1; /* Takes up available space */
}
.address-details p {
    margin: 0;
    line-height: 1.6;
}
.address-tag {
    display: inline-block;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.5rem;
}
.address-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.default-badge {
    color: rgba(9, 72, 94, 1);
    font-weight: 600;
    font-size: 0.9rem;
    display: none; /* Hidden by default */
}
.address-card.is-default .default-badge {
    display: block; /* Shown only on default card */
}
.kebab-dropdown-toggle {
    color: #6c757d;
    padding: 0 0.5rem;
    text-decoration: none;
}
.kebab-dropdown-toggle::after {
    display: none; /* Hide default dropdown arrow */
}
.kebab-dropdown-toggle:hover {
    color: #212529;
}
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.dropdown-item {
    font-weight: 500;
}
.remove-btn {
    color: #dc3545 !important;
}

/* --- Responsiveness for Address Cards --- */
@media (max-width: 576px) {
    .address-card {
        padding: 1rem;
        flex-wrap: wrap; /* Allow items to wrap on small screens */
    }
    .address-actions {
        width: 100%;
        justify-content: flex-end; /* Align actions to the right */
        margin-top: 0.5rem;
        padding-left: 2.25rem; /* Align with address details text */
    }
}

/* --- Delete Confirmation Modal Styles --- */
#deleteAddressModal .modal-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#deleteAddressModal .modal-footer {
    border-top: none;
    gap: 0.5rem; /* Space between buttons */
}

.btn-danger-solid {
    background-color: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-danger-solid:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: #fff;
}

/* --- Wishlist Page Styles --- */
.wishlist-title {
    font-weight: 600;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.product-card {
    margin-bottom: 2rem;
}

.product-image-container {
    position: relative;
    background-color: #f8f9fa; /* Light gray background */
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1rem;
    aspect-ratio: 1 / 1; /* Make it a square */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-width: 80%;
    height: auto;
}

.wishlist-heart-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: #dc3545; /* Red heart */
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wishlist-heart-btn:hover {
    transform: scale(1.1);
}

.product-price {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-title {
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-description {
    color: #6c757d;
    font-size: 0.9rem;
}

/* --- Responsive styles for wishlist title --- */
@media (max-width: 767.98px) {
    .wishlist-title {
        font-size: 2rem;
    }
}

/* --- Darker Modal Backdrop --- */
/* This will apply to all modals for a consistent look */
.modal-backdrop.show {
    opacity: 0.8;
}

/* --- Logout Modal Styles --- */
#logoutModal .modal-content {
    border-radius: 16px;
    border: none;
}
#logoutModal .modal-body {
    padding: 2.5rem;
}
.logout-icon {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 1rem;
}
.logout-message {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 2rem;
}
.logout-actions .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.6rem 0;
    width: 130px; /* Give buttons equal width */
    margin: 0 0.5rem;
    border-width: 2px;
}
.btn-logout-confirm {
    border-color: #dc3545;
    color: #dc3545;
    background-color: #fff;
}
.btn-logout-confirm:hover {
    background-color: #dc3545;
    color: #fff;
}
.btn-logout-cancel {
    border-color: #ced4da;
    color: #6c757d;
    background-color: #fff;
}
.btn-logout-cancel:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* --- My Order Page Styles --- */
.order-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap; /* Allows wrapping on mobile */
}

.order-details {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.order-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.order-details p {
    margin-bottom: 0;
    font-size: 1rem;
}

.order-actions {
    margin-left: auto; /* Pushes button to the right on desktop */
}

.order-card-body {
    padding: 1.5rem;
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive adjustments for the Order Card Header */
@media (max-width: 767.98px) {
    .order-card-header {
        gap: 1.5rem; /* Adds space between details and button when stacked */
    }
    .order-details {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
    .order-actions {
        width: 100%;
        margin-left: 0;
    }
    .order-actions .btn {
        width: 100%;
    }
}

/* Update this rule in your style.css */
.btn-save-changes {
    background-color: #000000; /* Dark gray/black background */
    color: #fff; /* White text */
    border-radius: 50px; /* Pill shape */
    padding: 12px 30px; /* Generous padding */
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: background-color 0.2s ease-in-out;
}

.btn-save-changes:hover {
    background-color: #212529; /* Darken slightly on hover */
    color: #fff;
}

/* --- My Order Page Styles --- */
.order-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.order-status-tabs .nav-link {
    font-size: 0.9rem;
    padding: 8px 18px;
}
.order-search-bar {
    max-width: 350px;
}
.order-search-bar .form-control, .order-search-bar .input-group-text {
    border-color: #dee2e6;
    font-size: 0.9rem;
}
.order-search-bar .form-control:focus {
    box-shadow: none;
    border-color: #212529;
}

.order-card-v2 {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 2rem;
}
.order-card-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}
.order-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 1.5rem;
}
.order-status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}
.status-waiting {
    background-color: #fff8e1;
    color: #f57c00;
}
.order-card-body-v2 {
    padding: 1.5rem;
}
.product-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}
.product-row:first-child {
    padding-top: 0;
}
.product-row:last-of-type {
    border-bottom: none;
}
.product-row-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-row-img img {
    width: 70%;
}
.product-row-details {
    flex-grow: 1;
}
.product-row-details p {
    margin: 0;
}
.product-name {
    font-weight: 600;
}
.product-specs {
    font-size: 0.85rem;
    color: #6c757d;
}
.product-color-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #5d4037; /* Example color */
    vertical-align: middle;
    margin-left: 4px;
}
.product-row-pricing {
    text-align: right;
}
.product-row-pricing p {
    margin: 0;
}
.product-qty {
    font-size: 0.9rem;
    color: #6c757d;
}
.see-all-toggle {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    padding-top: 1rem;
}
.see-all-toggle:hover {
    color: #212529;
}
.order-card-footer-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 16px 16px;
}
.payment-timer {
    font-size: 0.9rem;
    font-weight: 500;
}
.payment-countdown {
    color: #dc3545;
    font-weight: 700;
}
.order-total {
    font-size: 0.9rem;
    color: #6c757d;
}
.order-total strong {
    font-size: 1.2rem;
    color: #212529;
}
.order-footer-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-cancel-order {
    background-color: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 600;
    border-radius: 8px;
}
.btn-finish-payment {
    background-color: #ff5a1f;
    color: #fff;
    border: 2px solid #ff5a1f;
    font-weight: 600;
    border-radius: 8px;
}

/* Responsive adjustments for My Order */
@media (max-width: 767.98px) {
    .order-card-footer-v2, .order-total {
        justify-content: center;
        text-align: center;
    }
    .order-footer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* --- My Order Page - Cancelled State Styles --- */
.order-status-badge.status-cancelled {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.cancelled-footer {
    justify-content: space-between;
}

.cancellation-reason {
    font-size: 0.9rem;
    font-style: italic;
    color: #6c757d;
    margin-right: auto; /* Pushes other items to the right */
}

.cancellation-reason .not-paid {
    color: #dc3545;
    font-weight: 600;
    font-style: normal;
}

/* --- My Order Page - Processing State Styles --- */
.order-status-badge.status-manufacturing {
    background-color: #e9f7ef;
    color: #28a745;
    border: 1px solid #28a745;
}

.shipping-date {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-right: auto;
}

/* --- My Order Page - Completed State Styles --- */
.order-status-badge.status-complete {
    background-color: #e9f7ef;
    color: #28a745;
}

.order-status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    margin-right: auto;
}

/*
 * Styles for the Billing/Shipping Address Toggle Buttons
 */
.btn-address-toggle {
    background-color: transparent;
    border: 1px solid transparent; /* No border by default */
    border-bottom: 1px solid #dee2e6; /* Light gray bottom border for inactive tabs */
    color: #6c757d; /* Muted text color for inactive tabs */
    border-radius: 0;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.btn-address-toggle.active {
    color: #000; /* Black text for the active tab */
    border: 1px solid #dee2e6; /* Full border for the active tab */
    border-bottom: 1px solid #fff; /* White bottom border to merge with the content area */
    background-color: #fff;
}
/* --- My Order Page Styles --- */
.order-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.order-status-tabs .nav-link {
    font-size: 0.9rem;
    padding: 8px 18px;
}
.order-search-bar {
    max-width: 350px;
}
.order-search-bar .form-control, .order-search-bar .input-group-text {
    border-color: #dee2e6;
    font-size: 0.9rem;
}
.order-search-bar .form-control:focus {
    box-shadow: none;
    border-color: #212529;
}
.order-card-v2 {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    margin-bottom: 2rem;
}
.order-card-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}
.order-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 1.5rem;
}
.order-status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
}
.status-waiting {
    background-color: #fff8e1;
    color: #f57c00;
}
.status-manufacturing {
    background-color: #e9f7ef;
    color: #28a745;
    border: 1px solid #28a745;
}
.status-complete {
    background-color: #e9f7ef;
    color: #28a745;
}
.status-cancelled {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}
.order-card-body-v2 {
    padding: 1.5rem;
}
.product-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}
.product-row:first-child {
    padding-top: 0;
}
.product-row:last-of-type {
    border-bottom: none;
}
.product-row-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-row-img img {
    width: 70%;
}
.product-row-details {
    flex-grow: 1;
}
.product-row-details p {
    margin: 0;
}
.product-name {
    font-weight: 600;
}
.product-specs {
    font-size: 0.85rem;
    color: #6c757d;
}
.product-color-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #5d4037;
    vertical-align: middle;
    margin-left: 4px;
}
.product-row-pricing {
    text-align: right;
}
.product-row-pricing p {
    margin: 0;
}
.product-qty {
    font-size: 0.9rem;
    color: #6c757d;
}
.see-all-toggle {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    padding-top: 1rem;
}
.see-all-toggle:hover {
    color: #212529;
}
.order-card-footer-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 16px 16px;
}
.payment-timer {
    font-size: 0.9rem;
    font-weight: 500;
}
.payment-countdown {
    color: #dc3545;
    font-weight: 700;
}
.order-total {
    font-size: 0.9rem;
    color: #6c757d;
}
.order-total strong {
    font-size: 1.2rem;
    color: #212529;
}
.order-footer-actions {
    display: flex;
    gap: 0.5rem;
}
.btn-cancel-order {
    background-color: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
    font-weight: 600;
    border-radius: 8px;
}
.btn-finish-payment {
    background-color: #ff5a1f;
    color: #fff;
    border: 2px solid #ff5a1f;
    font-weight: 600;
    border-radius: 8px;
}
.shipping-date {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    margin-right: auto;
}
.order-status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    margin-right: auto;
}
.cancelled-footer {
    justify-content: space-between;
}
.cancellation-reason {
    font-size: 0.9rem;
    font-style: italic;
    color: #6c757d;
    margin-right: auto;
}
.cancellation-reason .not-paid {
    color: #dc3545;
    font-weight: 600;
    font-style: normal;
}

/* Responsive adjustments for My Order */
@media (max-width: 767.98px) {
    .order-card-footer-v2, .order-total {
        justify-content: center;
        text-align: center;
    }
    .order-footer-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}