/**
 * ROTTERI - Mobile-First Redesign
 * Diseño completamente nuevo centrado en UX/UI móvil
 */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8f9fa;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   CSS VARIABLES - Mobile First
   ============================================ */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1a1a1a;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f3f4f6;
    --white: #ffffff;
    
    /* Spacing - Mobile */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Typography - Mobile */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    
    /* Layout */
    --container-padding: 1rem;
    --header-height: 56px;
    --bottom-nav-height: 60px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    
    /* Touch targets */
    --touch-min: 48px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition: 0.2s ease;
}

/* ============================================
   LAYOUT - Mobile First
   ============================================ */
.container {
    width: 100%;
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

.page-wrapper {
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--bottom-nav-height);
}

/* ============================================
   HEADER - Fixed Mobile & Desktop
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-light);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

/* Menu Toggle (Hamburger) */
.btn-menu-toggle {
    width: var(--touch-min);
    height: var(--touch-min);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

.btn-menu-toggle:active .hamburger-line {
    background: var(--primary);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--dark);
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-text {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--dark);
}

/* Desktop Menu */
.navbar-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-sm);
}

.navbar-menu li {
    display: inline-block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--gray);
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

.nav-link i {
    font-size: 1rem;
}

/* Header Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-icon {
    width: var(--touch-min);
    height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--gray);
    transition: var(--transition);
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-icon:hover {
    background: var(--gray-lighter);
    color: var(--primary);
}

.btn-icon:active {
    background: var(--gray-light);
    transform: scale(0.95);
}

.badge-count {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.625rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--white);
}

/* Desktop User Menu */
.desktop-only {
    display: none;
}

.user-menu-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: var(--gray-lighter);
    border-radius: var(--border-radius);
}

.user-avatar-desktop {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
}

.user-info-desktop {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name-desktop {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
    line-height: 1;
}

.user-role-desktop {
    font-size: 0.7rem;
    color: var(--gray);
    text-transform: capitalize;
    line-height: 1;
}

.btn-logout-desktop {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout-desktop:hover {
    background: var(--white);
    color: var(--danger);
}

.btn-login-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-login-desktop:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ============================================
   SIDEBAR - Mobile
   ============================================ */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
}

.sidebar.active {
    left: 0;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--dark);
}

.sidebar-logo img {
    border-radius: var(--border-radius-sm);
}

.btn-close-sidebar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gray);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close-sidebar:active {
    background: var(--gray-lighter);
    color: var(--dark);
}

/* Sidebar Content */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: var(--gray-lighter);
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Sidebar User Card (Logged In) */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.sidebar-user-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: 1.5rem;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 2px;
}

.sidebar-user-role {
    font-size: var(--text-xs);
    opacity: 0.9;
    text-transform: capitalize;
}

/* Sidebar Guest Card (Not Logged In) */
.sidebar-guest-card {
    padding: var(--space-lg);
    background: var(--gray-lighter);
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.sidebar-guest-icon {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.sidebar-guest-text h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
    color: var(--dark);
}

.sidebar-guest-text p {
    font-size: var(--text-sm);
    color: var(--gray);
    margin-bottom: var(--space-md);
}

.btn-login-sidebar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    transition: var(--transition);
}

.btn-login-sidebar:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

/* Sidebar Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Sección del menú con título */
.sidebar-menu-section {
    margin-bottom: var(--space-lg);
}

.sidebar-menu-section-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-xs);
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--dark);
    font-weight: 500;
    font-size: var(--text-base);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
}

.sidebar-menu-item:active {
    background: var(--gray-lighter);
    color: var(--primary);
}

.sidebar-menu-item i {
    width: 24px;
    font-size: 1.25rem;
    color: var(--gray);
}

.sidebar-menu-item:active i {
    color: var(--primary);
}

