/* Custom CSS Styles */

:root {
    --primary-blue: #A855F7;
    --primary-dark: #7C3AED;
    --secondary-purple: #B8A6E6;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
}

/* Navigation */
.navbar {
    background: white;
    border-bottom: 1px solid #eee;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    margin: 0 10px;
    font-weight: 500;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background: var(--primary-blue);
    border: none;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

/* Cards */
.card {
    border: none;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.product-card {
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Forms */
.form-control,
.form-select {
    border: 1px solid #ddd;
    transition: 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.25);
}

/* Auth Cards */
.auth-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: var(--dark-gray);
    color: white;
    margin-top: auto;
}

/* Sections */
section {
    padding: 50px 0;
}

section.section {
    background: white;
}

/* Text */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-gray);
    font-weight: 700;
}

.text-primary {
    color: var(--primary-blue) !important;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
}

/* Utils */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.rounded-3 {
    border-radius: 15px;
}

/* Mobile Optimization */
html, body {
    -webkit-user-scalable: no;
    user-scalable: no;
    touch-action: manipulation;
}

input, select, textarea {
    font-size: 16px !important; /* Prevents zoom on iOS input focus */
}

/* Responsive */
@media (max-width: 768px) {
    .auth-card {
        padding: 20px;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    body {
        padding-bottom: 100px; /* Space for floating buttons */
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 0 !important;
        font-size: 0.9rem;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
}
