
/* Account Section */
.account-section {
    padding: 40px 5%;
    background-color: var(--preto);
    color: var(--branco);
}

.account-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.account-sidebar {
    background-color: var(--cinza-escuro);
    border-radius: 8px;
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 20px;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cinza);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.user-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-info p {
    font-size: 0.85rem;
    color: var(--cinza-claro);
}

.account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    margin-bottom: 5px;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--cinza-claro);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.account-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--branco);
}

.account-menu a.active {
    background-color: var(--vermelho);
    color: var(--branco);
}

.account-menu svg {
    flex-shrink: 0;
}

/* Account Content */
.account-content {
    background-color: var(--cinza-escuro);
    border-radius: 8px;
    padding: 30px;
}

.account-header {
    margin-bottom: 30px;
}

.account-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.account-header p {
    color: var(--cinza-claro);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state svg {
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--cinza-claro);
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--vermelho);
    color: var(--branco);
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--vermelho-escuro);
}

/* Orders Table */
.orders-table {
    overflow-x: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 500;
    color: var(--branco);
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--cinza);
    vertical-align: middle;
}

.text-center{
    text-align: center !important;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.pending {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.status-badge.confirmed {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.status-badge.paid {
    background-color: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.status-badge.shipped {
    background-color: rgba(26, 188, 156, 0.1);
    color: #1abc9c;
}

.status-badge.completed {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.status-badge.cancelled {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--branco);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.btn-view:hover {
    background-color: var(--vermelho);
}

/* Pagination */
.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination ul {
    display: flex;
    gap: 5px;
}

.pagination li {
    list-style: none;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--branco);
    text-decoration: none;
}

.pagination a:hover {
    background-color: var(--vermelho);
}

.pagination .active span {
    background-color: var(--vermelho);
}

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

    .account-sidebar {
        position: static;
    }
}

@media (max-width: 576px) {
    .account-content {
        padding: 20px 15px;
    }

    .account-menu a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}


.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.widget {
    background-color: var(--preto);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--cinza-escuro);
    border-bottom: 1px solid var(--cinza);
}

.widget-header h3 {
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-header h3 i {
    color: var(--vermelho);
}

.view-all {
    font-size: 0.85rem;
    color: var(--cinza-claro);
    text-decoration: none;
    transition: color 0.3s;
}

.view-all:hover {
    color: var(--vermelho);
}

.widget-content {
    padding: 20px;
}

.order-summary, .account-info, .address-info {
    display: grid;
    gap: 12px;
}

.address-info p{
    line-height: 10px;
}

.order-info, .info-item {
    display: flex;
    justify-content: space-between;
}

.label {
    color: var(--cinza-claro);
}

.value {
    font-weight: 500;
}

.widget-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-details, .btn-track,
.btn-edit, .btn-password,
.btn-add-address, .btn-browse {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-details {
    background-color: var(--vermelho);
    color: var(--branco);
}

.btn-details:hover {
    background-color: var(--vermelho-escuro);
}

.btn-track {
    background-color: transparent;
    border: 1px solid var(--cinza);
    color: var(--branco);
}

.btn-track:hover {
    border-color: var(--vermelho);
    color: var(--vermelho);
}

.btn-edit {
    background-color: var(--vermelho);
    color: var(--branco);
}

.btn-edit:hover {
    background-color: var(--vermelho-escuro);
}

.btn-password {
    background-color: transparent;
    border: 1px solid var(--cinza);
    color: var(--branco);
}

.btn-password:hover {
    border-color: var(--vermelho);
    color: var(--vermelho);
}

.btn-add-address {
    background-color: var(--vermelho);
    color: var(--branco);
    width: 100%;
    text-align: center;
}

.btn-add-address:hover {
    background-color: var(--vermelho-escuro);
}

.btn-browse {
    background-color: var(--vermelho);
    color: var(--branco);
    width: 100%;
    text-align: center;
}

.btn-browse:hover {
    background-color: var(--vermelho-escuro);
}

.empty-widget {
    text-align: center;
    padding: 20px 0;
}

.empty-widget p {
    color: var(--cinza-claro);
    margin-bottom: 15px;
}

.btn-shop {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--vermelho);
    color: var(--branco);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn-shop:hover {
    background-color: var(--vermelho-escuro);
}

.wishlist-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wishlist-item {
    text-align: center;
}

.wishlist-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 5px;
}

.product-name {
    display: block;
    font-size: 0.8rem;
    color: var(--branco);
    text-decoration: none;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-name:hover {
    color: var(--vermelho);
}

.product-price {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--verde);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-widgets {
        grid-template-columns: 1fr;
    }

    .widget-actions {
        flex-direction: column;
    }

    .btn-details, .btn-track,
    .btn-edit, .btn-password {
        width: 100%;
        text-align: center;
    }
}


/* Profile Form Styles */
.profile-form {
    margin-top: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--branco);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--preto);
    border: 1px solid var(--cinza);
    border-radius: 4px;
    color: var(--branco);
    font-size: 1rem;
}

.form-group input:focus {
    border-color: var(--vermelho);
    outline: none;
}

.error-message {
    display: block;
    margin-top: 5px;
    color: var(--vermelho);
    font-size: 0.85rem;
}

/* Avatar Upload */

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center; /* Alterado de flex-start para center */
    gap: 15px;
    text-align: center; /* Adicionado para centralizar o texto */
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--cinza);
    margin: 0 auto; /* Adicionado para garantir centralização */
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center; /* Adicionado para centralizar os botões */
    width: 100%; /* Garante que o container ocupe toda a largura */
}

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

