/* Estilos personalizados para Tienda de Intermediación / Dropshipping */
:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --success-color: #198754;
    --accent-color: #20c997;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-bg);
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cart-badge {
    font-size: 0.75rem;
    padding: 0.25em 0.55em;
    border-radius: 999px;
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.product-img-wrapper {
    position: relative;
    padding-top: 80%;
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-badge-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
}

/* Product Detail */
.product-detail-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* WhatsApp Buttons */
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s;
}

.btn-whatsapp:hover {
    background-color: #1ebc59;
    color: white;
}

.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

/* Admin Sidebar & Styles */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background-color: #0f172a;
    color: #e2e8f0;
}

.admin-sidebar .nav-link {
    color: #94a3b8;
    padding: 0.8rem 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.2rem 0.5rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background-color: #1e293b;
}

.admin-metric-card {
    border: none;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
}

.admin-metric-card:hover {
    transform: translateY(-2px);
}

.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Dropshipping Clipboard Box */
.clipboard-box {
    background-color: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    position: relative;
}

/* Status Badges */
.badge-pago-aprobado { background-color: #d1fae5; color: #065f46; }
.badge-pago-pendiente { background-color: #fef3c7; color: #92400e; }
.badge-pago-cancelado { background-color: #fee2e2; color: #991b1b; }

.badge-envio-por_ordenar { background-color: #fee2e2; color: #991b1b; font-weight: 600; }
.badge-envio-ordenado_a_proveedor { background-color: #e0e7ff; color: #3730a3; }
.badge-envio-enviado { background-color: #dbeafe; color: #1e40af; }
.badge-envio-entregado { background-color: #d1fae5; color: #065f46; }
