:root {
    --primary-color: #7a7f4b;
    --primary-light: #9ea36f;
    --primary-dark: #585c34;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

.app-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    background: var(--primary-color);
    color: white;
    padding: 2rem 1.5rem 3rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(122, 127, 75, 0.3);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: 300;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Views */
.view {
    display: none;
    padding: 0 1.5rem 2rem;
    margin-top: -1.5rem;
    animation: fadeIn 0.4s var(--transition) forwards;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Categories Section */
.section-title {
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.section-title h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
    position: relative;
    aspect-ratio: 1;
}

.category-card:active {
    transform: scale(0.96);
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 1rem 1rem;
    color: white;
}

.category-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Products Section */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    cursor: pointer;
}

.back-btn:active {
    background: var(--primary-light);
    color: white;
}

.category-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

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

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    border-radius: 4px 0 0 4px;
}

.product-info {
    flex: 1;
    padding-right: 1rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.product-price {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(122, 127, 75, 0.3);
    white-space: nowrap;
}
