/* Plants Store — shared theme tokens & utilities */

:root {
    --plant-primary: #059669;
    --plant-primary-dark: #047857;
    --plant-primary-light: #10b981;
    --plant-cream: #f7faf5;
    --plant-leaf: #84cc16;
    --plant-earth: #78716c;
    --plant-text: #1c1917;
    --plant-muted: #57534e;
    --plant-border: #e7e5e4;
    --plant-shadow: 0 4px 24px rgba(5, 150, 105, 0.08);
    --plant-radius: 1rem;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background-color: var(--plant-cream);
    color: var(--plant-text);
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.glass-panel {
    background: #ffffff;
    border: 1px solid var(--plant-border);
    box-shadow: var(--plant-shadow);
    border-radius: var(--plant-radius);
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--plant-border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nav-active {
    color: var(--plant-primary) !important;
    position: relative;
}
.nav-active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--plant-primary);
    border-radius: 9999px;
}

#mobile-search-overlay {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
#mobile-search-overlay.open {
    max-height: 80px;
    opacity: 1;
}

.mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--plant-border);
    box-shadow: 0 -4px 24px rgba(5, 150, 105, 0.1);
    padding-bottom: var(--safe-bottom);
}

.mobile-nav-pill {
    display: inline-block;
    width: 28px;
    height: 3px;
    background-color: var(--plant-primary);
    border-radius: 9999px;
    margin-top: 3px;
}

.cart-fab {
    border: 4px solid var(--plant-cream);
}

.ann-bar { transition: height 0.2s ease, padding 0.2s ease; overflow: hidden; }

.header-search {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 9999px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    font-size: 0.875rem;
    outline: none;
    width: 280px;
    transition: all 0.2s;
}
.header-search:focus {
    background: white;
    border-color: var(--plant-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.btn-plant {
    background: var(--plant-primary);
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    transition: all 0.15s ease;
}
.btn-plant:hover { background: var(--plant-primary-dark); }

.product-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--plant-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--plant-shadow);
}

.product-card-img {
    aspect-ratio: 4 / 5;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid var(--plant-border);
    background: white;
    color: var(--plant-muted);
    transition: all 0.15s;
}
.category-chip:hover,
.category-chip.active {
    background: #ecfdf5;
    border-color: var(--plant-primary);
    color: var(--plant-primary);
}

.skeleton {
    background: linear-gradient(90deg, #ecfdf5 25%, #d1fae5 50%, #ecfdf5 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.2s ease-in-out infinite;
    border-radius: 0.75rem;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pb-safe { padding-bottom: calc(5rem + var(--safe-bottom)); }

.sticky-cart-bar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--plant-border);
    padding-bottom: var(--safe-bottom);
}

.step-indicator .step-active { color: var(--plant-primary); font-weight: 700; }
.step-indicator .step-dot-active { background: var(--plant-primary); }
