:root {
    --primary: #16a34a;
    --primary-foreground: #ffffff;
    --secondary: #f97316;
    --background: #ffffff;
    --foreground: #111827;
    --muted: #f3f4f6;
    --accent: #eff6ff;
    --radius: 1rem;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
}

.osattvik-hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.osattvik-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.osattvik-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.osattvik-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.osattvik-hero h1 span {
    color: #4ade80;
}

.btn-osattvik {
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.btn-osattvik-primary {
    background-color: var(--primary);
    color: white;
    border: none;
}

.btn-osattvik-primary:hover {
    background-color: #15803d;
    transform: scale(1.05);
}

.btn-osattvik-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-osattvik-outline:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Calendar Styles */
.osattvik-calendar {
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.osattvik-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.osattvik-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.osattvik-calendar-day-label {
    text-align: center;
    font-weight: 700;
    color: #6b7280;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.osattvik-calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #f3f4f6;
    position: relative;
}

.osattvik-calendar-day:hover {
    background: var(--accent);
    border-color: var(--primary);
}

.osattvik-calendar-day.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.osattvik-calendar-day.has-menu::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.osattvik-calendar-day.active.has-menu::after {
    background: white;
}

.osattvik-calendar-day.today {
    border-color: var(--secondary);
    font-weight: 800;
}

.osattvik-menu-details {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 1.5rem;
}

/* Floating Cart Summary */
.osattvik-cart-summary {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 350px;
    z-index: 1050;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.osattvik-cart-summary.expanded {
    transform: translateY(-80px);
    /* For mobile when expand bar is visible */
}

@media (max-width: 768px) {
    .osattvik-cart-summary {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        bottom: 80px;
        /* Above mobile bar */
    }
}

.cart-items-list::-webkit-scrollbar {
    width: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.shadow-lg-reverse {
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.1), 0 -8px 10px -6px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-fast {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse-fast {
    animation: pulse-fast 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Shop Button Consistency */
.btn-success,
.btn-primary.btn-osattvik-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-success:hover,
.btn-primary.btn-osattvik-primary:hover {
    background-color: #15803d !important;
    border-color: #15803d !important;
}

/* Homepage New Widget Utilities */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.15), 0 8px 10px -6px rgba(22, 163, 74, 0.1);
}

.hover-shadow:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-hover-transform {
    transition: transform 0.2s ease;
}

.btn-hover-transform:hover {
    transform: scale(1.05);
}

.fs-7 {
    font-size: 0.85rem;
}

/* Modal Specific & Premium Customizer Styling */
.modal-content .osattvik-customizer-wrapper {
    max-height: 85vh;
    overflow-y: auto;
    background: #fdfdfd;
}

.package-card {
    border: 2px solid #f3f4f6!important;
    border-radius: 1.25rem!important;
    background: white!important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)!important;
    position: relative;
    padding: 1rem!important;
}

.package-card:hover {
    border-color: var(--primary)!important;
    background: #f0fdf4!important;
    transform: translateY(-2px)!important;
}

.package-card.selected {
    border-color: var(--primary)!important;
    background: #f0fdf4!important;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.1)!important;
}

.package-card.selected .selection-card-check,
.selection-card.selected .selection-card-check {
    opacity: 1!important;
}

.selection-card {
    border: 1px solid #e5e7eb!important;
    border-radius: 1rem!important;
    overflow: hidden!important;
    background: white!important;
    transition: all 0.2s!important;
    height: 100%!important;
}

.selection-card:hover {
    border-color: var(--primary)!important;
    transform: translateY(-2px)!important;
}

.selection-card.selected {
    border: 2px solid var(--primary)!important;
    background: #f0fdf4!important;
}

.sidebar-wrapper {
    background: #111827!important;
    color: white!important;
}

.sidebar-header {
    background: #1f2937!important;
    border-bottom: 1px solid #374151!important;
}

.text-gray-300 { color: #d1d5db!important; }
.text-gray-400 { color: #9ca3af!important; }
.text-gray-500 { color: #6b7280!important; }
.bg-gray-800 { background-color: #1f2937!important; }
.bg-gray-900 { background-color: #111827!important; }

/* Responsive adjustments for modal */
@media (max-width: 991px) {
    .modal-dialog.modal-xl {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .osattvik-customizer-wrapper .col-lg-4 {
        margin-top: 2rem;
    }
}

.addon-card {
    border: 1px solid #e5e7eb!important;
    border-radius: 0.75rem!important;
    padding: 0.75rem!important;
    display: flex!important;
    flex-direction: column!important;
    justify-content: space-between!important;
    height: 100%!important;
    transition: all 0.2s!important;
}

.addon-card:hover {
    border-color: #9333ea!important;
    background: #faf5ff!important;
}

.addon-btn-add {
    width: 100%!important;
    border: 1px solid #9333ea!important;
    color: #9333ea!important;
    background: white!important;
    border-radius: 9999px!important;
    font-weight: 700!important;
    font-size: 0.75rem!important;
}

.addon-card.selected .addon-btn-add {
    display: none!important;
}

/* AI Rich UI Components - Advanced */
.ai-ui-container {
    margin-top: 10px;
    width: 100%;
}

/* Carousel Styles */
.ai-carousel-wrapper {
    margin: 10px 0;
    position: relative;
}

.ai-carousel-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 8px;
    padding-left: 5px;
}

.ai-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 5px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.ai-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.ai-carousel-item {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ai-carousel-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

.ai-item-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1a202c;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.5em;
}

.ai-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.ai-item-meta {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 2px;
}

/* Cart Card Styles */
.ai-cart-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ai-cart-header {
    background: #f8fafc;
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-cart-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a202c;
}

.ai-cart-total {
    color: var(--primary);
    font-weight: 800;
}

.ai-cart-body {
    padding: 0;
}

.ai-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.ai-cart-item:last-child {
    border-bottom: none;
}

.ai-cart-item-info {
    flex-grow: 1;
}

.ai-cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.ai-cart-item-qty {
    font-size: 0.75rem;
    color: #64748b;
}

.ai-cart-item-remove {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.2s;
}

.ai-cart-item-remove:hover {
    background: #fef2f2;
}

/* Confirmation Card */
.ai-confirm-card {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-confirm-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-confirm-msg {
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
}

/* Taste Preference Selector */
.ai-pref-selector {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #e5e7eb;
}

.ai-pref-header {
    background: var(--primary);
    color: #fff;
    padding: 12px 15px;
}

.ai-pref-title {
    font-weight: 700;
    font-size: 0.9rem;
}

.ai-pref-subtitle {
    font-size: 0.7rem;
    opacity: 0.9;
    line-height: 1.2;
}

.ai-pref-body {
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.ai-pref-category {
    margin-bottom: 20px;
}

.ai-pref-cat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-pref-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ai-pref-item {
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    user-select: none;
}

.ai-pref-item img, .ai-pref-no-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 5px;
}

.ai-pref-no-img {
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.ai-pref-name {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-pref-check {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-pref-item.selected {
    background: #f0fdf4;
    border-color: var(--primary);
}

.ai-pref-item.selected .ai-pref-check {
    opacity: 1;
    transform: scale(1);
}

.ai-pref-item:hover {
    background: #f1f5f9;
}

.ai-pref-item.selected:hover {
    background: #f0fdf4;
}