.sidebar-badge {
    margin-left: auto;
    background: var(--danger);
    color: var(--white);
    font-size: 0.7rem;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.sidebar-divider {
    height: 1px;
    background: var(--gray-light);
    margin: var(--space-md) 0;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-light);
    text-align: center;
}

.sidebar-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--gray);
    margin-bottom: var(--space-xs);
}

.sidebar-footer-text i {
    color: var(--danger);
}

.sidebar-version {
    font-size: var(--text-xs);
    color: var(--gray);
}

/* ============================================
   BOTTOM NAVIGATION - Mobile
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 var(--space-sm);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: var(--touch-min);
    color: var(--gray);
    transition: var(--transition);
    position: relative;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item span {
    font-size: var(--text-xs);
    font-weight: 500;
}

/* ============================================
   HERO SECTION - Mobile
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: var(--space-xl) 0;
    color: var(--white);
}

.hero-content {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255,255,255,0.2);
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.hero-text {
    font-size: var(--text-base);
    opacity: 0.9;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* ============================================
   SEARCH - Mobile Optimized
   ============================================ */
.search-form {
    display: flex;
    gap: var(--space-sm);
    background: var(--white);
    padding: var(--space-xs);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    pointer-events: none;
}

.search-form input {
    width: 100%;
    height: var(--touch-min);
    padding: 0 var(--space-md) 0 2.75rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: var(--text-base);
    outline: none;
}

.search-btn {
    width: var(--touch-min);
    height: var(--touch-min);
    background: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    transition: var(--transition);
}

.search-btn:active {
    background: var(--primary-dark);
    transform: scale(0.95);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    padding: var(--space-xl) 0;
}

.section-header {
    margin-bottom: var(--space-lg);
}

.section-header h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.section-header p {
    color: var(--gray);
    font-size: var(--text-sm);
}

/* ============================================
   PRODUCT GRID - Mobile First
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:active {
    transform: scale(0.98);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: var(--gray-lighter);
    overflow: hidden;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-like {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.btn-like:active {
    transform: scale(0.9);
    color: var(--danger);
}

.stock-badge {
    position: absolute;
    bottom: var(--space-sm);
    left: var(--space-sm);
    padding: 4px var(--space-sm);
    background: rgba(255,255,255,0.95);
    border-radius: var(--border-radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stock-badge.available {
    color: var(--secondary);
}

.stock-badge.unavailable {
    color: var(--danger);
}

.product-info {
    padding: var(--space-md);
}

.product-title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: var(--text-xs);
    color: var(--gray);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.product-price {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--gray);
}

.rating i {
    color: var(--warning);
}

.product-actions {
    display: flex;
    gap: var(--space-xs);
}

.btn-cart-small {
    flex: 1;
    height: 40px;
    background: var(--gray-lighter);
    color: var(--dark);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-cart-small:active {
    background: var(--gray-light);
    transform: scale(0.98);
}

.btn-buy-small {
    flex: 2;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-buy-small:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

/* ============================================
   BUTTONS - Touch Optimized
   ============================================ */