.avatar-input {
    display: none;
}

.btn-upload, .btn-remove {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload {
    background-color: var(--vermelho);
    color: var(--branco);
    border: none;
}

.btn-upload:hover {
    background-color: var(--vermelho-escuro);
}

.btn-remove {
    background-color: transparent;
    border: 1px solid var(--vermelho);
    color: var(--vermelho);
}

.btn-remove:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 5px;
}

.checkbox-label input {
    margin: 0;
}

.checkbox-description {
    font-size: 0.85rem;
    color: var(--cinza-claro);
    margin-top: 5px;
    margin-left: 25px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--cinza);
}

.btn-save {
    padding: 12px 25px;
    background-color: var(--vermelho);
    color: var(--branco);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-save:hover {
    background-color: var(--vermelho-escuro);
}

.btn-cancel {
    padding: 12px 25px;
    background-color: transparent;
    border: 1px solid var(--cinza);
    color: var(--branco);
    border-radius: 4px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cancel:hover {
    border-color: var(--vermelho);
    color: var(--vermelho);
}

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

    .form-actions {
        flex-direction: column;
    }

    .btn-save, .btn-cancel {
        width: 100%;
        text-align: center;
    }
}



/* Addresses Page Styles */
.addresses-container {
    margin-top: 30px;
}

#btn-add-address {
    padding: 12px 20px;
    background-color: var(--vermelho);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

#btn-add-address:hover {
    background-color: var(--vermelho-escuro);
}

.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.address-card {
    background-color: var(--preto);
    border: 1px solid var(--cinza);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.default-address {
    border: 2px solid var(--vermelho);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cinza);
}

.address-header h3 {
    margin: 0;
    color: var(--branco);
    font-size: 1.2rem;
}

