/* ============================================
   COMPONENTES - ayannaperfumes
   ============================================ */

/* TOAST */
.toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 9999;
    border-left: 4px solid #ec4899;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* CART BADGE */
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ec4899;
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAVORITE BUTTON */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn i {
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.3s ease;
}

.favorite-btn.active {
    background: #ec4899;
}

.favorite-btn.active i {
    color: white;
}

/* USER MENU */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    display: none;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.user-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 8px;
}

.user-menu-header .nome {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.user-menu-header .email {
    font-size: 11px;
    color: #6b7280;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    background: none;
    border: none;
}

.user-menu-item:hover {
    background: #fdf2f8;
    color: #ec4899;
}

.user-menu-item.danger {
    color: #ef4444;
}

.user-menu-item.danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* PRODUTO CARD */
.produto-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s ease;
    border: 1px solid #f3f4f6;
    position: relative;
}

.produto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(236,72,153,0.12);
    border-color: #fce7f3;
}

.produto-imagem {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fdf2f8;
}

.produto-imagem img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.produto-card:hover .produto-imagem img {
    transform: scale(1.05);
}

.badge-consultor {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.preco {
    font-size: 18px;
    font-weight: 800;
    color: #1f2937;
}

.preco-antigo {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.btn-comprar {
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-comprar:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(236,72,153,0.35);
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 6px 30px rgba(37,211,102,0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 40px rgba(37,211,102,0.5);
    color: white;
}

/* ============================================
   PEDIDO STATUS - CORES
   ============================================ */
.pedido-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    margin-left: 8px;
}

.pedido-status.pendente {
    background: #fef3c7;
    color: #d97706;
}

.pedido-status.confirmado {
    background: #dbeafe;
    color: #2563eb;
}

.pedido-status.enviado {
    background: #ede9fe;
    color: #7c3aed;
}

.pedido-status.entregue {
    background: #d1fae5;
    color: #059669;
}

.pedido-card {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.pedido-card:hover {
    border-color: #fce7f3;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* ADMIN BADGE */
.admin-nav-items {
    display: none;
}

.admin-nav-items.show {
    display: flex;
    gap: 12px;
}

.admin-nav-items a {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white !important;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-nav-items a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* FRETE OPTIONS */
.frete-opcao {
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.frete-opcao:hover {
    border-color: #ec4899;
    background: #fdf2f8;
}

.frete-opcao.selecionado {
    border-color: #ec4899;
    background: #fce7f3;
}

.frete-opcao .nome {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.frete-opcao .prazo {
    font-size: 12px;
    color: #6b7280;
}

.frete-opcao .valor {
    font-weight: 700;
    font-size: 16px;
    color: #be185d;
}

/* DARK MODE */
[data-theme="dark"],
body.dark {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

body.dark {
    background: #0f172a;
    color: #f1f5f9;
}

body.dark .bg-white,
body.dark .bg-gray-50,
body.dark .bg-gray-100,
body.dark .bg-pink-50 {
    background: #1e293b !important;
}

body.dark .text-gray-500,
body.dark .text-gray-400,
body.dark .text-gray-600,
body.dark .text-gray-700 {
    color: #94a3b8 !important;
}

body.dark .text-gray-800,
body.dark .text-gray-900 {
    color: #f1f5f9 !important;
}

body.dark .border,
body.dark .border-gray-200,
body.dark .border-gray-300 {
    border-color: #334155 !important;
}

body.dark .shadow-sm,
body.dark .shadow-md,
body.dark .shadow-lg {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}

body.dark .produto-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark .produto-card .preco {
    color: #f1f5f9;
}

body.dark .produto-card:hover {
    border-color: #ec4899;
}

body.dark .user-menu {
    background: #1e293b;
}

body.dark .user-menu-header .nome {
    color: #f1f5f9;
}

body.dark .user-menu-item {
    color: #94a3b8;
}

body.dark .user-menu-item:hover {
    background: #334155;
    color: #ec4899;
}

body.dark .toast {
    background: #1e293b;
    color: #f1f5f9;
}

/* Toggle Dark Mode Button */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #6b7280;
}

.dark-mode-toggle:hover {
    background: #f3f4f6;
}

body.dark .dark-mode-toggle {
    color: #f1f5f9;
}

body.dark .dark-mode-toggle:hover {
    background: #334155;
}