/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile Performance Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Typography Scaling */
html {
    font-size: 16px;
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }
}

/* Improved text rendering */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

p, span, div {
    font-weight: 400;
    line-height: 1.6;
}

/* Better contrast for mobile */
@media (max-width: 768px) {
    body {
        color: #2c3e50;
    }
    
    .container {
        color: #2c3e50;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #f1eaea;
    background-color: #f8f9fa;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: black;
}

/* Header Styles */
.header {
    background: #1a365d;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Admin Navigation Section */
.admin-nav-section {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.admin-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.admin-nav-link:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-2px);
}

.admin-nav-link.active {
    background: #667eea;
    color: white;
    font-weight: 600;
}

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

.admin-nav-link span {
    font-size: 0.9rem;
}

.admin-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.admin-nav {
    display: flex;
    gap: 1rem;
}

.admin-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 80px;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-weight: 600;
}

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

.admin-nav-link span {
    font-size: 0.9rem;
}

/* Admin Dashboard Styles */
.admin-section {
    margin-bottom: 2rem;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.admin-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-card-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-header h3 i {
    color: #667eea;
}

.admin-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    color: #6c757d;
}

.stat-item i {
    color: #667eea;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table th {
    background: #f8f9fa;
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
    color: black;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:hover td {
    color: black;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Ensure all text in admin table is black */
.admin-table .cell-value,
.admin-table .product-name,
.admin-table .product-description,
.admin-table .category-badge,
.admin-table .product-price {
    color: black !important;
}

.admin-table .product-stock {
    display: none !important;
    color: black !important;
}

/* Product Status Badges */
.product-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-status.in-stock {
    display: none !important;
    background: #d4edda;
    color: #155724;
}

.product-status.low-stock {
    display: none !important;
    background: #fff3cd;
    color: #856404;
}

.product-status.out-of-stock {
    display: none !important;
    background: #f8d7da;
    color: #721c24;
}

/* Action Buttons */
.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-edit {
    background: #17a2b8;
    color: white;
    border: none;
}

.btn-edit:hover {
    background: #138496;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-delete:hover {
    background: #c82333;
}

/* Image Upload Styles */
.image-upload-container {
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.image-upload-area {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    background: rgba(102, 126, 234, 0.05);
}

.upload-placeholder {
    text-align: center;
    color: #6c757d;
    padding: 1rem;
}

.upload-placeholder i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    display: block;
}

.upload-placeholder p {
    margin: 0.5rem 0;
    font-weight: 600;
    color: #495057;
}

.upload-placeholder small {
    color: #6c757d;
    font-size: 0.8rem;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

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

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.image-url-fallback {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.image-url-fallback label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    display: block;
}

.image-url-fallback input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
}

.image-url-fallback input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Admin Form Select Styling */
.admin-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.admin-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-form select:hover {
    border-color: #667eea;
}

/* Enhanced Product Table Styles */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 15px;
}

.search-controls {
    display: flex;
    gap: 10px;
    flex: 1;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.product-image-cell {
    position: relative;
    display: inline-block;
}

.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.btn-image-edit {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    color: white;
    border: none;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-image-cell:hover .btn-image-edit {
    opacity: 1;
}

.editable-cell {
    position: relative;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.editable-cell:hover {
    background-color: #f8f9fa;
}

.cell-value {
    display: block;
    min-height: 20px;
}

.cell-value.small {
    font-size: 0.85rem;
    color: #6c757d;
}

.cell-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #667eea;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.cell-input:focus {
    outline: none;
    border-color: #5a6fd8;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.category-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-save {
    background: #28a745 !important;
    color: white !important;
}

.btn-cancel {
    background: #6c757d !important;
    color: white !important;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive table controls */
@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-controls {
        flex-direction: column;
    }
    
    .table-actions {
        justify-content: center;
    }
}

/* Enhanced Orders Management Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #667eea, #764ba2); }
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.orders-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.orders-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.order-number {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-id {
    color: #6c757d;
    font-size: 12px;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-name {
    font-weight: 600;
    color: #2c3e50;
}

.customer-email, .customer-phone {
    font-size: 12px;
    color: #6c757d;
}

.products-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-count {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
}

.product-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-qty {
    margin-left: 8px;
    font-weight: 600;
}

.more-products {
    font-size: 11px;
    color: #667eea;
    font-style: italic;
}

.order-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.total-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.total-breakdown small {
    color: #6c757d;
    font-size: 11px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #d1ecf1; color: #0c5460; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-confirmed { background: #e2e3e5; color: #383d41; }

.order-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-main {
    font-weight: 600;
    color: #2c3e50;
}

.date-time {
    font-size: 12px;
    color: #6c757d;
}

.order-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-info {
    background: #17a2b8 !important;
    color: white !important;
}

.btn-success {
    background: #28a745 !important;
    color: white !important;
}

.btn-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

/* Order Details Modal */
.order-details-modal {
    max-width: 800px;
    width: 90%;
}

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

.order-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.customer-details p {
    margin-bottom: 8px;
    color: #495057;
}

.products-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-detail-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-info .product-actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-price {
    font-weight: 600;
    color: #28a745;
}

.product-quantity, .product-subtotal {
    font-size: 14px;
    color: #6c757d;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.total-row {
    border-top: 2px solid #e9ecef;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
}

/* Responsive Orders */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .order-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .orders-table {
        font-size: 14px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 4px;
    }
}

/* Enhanced Users Management Styles */
.user-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.users-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
}

.users-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.user-email {
    font-size: 12px;
    color: white;
}

.user-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6c757d;
}