.default-badge {
    background-color: var(--vermelho);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.address-body p {
    margin: 5px 0;
    color: var(--branco);
}

.address-tags {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.tag-billing, .tag-shipping {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.tag-billing {
    background-color: var(--azul);
    color: white;
}

.tag-shipping {
    background-color: var(--verde);
    color: white;
}

.address-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-edit-details, .btn-delete {
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-edit-details {
    background-color: var(--vermelho);
    color: var(--preto);
    border: none;
}

.btn-edit-details:hover {
    background-color: var(--vermelho-escuro);
}

.btn-delete {
    background-color: transparent;
    border: 1px solid var(--vermelho);
    color: var(--vermelho);
}

.btn-delete:hover {
    border: 1px solid var(--vermelho-escuro);
    color: var(--vermelho-escuro);
}



/* Modal Styles */
/* ===== MODAL STYLES ===== */
/* ===== FORCE MODAL VISIBILITY ===== */

/* ===== RESET BOOTSTRAP MODAL STYLES ===== */
#address-modal.modal {
    --bs-modal-width: 800px;
    --bs-modal-bg: var(--preto);
    --bs-modal-border-color: var(--cinza-escuro);
    --bs-modal-border-radius: 12px;
    --bs-modal-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --bs-modal-header-border-color: var(--cinza);
    --bs-modal-footer-border-color: var(--cinza);
}

/* ===== MODAL OVERLAY ===== */
#address-modal.modal {
    display: none !important;
    position: fixed !important;
    min-width: 53vw !important;
    height: 100vh !important;
    background-color: transparent;
    z-index: 9999 !important;
}

#address-modal.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

#address-modal .modal-dialog {
    width: 800px !important;
    max-width: 90vw !important;
    margin: 0 !important;
    position: relative !important;
}

#address-modal .modal-content {
    width: 100% !important;
}

/* ===== MODAL HEADER ===== */
#address-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px 15px 30px;
    border-bottom: 1px solid var(--cinza);
    background: linear-gradient(135deg, var(--preto) 0%, var(--preto) 100%);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

#address-modal .modal-title {
    margin: 0;
    color: var(--branco);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== MODAL BODY ===== */
#address-modal .modal-body {
    padding: 30px;
    background: var(--preto);
    flex: 1;
    overflow-y: auto;
}

#address-modal .modal-form {
    width: 100%;
}

/* ===== FORM GRID - 2 COLUNAS ===== */
#address-modal .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

#address-modal .form-group {
    margin-bottom: 0;
}

#address-modal .form-group-full {
    grid-column: 1 / -1;
}

#address-modal .form-labe-address {
    display: block;
    margin-bottom: 10px;
    color: var(--branco);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

#address-modal .form-label-address.required::after {
    content: " *";
    color: var(--vermelho);
}

#address-modal .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--preto-escuro);
    border: 2px solid var(--cinza);
    border-radius: 8px;
    color: var(--branco);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#address-modal .form-input:focus {
    outline: none;
    border-color: var(--vermelho);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    transform: translateY(-1px);
}

#address-modal .form-input::placeholder {
    color: var(--cinza-claro);
    opacity: 0.7;
}

#address-modal select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    background-color: var(--preto-escuro);
    padding-right: 45px;
}

/* ===== CHECKBOX STYLES ===== */
#address-modal .form-options {
    margin: 30px 0 0 0;
    padding: 20px;
    background: var(--preto);
    border-radius: 8px;
    border: 1px solid var(--cinza);
}

#address-modal .form-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#address-modal .form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    min-height: 24px;
    user-select: none;
}

#address-modal .form-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#address-modal .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background: var(--preto);
    border: 2px solid var(--cinza);
    border-radius: 5px;
    transition: all 0.3s ease;
}

#address-modal .form-checkbox:hover .checkmark {
    border-color: var(--cinza-claro);
    transform: scale(1.05);
}

#address-modal .form-checkbox input:checked ~ .checkmark {
    background: var(--vermelho);
    border-color: var(--vermelho);
    animation: checkmarkPop 0.2s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#address-modal .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#address-modal .form-checkbox input:checked ~ .checkmark:after {
    display: block;
}

#address-modal .checkbox-label {
    color: var(--branco);
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 12px;
}

/* ===== ERROR MESSAGES ===== */
#address-modal .error-message {
    display: block;
    margin-top: 6px;
    color: var(--vermelho);
    font-size: 0.85rem;
    font-weight: 500;
}

#address-modal .form-input.error {
    border-color: var(--vermelho);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* ===== MODAL FOOTER ===== */
#address-modal .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px 30px 0 30px;
    border-top: 1px solid var(--cinza);
    background: var(--preto);
    border-radius: 0 0 12px 12px;
    flex-shrink: 0;
}

