/* ==========================================================================
   ECO Tech Store — Estilos personalizados
   Responsive: desktop (≥992px) · tablet (768–991px) · móvil (<768px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout — Logo
   -------------------------------------------------------------------------- */
.site-logo          { max-height: 48px; width: auto; }
.footer-logo        { max-height: 44px; width: auto; margin-bottom: 1rem;
                     }
.footer-payment-img { height: 28px; opacity: .7; }

/* --------------------------------------------------------------------------
   Layout — Departamentos dropdown (navbar)
   -------------------------------------------------------------------------- */
.dept-btn           { position: relative; }
.dept-dropdown      { width: 260px; z-index: 1000; top: 100%; left: 0; }

/* Enlace "Ofertas" en el navbar */
.nav-link-ofertas   { color: #e8450a !important; font-weight: 700; }

/* Nombre del sitio en navbar cuando no hay logo */
.navbar-brand-text  {
    font-size: 1.4rem;
    font-weight: 800;
    color: #333e48;
    letter-spacing: -1px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   Imágenes de productos — tamaños estándar
   -------------------------------------------------------------------------- */
.product-img        { max-height: 160px; object-fit: contain; width: 100%; }
.product-img-lg     { max-height: 400px; object-fit: contain; width: 100%; }
.product-img-thumb  { width: 60px;  height: 60px;  object-fit: contain; }
.product-img-rel    { max-height: 140px; object-fit: contain; width: 100%; }

/* Miniatura clicable en la página de producto */
.thumb-item         { cursor: pointer; }

/* --------------------------------------------------------------------------
   Carrito
   -------------------------------------------------------------------------- */
.cart-img           { width: 70px; height: 70px; object-fit: contain; }
.cart-qty-col       { width: 130px; }
.cart-qty-input     { width: 80px; margin: auto; }

/* --------------------------------------------------------------------------
   Cantidad (input group en página de producto)
   -------------------------------------------------------------------------- */
.qty-group          { width: 120px; }
.qty-input          { max-width: 60px; }

/* --------------------------------------------------------------------------
   Checkout — resumen sticky
   -------------------------------------------------------------------------- */
.checkout-summary   { top: 20px; }

/* --------------------------------------------------------------------------
   Tabla de especificaciones (producto)
   -------------------------------------------------------------------------- */
.spec-label         { width: 200px; }

/* --------------------------------------------------------------------------
   Tienda — selector de orden
   -------------------------------------------------------------------------- */
.sort-select        { width: auto; }

/* --------------------------------------------------------------------------
   Cuenta — avatar
   -------------------------------------------------------------------------- */
.account-avatar     { width: 72px; height: 72px; }

/* --------------------------------------------------------------------------
   Éxito de pedido
   -------------------------------------------------------------------------- */
.success-icon       { font-size: 64px; }

/* --------------------------------------------------------------------------
   Error 404
   -------------------------------------------------------------------------- */
.error-404-code     { font-size: 120px; line-height: 1; }

/* --------------------------------------------------------------------------
   Admin — login
   -------------------------------------------------------------------------- */
/* Admin login */
.admin-login-box    { width: 100%; max-width: 420px; }
body.admin-login     { 
    background: linear-gradient(135deg, #1a1f36 0%, #667eea 50%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.admin-login .admin-login-box .card {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
body.admin-login .admin-login-box .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-size: 16px;
    padding: 12px;
}
body.admin-login .admin-login-box .form-control {
    padding: 12px 16px;
}

/* Admin — cabecera de card pequeña */
.admin-card-header  { font-size: 11px; letter-spacing: 1px; }

/* Admin — logo preview en configuración */
.admin-logo-preview { max-height: 60px; background: #f8f9fa;
                      padding: 6px; border-radius: 4px; }

/* Admin — input símbolo moneda */
.admin-currency-input { max-width: 120px; }

/* Admin — iframe Google Maps */
.admin-maps-iframe  { border: 0; border-radius: 4px; }

/* Admin — columna imagen en tablas */
.col-img-lg         { width: 120px; }
.col-img-sm         { width: 60px; }

/* Admin — miniaturas de imagen en tablas/formularios */
.admin-thumb        { width: 45px;  height: 45px;  object-fit: contain; }
.admin-thumb-cat    { width: 40px;  height: 40px;  object-fit: contain; }
.admin-thumb-cat-ph { width: 40px;  height: 40px; }
.admin-banner-thumb { width: 100px; height: 50px;  object-fit: cover; border-radius: 4px; }
.admin-banner-preview { max-width: 100%; height: 100px; object-fit: cover; border-radius: 4px; }
.admin-prod-form-img{ width: 80px;  height: 80px;
                      object-fit: contain; border: 1px solid #eee; border-radius: 4px; }

/* Admin — precio tachado en lista */
.admin-price-del    { font-size: 11px; }

/* Admin — formulario inline (delete) */
.form-inline-delete { display: inline; }

/* Admin — botón extra pequeño */
.btn-xs             { padding: 2px 8px; font-size: 11px; }

/* Admin — dashboard stat cards */
.stat-card          { border-radius: 16px; padding: 1.5rem;
                      color: #fff; display: flex;
                      align-items: center; justify-content: space-between;
                      transition: transform 0.25s ease, box-shadow 0.25s ease;
                      box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.stat-card:hover    { transform: translateY(-3px);
                      box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.stat-card--purple  { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.stat-card--pink    { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.stat-card--blue    { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.stat-card--green   { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.stat-card--orange  { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.stat-card--cyan    { background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%); }

.stat-number        { font-size: 32px; font-weight: 700; line-height: 1.1; }
.stat-number--sm    { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat-label         { font-size: 14px; opacity: .9; margin-top: 4px; }
.stat-icon          { font-size: 40px; opacity: .25; }
.stat-link          { font-size: 13px; opacity: .8; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.3); }
.stat-link:hover    { opacity: 1; border-color: #fff; }

/* Admin — avatar usuario */
.admin-user-avatar  { width: 32px; height: 32px; flex-shrink: 0; }
.admin-user-initials{ font-size: 13px; }

/* ==========================================================================
   Admin — Layout sidebar/topbar
   ========================================================================== */
.admin-body         { background: #f4f6f9; font-size: 14px; }

#sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, #1a1f36 0%, #141829 100%);
    width: 260px;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    overflow-y: auto;
    transition: width 0.2s;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}
#sidebar .sidebar-brand {
    padding: 20px 20px;
    background: rgba(0,0,0,0.15);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
#sidebar .sidebar-brand .sidebar-brand-sub {
    font-size: 10px;
    font-weight: 400;
    color: #6c7293;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar sections */
#sidebar .sidebar-section {
    padding: 8px 12px;
}
#sidebar .sidebar-section-title {
    font-size: 10px;
    text-transform: uppercase;
    color: #6c7293;
    letter-spacing: 1.5px;
    font-weight: 600;
    padding: 8px 12px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#sidebar .sidebar-section-title i {
    font-size: 12px;
    opacity: 0.7;
}

#sidebar .nav-link {
    color: #a2a3b7;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin: 2px 0;
    font-size: 14px;
    position: relative;
}
#sidebar .nav-link:hover,
#sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
#sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(102,126,234,0.2) 0%, transparent 100%);
    border-left: 3px solid #667eea;
}
#sidebar .nav-link i {
    width: 20px;
    margin-right: 12px;
    font-size: 15px;
    text-align: center;
}
#sidebar .nav-link .nav-badge {
    margin-left: auto;
    background: #667eea;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
#sidebar .nav-link .nav-hint {
    margin-left: auto;
    font-size: 11px;
    color: #6c7293;
    font-weight: 400;
}

/* Sidebar footer */
#sidebar .sidebar-footer {
    margin-top: auto;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
#main-content          { margin-left: 260px; min-height: 100vh; }

#topbar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
#topbar .topbar-left {
    display: flex;
    align-items: center;
}
#topbar .page-type {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}
#topbar .page-type::before {
    content: '📍 ';
    font-size: 12px;
}
#topbar .topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
#topbar .admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: #f8f9fc;
    border-radius: 25px;
}
#topbar .user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}
#topbar .user-name {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.content-area          { padding: 28px 24px; }

/* Admin — dashboard header */
.admin-body .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-body .dashboard-welcome h4 {
    color: #1f2937;
    font-size: 18px;
}
.admin-body .dashboard-welcome p {
    font-size: 14px;
}
.admin-body .dashboard-actions {
    display: flex;
    gap: 12px;
}

/* Admin — buttons */
.admin-body .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.2s;
}
.admin-body .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.admin-body .btn-outline-primary {
    color: #667eea;
    border-color: #667eea;
    border-radius: 8px;
}
.admin-body .btn-outline-primary:hover {
    background: #667eea;
    color: #fff;
}
.admin-body .btn-secondary {
    background: #f1f3f5;
    border: none;
    color: #495057;
    border-radius: 8px;
}
.admin-body .btn-secondary:hover {
    background: #e9ecef;
    color: #343a40;
}

/* Admin — action buttons in tables */
.admin-body .table .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    margin: 0 2px;
}
.admin-body .table .btn-info {
    background: #e0f2fe;
    border: none;
    color: #0369a1;
}
.admin-body .table .btn-info:hover {
    background: #bae6fd;
    color: #075985;
}
.admin-body .table .btn-danger {
    background: #fee2e2;
    border: none;
    color: #dc2626;
}
.admin-body .table .btn-danger:hover {
    background: #fecaca;
    color: #b91c1c;
}