.contact-item i {
    width: 12px;
    color: #667eea;
}

.user-role {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role.admin {
    background: #dc3545;
    color: white;
}

.user-role.user {
    background: #28a745;
    color: white;
}

.user-activity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #6c757d;
}

.activity-item i {
    width: 12px;
    color: #667eea;
}

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

.registration-date {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.registration-time {
    font-size: 11px;
    color: #6c757d;
}

.user-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-danger {
    background: #dc3545 !important;
    color: white !important;
}

/* User Details Modal */
.user-details-modal {
    max-width: 900px;
    width: 90%;
}

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

.user-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.user-info-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row strong {
    min-width: 100px;
    color: #495057;
}

.activity-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.activity-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.activity-stat .stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.activity-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.orders-history {
    max-height: 300px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #667eea;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-info strong {
    color: #2c3e50;
    font-size: 14px;
}

.order-date {
    font-size: 11px;
    color: #6c757d;
}

.order-total {
    font-weight: 600;
    color: #28a745;
    font-size: 14px;
}

.more-orders {
    text-align: center;
    color: #667eea;
    font-style: italic;
    margin-top: 10px;
}

/* Responsive Users */
@media (max-width: 768px) {
    .user-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .users-table {
        font-size: 14px;
    }
    
    .users-table th,
    .users-table td {
        padding: 10px 8px;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .activity-details {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsiveness for New Header and Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1rem;
    }
    
    .footer-nav {
        gap: 1.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .login-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .search-btn,
    .cart-btn {
        padding: 0.4rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 0.9rem;
    }
    
    .footer-nav {
        gap: 1rem;
    }
    
    .footer-nav a {
        font-size: 0.85rem;
    }
    
    .nav-actions {
        gap: 0.25rem;
    }
    
    .login-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Contact Information Section Styles */
.contact-info-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.contact-info-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info-section h2 i {
    color: #667eea;
    font-size: 1.5rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    min-height: 120px;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-method i {
    font-size: 2rem;
    color: #667eea;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

.contact-method-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-method-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile-First Responsive Design */
@media (max-width: 768px) {
    .contact-info-section {
        padding: 2rem 0;
    }
    
    .contact-info-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-methods {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .contact-method {
        padding: 1.5rem;
        gap: 1rem;
        min-height: 100px;
    }
    
    .contact-method i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-method-content h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .contact-method-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .contact-info-section {
        padding: 1.5rem 0;
    }
    
    .contact-info-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .contact-method {
        padding: 1rem;
        gap: 0.75rem;
        min-height: 80px;
    }
    
    .contact-method i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contact-method-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .contact-method-content p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.2);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.login-btn {
    background: #2d5a87;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.login-btn:hover {
    background: #1e4a6b;
}

.search-btn,
.cart-btn,
.menu-toggle {
    background: #1a365d;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.search-btn:hover,
.cart-btn:hover,
.menu-toggle:hover {
    background-color: #2d5a87;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Removed duplicate menu-toggle rule */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.homepage-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons.single {
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #ffd700;
    color: #333;
}

.btn-primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #333;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Featured Categories */
.featured-categories {
    padding: 4rem 0;
    background-color: white;
}

.featured-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: black;
}

.category-card p {
    color: black;
    margin-bottom: 1.5rem;
}

.category-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 2px solid #667eea;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background-color: #667eea;
    color: white;
}

/* Featured Products */
.featured-products {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.featured-products h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* Featured Products: match products page hover animation */
.featured-products .product-card {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-products .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

.featured-products .product-image {
    transition: transform 0.3s ease;
}

.featured-products .product-card:hover .product-image {
    transform: scale(1.03);
}

/* Ensure featured "Ver detalles" button is visible on white cards */
.featured-products .product-card .btn.btn-secondary {
    border-color: #667eea;
    color: #667eea;
    background-color: transparent;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.featured-products .product-card .btn.btn-secondary:hover {
    background-color: #667eea;
    color: #fff;
    transform: translateY(-1px);
}

/* Featured: match product actions layout from products page */
.featured-products .product-actions {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.featured-products .product-actions .btn {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    /* Apply the elevated state by default */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Keep hover the same to avoid visual jump */
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 0;
    background: #f8f9fa;
}

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

/* Product info section */
.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.product-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}


.product-category {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 8px;
}

.add-to-cart-btn {
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
    transform: none;
}

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

/* Footer */
.footer {
    background: #000000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Footer info rows with icons (matches reference layout, our styling) */
.footer-info-list {
    display: grid;
    gap: 1rem;
}

.footer-info-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    gap: 1rem;
}

.footer-icon-pill {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #34495e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.footer-info-item h5 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
}

.footer-info-item .muted {
    opacity: 0.8;
}

/* Footer categories grid */
.footer-categories-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
}

.footer-category-link {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.footer-category-link:hover {
    color: #ffd700;
}

.footer-category-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3d536b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfd8e3;
}

/* Compact footer brand alignment */
.footer-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Simple inline links */
.footer-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 10px;
}

.footer-links-inline a {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.footer-links-inline a:hover {
    opacity: 1;
    color: #ffd700;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffd700;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: white;
    color: black;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.footer-nav {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ccc;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(0,0,0,0.2);
    color: #333;
    transform: scale(1.1);
}

.close:active {
    transform: scale(0.95);
}

.modal-body {
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h4 {
    margin-bottom: 0.25rem;
    color: #333;
}

.cart-item-price {
    color: #2ecc71;
    font-weight: 600;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    text-align: right;
}

.cart-total h4 {
    color: #333;
    font-size: 1.5rem;
}

/* Empty Cart Message Styling */
.empty-cart-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #495057;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 1rem 0;
}

.empty-cart-message i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    display: block;
}

.empty-cart-message h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-cart-message p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

/* Cart Modal Button Styling */
.modal-footer .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    color: white;
    transform: translateY(-2px);
}

.modal-footer .btn-primary {
    background-color: #ffd700;
    color: #333;
    border: 2px solid #ffd700;
}

.modal-footer .btn-primary:hover {
    background-color: #ffed4e;
    border-color: #ffed4e;
    color: #333;
    transform: translateY(-2px);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide desktop menu on mobile */
    }
}

.nav-menu li {
    margin: 0;
}

.nav-menu .nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Mobile menu - now always available for testing */
.nav-menu {
    /* Desktop styles remain the same */
}

.nav-menu.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #667eea;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 70px 0 20px 0;
    transition: left 0.3s ease;
    z-index: 9998;
    box-shadow: 2px 0 15px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.nav-menu.mobile-menu.active {
    left: 0;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        background: #667eea;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 70px 0 20px 0;
        transition: left 0.3s ease;
        z-index: 9998;
        box-shadow: 2px 0 15px rgba(0,0,0,0.3);
        overflow-y: auto;
        display: flex; /* Show as mobile menu */
    }

    .nav-menu.active {
        left: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu li {
        width: 100%;
        margin: 0;
        display: block;
    }

    .nav-menu .nav-link {
        display: block;
        padding: 20px 30px;
        width: 100%;
        font-size: 18px;
        font-weight: 600;
        color: #ffffff !important;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
        box-sizing: border-box;
    }

    .nav-menu .nav-link:hover {
        background-color: rgba(255,255,255,0.15);
        color: #ffffff !important;
    }
    
    .nav-menu .nav-link:active {
        background-color: rgba(255,255,255,0.25);
        color: #ffffff !important;
    }
    
    .nav-menu .nav-link.active {
        background-color: rgba(255,255,255,0.2);
        color: #ffffff !important;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10000;
    width: 40px;
    height: 40px;
    font-size: 20px;
}
    
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle.active {
    transform: rotate(90deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 997;
    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    cursor: pointer;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Ensure overlay doesn't interfere with menu clicks */
.nav-menu.mobile-menu {
    z-index: 9998;
    pointer-events: auto;
}

.nav-menu.mobile-menu .nav-link {
    z-index: 9999;
    pointer-events: auto;
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.5rem;
    }
    
    .nav-brand .tagline {
        font-size: 0.8rem;
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .search-btn,
    .cart-btn {
        padding: 0.4rem;
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 2rem 0;
        min-height: 50vh;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .homepage-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .product-card {
        border-radius: 12px;
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    }
    
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .product-info h3 {
        font-size: 1rem;
    }
    
    .product-info p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .modal {
        padding: 0;
    }
    
    .modal-content {
        margin: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
        border-radius: 0;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .close {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.75rem;
        flex-shrink: 0;
        border-top: 1px solid #e9ecef;
        background: #f8f9fa;
        border-radius: 0;
    }
    
    .modal-footer .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 10px;
    }
    
    .nav-brand h1 {
        font-size: 1.3rem;
    }
    
    .nav-brand .tagline {
        font-size: 0.7rem;
    }
    
    .homepage-title {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
    }
    
    .categories-grid {
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        margin: 0;
        max-width: none;
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border-radius: 8px;
        background: white;
        overflow: hidden;
        border: 1px solid #e5e5e5;
    }
    
    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-info h3 {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .product-info p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .product-actions {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .close {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 0.75rem 1rem;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 8px;
    }
    
    .product-card {
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        border: 1px solid #e1e1e1;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-info {
        padding: 8px;
        gap: 6px;
    }
    
    .product-info h3 {
        font-size: 13px;
        height: 2.6em;
    }
    
    .product-info p {
        font-size: 11px;
    }
    
    .product-price {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .add-to-cart-btn {
        padding: 6px 8px;
        font-size: 11px;
        border-radius: 3px;
    }
}

/* Categories Page Styles */
.categories-page {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.categories-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card-extended {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-card-extended:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.category-icon-large {
    font-size: 3rem;
    color: #667eea;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.category-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: black;
}

.category-info p {
    color: black;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.product-count {
    color: black;
    font-weight: 600;
    font-size: 0.9rem;
}

.category-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.feature-item i {
    color: #667eea;
}

.category-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.category-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.category-actions .btn-primary {
    background-color: #ffd700;
    color: #333;
    border: none;
}

.category-actions .btn-primary:hover {
    background-color: #ffed4e;
    transform: translateY(-2px);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.why-choose-us h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* Responsive Design for Categories */
@media (max-width: 768px) {
    .categories-grid-extended {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .category-features {
        justify-content: center;
    }
    
    .category-actions {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .category-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-card-extended {
        padding: 1.5rem;
    }
    
    .category-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .category-actions {
        margin-top: 1rem;
        justify-content: center;
        align-items: center;
    }
    
    .category-actions .btn {
        padding: 12px 20px;
        font-size: 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-weight: 600;
        width: 100%;
        max-width: 280px;
    }
    
    .category-actions .btn-primary {
        background-color: #ffd700 !important;
        color: #333 !important;
    }
    
    .category-actions .btn-primary:hover {
        background-color: #ffed4e !important;
        transform: translateY(-2px);
    }
}

/* Search Modal Styles */
.search-modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.search-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input-container input:focus {
    outline: none;
    border-color: #667eea;
}

.search-submit-btn {
    padding: 12px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.search-submit-btn:hover {
    background: #5a67d8;
}

.search-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-filters select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.search-filters select:focus {
    outline: none;
    border-color: #667eea;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-results-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e5e9;
}

.search-results-header h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-result-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.search-result-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.search-result-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-result-category {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.search-result-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.search-result-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.spec-item {
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
}

.search-result-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.search-result-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}

.search-result-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.search-result-rating i {
    color: #ffc107;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.search-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #667eea;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-results h4 {
    margin-bottom: 10px;
    color: #333;
}

.popular-searches {
    padding: 20px 0;
}

.popular-searches h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.popular-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-search-tag {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popular-search-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Search Modal Responsive */
@media (max-width: 768px) {
    .search-modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-result-card {
        flex-direction: column;
        text-align: center;
    }
    
    .search-result-image {
        width: 100%;
        height: 120px;
        margin: 0 auto 15px;
    }
    
    .search-result-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .popular-search-tags {
        justify-content: center;
    }
}

/* Modern Auth Modal Styles */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease;
    position: relative;
}

.auth-modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.auth-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.auth-modal-content {
    padding: 40px;
    text-align: center;
}

.auth-modal-logo {
    margin-bottom: 20px;
}

.auth-modal-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.auth-modal-title p {
    color: #7f8c8d;
    margin: 0 0 30px 0;
    font-size: 1rem;
}

.auth-form {
    text-align: left;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #bdc3c7;
    z-index: 2;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.auth-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #bdc3c7;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.auth-password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.password-icon {
    font-size: 16px;
    line-height: 1;
    display: block;
}

.auth-mode-toggle {
    margin: 25px 0;
}

.auth-mode-options {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.auth-mode-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    position: relative;
}


.auth-mode-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-mode-btn:hover:not(.active) {
    color: #2c3e50;
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-error {
    color: #e74c3c;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #fdf2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
    display: none;
}

.auth-error:not(:empty) {
    display: block;
}

.auth-modal-footer {
    margin-top: 25px;
    text-align: center;
}

.auth-modal-footer p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #5a6fd8;
}

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

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

/* Responsive Auth Modal */
@media (max-width: 480px) {
    .auth-modal-container {
        width: 95%;
        margin: 20px;
    }
    
    .auth-modal-content {
        padding: 30px 20px;
    }
    
    .auth-modal-title h2 {
        font-size: 1.5rem;
    }
}

/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-name-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.user-name-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.user-name-btn i {
    font-size: 0.8rem;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.user-details {
    flex: 1;
}

.user-details .user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-details .user-email {
    font-size: 0.9rem;
    color: white;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.user-details .user-role {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

.dropdown-item {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    text-align: left;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #dc3545;
}

.dropdown-item i {
    width: 16px;
    color: #6c757d;
}

.dropdown-item:hover i {
    color: #dc3545;
}

/* My Orders Modal Styles */
.my-orders-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.orders-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid #667eea;
}

.summary-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.summary-content {
    flex: 1;
}

.summary-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.order-number {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.order-date {
    color: #6c757d;
    font-size: 0.9rem;
}

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

.order-items {
    flex: 1;
}

.items-count {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-name {
    font-size: 0.9rem;
    color: #6c757d;
}

.more-items {
    font-size: 0.8rem;
    color: #667eea;
    font-style: italic;
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #28a745;
}

.order-status {
    display: flex;
    justify-content: flex-end;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.processing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.shipped {
    background: #d4edda;
    color: #155724;
}

.status-badge.delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.no-orders {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.no-orders i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.no-orders h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.no-orders p {
    margin-bottom: 1.5rem;
    color: #6c757d;
}

/* Responsive My Orders */
@media (max-width: 768px) {
    .orders-summary {
        grid-template-columns: 1fr;
    }
    
    .order-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}