﻿/* ── Navigation Links (generic, non-shell specific) ───────────────────── */
.nav-link {
    color: white;
    border-radius: var(--radius);
    padding: 0.9rem 1.5rem;
    transition: var(--transition);
    position: relative;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--sheep-orange);
        background: rgba(255, 255, 255, 0.12);
        transform: translateX(4px);
    }

    .nav-link.active,
    .nav-link[aria-current="page"] {
        color: var(--sheep-orange);
        background: rgba(255, 255, 255, 0.18);
        font-weight: 700;
        border-left: 5px solid var(--sheep-orange);
    }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-sheep-green {
    --bs-btn-bg: var(--sheep-green);
    --bs-btn-border-color: var(--sheep-green);
    --bs-btn-hover-bg: var(--sheep-orange);
    --bs-btn-hover-border-color: var(--sheep-orange);
    --bs-btn-active-bg: var(--sheep-orange-dark);
    --bs-btn-active-border-color: var(--sheep-orange-dark);
    --bs-btn-color: white;
    --bs-btn-hover-color: white;
    border-radius: var(--radius);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .btn-sheep-green:hover,
    .btn-sheep-green:focus-visible {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 10px 28px rgba(242, 140, 56, 0.35);
    }

.btn-outline-sheep-green {
    --bs-btn-color: var(--sheep-green);
    --bs-btn-border-color: var(--sheep-green);
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--sheep-green);
    --bs-btn-hover-border-color: var(--sheep-green);
    --bs-btn-active-color: white;
    --bs-btn-active-bg: var(--sheep-orange-dark);
    --bs-btn-active-border-color: var(--sheep-orange-dark);
    --bs-btn-focus-shadow-rgb: 44, 119, 68;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all 0.25s ease;
}

    .btn-outline-sheep-green:hover,
    .btn-outline-sheep-green:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(44, 119, 68, 0.18);
    }

[data-theme="dark"] .btn-outline-sheep-green {
    --bs-btn-color: #7bd88f;
    --bs-btn-border-color: #4fa868;
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--sheep-green);
    --bs-btn-hover-border-color: var(--sheep-green);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--surface-shadow);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease, transform 0.35s ease;
    background: var(--surface-bg);
    color: var(--sheep-dark);
    overflow: hidden;
}

    .card:hover {
        box-shadow: var(--surface-shadow-hover);
        transform: translateY(-2px);
    }

    .card .card-body {
        background: transparent;
    }

    .card .card-title {
        color: var(--sheep-dark);
    }

    .card .card-text,
    .card .text-muted {
        color: var(--text-muted-color) !important;
    }

.card-sheep-active {
    background: var(--surface-bg-accent);
    border-color: rgba(44, 119, 68, 0.18);
}

[data-theme="dark"] .card-sheep-active {
    border-color: rgba(90, 170, 110, 0.28);
}

.card-flat {
    box-shadow: none;
}

.card-soft {
    background: var(--surface-bg-soft);
}

.card-glass {
    background: var(--surface-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-compact .card-body {
    padding: 1rem;
}

/* ── Panels / reusable surfaces ────────────────────────────────────────── */
.sheep-panel {
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--surface-shadow);
}

.sheep-panel-soft {
    background: var(--surface-bg-soft);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
}

.sheep-panel-accent {
    background: var(--surface-bg-accent);
    border: 1px solid rgba(44, 119, 68, 0.18);
    border-radius: var(--radius-lg);
}

.sheep-panel-glass {
    background: var(--surface-bg-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ── Badges / pills ────────────────────────────────────────────────────── */
.sheep-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--surface-border);
    background: var(--surface-bg-soft);
    color: var(--sheep-dark);
}

.sheep-pill-green {
    background: rgba(44, 119, 68, 0.10);
    color: var(--sheep-green);
    border-color: rgba(44, 119, 68, 0.18);
}

.sheep-pill-orange {
    background: rgba(242, 140, 56, 0.12);
    color: var(--sheep-orange);
    border-color: rgba(242, 140, 56, 0.20);
}

/* ── Section headers ───────────────────────────────────────────────────── */
.sheep-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sheep-section-title {
    margin: 0;
    color: var(--sheep-dark);
    font-weight: 700;
}

.sheep-section-subtitle {
    margin: 0;
    color: var(--text-muted-color);
}

/* ── Supplier Menu Layout ──────────────────────────────────────────────── */
.supplier-menu {
    padding-bottom: calc(var(--bottom-nav-h, 0px) + 90px);
}

/* Sticky header */
.supplier-menu-header {
    position: sticky;
    top: calc(var(--navbar-height, 0px) + 8px);
    z-index: 10;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--surface-bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--surface-border);
}

/* Cards */
.supplier-menu-card {
    transition: transform .12s ease, box-shadow .12s ease;
    border: 1px solid var(--surface-border);
}

    .supplier-menu-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(0,0,0,0.14);
    }

/* Sticky basket only inside supplier menu */
@media (min-width: 992px) {
    .supplier-menu .basket-sticky-wrap {
        position: relative;
    }

    .supplier-menu .basket-sticky {
        position: sticky;
        top: calc(var(--navbar-height, 0px) + 16px);
        max-height: calc(100vh - (var(--navbar-height, 0px) + 32px));
        display: flex;
        flex-direction: column;
    }

    .supplier-menu .basket-body {
        overflow: auto;
        flex: 1 1 auto;
        min-height: 0;
    }

    .supplier-menu .basket-footer {
        padding: 12px 14px;
        border-top: 1px solid var(--surface-border);
        background: var(--surface-bg-glass);
        backdrop-filter: blur(10px);
    }
}

/* Checkout specific override */
.checkout-page .basket-sticky,
.checkout-page .basket-sticky-wrap {
    position: static !important;
    max-height: none !important;
}