/* Admin — pagination */
.admin-body .pagination {
    margin: 0;
}
.admin-body .page-item .page-link {
    border: none;
    border-radius: 8px;
    margin: 0 3px;
    color: #6b7280;
    padding: 8px 14px;
    font-size: 13px;
}
.admin-body .page-item .page-link:hover {
    background: #f3f4f6;
    color: #374151;
}
.admin-body .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}
/* Admin — cards & tables */
.admin-body .card      { border: none; border-radius: 12px;
                         box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.admin-body .card-header { background: #fff;
                            border-bottom: 1px solid #f0f2f5; font-weight: 600;
                            border-radius: 12px 12px 0 0 !important; }

/* Admin — enhanced table */
.admin-body .table thead th {
    background: #f8f9fc;
    border-bottom: 2px solid #e9ecef;
    color: #5a6169;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 12px;
}
.admin-body .table tbody td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f2f5;
}
.admin-body .table tbody tr:hover {
    background: #f8f9fc;
}
.admin-body .table .btn {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* Admin — form inputs */
.admin-body .form-control,
.admin-body .custom-select {
    border-radius: 10px;
    border: 1px solid #e2e5ea;
    
    font-size: 14px;
    transition: all 0.2s;
    background: #fafbfc;
}
.admin-body .form-control:focus,
.admin-body .custom-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}
.admin-body label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
}

