@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors based on Logo */
    --primary-color: #f01777; /* Pink */
    --secondary-color: #ff6b4a; /* Orange */
    --gradient-brand: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    
    /* Light Theme Colors */
    --bg-light: #ffffff;
    --bg-off-white: #f8f9fa;
    --text-main: #2b2b2b;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    
    /* Shadows & Effects */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(240, 23, 119, 0.1);
    --shadow-lg: 0 10px 25px rgba(255, 107, 74, 0.15);
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Layout */
    --container-width: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-off-white);
    color: var(--text-main);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-brand span {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at top, #ffffff, var(--bg-off-white));
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-off-white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(240, 23, 119, 0.1);
    background: var(--bg-light);
}

.auth-container {
    max-width: 450px;
    margin: 80px auto;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    z-index: 10;
}

.auth-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-switch {
    margin-top: 25px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
}

.alert {
    padding: 15px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background-color: #ffe5e5;
    color: #d63031;
    border: 1px solid #ffb3b3;
}

.alert-success {
    background-color: #e5ffe5;
    color: #27ae60;
    border: 1px solid #b3ffb3;
}

/* NEW MOBILE APP LAYOUT */
.main-container {
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Header */
.app-header {
    background: #fff;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.top-brand-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.brand-circle {
    width: 40px;
    height: 40px;
    background: var(--gradient-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 14px;
}
.search-bar-container {
    display: flex;
    gap: 10px;
}
.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.search-input-wrapper ion-icon {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 20px;
}
.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    outline: none;
    font-family: inherit;
    font-size: 14px;
}
.filter-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

/* Banner Slider */
.banner-slider {
    padding: 10px 20px;
}
.banner-slide {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* Aspect ratio 9:16 or close for vertical banner, but usually it's horizontal on mobile, let's make it fixed height */
    height: 200px;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}
.slider-dots .dot.active {
    background: #fff;
}

/* Sections */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 0 20px;
}

/* Categories */
.categories-section {
    padding: 20px 0;
}
.categories-scroll {
    display: flex;
    gap: 15px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.categories-scroll::-webkit-scrollbar {
    display: none; /* Chrome */
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
    cursor: pointer;
}
.category-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.category-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-item.active .category-icon-box {
    background: var(--primary-color);
    color: #fff;
}
.category-item.active span {
    color: var(--primary-color);
    font-weight: 600;
}
.category-item span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

/* Products */
.products-section {
    padding: 20px 0;
}
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.product-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 15px;
    box-shadow: var(--shadow-sm);
}
.product-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 15px;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.product-info > p {
    flex-basis: 100%;
    margin-top: 8px;
}
.product-title {
    font-size: 16px;
    font-weight: 600;
}
.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 10px;
    font-weight: 600;
    background: transparent;
}
.w-100 { width: 100%; }

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
}
.nav-item ion-icon {
    font-size: 24px;
}
.nav-item.active {
    color: var(--primary-color);
}

/* Hide desktop navbar from previous design if still in HTML */
.navbar { display: none; }


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .auth-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
}
