/**
 * Elsker Sites — "The Curated Hygge" Design System
 * Bootstrap 5 overrides. No borders. Warm tones. Editorial feel.
 */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Primary palette */
    --ed-primary: #b90c18;
    --ed-primary-hover: #a00a15;
    --ed-secondary: #3b6934;
    --ed-secondary-container: #b9eeab;
    --ed-tertiary: #914723;
    --ed-tertiary-fixed: #ffdbcd;
    --ed-on-tertiary-fixed: #360f00;

    /* Surfaces — warm off-white, no clinical whites */
    --ed-background: #fbf9f8;
    --ed-on-background: #1b1c1c;
    --ed-surface-container: #efeded;
    --ed-surface-container-high: #eae8e7;
    --ed-on-surface-variant: #5c403d;

    /* Shadows — ambient, tinted, never harsh */
    --ed-shadow-sm: 0 2px 16px rgba(27, 28, 28, 0.04);
    --ed-shadow-md: 0 4px 32px rgba(27, 28, 28, 0.06);
    --ed-shadow-lg: 0 8px 64px rgba(27, 28, 28, 0.06);

    /* Geometry */
    --ed-radius-sm: 0.5rem;
    --ed-radius-md: 0.75rem;
    --ed-radius-lg: 1rem;

    /* Fonts */
    --ed-font-headline: 'Epilogue', sans-serif;
    --ed-font-body: 'Plus Jakarta Sans', sans-serif;
    --ed-font-label: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════
   Base
   ═══════════════════════════════════════ */

body {
    font-family: var(--ed-font-body);
    background-color: var(--ed-background);
    color: var(--ed-on-background);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ed-font-headline);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ed-on-background);
}

a { color: var(--ed-primary); }
a:hover { color: var(--ed-primary-hover); }

.font-headline { font-family: var(--ed-font-headline); }
.font-label { font-family: var(--ed-font-label); }

/* ═══════════════════════════════════════
   Navbar — glass effect
   ═══════════════════════════════════════ */

.ed-navbar {
    background-color: rgba(251, 249, 248, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem 0;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: none;
}

.ed-navbar.scrolled {
    background-color: rgba(251, 249, 248, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ed-navbar .navbar-brand {
    font-family: var(--ed-font-headline);
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--ed-on-background) !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.ed-navbar .nav-link {
    color: #78716c !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0 !important;
    margin: 0 1rem;
}

.ed-navbar .nav-link:hover {
    color: var(--ed-primary) !important;
}

.ed-navbar .nav-link.active {
    color: var(--ed-primary) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--ed-primary);
}

/* ═══════════════════════════════════════
   Buttons
   ═══════════════════════════════════════ */

.btn-primary, .btn-primary-custom {
    background-color: var(--ed-primary);
    border-color: var(--ed-primary);
    color: white;
    border-radius: var(--ed-radius-md);
    font-family: var(--ed-font-headline);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary-custom:hover {
    background-color: var(--ed-primary-hover);
    border-color: var(--ed-primary-hover);
    transform: scale(0.98);
}

.btn-outline-primary {
    color: var(--ed-primary);
    border-color: var(--ed-primary);
}
.btn-outline-primary:hover {
    background-color: var(--ed-primary);
    border-color: var(--ed-primary);
}

/* ═══════════════════════════════════════
   Cards — no borders, tonal layering
   ═══════════════════════════════════════ */

.card {
    border: none;
    border-radius: var(--ed-radius-lg);
    box-shadow: var(--ed-shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--ed-shadow-md);
}

/* ═══════════════════════════════════════
   Product Cards — editorial style
   ═══════════════════════════════════════ */

.product-card {
    position: relative;
}

.product-card .img-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--ed-radius-md);
    overflow: hidden;
    background-color: #f5f3f3;
    margin-bottom: 1rem;
}

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

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

.product-card .product-title {
    font-family: var(--ed-font-headline);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.product-card .product-meta {
    font-size: 0.8rem;
    color: #78716c;
    margin-bottom: 0.5rem;
}

.product-card .product-price {
    font-family: var(--ed-font-headline);
    font-weight: 900;
    color: var(--ed-primary);
}

.badge-local {
    background-color: #bcf0ae;
    color: #002201;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.hover-actions {
    position: absolute;
    inset: 0;
    background: rgba(27, 28, 28, 0.1);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.product-card:hover .hover-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    background: white;
    color: var(--ed-on-background);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: var(--ed-primary);
    color: white;
}

/* ═══════════════════════════════════════
   Filter Chips
   ═══════════════════════════════════════ */

.filter-btn {
    background-color: var(--ed-surface-container-high);
    color: var(--ed-on-surface-variant);
    border: none;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: var(--ed-secondary-container);
    color: var(--ed-secondary);
}

.filter-btn:hover:not(.active) {
    background-color: #e4e2e2;
}

/* ═══════════════════════════════════════
   Hero Banner Module
   ═══════════════════════════════════════ */

.hero-container {
    position: relative;
    height: 600px;
    border-radius: var(--ed-radius-md);
    overflow: hidden;
}

.hero-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-container:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 28, 28, 0.6), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

/* ═══════════════════════════════════════
   Philosophy Section Module
   ═══════════════════════════════════════ */

.philosophy-section {
    background-color: var(--ed-tertiary-fixed);
    padding: 5rem 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* ═══════════════════════════════════════
   Newsletter Module
   ═══════════════════════════════════════ */

.newsletter-box {
    background-color: var(--ed-surface-container-high);
    border-radius: var(--ed-radius-md);
    padding: 4rem;
}

.newsletter-box .form-control {
    border: none;
    border-radius: var(--ed-radius-sm);
    padding: 0.75rem 1.25rem;
    background: white;
}

/* ═══════════════════════════════════════
   Content Blocks (CMS)
   ═══════════════════════════════════════ */

.content-block {
    line-height: 1.7;
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.content-block-body p {
    margin-bottom: 1rem;
}

.content-block-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ed-radius-md);
}

.module-block {
    margin-bottom: 2rem;
}

.module-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */

.ed-footer {
    border-top: 1px solid rgba(27, 28, 28, 0.1);
    margin-top: auto;
}

.ed-footer .footer-link {
    color: #78716c;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.ed-footer .footer-link:hover {
    color: var(--ed-primary);
    transform: translateX(4px);
}

/* ═══════════════════════════════════════
   Labels (uppercase, tracked)
   ═══════════════════════════════════════ */

.label-upper {
    font-family: var(--ed-font-label);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* ═══════════════════════════════════════
   Layout
   ═══════════════════════════════════════ */

.container.py-4,
.main-content {
    flex: 1;
}

/* ═══════════════════════════════════════
   Toast & Modal
   ═══════════════════════════════════════ */

.toast-container { z-index: 1090; }
.toast { border: none; border-radius: var(--ed-radius-md); }
.modal-content { border: none; border-radius: var(--ed-radius-lg); }

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
    .hero-container { height: 400px; }
    .hero-overlay { padding: 1.5rem; }
    .hero-overlay h1 { font-size: 2rem; }
    .philosophy-section { padding: 3rem 0; }
    .newsletter-box { padding: 2rem; }
}