/* Admin — enhanced form sections */
.admin-body .form-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #f0f2f5;
}
.admin-body .form-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-body .form-section-title i {
    color: #667eea;
}
.admin-body .form-group {
    margin-bottom: 16px;
}
.admin-body .form-group:last-child {
    margin-bottom: 0;
}
.admin-body textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Frontend - product card fixes */
.product-item {
    height: 100%;
}
.product-item__outer {
    height: 100%;
}
.product-item__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-item__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.6em;
    word-wrap: break-word;
}
.product-item__title a {
    word-break: break-word;
}
.product-item__body .mb-2 {
    flex-shrink: 0;
}
.product-item__body .mb-2 img {
    max-height: 120px;
    width: auto;
    margin: 0 auto;
    display: block;
}
.product-item__footer {
    flex-shrink: 0;
    margin-top: auto;
}
.admin-body .input-icon-wrapper {
    position: relative;
}
.admin-body .input-icon-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.admin-body .input-icon-wrapper .form-control {
    padding-left: 38px;
}

/* Admin — file upload styling */
.admin-body .upload-hint {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-left: 3px solid #3b82f6;
}
.admin-body .upload-hint i {
    font-size: 14px;
}
.admin-body .current-image-preview {
    background: #f8f9fc;
    border-radius: 10px;
    padding: 16px;
    border: 1px dashed #d1d5db;
}
.admin-body .admin-banner-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.admin-body input[type="file"] {
    padding: 10px;
    background: #f8f9fc;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    width: 100%;
    transition: all 0.2s;
}
.admin-body input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Admin — product gallery */
.admin-body .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.admin-body .gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    transition: all 0.2s;
}
.admin-body .gallery-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}
.admin-body .gallery-item--primary {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}
.admin-body .gallery-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}
.admin-body .gallery-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px;
    text-align: center;
    text-transform: uppercase;
}
.admin-body .gallery-actions {
    position: absolute;
    top: 4px;
    right: 24px;
}
.admin-body .gallery-actions .btn {
    background: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.admin-body .gallery-delete-form {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
}
.admin-body .gallery-delete-btn {
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s;
}
.admin-body .gallery-delete-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

/* Account Dashboard */
.account-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.account-sidebar__user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.account-sidebar__avatar {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.account-sidebar__info h6 {
    color: #fff;
    margin-bottom: 2px;
}
.account-sidebar__info small {
    color: rgba(255,255,255,0.8);
}
.account-sidebar__nav {
    padding: 12px;
}
.account-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    margin: 2px 0;
}
.account-sidebar__link:hover {
    background: #f3f4f6;
    color: #1f2937;
}
.account-sidebar__link.active {
    background: #eef2ff;
    color: #667eea;
    font-weight: 600;
}
.account-sidebar__link i {
    width: 18px;
    text-align: center;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.account-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.account-card__header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.account-card__body {
    padding: 24px;
}
.account-card__header h5 {
    color: #1f2937;
}
.account-sidebar__profile {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    text-align: center;
    color: #fff;
}
.account-avatar {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 12px;
}
.account-info h6 {
    color: #fff;
}
.account-info p {
    color: rgba(255,255,255,0.8);
}
.account-menu {
    padding: 8px;
}
.account-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    margin: 2px 0;
}
.account-menu__item:hover {
    background: #f3f4f6;
    color: #1f2937;
}
.account-menu__item.active {
    background: #eef2ff;
    color: #667eea;
    font-weight: 600;
}
.account-menu__item i {
    width: 20px;
    text-align: center;
}
.account-menu__item--danger {
    color: #dc2626;
}
.account-menu__item--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.account-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    color: #fff;
}
.account-welcome__content h4 {
    color: #fff;
    margin-bottom: 4px;
}
.account-welcome__content p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.account-stat {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}
.account-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.account-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 12px;
}
.account-stat--primary .account-stat__icon { background: #e0e7ff; color: #667eea; }
.account-stat--primary .account-stat__value { color: #667eea; }
.account-stat--success .account-stat__icon { background: #d1fae5; color: #10b981; }
.account-stat--success .account-stat__value { color: #10b981; }
.account-stat--warning .account-stat__icon { background: #fef3c7; color: #f59e0b; }
.account-stat--warning .account-stat__value { color: #f59e0b; }
.account-stat--info .account-stat__icon { background: #dbeafe; color: #3b82f6; }
.account-stat--info .account-stat__value { color: #3b82f6; }
.account-stat__value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.account-stat__label {
    font-size: 12px;
    color: #9ca3af;
}

.account-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}
.account-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f2f5;
}
.account-card__body {
    padding: 0;
}
.account-table {
    margin: 0;
    width: 100%;
}
.account-table thead th {
    background: #f8f9fc;
    border-bottom: 2px solid #e9ecef;
    color: #5a6169;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 14px 16px;
}
.account-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
}
.account-table tbody tr:hover {
    background: #f8f9fc;
}

/* Auth Pages (Login/Register) */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}
.auth-card__header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px;
    text-align: center;
    color: #fff;
}
.auth-card__icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}
.auth-card__header h4 {
    color: #fff;
    margin-bottom: 4px;
}
.auth-card__header p {
    color: rgba(255,255,255,0.8);
}
.auth-card__body {
    padding: 32px;
}
.auth-card__footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #f0f2f5;
}
.auth-card__footer a {
    color: #667eea;
    font-weight: 600;
}
.auth-card__footer a:hover {
    color: #5a6fd6;
}

.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.input-icon .form-control {
    padding-left: 40px;
}
.admin-body .upload-zone {
    background: #f8f9fc;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.admin-body .upload-zone:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Admin — alerts and notifications */
.admin-body .alert {
    border-radius: 10px;
    border: none;
    padding: 14px 18px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.admin-body .alert::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 16px;
    margin-top: 2px;
}
.admin-body .alert-success {
    background: #ecfdf5;
    color: #065f46;
    border-left: 4px solid #10b981;
}
.admin-body .alert-success::before { content: '\f00c'; color: #10b981; }

.admin-body .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
.admin-body .alert-danger::before { content: '\f071'; color: #ef4444; }

.admin-body .alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}
.admin-body .alert-warning::before { content: '\f12a'; color: #f59e0b; }

.admin-body .alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}
.admin-body .alert-info::before { content: '\f129'; color: #3b82f6; }

.admin-body .alert-dismissible .close {
    padding: 4px 8px;
    font-size: 18px;
}

/* Admin — toast notifications */
.admin-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Admin — search and filters */
.admin-body .search-box {
    position: relative;
}
.admin-body .search-box .form-control {
    padding-left: 40px;
    border-radius: 25px;
    background: #f8f9fc;
    border: 1px solid #e9ecef;
}
.admin-body .search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
.admin-body .filter-bar {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.admin-body .filter-bar .form-control,
.admin-body .filter-bar .custom-select {
    background: #f8f9fc;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
}

/* Admin — bulk actions */
.admin-body .bulk-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fc;
    border-radius: 10px;
    margin-bottom: 16px;
}
.admin-body .bulk-actions .form-check {
    margin: 0;
}
.admin-body .bulk-actions .btn {
    font-size: 12px;
    padding: 6px 12px;
}

/* Admin — status badges */
.badge-pendiente   { background: #fef3c7; color: #92400e; }
.badge-procesando  { background: #dbeafe; color: #1e40af; }
.badge-enviado     { background: #e0e7ff; color: #3730a3; }
.badge-entregado   { background: #d1fae5; color: #065f46; }
.badge-cancelado   { background: #fee2e2; color: #991b1b; }
.admin-body .badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Admin — empty states */
.admin-body .empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fafbfc;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}
.admin-body .empty-state i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}
.admin-body .empty-state h5 {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
}
.admin-body .empty-state p {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Admin — loading spinner */
.admin-body .spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.admin-body .spinner-sm {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f4f6;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin — action dropdowns */
.admin-body .table .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 8px;
}
.admin-body .table .dropdown-item {
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
}
.admin-body .table .dropdown-item:hover {
    background: #f3f4f6;
}

/* Admin — filter tabs */
.admin-body .nav-pills .nav-link {
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}
.admin-body .nav-pills .nav-link:hover {
    background: #e5e7eb;
    color: #374151;
}
.admin-body .nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Admin — settings page */
.admin-body .settings-header {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-body .settings-header h4 {
    color: #1f2937;
    font-size: 20px;
}

/* Section boxes for home categories */
.admin-body .section-box {
    position: relative;
    background: #fafbfc;
    transition: all 0.2s;
}
.admin-body .section-box:hover {
    background: #f0f4ff;
    border-color: #667eea;
}
.admin-body .section-box__number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.admin-body .section-box__title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    padding-right: 30px;
}
.admin-body .section-box__desc {
    font-size: 12px;
    color: #9ca3af;
}

/* Banner upload boxes */
.admin-body .banner-upload-box {
    background: #fafbfc;
}
.admin-body .banner-upload-box:hover {
    background: #f0f4ff;
}
.admin-body .settings-tabs {
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-body .settings-tabs .nav-pills .nav-link {
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
}
.admin-body .settings-tabs .nav-pills .nav-link:hover {
    background: #f3f4f6;
    color: #374151;
}
.admin-body .settings-tabs .nav-pills .nav-link i {
    font-size: 14px;
}

/* Admin — tabs styling */
.admin-body .nav-tabs {
    border-bottom: 2px solid #f0f2f5;
    background: #fff;
    padding: 8px 16px 0;
    border-radius: 12px 12px 0 0;
}
.admin-body .nav-tabs .nav-link {
    border: none;
    border-radius: 8px 8px 0 0;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    transition: all 0.2s;
}
.admin-body .nav-tabs .nav-link:hover {
    color: #374151;
    background: #f3f4f6;
}
.admin-body .nav-tabs .nav-link.active {
    color: #667eea;
    background: #fff;
    border-bottom: 2px solid #667eea;
    font-weight: 600;
}
.admin-body .nav-tabs .nav-link i {
    margin-right: 6px;
    font-size: 14px;
}
.admin-body .current-logo .logo-preview {
    max-height: 60px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.admin-body .settings-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ── Móvil (<576px) ─────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
    .site-logo          { max-height: 36px; }
    .product-img        { max-height: 120px; }
    .product-img-lg     { max-height: 240px; }
    .product-img-rel    { max-height: 100px; }
    .error-404-code     { font-size: 72px; }
    .spec-label         { width: auto; }
    .stat-number        { font-size: 22px; }
    .stat-icon          { font-size: 24px; }
    .dept-dropdown      { width: 100vw; }
    .cart-qty-col       { width: auto; }
    .checkout-summary   { position: static; top: auto; }
}

/* ── Tablet (576px–991px) ───────────────────────────────────────────────── */
@media (min-width: 576px) and (max-width: 991.98px) {
    .site-logo          { max-height: 42px; }
    .product-img        { max-height: 140px; }
    .product-img-lg     { max-height: 320px; }
    .error-404-code     { font-size: 96px; }
    .checkout-summary   { position: static; top: auto; }
}

/* ── Desktop (≥992px) ───────────────────────────────────────────────────── */
@media (min-width: 992px) {
    .product-img        { max-height: 160px; }
    .product-img-lg     { max-height: 400px; }
}

/* ── Admin responsive ───────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    #sidebar            { width: 0; overflow: hidden; }
    #main-content       { margin-left: 0; }
    .content-area       { padding: 16px; }
    .stat-number        { font-size: 22px; }
    .admin-banner-thumb { width: 70px; height: 36px; }
}

@media (max-width: 575.98px) {
    #topbar             { padding: 0 12px; }
    .content-area       { padding: 12px; }
    .admin-thumb        { width: 36px; height: 36px; }
    .admin-banner-thumb { width: 56px; height: 30px; }
    .col-img-lg         { width: 80px; }
    .col-img-sm         { width: 44px; }
}

/* ==========================================================================
   PALETA DE MARCA  #F07E1F (naranja) · #193F7B (azul) · #FFFFFF (blanco)
   ========================================================================== */

/* Override primary color (#F07E1F → #F07E1F) */
:root { --primary: #F07E1F; }

.bg-primary                            { background-color: #F07E1F !important; }
.text-primary                          { color: #F07E1F !important; }
.border-primary                        { border-color: #F07E1F !important; }
.border-color-1                        { border-color: #F07E1F !important; }
a.text-primary:hover                   { color: #d96a0e !important; }
.badge-primary                         { background-color: #F07E1F !important; color: #fff !important; }

.btn-primary {
    background-color: #F07E1F;
    border-color: #F07E1F;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: #d96a0e !important;
    border-color: #d96a0e !important;
    color: #fff !important;
}
.btn-outline-primary {
    color: #F07E1F;
    border-color: #F07E1F;
}
.btn-outline-primary:hover {
    background-color: #F07E1F;
    border-color: #F07E1F;
    color: #fff;
}
.pagination .page-item.active .page-link { background: #F07E1F; border-color: #F07E1F; }
.pagination .page-link                   { color: #F07E1F; }

/* Section title accent */
.section-title { border-color: #F07E1F !important; }

/* --------------------------------------------------------------------------
   Header — Topbar (azul oscuro)
   -------------------------------------------------------------------------- */
.header-topbar {
    background-color: #193F7B;
}
.header-topbar .u-header-topbar__nav-link {
    color: rgba(255,255,255,.8) !important;
}
.header-topbar .u-header-topbar__nav-link:hover,
.header-topbar .u-header-topbar__nav-link:focus {
    color: #fff !important;
}
.header-topbar .u-header-topbar__nav-item-border,
.header-topbar .u-header-topbar__nav-item {
    border-color: rgba(255,255,255,.2) !important;
}

/* --------------------------------------------------------------------------
   Header — Barra de navegación principal (azul oscuro)
   -------------------------------------------------------------------------- */
.header-nav-bar {
    background-color: #193F7B;
    border-top: none !important;
}
.header-nav-bar .nav-link,
.header-nav-bar .u-header__nav-link {
    color: rgba(255,255,255,.92) !important;
    font-weight: 600;
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}
.header-nav-bar .nav-link:hover,
.header-nav-bar .u-header__nav-link:hover {
    color: #F07E1F !important;
}
.header-nav-bar .nav-link-ofertas {
    color: #ffc870 !important;
    font-weight: 700;
}
.header-nav-bar .btn-primary {
    background-color: #F07E1F;
    border-color: #F07E1F;
    color: #fff;
}
.header-nav-bar .btn-primary:hover {
    background-color: #d96a0e;
    border-color: #d96a0e;
}
.header-nav-bar .sidebar-dept-menu {
    border-top: 3px solid #F07E1F;
}

/* --------------------------------------------------------------------------
   Home page — Sidebar de categorías
   -------------------------------------------------------------------------- */
.home-sidebar {
    background: #fff;
    border: 1px solid #eee;
    height: 100%;
}
.home-sidebar__header {
    background: #193F7B;
    color: #fff;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
}
.home-sidebar__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.home-sidebar__menu li a {
    display: block;
    padding: 8px 18px;
    border-bottom: 1px solid #f4f4f4;
    color: #3d3d3d;
    font-size: 13px;
    font-weight: 600;
    transition: background .12s, color .12s, padding-left .12s;
}
.home-sidebar__menu li a:hover {
    background: #fff7f0;
    color: #F07E1F;
    text-decoration: none;
    padding-left: 24px;
}
.home-sidebar__menu li.sidebar-all a {
    color: #F07E1F;
    font-weight: 700;
    border-top: 1px solid #eee;
    border-bottom: none;
}
.home-sidebar__menu li a.is-active {
    background: #fff0e0;
    color: #F07E1F;
    border-left: 3px solid #F07E1F;
    padding-left: 15px;
    font-weight: 700;
}

/* Shop sidebar — quick filters */
.shop-filters a {
    display: block;
    padding: 7px 18px;
    border-bottom: 1px solid #f4f4f4;
    color: #555;
    font-size: 13px;
    transition: background .12s, color .12s;
}
.shop-filters a:hover { background: #fff7f0; color: #F07E1F; text-decoration: none; }
.shop-filters a.is-active { color: #F07E1F; font-weight: 700; background: #fff0e0; }

/* --------------------------------------------------------------------------
   Product tabs (nav-classic / nav-tab) — home page
   -------------------------------------------------------------------------- */
.nav-classic {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.nav-classic .nav-link {
    color: #555;
    font-weight: 600;
    font-size: 14px;
    padding: .65rem 1.25rem;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    white-space: nowrap;
    background: none;
}
.nav-classic .nav-link.active {
    color: #F07E1F;
    border-bottom-color: #F07E1F;
    background: none;
}
.nav-classic .nav-link:hover {
    color: #F07E1F;
    background: none;
}
.nav-tab { border-bottom: 0 !important; }

/* --------------------------------------------------------------------------
   Misc — estilos movidos del <style> en main.php
   -------------------------------------------------------------------------- */
.flash-fixed                { position: fixed; top: 70px; right: 20px; z-index: 9999; min-width: 300px; }
.product-item               { position: relative; }
.product-item__label-left   { position: absolute; top: 8px; left: 8px; z-index: 2; }
.product-item__label-right  { position: absolute; top: 8px; right: 8px; z-index: 2; }
.hover-bg-primary-soft:hover { background: #fff7f0; }
.sidebar-dept-menu a { display: block; padding: 8px 16px; border-bottom: 1px solid #f0f0f0; color: #333; font-weight: 600; }
.sidebar-dept-menu a:hover  { background: #fff4f0; color: #F07E1F; text-decoration: none; }