#address-modal .btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    border: 2px solid transparent;
}

#address-modal .btn-primary {
    background: var(--vermelho);
    color: white;
    border-color: var(--vermelho);
}

#address-modal .btn-primary:hover {
    background: var(--vermelho-escuro);
    border-color: var(--vermelho-escuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

#address-modal .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.2);
}

#address-modal .btn-secondary {
    background: transparent;
    color: var(--branco);
    border-color: var(--cinza);
}

#address-modal .btn-secondary:hover {
    border-color: var(--vermelho);
    color: var(--vermelho);
    transform: translateY(-2px);
}

#address-modal .btn-secondary:active {
    transform: translateY(0);
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
#address-modal .modal-content::-webkit-scrollbar {
    width: 6px;
}

#address-modal .modal-content::-webkit-scrollbar-track {
    background: var(--preto-escuro);
    border-radius: 3px;
}

#address-modal .modal-content::-webkit-scrollbar-thumb {
    background: var(--cinza);
    border-radius: 3px;
}

#address-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--cinza-claro);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
    #address-modal .modal-dialog {
        width: 95% !important;
        max-width: 95% !important;
        margin: 1rem auto;
    }

    #address-modal .modal-header,
    #address-modal .modal-body,
    #address-modal .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    #address-modal .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #address-modal .modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    #address-modal .btn {
        width: 100%;
    }

    #address-modal .modal-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    #address-modal .modal-dialog {
        width: 98% !important;
        max-width: 98% !important;
        margin: 0.5rem auto;
    }

    #address-modal .modal-content {
        border-radius: 8px;
    }

    #address-modal .modal-header,
    #address-modal .modal-body,
    #address-modal .modal-footer {
        padding: 16px;
    }

    #address-modal .form-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    #address-modal .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== GARANTIR VISIBILIDADE ===== */
#address-modal.modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#address-modal.modal.show .modal-dialog {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#address-modal.modal.show .modal-content {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/*****************************************************************************/
/* Modal de Confirmação */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.confirm-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    width: 90%;
    background-color: var(--preto);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--cinza);
    overflow: hidden;
}

.confirm-modal-header {
    padding: 20px 20px 0;
    text-align: center;
}

.confirm-modal-header h4 {
    margin: 0;
    color: var(--branco);
    font-size: 1.2rem;
    font-weight: 600;
}

.confirm-modal-body {
    padding: 20px;
    text-align: center;
}

.confirm-modal-body p {
    margin: 0;
    color: var(--cinza-claro);
    line-height: 1.5;
}

.confirm-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--cinza);
}

.confirm-modal-footer .btn {
    flex: 1;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.confirm-modal-footer .btn-secondary {
    background-color: var(--cinza);
    color: var(--branco);
}

.confirm-modal-footer .btn-secondary:hover {
    background-color: var(--cinza-claro);
}

.confirm-modal-footer .btn-danger {
    background-color: var(--vermelho);
    color: white;
}

.confirm-modal-footer .btn-danger:hover {
    background-color: var(--vermelho-escuro);
    transform: translateY(-1px);
}

/* Animação de entrada */
.confirm-modal-container {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/*************************************************************************/

#passwordForm .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--preto-escuro);
    border: 2px solid var(--cinza);
    border-radius: 8px;
    color: var(--branco);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#passwordForm .form-input:focus {
    outline: none;
    border-color: var(--vermelho);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    transform: translateY(-1px);
}

#passwordForm .form-input::placeholder {
    color: var(--cinza-claro);
    opacity: 0.7;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: var(--cinza);
    border-radius: 2px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    color: var(--cinza-claro);
}

/* Password Requirements */
.password-requirements {
    background-color: var(--preto-escuro);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--cinza);
}

.password-requirements h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--branco);
    font-size: 1rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: var(--cinza-claro);
    transition: color 0.3s;
}

.password-requirements li:before {
    content: "✕";
    position: absolute;
    left: 0;
    color: var(--vermelho);
}

