/* Scoped Styles for Mobirise Integration */
.lombard-app {
    /* Brand Colors */
    --primary: #40B0BF;
    /* Teal - Buttons, Active */
    --primary-dark: #3598a5;
    /* Hover state */
    --accent: #F62B7A;
    /* Pink - Discounts, Alerts */
    --text-main: #232323;
    /* Headings, Body */
    --text-light: #64748b;
    /* Subtitles, Hints */
    --bg-page: #ffffff;
    --bg-input: #F4F4F6;
    --border-light: #e2e8f0;

    /* Spacing & Radius */
    --radius-pill: 50px;
    --radius-card: 16px;
    --radius-input: 12px;

    /* Font */
    --font-main: 'Schibsted Grotesk', sans-serif;

    /* Typography Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 2rem;
    /* 32px */

    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Base Styles from Body */
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-align: left;
}

/* Scoped Reset */
.lombard-app *,
.lombard-app *::before,
.lombard-app *::after {
    box-sizing: border-box;
}

.lombard-app img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.la-wrapper {
    max-width: 1140px;
    margin: 40px auto 60px auto;
    /* Removed negative margin, added breathing room */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Header */
.la-header {
    text-align: center;
    margin-bottom: 40px;
}

.la-title {
    font-size: var(--text-3xl);
    font-weight: var(--fw-bold);
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
}

.la-lead {
    font-size: var(--text-base);
    color: var(--text-light);
    margin: 0 0 20px 0;
}

.la-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff0f5;
    /* Light pink bg */
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 500;
    border: 1px solid rgba(246, 43, 122, 0.2);
}

.text-accent {
    color: var(--accent);
    font-weight: 700;
}

/* Sections */
.la-section {
    margin-bottom: 40px;
}

/* Search & Section Header */
.la-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.la-section-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin: 0;
    border: none;
    padding: 0;
}

.la-search-wrapper {
    flex-grow: 1;
    max-width: 300px;
    position: relative;
    display: flex;
    /* alignment */
    align-items: center;
}

.la-search-input {
    width: 100%;
    /* Ensure it fills wrapper */
    border-radius: 20px;
    padding-left: 15px;
    padding-right: 30px;
    /* Space for X */
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    height: 40px;
    /* fixed height for consistency */
}

#search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    display: none;
    /* hidden by default */
    line-height: 1;
}

#search-clear:hover {
    color: var(--accent);
}

/* Form Grid */
.la-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .la-form-grid {
        grid-template-columns: 1fr;
    }
}

.full-width {
    grid-column: 1 / -1;
}

/* Form Controls */
.la-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lombard-app label {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    margin-bottom: 4px;
    color: var(--text-main);
}

.la-form-control {
    width: 100%;
    padding: 10px 16px;
    /* Slightly reduced vertical padding */
    font-family: inherit;
    font-size: var(--text-base);
    border: 1px solid transparent;
    background-color: var(--bg-input);
    border-radius: var(--radius-input);
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.la-form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(64, 176, 191, 0.1);
}

textarea.la-form-control {
    resize: vertical;
}

.la-form-text {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* Product Cards Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.la-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.la-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0 !important;
    overflow: hidden !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease backwards;
    position: relative;
}

.la-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -5px rgba(64, 176, 191, 0.15);
    /* Teal shadow hint */
    border-color: var(--primary);
}

.la-card.la-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 10px 25px -5px rgba(64, 176, 191, 0.2);
    background-color: #f8fdfe;
    /* Very subtle tint */
}

/* Autocomplete */
.la-autocomplete {
    position: relative;
}

.la-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 0 0 var(--radius-input) var(--radius-input);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.la-suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.1s;
}

.la-suggestion-item:last-child {
    border: none;
}

.la-suggestion-item:hover {
    background-color: var(--bg-input);
    color: var(--primary);
}

.la-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background-color: var(--bg-input);
    border-radius: 0 !important;
}

.la-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.la-card-title {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    margin: 0 0 5px 0;
}

.la-card-text {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1;
}

.la-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 10px;
}

.la-price-cont {
    display: flex;
    flex-direction: column;
}

.la-price-label {
    font-size: var(--text-xs);
    color: var(--text-light);
    letter-spacing: 0.02em;
    font-weight: var(--fw-medium);
}

.la-price-tag {
    font-weight: var(--fw-bold);
    color: var(--text-main);
    font-size: var(--text-xl);
    line-height: 1.2;
}

