﻿/* ===== By d'Aillys – Häst & Foder (På Gården webshop) ===== */

/* Släpvagns-ikon (inline SVG) */
.trailer-icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    vertical-align: -0.15em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='6' width='16' height='8' rx='1.5' fill='black'/%3E%3Ccircle cx='8' cy='16' r='2' fill='black'/%3E%3Ccircle cx='16' cy='16' r='2' fill='black'/%3E%3Crect x='0' y='10' width='5' height='2' rx='1' fill='black'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='6' width='16' height='8' rx='1.5' fill='black'/%3E%3Ccircle cx='8' cy='16' r='2' fill='black'/%3E%3Ccircle cx='16' cy='16' r='2' fill='black'/%3E%3Crect x='0' y='10' width='5' height='2' rx='1' fill='black'/%3E%3C/svg%3E") no-repeat center;
}

:root {
    --bd-deep-green: #214c36;
    --bd-sage: #8eaa96;
    --bd-soft-cream: #f6efe2;
    --bd-warm-sand: #e7d1a7;
    --bd-leather: #a96f52;
    --bd-rose-clay: #c28b7a;
    --bd-gold: #c9a227;
    --bd-ink-brown: #5a3728;
    --bd-dark: #1f2b24;
    --bd-muted: #4f6358;
    --bd-blush: #e8d5c4;
    --hero-overlay-1: rgba(142, 170, 150, 0.35);
    --hero-overlay-2: rgba(246, 239, 226, 0.45);

    /* Inramad topp (nav + hero) — alternativ A */
    --site-frame-width: min(1320px, 96vw);
    --site-frame-radius: 24px;
    --site-frame-shadow: 0 12px 36px rgba(33, 76, 54, 0.14), 0 4px 12px rgba(31, 43, 36, 0.08);

    /* Alias */
    --bd-forest: var(--bd-deep-green);
    --bd-cream: var(--bd-soft-cream);
    --bd-sand: var(--bd-warm-sand);
    --bd-clay: var(--bd-leather);
    --bd-rose: var(--bd-rose-clay);
    --bd-brown: var(--bd-ink-brown);
    --pg-green: var(--bd-deep-green);
    --pg-green-dark: var(--bd-deep-green);
    --pg-green-bg: #e8f2ec;
    --pg-hay: var(--bd-gold);
    --pg-hay-light: var(--bd-warm-sand);
    --pg-cream: var(--bd-soft-cream);
    --pg-earth: var(--bd-ink-brown);
    --pg-text: var(--bd-dark);
    --pg-muted: var(--bd-muted);
    --cjma-blue: var(--bd-leather);
    --cjma-blue-dark: var(--bd-deep-green);
    --cjma-blue-bg: var(--bd-blush);
    --cjma-sand: var(--bd-warm-sand);
    --cjma-sand-light: var(--bd-warm-sand);
    --cjma-light: var(--bd-soft-cream);
    --cjma-dark: var(--bd-dark);
    --cjma-grey: var(--bd-muted);
    --cjma-green: var(--bd-deep-green);
    --cjma-green-dark: var(--bd-deep-green);
    --cjma-green-bg: var(--bd-blush);

    --product-card-radius: 30px;
    --product-img-radius: 22px 22px 0 0;
    --product-card-padding: 1.25rem;
    --product-grid-gap: 1.5rem;
    --product-price-size: 1.375rem;
    --product-caption-size: 0.8125rem;
    --product-cta-min-height: 44px;
    --product-placeholder-bg: #f0e6d6;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--bd-dark);
    background: var(--bd-soft-cream);
}

h1, h2, h3, .font-display {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    color: var(--bd-ink-brown);
}

a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: var(--bd-leather);
}
a:not(.btn):not(.nav-link):hover {
    color: var(--bd-ink-brown);
}

.text-primary { color: var(--bd-deep-green) !important; }
.text-secondary { color: var(--bd-muted) !important; }

.alert-info {
    background: var(--bd-warm-sand);
    border-color: rgba(90, 55, 40, 0.12);
    color: var(--bd-dark);
}

.border-primary {
    border-color: var(--bd-sage) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bd-sage);
    box-shadow: 0 0 0 0.2rem rgba(142, 170, 150, 0.35);
}