.password-requirements li.valid:before {
    content: "✓";
    color: var(--green);
}

.password-requirements li.valid {
    color: var(--branco);
}

.password-requirements li.invalid {
    color: var(--cinza-claro);
}

/******************************************************************************/
/* Estilos para tickets */
.tickets-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ticket-card {
    background: var(--preto-escuro);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.ticket-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.ticket-subject {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ticket-subject h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--branco);
}

.ticket-id {
    color: #888;
    font-size: 0.9rem;
}

.ticket-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ticket-type, .ticket-priority, .ticket-status, .ticket-date {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ticket-type {
    background-color: #e8f4fd;
    color: #0c6df9;
}

.priority-danger {
    background-color: #fde8e8;
    color: #f90c0c;
}

.priority-warning {
    background-color: #fef5e8;
    color: #f98c0c;
}

.priority-info {
    background-color: #e8f4fd;
    color: #0c6df9;
}

.priority-success {
    background-color: #e8f9e8;
    color: #0cf90c;
}

.status-open {
    background-color: #e8f9e8;
    color: #0ca90c;
}

.status-pending {
    background-color: #fef5e8;
    color: #f98c0c;
}

.status-closed {
    background-color: #f0f0f0;
    color: #666;
}

.ticket-date {
    background-color: #f5f5f5;
    color: #666;
}

.ticket-preview {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.5;
}

.ticket-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-view {
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-view:hover {
    background-color: #e8e8e8;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--preto);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.empty-state p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Paginação */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination nav {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-item {
    display: inline-block;
}

.pagination .page-link {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--cinza-claro);
    text-decoration: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--vermelho);
    color: white;
    border-color: var(--vermelho-escuro);
}

.pagination .page-item.disabled .page-link {
    color: #999;
    cursor: not-allowed;
}

.d-none.d-sm-flex {
    color: var(--branco)
}

#newTicketModal.show {
    visibility: visible !important;
}

/* CSS temporário para debug */
#newTicketModal.modal.fade.show {
    display: block !important;
    z-index: 9999 !important;
}

#newTicketModal.modal-backdrop {
    z-index: 9998 !important;
}

/* Verificar se há algum elemento pai que está causando problemas */
#newTicketModal.modal {
    position: fixed !important;
}

/* ===== RESET BOOTSTRAP MODAL STYLES ===== */
#newTicketModal.modal, #closeTicketModal.modal {
    --bs-modal-width: 800px;
    --bs-modal-bg: var(--preto);
    --bs-modal-border-color: var(--cinza-escuro);
    --bs-modal-border-radius: 12px;
    --bs-modal-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    --bs-modal-header-border-color: var(--cinza);
    --bs-modal-footer-border-color: var(--cinza);
}

/* ===== MODAL OVERLAY ===== */
#newTicketModal.modal, #closeTicketModal.modal {
    display: none !important;
    position: fixed !important;
    min-width: 53vw !important;
    height: 100vh !important;
    background-color: transparent;
    z-index: 9999 !important;
}

#newTicketModal .modal-title, #closeTicketModal .modal-title {
    margin: 0;
    color: var(--branco);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

#newTicketModal .form-label, #closeTicketModal .form-label{
    color: var(--branco) !important;
}

#newTicketModal .form-control, #closeTicketModal .form-control{
    background-color: var(--preto-escuro);
    color: var(--branco) !important;
}

#newTicketModal .form-input::placeholder, #closeTicketModal .form-input::placeholder {
    color: var(--cinza-claro);
    opacity: 0.7;
}

#newTicketModal select.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cccccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    background-color: var(--preto-escuro);
    padding-right: 45px;
    color: var(--branco) !important;
}

#newTicketModal .modal-header, #closeTicketModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#address-modal .btn-close,
#newTicketModal .btn-close,
#closeTicketModal .btn-close {
    background: none;
    border: none;
    color: var(--branco);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    margin: 0;
}

#newTicketModal .btn-close, #closeTicketModal .btn-close {
    margin-right: -30px;
}