.btn {
    min-height: var(--touch-min);
    padding: 0 var(--space-lg);
    border-radius: var(--border-radius);
    font-size: var(--text-base);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:active {
    background: var(--primary-dark);
    transform: scale(0.98);
}

.btn-secondary {
    background: var(--gray-lighter);
    color: var(--dark);
}

.btn-secondary:active {
    background: var(--gray-light);
    transform: scale(0.98);
}

/* ============================================
   FORMS - Touch Friendly
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--dark);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    min-height: var(--touch-min);
    padding: 0 var(--space-md);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-sm);
    font-size: var(--text-base);
    background: var(--white);
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-textarea {
    min-height: 120px;
    padding: var(--space-md);
    resize: vertical;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
}

.card-body {
    padding: var(--space-lg);
}

/* ============================================
   MODALS - Mobile Optimized
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: flex-end;
    z-index: 2000;
    padding: 0;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: var(--text-lg);
    font-weight: 700;
}

.close-modal {
    width: var(--touch-min);
    height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: var(--text-xl);
}

.modal-body {
    padding: var(--space-lg);
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--gray-light);
    display: flex;
    gap: var(--space-md);
}

.modal-footer .btn {
    flex: 1;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.hidden { display: none !important; }

/* ============================================
   TABLET BREAKPOINT (768px+)
   ============================================ */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
        --header-height: 64px;
        --space-xl: 2.5rem;
        --space-2xl: 4rem;
        --text-2xl: 1.875rem;
        --text-3xl: 2.5rem;
    }
    
    .container {
        max-width: 720px;
    }
    
    /* Ocultar elementos móviles */
    .bottom-nav {
        display: none;
    }
    
    .btn-menu-toggle {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        display: none;
    }
    
    /* Mostrar elementos desktop */
    .navbar-menu {
        display: flex;
    }
    
    .desktop-only {
        display: block;
    }
    
    .page-wrapper {
        padding-bottom: var(--space-xl);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: var(--space-lg);
    }
    
    .modal {
        align-items: center;
        padding: var(--space-lg);
    }
    
    .modal-content {
        border-radius: var(--border-radius-lg);
        max-width: 500px;
        max-height: 80vh;
    }
}

/* ============================================
   DESKTOP BREAKPOINT (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
        --text-3xl: 3rem;
    }
    
    .container {
        max-width: 960px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    /* Sidebar como panel lateral en desktop */
    .sidebar {
        position: fixed;
        top: var(--header-height);
        left: -280px;
        width: 280px;
        height: calc(100vh - var(--header-height));
        box-shadow: 2px 0 12px rgba(0,0,0,0.08);
        border-right: 1px solid var(--gray-light);
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    /* Ajustar contenido cuando sidebar está visible */
    .page-wrapper {
        transition: margin-left 0.3s ease;
    }
    
    .page-wrapper.with-sidebar {
        margin-left: 280px;
    }
    
    /* Ocultar overlay en desktop */
    .sidebar-overlay {
        display: none;
    }
    
    /* Ocultar botón de cerrar en desktop */
    .sidebar .btn-close-sidebar {
        display: none;
    }
    
    /* Mejorar header del sidebar en desktop */
    .sidebar-header {
        padding: var(--space-md) var(--space-lg);
        background: var(--gray-lighter);
    }
    
    /* Mejorar contenido del sidebar en desktop */
    .sidebar-content {
        padding: var(--space-md);
    }
    
    /* Card de usuario más compacto en desktop */
    .sidebar-user-card {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }
    
    /* Items del menú más compactos */
    .sidebar-menu-item {
        padding: var(--space-sm) var(--space-md);
        margin-bottom: 2px;
        border-radius: var(--border-radius-sm);
    }
    
    .sidebar-menu-item:hover {
        background: var(--gray-lighter);
        color: var(--primary);
    }
    
    .sidebar-menu-item i {
        color: var(--gray);
    }
    
    .sidebar-menu-item:hover i {
        color: var(--primary);
    }
    
    /* Footer del sidebar */
    .sidebar-footer {
        padding: var(--space-md);
        background: var(--gray-lighter);
    }
    
    /* Botón toggle para desktop */
    .desktop-sidebar-toggle {
        display: flex !important;
    }
}

/* ============================================
   LARGE DESKTOP (1280px+)
   ============================================ */
@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, var(--gray-lighter) 25%, var(--gray-light) 50%, var(--gray-lighter) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   SWIPE GESTURES SUPPORT
   ============================================ */
.swipeable {
    touch-action: pan-y;
    user-select: none;
}

/* ============================================
   LOGIN MODAL
   ============================================ */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.login-modal.active {
    display: flex;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-modal-content {
    position: relative;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    padding: var(--space-2xl);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    background: var(--gray-lighter);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.login-modal-close:hover {
    background: var(--gray-light);
    color: var(--dark);
}

.login-modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-modal-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    border-radius: var(--border-radius);
}

.login-modal-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.login-modal-subtitle {
    font-size: var(--text-base);
    color: var(--gray);
}

.login-modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--text-base);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-google-login:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-google-login:active {
    transform: translateY(0);
}