/* Inramad topp — sticky nav + ev. moms-rad */
.site-top-slot {
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 0.65rem clamp(0.5rem, 2vw, 1rem) 0;
    background: var(--bd-soft-cream);
}
.site-top-slot.is-scrolled .site-top-frame {
    box-shadow: 0 10px 28px rgba(33, 76, 54, 0.14);
}
.site-top-slot .site-utility-bar {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0 0 var(--site-frame-radius) var(--site-frame-radius);
    border: none;
    border-top: 1px solid rgba(142, 170, 150, 0.22);
    overflow: hidden;
}
.site-top-frame {
    width: var(--site-frame-width);
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--site-frame-radius);
    box-shadow: var(--site-frame-shadow);
    overflow: visible;
    background: transparent;
    position: relative;
}
.site-top-frame > .navbar-bd {
    border-radius: var(--site-frame-radius) var(--site-frame-radius) 0 0;
    position: relative;
    z-index: 2;
}
.site-top-frame .navbar-bd {
    border-radius: var(--site-frame-radius) var(--site-frame-radius) 0 0;
}
.site-top-frame .dropdown-menu {
    z-index: 1060;
    box-shadow: 0 12px 28px rgba(33, 76, 54, 0.18);
}
.site-top-frame .navbar-collapse {
    z-index: 1060;
}
.site-top-frame .nav-subline--utility {
    border-radius: 0;
}
body[data-page="home"] .site-top-slot .site-utility-bar {
    display: none !important;
}
/* Startsida: nav + hero = ett sammanhängande kort (inga rundade hörn mellan) */
body[data-page="home"] .site-top-frame {
    border-radius: var(--site-frame-radius) var(--site-frame-radius) 0 0;
    box-shadow: none;
}
body[data-page="home"] .site-top-frame .navbar-bd {
    border-radius: var(--site-frame-radius) var(--site-frame-radius) 0 0;
}
body[data-page="home"] .site-top-slot.is-scrolled .site-top-frame {
    border-radius: var(--site-frame-radius);
    box-shadow: 0 10px 28px rgba(33, 76, 54, 0.14);
}
body:not([data-page="home"]) .site-top-frame .navbar-bd {
    border-radius: var(--site-frame-radius) var(--site-frame-radius) 0 0;
}
body:not([data-page="home"]) .site-top-slot .site-utility-bar {
    box-shadow: none;
}
/* Butik m.fl.: nav + moms-rad + banner = samma inramade kort som startsidan */
body[data-page="shop"] .site-top-frame {
    border-radius: var(--site-frame-radius) var(--site-frame-radius) 0 0;
    box-shadow: none;
}
body[data-page="shop"] .site-top-slot .site-utility-bar {
    border-radius: 0;
}
body[data-page="shop"] .site-top-slot.is-scrolled .site-top-frame {
    border-radius: var(--site-frame-radius);
    box-shadow: 0 10px 28px rgba(33, 76, 54, 0.14);
}
body[data-page="shop"] .site-hero-slot {
    padding-top: 0;
    margin-top: 0;
}
body[data-page="shop"] .site-hero-frame {
    border-radius: 0 0 var(--site-frame-radius) var(--site-frame-radius);
    box-shadow: var(--site-frame-shadow);
}
body[data-page="shop"] main {
    padding-top: 0;
}
.site-hero-slot {
    padding: 0 clamp(0.5rem, 2vw, 1rem) 0.5rem;
    background: var(--bd-soft-cream);
    position: relative;
    z-index: 1;
}
.site-hero-frame {
    width: var(--site-frame-width);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0 0 var(--site-frame-radius) var(--site-frame-radius);
    box-shadow: var(--site-frame-shadow);
    overflow: hidden;
}
.site-hero-stack {
    display: flex;
    flex-direction: column;
}
.site-hero-stack .hero-boutique {
    border-radius: 0;
    box-shadow: none;
}

/* Navbar */
.navbar-pg,
.navbar-cjma,
.navbar-bd {
    background: var(--bd-deep-green) !important;
    box-shadow: none;
    overflow-anchor: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.site-top-frame .navbar-bd {
    background: var(--bd-deep-green) !important;
}

.navbar-bd .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}
.navbar-bd .nav-link:hover,
.navbar-bd .nav-link:focus {
    color: #fff !important;
}
.navbar-bd .navbar-brand {
    color: #fff !important;
}

.footer-muted {
    color: rgba(255, 255, 255, 0.82);
}
footer a.footer-muted,
footer .text-white-50 {
    color: rgba(255, 255, 255, 0.82) !important;
}
footer h6 {
    color: rgba(255, 255, 255, 0.95);
}

