/* SweetAlert2 popup */
.swal2-container {
    z-index: 999999 !important;
}

/* ==================== PROFILE CONTAINER ==================== */
.profile-container {
    min-height: 70vh;
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.profile-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #fae01a;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: #dc2c1d;
}

.profile-header h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.profile-header h1 i {
    color: #dc2c1d;
    font-size: 48px;
}

.profile-header p {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* ==================== PROFILE LAYOUT ==================== */

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

/* ==================== SIDEBAR NAVIGATION ==================== */

.profile-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 100px;
    border: 2px solid #fae01a;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    background: white;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    position: relative;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #dc2c1d;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-item:hover {
    background: #fff9e6;
    color: #333;
    padding-left: 30px;
}

.sidebar-item.active {
    background: linear-gradient(90deg, #fae01a 0%, #fff9e6 100%);
    color: #dc2c1d;
    font-weight: 700;
    padding-left: 30px;
}

.sidebar-item.active::before {
    transform: scaleY(1);
}

.sidebar-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.sidebar-item:last-child {
    border-bottom: none;
}

/* ==================== CONTENT AREA ==================== */

.profile-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid #fae01a;
}

.content-tab {
    display: none;
    padding: 40px;
    animation: fadeInUp 0.4s ease;
}

.content-tab.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tab-header h2 {
    font-size: 28px;
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
}

.tab-header p {
    font-size: 14px;
    color: #666;
}

/* ==================== PROFILE INFO CARD ==================== */

.profile-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #fae01a;
}

.profile-avatar-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fae01a;
    box-shadow: 0 8px 25px rgba(220, 44, 29, 0.2);
    transition: all 0.3s ease;
}

.avatar-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(220, 44, 29, 0.3);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-wrapper:hover .avatar-overlay {
    opacity: 1;
}

.avatar-upload-btn {
    background: #fae01a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.avatar-upload-btn:hover {
    background: #dc2c1d;
    transform: scale(1.1);
}

.avatar-upload-btn i {
    font-size: 20px;
    color: #333;
}

.avatar-upload-btn:hover i {
    color: white;
}

/* ==================== FORM STYLES ==================== */

