Files

449 lines
7.9 KiB
CSS

:root {
--primary: #00A86B;
--primary-hover: #008f5a;
--primary-light: rgba(0, 168, 107, 0.12);
--bg-page: #F8FAF9;
--bg-card: #FFFFFF;
--text-main: #1A202C;
--text-muted: #718096;
--border: #E2E8F0;
--shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
--radius-lg: 18px;
--radius-md: 12px;
--radius-sm: 8px;
}
[data-theme="dark"] {
--bg-page: #0F172A;
--bg-card: #1E293B;
--text-main: #F1F5F9;
--text-muted: #94A3B8;
--border: #334155;
--shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.25);
--shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background-color: var(--bg-page);
color: var(--text-main);
line-height: 1.5;
transition: background-color 0.2s ease, color 0.2s ease;
-webkit-font-smoothing: antialiased;
}
.app-container {
max-width: 860px;
margin: 0 auto;
padding: 16px;
}
/* Top Nav */
.top-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 18px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
margin-bottom: 16px;
box-shadow: var(--shadow);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
}
.brand-badge {
font-family: 'Outfit', sans-serif;
font-weight: 800;
font-size: 1.15rem;
letter-spacing: -0.5px;
color: var(--primary);
}
.live-dot {
font-size: 0.72rem;
font-weight: 700;
color: var(--primary);
background: var(--primary-light);
padding: 3px 8px;
border-radius: 20px;
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.7; }
50% { opacity: 1; }
100% { opacity: 0.7; }
}
.theme-toggle {
background: none;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 6px 10px;
cursor: pointer;
font-size: 1rem;
color: var(--text-main);
}
/* Store Hero */
.store-hero {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow);
margin-bottom: 24px;
}
.store-cover-container {
position: relative;
height: 220px;
width: 100%;
overflow: hidden;
background: #2D3748;
}
.store-cover {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.store-cover-container:hover .store-cover {
transform: scale(1.02);
}
.cover-gradient {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.verified-tag {
position: absolute;
top: 14px;
left: 14px;
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(8px);
color: #1A202C;
font-size: 0.78rem;
font-weight: 700;
padding: 6px 12px;
border-radius: 20px;
display: flex;
align-items: center;
gap: 6px;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.store-details {
padding: 20px;
}
.store-name {
font-family: 'Outfit', sans-serif;
font-weight: 800;
font-size: 1.7rem;
letter-spacing: -0.5px;
margin-bottom: 6px;
}
.store-address {
color: var(--text-muted);
font-size: 0.95rem;
margin-bottom: 12px;
}
.store-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 20px;
}
.meta-pill {
font-size: 0.8rem;
font-weight: 600;
background: var(--primary-light);
color: var(--primary);
padding: 5px 12px;
border-radius: 20px;
}
.cta-actions {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 18px;
border-radius: var(--radius-md);
font-weight: 700;
font-size: 0.95rem;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
}
.btn-primary {
background: var(--primary);
color: white;
border: none;
}
.btn-primary:hover {
background: var(--primary-hover);
transform: translateY(-1px);
}
.btn-secondary {
background: var(--bg-card);
color: var(--text-main);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--primary-light);
border-color: var(--primary);
}
/* Catalog Section */
.catalog-section {
margin-bottom: 28px;
}
.catalog-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
}
.catalog-header h2 {
font-family: 'Outfit', sans-serif;
font-weight: 700;
font-size: 1.35rem;
}
.item-counter {
font-size: 0.85rem;
color: var(--text-muted);
font-weight: 600;
}
.search-filter-box {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px;
margin-bottom: 16px;
box-shadow: var(--shadow);
}
.search-wrapper {
display: flex;
align-items: center;
background: var(--bg-page);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 8px 12px;
margin-bottom: 10px;
}
.search-icon {
margin-right: 8px;
font-size: 0.9rem;
}
.search-wrapper input {
border: none;
background: transparent;
width: 100%;
color: var(--text-main);
font-size: 0.95rem;
outline: none;
}
.category-chips {
display: flex;
gap: 8px;
overflow-x: auto;
padding-bottom: 4px;
}
.chip {
background: var(--bg-page);
border: 1px solid var(--border);
color: var(--text-muted);
padding: 6px 14px;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 600;
white-space: nowrap;
cursor: pointer;
transition: all 0.2s ease;
}
.chip.active, .chip:hover {
background: var(--primary);
color: white;
border-color: var(--primary);
}
/* Product Grid */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 14px;
}
.product-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 12px;
display: flex;
flex-direction: column;
transition: transform 0.2s ease, box-shadow 0.2s ease;
position: relative;
box-shadow: var(--shadow);
}
.product-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
border-color: var(--primary);
}
.product-badge {
position: absolute;
top: 8px;
left: 8px;
background: #ED8936;
color: white;
font-size: 0.68rem;
font-weight: 800;
padding: 2px 7px;
border-radius: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.product-img-box {
height: 100px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 10px;
background: var(--bg-page);
border-radius: var(--radius-sm);
font-size: 2.2rem;
}
.product-title {
font-weight: 700;
font-size: 0.9rem;
margin-bottom: 4px;
line-height: 1.3;
}
.product-cat {
font-size: 0.75rem;
color: var(--text-muted);
margin-bottom: 10px;
}
.product-footer {
margin-top: auto;
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.product-price {
font-family: 'Outfit', sans-serif;
font-size: 1.25rem;
font-weight: 800;
color: var(--primary);
}
.product-unit {
font-size: 0.75rem;
color: var(--text-muted);
}
/* Map Section */
.map-section {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 20px;
margin-bottom: 24px;
box-shadow: var(--shadow);
}
.map-header {
margin-bottom: 14px;
}
.map-header h2 {
font-family: 'Outfit', sans-serif;
font-weight: 700;
font-size: 1.3rem;
margin-bottom: 4px;
}
.map-header p {
color: var(--text-muted);
font-size: 0.85rem;
}
.map-container {
height: 280px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
z-index: 1;
}
/* Footer */
.footer {
text-align: center;
padding: 24px 10px;
color: var(--text-muted);
font-size: 0.85rem;
border-top: 1px solid var(--border);
}
.sub-footer {
font-size: 0.75rem;
margin-top: 4px;
}
@media (max-width: 540px) {
.cta-actions {
grid-template-columns: 1fr;
}
.product-grid {
grid-template-columns: repeat(2, 1fr);
}
}