.navbar-bd .navbar-logo,
.navbar-logo {
    height: 52px;
    width: auto;
}
@media (min-width: 992px) {
    .navbar-bd .navbar-logo,
    .navbar-logo { height: 56px; }
}

.nav-subline {
    background: var(--bd-warm-sand);
    color: var(--bd-ink-brown);
    font-size: 0.875rem;
    padding: 0.35rem 0;
    text-align: center;
}
.nav-subline a {
    color: var(--bd-deep-green);
    font-weight: 600;
    text-decoration: none;
}
.nav-subline a:hover { color: var(--bd-ink-brown); }
.footer-logo { height: 55px; width: auto; }
.hero-logo   { height: 60px; width: auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }

/* Hero – videobakgrund */
.hero-video {
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, var(--hero-overlay-1), var(--hero-overlay-2));
    z-index: 1;
}

.hero-video-content {
    position: relative;
    z-index: 2;
    color: var(--bd-brown);
    padding: 4rem 0 6rem;
}

/* Hero boutique + frostglas + våg */
.hero-boutique {
    position: relative;
    min-height: min(72vh, 680px);
    display: flex;
    align-items: center;
    background: var(--bd-soft-cream);
    overflow: hidden;
    border-radius: inherit;
}
.site-hero-stack .hero-boutique {
    background: var(--bd-deep-green);
}

/* Kompakt rad under nav: leverans + snabblänkar + moms (ej på startsida) */
.site-utility-bar {
    background: var(--bd-soft-cream);
    border-bottom: 1px solid rgba(142, 170, 150, 0.18);
    padding: 0.35rem 0;
}
.site-utility-frame {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}
.site-utility-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem 1.25rem;
    min-height: 2.25rem;
}
.site-utility-delivery {
    flex: 1 1 auto;
    min-width: 0;
}
.nav-subline--utility {
    flex: 1 1 auto;
    text-align: center;
    padding: 0;
    background: transparent;
    font-size: 0.82rem;
}
.nav-subline--utility a {
    color: var(--bd-deep-green);
    font-weight: 600;
    text-decoration: none;
}
.nav-subline--utility a:hover {
    color: var(--bd-ink-brown);
}
.vat-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.vat-toggle__label {
    font-size: 0.8rem;
    color: var(--bd-ink-brown);
    white-space: nowrap;
}
body[data-page="home"] .site-hero-slot {
    padding-top: 0;
    margin-top: 0;
}
body[data-page="home"] .site-hero-frame {
    border-radius: 0 0 var(--site-frame-radius) var(--site-frame-radius);
    box-shadow: var(--site-frame-shadow);
}
body[data-page="home"] main {
    padding-top: 0;
}
.hero-trust__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.hero-trust__vat {
    align-items: center;
    padding: 0.25rem 0 0.5rem;
}
@media (max-width: 991.98px) {
    body[data-page="home"] .hero-trust {
        padding-bottom: 0.85rem;
    }
    .site-utility-inner {
        justify-content: center;
    }
    .nav-subline--utility {
        flex: 1 1 100%;
        order: -1;
    }
}