/* Quantity Control Pill */
.la-qty-pill {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    border-radius: var(--radius-pill);
    padding: 2px;
    height: 40px;
    box-sizing: border-box;
}

.la-qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* subtle lift */
    transition: all 0.2s;
    padding: 0;
}

.la-qty-btn:hover {
    background-color: white;
    color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.la-qty-btn svg {
    display: block;
}

.la-qty-input {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: var(--fw-bold);
    font-size: var(--text-base);
    padding: 0;
    margin: 0 4px;
    -moz-appearance: textfield;
    appearance: textfield;
    /* firefox */
}

/* Hide spinners */
.la-qty-input::-webkit-outer-spin-button,
.la-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.la-qty-input:focus {
    outline: none;
    color: var(--primary);
}

/* Summary Card */
.la-summary {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.la-summary-title {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    margin-bottom: 20px;
    text-align: center;
}

.la-summary-rows {
    max-width: 400px;
    margin: 0 auto 30px auto;
}

.la-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: var(--text-base);
}

.la-summary-row.la-discount-row {
    color: var(--accent);
    align-items: center;
}

.la-summary-row.la-discount-row strong {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    background: #fff0f5;
    padding: 4px 10px;
    border-radius: 8px;
    color: var(--accent);
}

.la-divider {
    height: 1px;
    background-color: var(--border-light);
    margin: 15px 0;
}

.la-summary-row.la-total-row {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--text-main);
}

/* Buttons */
.la-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: var(--text-sm);
    font-weight: var(--fw-bold);
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-pill);
    text-decoration: none;
}

.la-btn-primary {
    background-color: var(--primary);
    color: white;
}

.la-btn-primary:hover {
    background-color: var(--primary-dark);
    transform: scale(1.02);
}

.la-btn-danger {
    background-color: #ef4444;
    /* Red-500 */
    color: white;
}

.la-btn-danger:hover {
    background-color: #dc2626;
    /* Red-600 */
}

.la-gdpr {
    font-size: var(--text-xs);
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

/* Summary Items List */
.la-sum-items {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-light);
}

.la-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
    font-size: var(--text-sm);
}

.la-sum-name {
    flex: 1;
    position: relative;
    overflow: hidden;
    color: var(--text-main);
    white-space: nowrap;
}

.la-sum-name::after {
    content: "....................................................................................................";
    position: absolute;
    margin-left: 5px;
    color: #e5e5e5;
    letter-spacing: 2px;
}

.la-sum-price {
    font-weight: var(--fw-bold);
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.la-text-muted {
    color: var(--text-light);
    font-size: 0.9em;
}

.la-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.la-btn-block {
    display: block;
    width: 100%;
}

.la-btn-link {
    background: none;
    color: var(--text-light);
    text-decoration: underline;
    font-weight: 500;
    font-size: var(--text-sm);
    padding: 10px;
}

.la-btn-link:hover {
    color: var(--accent);
    background: none;
    transform: none;
}

/* Sticky Discount Badge */
.la-sticky-badge {
    position: fixed;
    left: 20px;
    top: 300px;
    z-index: 90;
    background: white;
    padding: 15px;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(246, 43, 122, 0.3);
    border: 3px solid var(--accent);
    color: var(--accent);
    cursor: default;

    /* Initial hidden state */
    opacity: 0;
    transform: translateX(-150%);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.la-sticky-badge.la-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    animation: stickyPulse 3s infinite;
}

.la-sticky-badge:hover {
    transform: scale(1.1) rotate(5deg);
}

.la-sticky-icon {
    font-size: var(--text-3xl);
    line-height: 1;
    margin-bottom: 2px;
}

.la-sticky-text {
    text-align: center;
    line-height: 1;
}

.la-sticky-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: var(--text-main);
}

.la-sticky-value {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
}

@keyframes stickyPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(246, 43, 122, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(246, 43, 122, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(246, 43, 122, 0);
    }
}

@media (max-width: 1200px) {
    .la-sticky-badge {
        display: none;
    }
}


/* Toast Notifications */
.la-toast-container {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Let clicks pass through */
    font-family: 'Schibsted Grotesk', sans-serif;
    /* Setup Font Explicitly */
}

.la-toast {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-left: 4px solid var(--primary);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    pointer-events: auto;
    opacity: 0;
}

.la-toast.la-success {
    border-left-color: #10b981;
    /* Green-500 */
}

.la-toast.la-success .la-toast-icon {
    color: #10b981;
}