.login-modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--gray);
    font-size: var(--text-sm);
}

.login-modal-divider::before,
.login-modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-light);
}

.login-modal-divider span {
    padding: 0 var(--space-md);
}

.login-modal-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: var(--gray);
    line-height: 1.5;
}

.login-modal-info i {
    margin-top: 2px;
    color: var(--primary);
}

/* ============================================
   DASHBOARD SIDEBAR
   ============================================ */
.dashboard-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dashboard-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dashboard-sidebar {
    position: fixed;
    top: var(--header-height);
    left: -280px;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 12px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.dashboard-sidebar.active {
    left: 0;
}

.dashboard-sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dashboard-sidebar-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    color: var(--white);
}

.dashboard-sidebar-subtitle {
    font-size: var(--text-sm);
    opacity: 0.8;
    color: var(--white);
}

.dashboard-sidebar-nav {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.dashboard-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    color: var(--white);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.dashboard-sidebar-link:active {
    background: rgba(255,255,255,0.1);
}

.dashboard-sidebar-link i {
    width: 24px;
    font-size: 1.25rem;
}

.dashboard-sidebar-section {
    margin-bottom: var(--space-lg);
}

.dashboard-sidebar-section-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    padding: var(--space-xs) var(--space-md);
    margin-bottom: var(--space-xs);
}

.dashboard-menu-toggle {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + var(--space-md));
    right: var(--space-md);
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99,102,241,0.4);
    cursor: pointer;
    z-index: 1500;
    transition: var(--transition);
}

.dashboard-menu-toggle:active {
    transform: scale(0.95);
}