/* Trust integrerad i hero-kortet (ingen extra “låda”) */
.hero-trust {
    position: relative;
    z-index: 4;
    margin-top: -1px;
    padding: 1rem 0 1.15rem;
    background: linear-gradient(180deg, var(--bd-soft-cream) 0%, var(--bd-warm-sand) 100%);
    border-top: 1px solid rgba(142, 170, 150, 0.2);
}
.hero-trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--bd-forest);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.hero-trust__item:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--bd-ink-brown);
}
.hero-trust__item--static {
    cursor: default;
}
.hero-trust__item--static:hover {
    background: transparent;
}
.hero-trust__item i {
    font-size: 1.25rem;
    color: var(--bd-leather);
    flex-shrink: 0;
}
@media (max-width: 575.98px) {
    .hero-trust__item {
        font-size: 0.8rem;
        padding: 0.45rem 0.35rem;
        flex-direction: column;
        gap: 0.2rem;
    }
    .hero-trust__item i {
        font-size: 1.15rem;
    }
}
.home-promo {
    max-width: var(--site-frame-width);
}
@media (max-width: 575.98px) {
    :root {
        --site-frame-width: min(100%, calc(100vw - 0.75rem));
        --site-frame-radius: 18px;
    }
    .site-top-slot,
    .site-hero-slot {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}
.hero-boutique__media {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center 33%;
}
.hero-boutique__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, var(--hero-overlay-1), var(--hero-overlay-2));
    z-index: 1;
}
.hero-boutique__content {
    position: relative;
    z-index: 2;
    padding: 4.5rem 0 7rem;
    text-align: center;
}
.hero-glass {
    display: inline-block;
    max-width: 36rem;
    padding: 2rem 2.5rem;
    margin: 0 auto;
    text-align: center;
    background: rgba(246, 239, 226, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 36px;
    box-shadow: 0 12px 40px rgba(33, 76, 54, 0.12);
}
.hero-glass h1 {
    color: var(--bd-ink-brown);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.hero-glass .hero-tagline {
    font-family: 'Pinyon Script', cursive;
    font-size: 1.65rem;
    color: var(--bd-deep-green);
}
.hero-glass p { color: var(--bd-dark); }
.hero-glass .hero-postal {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(90, 55, 40, 0.1);
}
@media (max-width: 575.98px) {
    .hero-glass {
        border-radius: 24px;
        padding: 1.25rem 1.5rem;
        max-width: 100%;
    }
}
.hero-boutique__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(40px, 6vw, 72px);
    z-index: 3;
    line-height: 0;
    pointer-events: none;
}
.site-hero-stack .hero-boutique__content {
    padding-bottom: clamp(4rem, 10vw, 6rem);
}
.hero-boutique__wave svg,
.hero-boutique__wave img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Fallback om video inte finns / gammal .hero klass */
.hero {
    background: linear-gradient(160deg, var(--cjma-green-dark) 0%, var(--cjma-green) 100%);
    color: white;
    padding: 4rem 0 3.5rem;
}

.hero h1,
.hero-video-content h1 { font-size: 2.5rem; font-weight: 800; }

.hero .lead,
.hero-video-content .lead { font-size: 1.15rem; opacity: 0.9; }

.hero .btn-order,
.hero-video-content .btn-order {
    font-size: 1.3rem;
    padding: 0.8rem 2.5rem;
    background: white;
    border: none;
    color: var(--cjma-blue-dark);
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero .btn-order:hover,
.hero-video-content .btn-order:hover {
    transform: scale(1.05);
    background: var(--cjma-sand);
    color: var(--cjma-blue-dark);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero .btn-calc,
.hero-video-content .btn-calc {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero .btn-calc:hover,
.hero-video-content .btn-calc:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.6);
    color: white;
    transform: translateY(-2px);
}

/* Trust-bar */
.trust-bar {
    background: var(--bd-sand);
    border-bottom: none;
    padding: 1.25rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bd-forest);
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--bd-leather);
}

.info-section .bi {
    color: var(--bd-sage);
}

/* Service-/promo-kort */
.card-service {
    position: relative;
    border-radius: 28px;
    padding: 1.75rem 1.5rem 1.75rem 2rem;
    background: linear-gradient(135deg, var(--bd-warm-sand) 0%, var(--bd-soft-cream) 100%);
    border: 1px solid rgba(90, 55, 40, 0.08);
    box-shadow: 0 10px 36px rgba(33, 76, 54, 0.07);
    overflow: hidden;
    height: 100%;
    text-align: left;
}
.card-service::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    right: -40px;
    bottom: -50px;
    border-radius: 50%;
    background: rgba(142, 170, 150, 0.2);
    pointer-events: none;
}
.card-service:nth-child(even) {
    padding: 1.75rem 2rem 1.75rem 1.5rem;
}
@media (min-width: 768px) {
    .row > [class*="col-"]:nth-child(even) .card-service {
        padding: 1.75rem 2rem 1.75rem 1.5rem;
    }
    .row > [class*="col-"]:nth-child(even) .card-service::after {
        right: auto;
        left: -50px;
    }
}
.card-service i.bi {
    font-size: 2rem;
    color: var(--bd-sage);
    margin-bottom: 0.5rem;
    display: block;
}
.card-service--photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--card-photo);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    pointer-events: none;
}
.card-service--photo > * {
    position: relative;
    z-index: 1;
}