#address-modal .btn-close:hover, #newTicketModal .btn-close:hover, #closeTicketModal .btn-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--vermelho);
    transform: rotate(90deg);
    opacity: 1;
}

#address-modal .btn-close:active, #newTicketModal .btn-close:active, #closeTicketModal .btn-close:active {
    transform: rotate(90deg) scale(0.95);
}

#address-modal .btn-close svg, #newTicketModal .btn-close svg, #closeTicketModal .btn-close svg {
    width: 22px;
    height: 22px;
}


#closeTicketModal.show {
    visibility: visible !important;
}

/* CSS temporário para debug */
#closeTicketModal.modal.fade.show {
    display: block !important;
    z-index: 9999 !important;
}

#closeTicketModal.modal-backdrop {
    z-index: 9998 !important;
}

/* Verificar se há algum elemento pai que está causando problemas */
#closeTicketModal.modal {
    position: fixed !important;
}


/*******************************************************************************/
/* Show Ticket */
.ticket-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.ticket-header-main h2 {
    margin: 0;
    color: var(--cinza);
}

.ticket-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-id {
    background-color: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.ticket-conversation {
    margin: 30px 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.ticket-message {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--preto-escuro);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.admin-message {
    border-left: 4px solid var(--vermelho);
}

.user-message {
    border-left: 4px solid var(--success-color);
}

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

.message-sender {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar, .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-avatar {
    background-color: var(--vermelho);
}

.user-avatar {
    background-color: var(--success-color);
}

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

.avatar-placeholder {
    color: white;
    font-weight: bold;
}

.sender-name {
    font-weight: 600;
    color: var(--secondary-color);
}

.message-date {
    color: #888;
    font-size: 0.9rem;
}

.message-content {
    line-height: 1.6;
    color: var(--cinza-claro);
}

.ticket-reply {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-textarea{
    background-color: var(--preto-escuro);
    width: 100%;
    color: var(--branco);
    padding: 10px;
}

.ticket-closed-message {
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-top: 30px;
}

.ticket-closed-message p {
    margin-bottom: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .ticket-header-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-date {
        margin-left: 50px; /* Alinhar com o texto do remetente */
    }
}

/*******************************************************************************/
/* Estilos específicos para a Lista de Desejos */
.wishlist-container {
    margin-top: 20px;
}

.wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wishlist-item {
    background: var(--preto-escuro);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wishlist-item-image {
    height: 200px;
    overflow: hidden;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wishlist-item:hover .wishlist-item-image img {
    transform: scale(1.05);
}

.wishlist-item-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-item-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.wishlist-item-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.wishlist-item-title a:hover {
    color: var(--vermelho);
}

.wishlist-item-price {
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vermelho);
}

.original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

.discount-badge {
    background-color: var(--danger-color);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-left: 8px;
}

.wishlist-item-stock {
    margin-bottom: 15px;
}

.in-stock {
    color: var(--success-color);
    font-weight: 500;
}

.out-of-stock {
    color: var(--danger-color);
    font-weight: 500;
}

.wishlist-item-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-to-cart-form, .remove-from-wishlist-form {
    width: 100%;
}

.btn-add-to-cart, .btn-remove-from-wishlist {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart {
    background-color: var(--vermelho);
    color: white;
}

.btn-add-to-cart:hover {
    background-color: var(--primary-dark);
}

.btn-remove-from-wishlist {
    background-color: #f8f9fa;
    color: var(--danger-color);
    border: 1px solid #e9ecef;
}

.btn-remove-from-wishlist:hover {
    background-color: #fff5f5;
}

.wishlist-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.wishlist-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.wishlist-empty-icon {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.wishlist-empty h3 {
    margin: 0 0 10px 0;
    color: #555;
}

.wishlist-empty p {
    color: #888;
    margin-bottom: 20px;
}

.btn-browse-products {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--vermelho);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-browse-products:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .wishlist-items {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .wishlist-items {
        grid-template-columns: 1fr;
    }
}


/*************************************************************************/
/*************************************************************************/