/* Dashboard Sidebar en Desktop */
@media (min-width: 1024px) {
    .dashboard-sidebar {
        left: 0;
        top: var(--header-height);
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-sidebar-overlay {
        display: none;
    }
    
    .dashboard-menu-toggle {
        display: none;
    }
    
    .dashboard-sidebar-link:hover {
        background: rgba(255,255,255,0.15);
    }
    
    /* Ajustar contenido cuando hay dashboard sidebar */
    .page-wrapper.with-dashboard-sidebar {
        margin-left: 280px;
    }
}

/* ============================================
   SAFE AREAS (iOS notch support)
   ============================================ */
@supports (padding: max(0px)) {
    .site-header {
        padding-left: max(var(--space-md), env(safe-area-inset-left));
        padding-right: max(var(--space-md), env(safe-area-inset-right));
    }
    
    .bottom-nav {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}


/* ============================================
   BANNERS CAROUSEL
   ============================================ */
.banners-section {
    padding: 1rem;
    margin-bottom: 1rem;
}

.banners-carousel {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.banner-slide {
    display: none;
    width: 100%;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    color: white;
}

.banner-slide.active {
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    width: 100%;
}

.banner-content h3 {
    font-size: var(--text-xl);
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: var(--text-sm);
    opacity: 0.9;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    font-weight: 700;
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: transform var(--transition), background var(--transition);
}

.banner-slide:hover .banner-cta {
    background: var(--primary-dark);
    transform: translateX(4px);
}

.banner-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.banner-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-light);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.banner-indicators .indicator.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .banners-section {
        padding: 1.5rem;
    }
    
    .banner-slide {
        min-height: 300px;
    }
    
    .banner-content {
        padding: 2rem;
        max-width: 60%;
    }
    
    .banner-content h3 {
        font-size: var(--text-2xl);
    }
    
    .banner-content p {
        font-size: var(--text-base);
    }
}

@media (min-width: 1024px) {
    .banner-slide {
        min-height: 400px;
    }
    
    .banner-content {
        padding: 3rem;
        max-width: 50%;
    }
    
    .banner-content h3 {
        font-size: var(--text-3xl);
    }
}

/* ============================================
   PROMOCIONES SECTION
   ============================================ */
.promos-section {
    padding: 1.5rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.promos-section .section-title {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promos-section .section-title i {
    color: var(--danger);
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.promo-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
    transition: transform var(--transition), box-shadow var(--transition);
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.promo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-icon i {
    color: white;
    font-size: 1.25rem;
}

.promo-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.promo-value {
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.promo-name {
    font-size: var(--text-xs);
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .promos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .promo-card {
        padding: 1.25rem;
    }
    
    .promo-icon {
        width: 52px;
        height: 52px;
    }
    
    .promo-value {
        font-size: var(--text-xl);
    }
    
    .promo-name {
        font-size: var(--text-sm);
    }
}

@media (min-width: 1024px) {
    .promos-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


/* ============================================
   BANNERS LATERALES
   ============================================ */
.products-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.products-main {
    flex: 1;
}

.banners-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .products-layout {
        flex-direction: row;
    }
    
    .products-main {
        flex: 1;
    }
    
    .banners-sidebar {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 280px;
        flex-shrink: 0;
    }
}

.banner-lateral {
    display: block;
    position: relative;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.banner-lateral:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.banner-lateral-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.banner-lateral-title {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: white;
    font-weight: 700;
    font-size: var(--text-sm);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Banner lateral destacado */
.banner-lateral.destacado {
    height: 300px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.banner-lateral.destacado .banner-lateral-title {
    font-size: var(--text-lg);
}


/* ============================================
   SELECTOR DE MONEDA
   ============================================ */
.currency-selector-wrapper {
    position: relative;
    z-index: 1002;
}

.btn-currency {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 36px;
    padding: 0 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    color: white;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-currency:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.currency-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 220px;
    background: var(--white, #fff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
    overflow: hidden;
}

.currency-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-dropdown-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.currency-list {
    max-height: 280px;
    overflow-y: auto;
}

.currency-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.currency-option:last-child {
    border-bottom: none;
}

.currency-option:hover {
    background: #f3f4f6;
}

.currency-option.active {
    background: #ecfdf5;
    color: #059669;
}

.currency-option.active .currency-name {
    font-weight: 600;
}

.currency-flag {
    font-size: 18px;
}

.currency-name {
    font-size: 13px;
    color: #374151;
}

.currency-option.active .currency-name {
    color: #059669;
}

/* Indicador de precio convertido */
.price-converted {
    font-size: 0.85em;
    color: #6b7280;
    margin-left: 4px;
}

.price-converted::before {
    content: '≈ ';
}

/* ============================================
   SISTEMA DE NOTIFICACIONES
   ============================================ */
.notifications-wrapper {
    position: relative;
    z-index: 1001;
}

.btn-notifications {
    position: relative;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -10px;
    width: 360px;
    max-width: calc(100vw - 20px);
    background: var(--white, #fff);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 9999;
    overflow: hidden;
}

.notifications-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.notifications-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.btn-mark-all {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-mark-all:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notifications-loading,
.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #888;
    gap: 10px;
}

.notifications-loading i,
.notifications-empty i {
    font-size: 32px;
    opacity: 0.5;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:not(.leida) {
    background: #f0f4ff;
}

.notification-item:not(.leida):hover {
    background: #e8edff;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 16px;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.notification-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    opacity: 0;
    transition: all 0.2s;
}

.notification-item:hover .notification-delete {
    opacity: 1;
}

.notification-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}

.notifications-footer {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.notifications-footer a {
    color: #6366f1;
    font-size: 14px;
    font-weight: 500;
}

.notifications-footer a:hover {
    text-decoration: underline;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .notifications-dropdown {
        position: fixed;
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: calc(100vh - 140px);
    }
    
    .notifications-list {
        max-height: calc(100vh - 260px);
    }
}
