:root {
    --sage-bg: #fdfdfd;
    --sage-primary: #91a189; /* Sage Green */
    --sage-accent: #c5a028;  /* Gold */
    --sage-text: #2d2d2d;
    --sage-muted: #8e8e8e;
    --sage-border: #f0f0f0;
    --sage-surface: #ffffff;
    --sage-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--sage-bg);
    color: var(--sage-text);
    min-height: 100vh;
    line-height: 1.5;
}

/* Header & Lang */
.sage-lang-wrap {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid var(--sage-border);
    box-shadow: var(--sage-shadow);
    z-index: 100;
}

.sage-select {
    border: none;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    color: var(--sage-text);
    outline: none;
    appearance: none;
    cursor: pointer;
    padding-right: 5px;
}

.sage-lang-wrap i {
    font-size: 0.65rem;
    color: var(--sage-muted);
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 50px 15px 15px; /* Added top padding for lang wrap */
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
}

.brand-logo {
    height: 40px;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Banner */
.banner-area {
    width: 100%;
    height: 200px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--sage-shadow);
}

.banner-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Store Info */
.store-info {
    text-align: left;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--sage-border);
    padding: 2px;
    background: #fff;
}

.store-name-col h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sage-accent);
    line-height: 1.2;
}

.store-user {
    font-size: 0.8rem;
    color: var(--sage-muted);
}

.store-slogan {
    font-size: 0.75rem;
    color: var(--sage-accent);
    font-style: italic;
}

/* Tabs */
.tabs-bar {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--sage-border);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-bar::-webkit-scrollbar { display: none; }

.tab-item {
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-muted);
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.tab-item.active {
    color: var(--sage-primary);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--sage-primary);
}

/* Category Grid */
.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cat-card {
    text-decoration: none;
    border-radius: 15px;
    overflow: hidden;
    background: var(--sage-surface);
    box-shadow: var(--sage-shadow);
}

.cat-img-wrap {
    width: 100%;
    height: 140px;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-label {
    background: var(--sage-primary);
    color: #fff;
    text-align: center;
    padding: 8px 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Horizontal Category Filter */
.cat-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 20px 20px; /* Increased padding slightly for better tap area and shadow space if added later */
    margin: 0 -20px; /* Adjusting for container padding */
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; /* Snaps to nearest item for native swipe feel */
    scroll-behavior: smooth;
}

.cat-chips::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    scroll-snap-align: center; /* Aligns chip to center when snapping */
    padding: 10px 20px;
    border: 1px solid var(--sage-border);
    border-radius: 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sage-accent);
    background: #fff;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.chip.active {
    background: var(--sage-primary);
    color: #fff;
    border-color: var(--sage-primary);
}

/* Product List */
.prod-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prod-card {
    background: var(--sage-surface);
    border: 1px solid var(--sage-border);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.prod-info {
    flex: 1;
}

.prod-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sage-accent);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.prod-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sage-muted);
    margin-bottom: 8px;
}

.prod-desc {
    font-size: 0.75rem;
    color: #b0b0b0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-img-small {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

/* Nav Bar Top */
.nav-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--sage-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--sage-muted);
}