.la-toast.la-error {
    border-left-color: #ef4444;
    /* Red-500 */
}

.la-toast.la-error .la-toast-icon {
    color: #ef4444;
}

.la-toast.la-show {
    transform: translateX(0);
    opacity: 1;
}

.la-toast-icon {
    font-size: var(--text-xl);
}

.la-toast-content {
    display: flex;
    flex-direction: column;
}

.la-toast-title {
    font-weight: var(--fw-bold);
    font-size: var(--text-base);
    color: var(--text-main);
}

.la-toast-msg {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* Product Labels / Badges */
.la-product-labels {
    position: absolute;
    top: 125px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.la-product-label {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s ease;
}

.la-product-label:hover {
    transform: scale(1.05);
}

.la-product-label.la-label-discount {
    background: var(--accent);
    color: white;
}

.la-product-label.la-label-new {
    background: var(--primary);
    color: white;
}

/* Validation Styles */
.la-form-control.la-invalid {
    border-color: #ef4444;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.la-invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: var(--text-sm);
    color: #ef4444;
}

/* Summary Item with Dots */
.la-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: var(--text-sm);
}

.la-si-name {
    flex-shrink: 0;
    max-width: 65%;
}

.la-si-dots {
    flex-grow: 1;
    border-bottom: 2px dotted #d1d5db;
    margin: 0 5px 5px 5px;
}

.la-si-price {
    flex-shrink: 0;
    font-weight: 600;
    color: #111827;
}

/* VAT Note */
.la-vat-note {
    font-size: var(--text-xs);
    color: #9ca3af;
    text-align: right;
}

/* Collapsible Trigger Section */
.la-hero-trigger {
    background: linear-gradient(135deg, var(--primary) 0%, #2A8FA0 100%);
    border: none;
    border-radius: 24px;
    padding: 60px 50px;
    /* Increased vertical padding */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 10px 25px rgba(64, 176, 191, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    color: white;
}

.la-hero-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
    pointer-events: none;
}

.la-hero-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(64, 176, 191, 0.5);
}

.la-hero-content {
    flex: 1;
    z-index: 2;
}

.la-hero-title {
    font-size: 48px;
    /* Massive title */
    line-height: 1.1;
    font-weight: var(--fw-extrabold);
    margin: 0 0 16px 0;
    color: white;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.la-hero-subtitle {
    font-size: 24px;
    /* Larger subtitle */
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: var(--fw-medium);
}

/* Badge in Hero */
.la-hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin: 0 30px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.la-hero-trigger:hover .la-hero-badge {
    transform: scale(1.05) rotate(2deg);
    background: rgba(255, 255, 255, 0.3);
}

.la-badge-icon {
    font-size: var(--text-xl);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.la-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.la-badge-label {
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.la-badge-value {
    font-size: var(--text-2xl);
    font-weight: var(--fw-extrabold);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Arrow */
.la-hero-arrow {
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
}

.la-hero-trigger:hover .la-hero-arrow {
    color: white;
    background: rgba(255, 255, 255, 0.25);
}

.la-hero-trigger.la-open .la-hero-arrow {
    transform: rotate(180deg);
    background: white;
    color: var(--primary);
}

.la-hero-trigger.la-open {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
}

/* Collapsible Content */
.la-app-content {
    animation: fadeIn 0.5s ease backwards;
    background: #fff;
    border: 1px solid var(--border-light);
    border-top: none;
    border-bottom-left-radius: var(--radius-card);
    border-bottom-right-radius: var(--radius-card);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

@media (max-width: 600px) {
    .la-hero-trigger {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 25px 20px;
        position: relative;
    }

    .la-hero-title {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 8px;
        word-wrap: normal;
        hyphens: none;
        max-width: 250px;
    }

    .la-hero-subtitle {
        font-size: 18px;
    }

    .la-hero-content {
        padding-right: 45px;
        width: 100%;
    }

    .la-hero-badge {
        margin: 0;
        width: 100%;
        justify-content: center;
    }

    .la-hero-arrow {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 600px) {
    .la-summary {
        padding: 25px 15px;
    }

    .la-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 15px;
    }

    .la-summary-row>span {
        font-size: var(--text-sm);
        color: var(--text-light);
        line-height: 1.2;
    }

    .la-summary-row>strong {
        align-self: flex-end;
        text-align: right;
    }

    .la-summary-row.la-discount-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }

    .la-summary-row.la-discount-row>strong {
        align-self: center;
    }
}