:root {
    --bg-surface: rgba(255, 255, 255, 0.92);
    --bg-panel: #ffffff;
    --text-default: #0f172a;
    --text-muted: #475569;
    --border-default: rgba(148, 163, 184, 0.25);
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 12px 38px rgba(16, 185, 129, 0.08);
}

body.home-page {
    background-color: #f3faf3;
    color: var(--text-default);
}

body.home-page.dark {
    background-color: #07111e;
    color: #e2e8f0;
}

body.home-page.dark .home-header,
body.home-page.dark .home-section,
body.home-page.dark .hero-panel,
body.home-page.dark .bottom-sheet-nav,
body.home-page.dark .card-hover,
body.home-page.dark .product-card {
    background-color: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.12) !important;
}

body.home-page.dark .home-header {
    border-color: rgba(148, 163, 184, 0.12);
}

body.home-page.dark .hero-caption,
body.home-page.dark .filter-pill,
body.home-page.dark .home-header a,
body.home-page.dark .home-header button,
body.home-page.dark .home-header nav a,
body.home-page.dark .home-section h2,
body.home-page.dark .home-section p,
body.home-page.dark .home-section span,
body.home-page.dark .product-card h3,
body.home-page.dark .product-card p,
body.home-page.dark .product-card span,
body.home-page.dark .home-section .text-slate-500,
body.home-page.dark .home-section .text-slate-600 {
    color: #cbd5e1 !important;
}

.home-shell {
    position: relative;
    overflow-x: hidden;
}

.home-header {
    z-index: 50;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    border: 1px solid var(--border-default);
    background: var(--bg-panel);
    box-shadow: var(--shadow-soft);
}

.hero-stage {
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.99);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.55));
}

.hero-caption {
    position: absolute;
    z-index: 10;
    border-radius: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px);
    padding: 1rem 1.25rem;
}

.hero-controls {
    pointer-events: none;
}

.hero-control-button {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.hero-control-button:hover,
.hero-control-button:focus-visible {
    transform: translateY(-2px);
    background-color: #eef2ff;
}

.filter-pill {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #f8fafc;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.filter-pill.active,
.filter-pill:hover {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.25);
    color: #047857;
}

.filter-pill:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.12);
    outline-offset: 3px;
}

.filter-pill[aria-pressed="true"] {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.28);
    color: #047857;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(16, 185, 129, 0.12);
}

.product-card:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.10);
    outline-offset: 4px;
    transform: translateY(-4px);
}

.product-card[hidden] {
    display: none !important;
}

.touch-target {
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    border-radius: 0.75rem;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.home-section {
    position: relative;
}

.skeleton-card {
    background: linear-gradient(90deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.95) 50%, rgba(241, 245, 249, 0.95) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}

.bottom-sheet-nav {
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.focus-ring:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.95);
    outline-offset: 3px;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

body.home-page.dark .hero-control-button {
    background: rgba(15, 23, 42, 0.88);
    color: #e2e8f0;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}