.profile-form {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label i {
    color: #dc2c1d;
    font-size: 16px;
}

.form-group label .required {
    color: #dc2c1d;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fae01a;
    box-shadow: 0 0 0 3px rgba(250, 224, 26, 0.1);
}

.form-group input:read-only {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-info-note {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-info-note i {
    color: #2196F3;
    font-size: 18px;
    flex-shrink: 0;
}

.form-info-note span {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* ==================== PASSWORD INPUT ==================== */

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #dc2c1d;
}

.toggle-password.active {
    color: #dc2c1d;
}

.password-requirements {
    background: #fff9e6;
    border-left: 4px solid #fae01a;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 4px;
}

.password-requirements p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #666;
    font-size: 14px;
}

.password-requirements i {
    color: #fae01a;
    font-size: 16px;
}

/* ==================== BUTTONS ==================== */

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-save {
    background: #dc2c1d;
    color: white;
    border: 2px solid #dc2c1d;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn-save:hover {
    background: white;
    color: #dc2c1d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 44, 29, 0.3);
}

.btn-cancel {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

.btn-add-new {
    background: #fae01a;
    color: #333;
    border: 2px solid #fae01a;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-new:hover {
    background: #dc2c1d;
    color: white;
    border-color: #dc2c1d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 44, 29, 0.3);
}

.btn-primary {
    background: #dc2c1d;
    color: white;
    border: 2px solid #dc2c1d;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background: white;
    color: #dc2c1d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 44, 29, 0.3);
}

/* ==================== PASSWORD CARD ==================== */

.password-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 40px;
    border: 2px solid #fae01a;
    max-width: 600px;
}

/* ==================== ADDRESSES GRID ==================== */

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.address-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.address-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fae01a 0%, #dc2c1d 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.address-card:hover {
    border-color: #fae01a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.address-card:hover::before {
    transform: scaleX(1);
}

.address-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fae01a;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.address-tag i {
    font-size: 14px;
}

.address-details {
    margin-bottom: 20px;
}

.address-details p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.address-details p strong {
    color: #333;
    font-weight: 600;
}

.address-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn-edit,
.btn-delete {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-edit {
    background: #fae01a;
    color: #333;
}

.btn-edit:hover {
    background: #e6cc00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 224, 26, 0.3);
}

.btn-delete {
    background: #dc2c1d;
    color: white;
}

.btn-delete:hover {
    background: #b02418;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 44, 29, 0.3);
}

/* ==================== TAG SELECTOR ==================== */

.tag-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-btn {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-btn:hover {
    border-color: #fae01a;
    background: #fff9e6;
    color: #333;
}

.tag-btn.active {
    background: #fae01a;
    border-color: #fae01a;
    color: #333;
}

.tag-btn i {
    font-size: 16px;
}

/* ==================== ORDERS LIST ==================== */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.order-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: #fae01a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.order-header {
    background: linear-gradient(90deg, #fae01a 0%, #fff9e6 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-id {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.order-date {
    font-size: 14px;
    color: #666;
}

.order-status {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.completed {
    background: #d4edda;
    color: #155724;
}

.order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-body {
    padding: 25px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.order-item-image {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.order-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.order-item-qty {
    font-size: 14px;
    color: #666;
}

.order-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #dc2c1d;
    text-align: right;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #fae01a;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.order-summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: #dc2c1d;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

/* ==================== EMPTY STATE ==================== */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.empty-state i {
    color: #ddd;
}

.empty-state h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* ==================== MODAL CENTER ALIGNMENT ==================== */
.address-modal {
    max-width: 650px;
    border-radius: 12px;
    margin: 50px auto;
    position: relative;
    /* height: -webkit-fill-available; */
    height: 600px;
    overflow-y: scroll;
}

#addressModal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.address-modal h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #fae01a;
    font-weight: 700;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-item {
        flex-direction: column;
        min-width: 120px;
        text-align: center;
        gap: 8px;
        padding: 15px 10px;
    }

    .sidebar-item span {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .profile-header h1 {
        font-size: 32px;
        flex-direction: column;
    }

    .content-tab {
        padding: 25px;
    }

    .profile-info-card,
    .password-card {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-save,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 28px;
    }

    .avatar-wrapper {
        width: 120px;
        height: 120px;
    }

    .content-tab {
        padding: 20px;
    }

    .sidebar-menu {
        gap: 5px;
    }

    .sidebar-item {
        min-width: 100px;
        font-size: 12px;
    }

    .order-item {
        flex-direction: column;
    }

    .order-item-image {
        width: 100%;
        height: 150px;
    }
}

/* ==================== LOADING ANIMATION ==================== */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== SMOOTH TRANSITIONS ==================== */

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==================== ORDER DETAILS MODAL STYLES ==================== */

.order-details-modal {
    max-width: 650px;
    border-radius: 12px;
    margin: 50px auto;
    position: relative;
    height: -webkit-fill-available;
    /* height: 900px; */
    overflow-y: scroll;
}

.order-details-modal h2 {
    color: #dc2c1d;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-details-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-header h3 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.detail-info-item.full-width {
    grid-column: 1 / -1;
}

.detail-info-item i {
    color: #dc2c1d;
    font-size: 20px;
    margin-top: 2px;
    min-width: 20px;
}

.detail-info-item div {
    flex: 1;
}

.detail-info-item label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-weight: 600;
}

.detail-info-item span {
    display: block;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.payment-status {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.payment-status.paid {
    background: #d4edda;
    color: #155724;
}

.payment-status.unpaid {
    background: #fff3cd;
    color: #856404;
}

.delivery-address {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dc2c1d;
}

.delivery-address h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-address h4 i {
    color: #dc2c1d;
}

.address-content p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.address-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #dc2c1d;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.order-items-section {
    margin-top: 10px;
}

.order-items-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-items-section h4 i {
    color: #dc2c1d;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item-detail {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.order-item-detail:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.item-image {
    flex-shrink: 0;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.item-info {
    flex: 1;
}

.item-info h5 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.item-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.item-category i {
    font-size: 11px;
}

.item-pricing {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.item-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.item-info p i {
    color: #999;
    font-size: 12px;
    min-width: 16px;
}

.item-qty {
    color: #666 !important;
    font-weight: 500 !important;
}

.item-price {
    color: #dc2c1d !important;
    font-weight: 600 !important;
}

.item-total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 120px;
    gap: 4px;
}

.total-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.total-amount {
    font-size: 20px;
    font-weight: 700;
    color: #dc2c1d;
    line-height: 1;
}

.no-items {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

.order-summary-detail {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 15px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #dc2c1d;
    padding-top: 15px;
    border-top: 2px solid #dc2c1d;
    margin-top: 10px;
}

/* View Details Button */
.order-footer {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
}

.btn-view-details {
    background: #dc2c1d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-view-details:hover {
    background: #b91c12;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 44, 29, 0.3);
}

.btn-view-details i {
    font-size: 16px;
}

/* Update existing order-note styling */
.order-note {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin-top: 15px;
}

.order-note i {
    color: #ffc107;
    font-size: 16px;
    margin-top: 2px;
}

.order-note span {
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-details-modal {
        max-width: 95%;
        padding: 20px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .order-item-detail {
        flex-direction: column;
        gap: 12px;
    }

    .item-total {
        align-items: flex-start;
    }

    .detail-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .item-pricing {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .order-details-modal h2 {
        font-size: 20px;
    }

    .detail-header h3 {
        font-size: 18px;
    }

    .item-image img {
        width: 60px;
        height: 60px;
    }

    .summary-row.total {
        font-size: 16px;
    }

    .total-amount {
        font-size: 18px;
    }

    .item-info h5 {
        font-size: 15px;
    }

    .item-category {
        font-size: 11px;
        padding: 3px 8px;
    }
}