* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #2c3e50;
    --accent-color: #e67e22;
    --background-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    box-shadow: var(--shadow);
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 20px;
    border-radius: 0 0 20px 20px;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

.search-bar {
    margin-top: 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar i {
    font-size: 1rem;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--white);
    flex: 1;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(255,255,255,0.7);
}

.user-info {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Navigation catégories */
.categories-nav {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.category-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.category-item:hover, .category-item.active {
    color: var(--primary-color);
}

/* Promo Section */
.promo-section {
    padding: 20px;
}

.promo-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    background: rgba(255,255,255,0.3);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
}

.promo-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.promo-code {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: monospace;
}

.countdown {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Member Section */
.member-section {
    padding: 0 20px 20px;
}

.member-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 20px;
    color: var(--white);
    text-align: center;
}

.member-card h3 {
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.member-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 10px;
}

/* Commerce Sections */
.commerce-section {
    padding: 20px;
    border-top: 1px solid #eee;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.commerce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.commerce-card {
    background: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
}

.commerce-card:hover {
    transform: translateY(-5px);
}

.commerce-image {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.commerce-image i {
    font-size: 2rem;
    color: var(--white);
}

.commerce-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.commerce-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

.btn-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ccc;
}

.btn-favorite.active {
    color: #ff4757;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.7rem;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.nav-item.active, .nav-item:hover {
    color: var(--primary-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-content input, .modal-content select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }
    
    .commerce-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    animation: slideUp 0.3s ease-out;
}