/* Sortiment — smal bildbanner (ingen video), inramad under nav */
.shop-banner {
    position: relative;
    max-height: 220px;
    overflow: hidden;
    background: var(--bd-deep-green);
    border-radius: 0;
}
.shop-banner__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}
.shop-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(33, 76, 54, 0.75) 0%, rgba(33, 76, 54, 0.35) 55%, transparent 100%);
}
.shop-banner__text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}
.shop-banner__text h1 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Butiksbild — kontakt & leverans */
.store-photo-card {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 36px rgba(33, 76, 54, 0.07);
}
.store-photo-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.delivery-store-photo img {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    object-position: center;
}

/* Produkt-placeholder */
.product-placeholder {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    background: var(--product-placeholder-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 22px 22px 0 0;
    box-shadow: inset 0 2px 12px rgba(33, 76, 54, 0.06);
}
.product-placeholder__mark {
    position: absolute;
    width: 40%;
    max-width: 120px;
    opacity: 0.12;
    pointer-events: none;
}
.product-placeholder__icon {
    font-size: 2.5rem;
    color: var(--bd-sage);
    position: relative;
    z-index: 1;
}
.product-placeholder__label {
    font-size: 0.8rem;
    color: var(--bd-muted);
    position: relative;
    z-index: 1;
}

/* Boutique-kort & knappar */
.card-boutique,
.product-card {
    border: 1px solid rgba(90, 55, 40, 0.08);
    border-radius: var(--product-card-radius);
    background: var(--bd-soft-cream);
    box-shadow: 0 8px 32px rgba(33, 76, 54, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.card-boutique:hover,
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(33, 76, 54, 0.12);
}

.promo-card {
    background: var(--bd-warm-sand);
    padding: 1.75rem;
    height: 100%;
    text-align: center;
}

.product-card .card-img-top,
.product-card .product-card-img,
.product-card .product-placeholder {
    aspect-ratio: 1;
    min-height: unset;
    height: auto;
}
.product-card .card-img-top,
.product-card .product-card-img {
    object-fit: cover;
    width: 100%;
    border-radius: var(--product-img-radius);
    box-shadow: inset 0 2px 12px rgba(33, 76, 54, 0.06);
}

.product-card .card-body {
    padding: var(--product-card-padding);
}

.product-card .card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    color: var(--bd-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .card-text {
    font-size: var(--product-caption-size);
    color: var(--bd-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .usage-hint { font-size: 0.85rem; color: var(--bd-forest); font-weight: 500; }
.product-card .price {
    font-size: var(--product-price-size);
    font-weight: 700;
    color: var(--bd-leather);
    font-family: 'DM Sans', sans-serif;
}

.product-card .vat-label {
    font-size: var(--product-caption-size);
    color: var(--bd-muted);
}

.product-card__cta {
    min-height: var(--product-cta-min-height);
    margin-top: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
}

.product-card__cta:focus-visible,
.product-pagination .page-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(142, 170, 150, 0.45);
    outline: none;
}

.product-card .fraction-badge {
    background: var(--bd-sage);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
}

.product-card .delivery-hint {
    font-size: var(--product-caption-size);
    color: var(--bd-forest);
    font-weight: 600;
}

.btn-bd-primary,
.btn-primary {
    background: var(--bd-leather) !important;
    border-color: var(--bd-leather) !important;
    color: #fff !important;
    border-radius: 999px;
    padding: 0.8rem 2.1rem;
    font-weight: 600;
}
.btn-bd-primary:hover,
.btn-primary:hover {
    background: #8f5e48 !important;
    border-color: #8f5e48 !important;
    color: #fff !important;
}

.btn-bd-secondary,
.btn-outline-dark,
.btn-outline-primary {
    background: transparent;
    color: var(--bd-deep-green);
    border: 2px solid var(--bd-sage);
    border-radius: 999px;
    font-weight: 600;
}
.btn-bd-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-primary:hover {
    background: var(--bd-blush);
    color: var(--bd-deep-green);
    border-color: var(--bd-sage);
}

.badge-stallfavorit {
    background: var(--bd-rose-clay);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
}

.cta-blush {
    background: var(--bd-blush);
    border-radius: 28px;
    padding: 2.5rem;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover { color: inherit; }

/* Kategorifilter — boutique */
.category-filter .btn-bd-secondary.active {
    background: var(--bd-deep-green) !important;
    border-color: var(--bd-deep-green) !important;
    color: #fff !important;
}

.category-filter .btn-bd-secondary:not(.active):hover {
    background: var(--bd-blush);
    color: var(--bd-deep-green);
    border-color: var(--bd-sage);
}

/* Paginering sortiment */
.product-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.product-pagination__summary {
    font-size: 0.875rem;
    color: var(--bd-muted);
    margin-bottom: 1rem;
}

.product-pagination .pagination {
    gap: 0.35rem;
}

.product-pagination .page-link {
    background: transparent;
    border: 1px solid rgba(142, 170, 150, 0.4);
    border-radius: 999px;
    color: var(--bd-deep-green);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

.product-pagination .page-item.active .page-link {
    background: var(--bd-deep-green);
    border-color: var(--bd-deep-green);
    color: #fff;
}

.product-pagination .page-item.disabled .page-link {
    opacity: 0.45;
    pointer-events: none;
}

.product-pagination__nav {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: var(--bd-deep-green);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}

.skip-to-content:focus {
    position: fixed;
    left: 1rem;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

/* Kampanjblock */
.campaign-block {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

.campaign-offer {
    background: var(--bd-sand);
    border: 1px solid rgba(92, 64, 51, 0.1);
    border-radius: 28px;
}

.campaign-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--bd-rose);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.campaign-price {
    font-size: 3.5rem;
    font-weight: 900;
    color: #c0392b;
    line-height: 1;
}

.campaign-original-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
}

.campaign-news {
    background: var(--cjma-light);
    border: 1px solid #dee2e6;
}

.campaign-info {
    background: #cfe2ff;
    border: 1px solid #9ec5fe;
}

.campaign-latestnews {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #ced4da;
}

.campaign-latestnews .news-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.campaign-latestnews .news-article-link:hover {
    opacity: 0.85;
}

/* Kassa / Varukorg */
.cart-item { border-bottom: 1px solid #eee; padding: 1rem 0; }
.cart-item:last-child { border-bottom: none; }

/* Admin */
.admin-bar {
    background: var(--cjma-sand);
    color: var(--cjma-dark);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.admin-tile {
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.admin-tile:hover { transform: scale(1.03); color: white; }
.admin-tile.admin-tile--stats,
.admin-tile.admin-tile--stats:hover {
    background: var(--bd-deep-green) !important;
    color: #fff !important;
}
.admin-tile i { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

.admin-tile .badge-count {
    font-size: 1.5rem;
    background: rgba(255,255,255,0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-top: 0.3rem;
}

/* Status steg */
.status-steps { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.status-step {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #dee2e6;
    background: white;
    transition: all 0.2s;
}

.status-step.active { background: var(--cjma-green); color: white; border-color: var(--cjma-green); }
.status-step.completed { background: #d1ecf1; border-color: #0878C4; color: #0a3d62; }

/* Stor knapp (touchvänlig) */
.btn-lg-touch {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    min-height: 56px;
}

/* CJMA grön knapp */
.btn-cjma {
    background: var(--cjma-green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-cjma:hover {
    background: var(--cjma-green-dark);
    color: white;
    transform: translateY(-1px);
}

/* Kalkylator */
.calculator-box {
    background: var(--cjma-light);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid var(--cjma-green);
}

.calculator-result { font-size: 2rem; font-weight: 800; color: var(--cjma-green); }

/* Tjänstekort */
.service-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.service-icon    { font-size: 2.5rem; color: var(--cjma-green); }
.service-icon-lg { font-size: 3rem; color: var(--cjma-green); flex-shrink: 0; }
.service-card-img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* 3-stegsflöde */
.steps-flow {
    background: var(--cjma-sand-light);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
}

.step-wrapper { position: relative; display: inline-block; }

.step-number {
    font-size: 0.75rem;
    font-weight: 800;
    color: rgba(255,255,255,0.8);
    position: absolute;
    top: 2px;
    right: -2px;
    background: var(--cjma-green-dark);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
}

.step-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cjma-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 16px rgba(8,120,196,0.3);
}

.step-arrow {
    color: var(--cjma-sand);
    font-size: 2rem;
    align-self: center;
}

/* Snabbinfo-sektion */
.info-section { background: var(--cjma-light); }

/* Responsive */
@@media (max-width: 768px) {
    .hero h1,
    .hero-video-content h1 { font-size: 1.8rem; }
    .hero .btn-order,
    .hero-video-content .btn-order { font-size: 1.1rem; width: 100%; }
    .hero-logo { height: 48px; }
    .hero-video { min-height: 420px; }
    .hero-video-content { padding: 3rem 0 2.5rem; }
    .trust-item { font-size: 0.85rem; }
    .trust-item i { font-size: 1.2rem; }
    .step-arrow { transform: rotate(90deg); }
    .step-circle { width: 60px; height: 60px; font-size: 1.5rem; }
}

/* ── Admin help tooltips ───────────────────────────────── */
.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #6c757d;
    border: 1.5px solid #ced4da;
    border-radius: 50%;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
    transition: all .15s;
    user-select: none;
}
.help-icon:hover {
    color: #fff;
    background: var(--cjma-green, #198754);
    border-color: var(--cjma-green, #198754);
}
    .campaign-price { font-size: 2.5rem; }
    .admin-tile { min-height: 100px; padding: 1.2rem; }
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.25s, box-shadow 0.25s;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* News content */
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.news-content h2, .news-content h3 {
    margin-top: 1.5rem;
}
.news-content p {
    line-height: 1.8;
}

/* Product image gallery */
.gallery-thumbs {
    flex-wrap: wrap;
}
.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    background: #f0f0f0;
}
.gallery-thumb:hover {
    border-color: var(--cjma-blue);
    transform: scale(1.05);
}
.gallery-thumb.active {
    border-color: var(--cjma-blue);
    box-shadow: 0 0 0 2px var(--cjma-blue);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    font-size: 1.8rem;
}

/* Hjälp / innehållssidor (By d'Aillys) */
.content-page .lead { color: var(--bd-muted); }

.help-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.help-nav__link {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bd-deep-green);
    background: var(--bd-warm-sand);
    border: 1px solid rgba(90, 55, 40, 0.1);
}
.help-nav__link:hover {
    background: var(--bd-blush);
    color: var(--bd-ink-brown);
}
.help-nav__link.is-active {
    background: var(--bd-deep-green);
    color: #fff;
    border-color: var(--bd-deep-green);
}

.card-bd {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(90, 55, 40, 0.1);
    box-shadow: 0 8px 28px rgba(33, 76, 54, 0.06);
    background: #fff;
}
.card-bd__header {
    background: var(--bd-deep-green);
    color: #fff;
    padding: 1rem 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.card-bd__body {
    padding: 1.5rem;
    background: linear-gradient(180deg, var(--bd-soft-cream) 0%, #fff 100%);
}

.help-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--bd-warm-sand);
    color: var(--bd-ink-brown);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    flex-shrink: 0;
}

.help-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--bd-warm-sand);
    border-radius: 20px;
}
.help-jump__label {
    font-weight: 600;
    color: var(--bd-ink-brown);
    margin-right: 0.25rem;
}
.help-jump__pill {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--bd-deep-green);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(33, 76, 54, 0.12);
}
.help-jump__pill:hover {
    background: #fff;
    color: var(--bd-ink-brown);
}

.alert-bd {
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--bd-blush);
    border: 1px solid rgba(142, 170, 150, 0.35);
    color: var(--bd-dark);
}

.accordion-bd .accordion-item {
    border: 1px solid rgba(142, 170, 150, 0.35);
    border-radius: 16px !important;
    overflow: hidden;
    margin-bottom: 0.65rem;
    background: #fff;
}
.accordion-bd .accordion-button {
    font-weight: 600;
    color: var(--bd-ink-brown);
    background: var(--bd-soft-cream);
    box-shadow: none;
}
.accordion-bd .accordion-button:not(.collapsed) {
    background: var(--bd-warm-sand);
    color: var(--bd-deep-green);
}
.accordion-bd .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(142, 170, 150, 0.35);
}
.accordion-bd .accordion-body {
    background: #fff;
    color: var(--bd-dark);
}

.brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.brand-grid--logos {
    gap: 1rem 1.25rem;
    align-items: center;
}
.brand-logo-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    min-width: 6.5rem;
    max-width: 9rem;
    padding: 0.5rem 0.35rem;
    text-align: center;
}
.brand-logo-cell__name {
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--bd-dark);
    font-weight: 500;
}
.brand-logo-subtle {
    max-height: 36px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(20%);
}
.brand-chip {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    background: var(--bd-soft-cream);
    border: 1px solid rgba(142, 170, 150, 0.4);
    color: var(--bd-dark);
}

/* Produktvariant — boutique chips (LAN-122 tokens) */
.variant-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.variant-chip-group .btn-check + .variant-chip {
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    font-weight: 600;
    border: 1px solid rgba(90, 55, 40, 0.15);
    background: var(--bd-soft-cream, #faf6ef);
    color: var(--bd-dark, #3d2b1f);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.variant-chip-group .btn-check:checked + .variant-chip {
    background: var(--bd-leather, #5a3728);
    border-color: var(--bd-leather, #5a3728);
    color: #fff;
}
.variant-chip-group .btn-check:focus-visible + .variant-chip {
    box-shadow: 0 0 0 0.2rem rgba(142, 170, 150, 0.45);
}

.team-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--bd-warm-sand) 0%, var(--bd-soft-cream) 100%);
    border: 1px solid rgba(90, 55, 40, 0.08);
    height: 100%;
}
.team-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 1.5rem;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.8);
}
.team-card__role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bd-leather);
}
@media (max-width: 575.98px) {
    .team-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Foderstat — sömlös med hjälp/innehållssidor */
.foderstat-flow .card-bd__body {
    padding: 0;
}

.foderstat-section {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(90, 55, 40, 0.08);
}

.foderstat-section:last-child {
    border-bottom: none;
}

.foderstat-section__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bd-deep-green);
    margin-bottom: 1rem;
}

.foderstat-section .form-label {
    font-size: 0.9rem;
    color: var(--bd-ink-brown);
}

.foderstat-section .form-control,
.foderstat-section .form-select {
    border-radius: 12px;
    border-color: rgba(90, 55, 40, 0.15);
    background: #fff;
}

.foderstat-section .form-control:focus,
.foderstat-section .form-select:focus {
    border-color: var(--bd-sage);
    box-shadow: 0 0 0 0.2rem rgba(122, 155, 118, 0.2);
}

.foderstat-actions {
    padding: 1.25rem 1.75rem 1.75rem;
    background: var(--bd-soft-cream);
}

.foderstat-result {
    border-radius: 28px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(90, 55, 40, 0.1);
    background: linear-gradient(180deg, var(--bd-blush) 0%, var(--bd-soft-cream) 100%);
}

.foderstat-result__headline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--bd-deep-green);
    margin-bottom: 0.5rem;
}

