/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playpen+Sans:wght@400;600;800&display=swap');

:root {
    /* Color Palette - Vibrant Kids Fashion, yet Premium */
    --primary: #FF6B6B; /* Vibrant Coral */
    --secondary: #4ECDC4; /* Aqua */
    --tertiary: #FFE66D; /* Sunny Yellow */
    --accent: #8A2BE2; /* Purple */
    
    --bg-color: #F8F9FA;
    --text-main: #2B2D42;
    --text-muted: #8D99AE;
    
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 50px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-sans: 'Outfit', sans-serif;
    --font-heading: 'Playpen Sans', cursive, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

@media (max-width: 900px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #FF8E8B);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #6BE5DC);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-block {
    width: 100%;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-sans);
    border: 2px solid transparent;
    background-color: rgba(0,0,0,0.03);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.15);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background-color: #FFF0F0;
    color: #D32F2F;
    border-left: 4px solid #D32F2F;
}

.alert-success {
    background-color: #F0FFF4;
    color: #388E3C;
    border-left: 4px solid #388E3C;
}

/* Authentication Pages Specific */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Blobs for Auth */
.auth-bg-shapes .shape {
    position: absolute;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
}

.auth-bg-shapes .shape-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: var(--primary);
    border-radius: 50%;
}

.auth-bg-shapes .shape-2 {
    bottom: -10%; right: -10%;
    width: 600px; height: 600px;
    background: var(--secondary);
    border-radius: 50%;
}

.auth-bg-shapes .shape-3 {
    top: 40%; left: 50%;
    width: 300px; height: 300px;
    background: var(--tertiary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.auth-logo i {
    color: var(--secondary);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
}

.auth-footer a {
    font-weight: 600;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Products Grid System (Globally available for all pages) */
.bg-light { background: #FAFAFB; }
.text-sm { font-size: 0.85rem; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 30px; }
.d-desktop-only { display: inline-block; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--tertiary);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.product-img-placeholder {
    aspect-ratio: 4 / 3;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.placeholder-bg-1 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.placeholder-bg-2 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
.placeholder-bg-3 { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.placeholder-bg-4 { background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%); }

.product-img-placeholder i {
    transition: transform var(--transition-smooth);
}

.product-card:hover .product-img-placeholder i {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    color: var(--text-main);
    margin-bottom: auto;
    font-weight: 700;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

.product-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 15px;
}

.add-to-cart-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(90deg);
}

/* Global Responsive Utilities */
.d-mobile-only { display: none; }
.d-desktop-only { display: inline-block; }

@media (max-width: 900px) {
    .d-desktop-only { display: none !important; }
    .d-mobile-only { display: block !important; }
    
    .py-5 { padding: 40px 0 !important; }
    .my-5 { margin-top: 20px !important; margin-bottom: 20px !important; }
}

/* Section Spacing */
.py-5 { padding: 80px 0; }
.my-5 { margin: 80px 0; }
.mb-4 { margin-bottom: 40px; }
.text-center { text-align: center; }

/* Grid Systems */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}