.foderstat-result--low {
    border-left: 4px solid var(--bd-leather);
}

.foderstat-result--high {
    border-left: 4px solid var(--bd-sage);
}

.foderstat-result--ok {
    border-left: 4px solid var(--bd-deep-green);
}

.foderstat-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.foderstat-stat {
    background: rgba(255, 255, 255, 0.65);
    border-radius: 16px;
    padding: 0.75rem 1rem;
}

.foderstat-stat__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bd-muted);
}

.foderstat-stat__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bd-ink-brown);
}

.foderstat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.foderstat-suggestion {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(90, 55, 40, 0.08);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.foderstat-suggestion:hover {
    background: #fff;
    border-color: rgba(33, 76, 54, 0.2);
    color: inherit;
}

.foderstat-suggestion__name {
    font-weight: 600;
    color: var(--bd-deep-green);
}

.foderstat-suggestion__reason {
    font-size: 0.85rem;
    color: var(--bd-muted);
    margin-top: 0.2rem;
}

.foderstat-advisor {
    margin-top: 1rem;
    border-radius: 28px;
    border: 1px solid rgba(90, 55, 40, 0.1);
    background: #fff;
    overflow: hidden;
}

.foderstat-advisor > summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bd-deep-green);
    background: var(--bd-warm-sand);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.foderstat-advisor > summary::-webkit-details-marker {
    display: none;
}

.foderstat-advisor > summary::after {
    content: "+";
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bd-leather);
}

.foderstat-advisor[open] > summary::after {
    content: "−";
}

.foderstat-advisor__body {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid rgba(90, 55, 40, 0.08);
}

.foderstat-intro {
    max-width: 40rem;
    padding: 0 1.75rem 1.5rem;
}
.foderstat-shell .help-nav {
    margin-bottom: 0;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(90, 55, 40, 0.08);
    border-radius: 28px 28px 0 0;
    background: linear-gradient(180deg, var(--bd-warm-sand) 0%, var(--bd-soft-cream) 100%);
}
.foderstat-shell .help-nav__link {
    background: rgba(255, 255, 255, 0.55);
}
body[data-page="foderstat"] .content-page {
    margin-top: 0 !important;
}
.foderstat-result + .foderstat-flow {
    margin-top: 0;
}
