:root {
    --primary: #d35400;
    /* Varm oransje */
    --secondary: #2c3e50;
    /* Slate grey */
    --accent: #27ae60;
    /* Nordic green */
    --bg-light: #fdfdfd;
    --bg-alt: #f4f7f6;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --container-width: 1100px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1,
h2,
h3,
.logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 45px;
}

.logo span {
    font-size: 1.5rem;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1513104890138-7c749659a591?q=80&w=2070&auto=format&fit=crop');
    /* Pizza placeholder */
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
}

/* Menu Section */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px auto 0;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--secondary);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.menu-items {
    list-style: none;
}

.menu-items li {
    margin-bottom: 25px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-header .price {
    color: var(--primary);
}

.description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Om oss section */
.alt-bg {
    background-color: var(--bg-alt);
}

.om-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.rounded-img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.image-placeholder {
    height: 400px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #888;
    font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

footer h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer p {
    color: #bdc3c7;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
}

/* Mock Order Buttons */
.btn-order {
    background: var(--primary);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-order:hover {
    background: #e67e22;
}

/* AI Agent Floating Bubble */
#ai-agent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    z-index: 2000;
    transition: var(--transition);
    border: 1px solid #eee;
}

.ai-agent-closed {
    height: 50px;
}

.ai-open {
    height: 400px !important;
}

.ai-header {
    background: var(--secondary);
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.ai-status {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
}

.ai-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
}

.ai-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
}

.bot-msg {
    background: #f0f2f5;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ai-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 5px;
}

.ai-input input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Shopping Cart Panel */
#cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    padding: 30px;
    transition: var(--transition);
    transform: translateX(100%);
}

.cart-open {
    transform: translateX(0) !important;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

#cart-items {
    list-style: none;
    margin-bottom: 30px;
}

#cart-items li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed #eee;
}

.cart-notes {
    margin-bottom: 30px;
}

.cart-notes label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.cart-notes textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.cart-footer {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.total {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Payment Modal */
#payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.modal-hidden {
    display: none !important;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
}

.payment-options {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.btn-payment {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
}

.btn-payment.active {
    border-color: var(--primary);
    background: #fff5ee;
    color: var(--primary);
}

.btn-vipps-main {
    background-color: #ff5b24;
    /* Vipps oransje-ish, men de bruker ofte hvit på oransje */
    color: white;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.vipps-content {
    text-align: center;
    padding: 10px 0;
}

.vipps-logo-small {
    font-weight: 800;
    color: #ff5b24;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#stripe-form input,
#vipps-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.input-row {
    display: flex;
    gap: 10px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-top: 15px;
    font-size: 0.8rem;
    display: block;
    width: 100%;
}

/* Success Modal Styling */
.success-content {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #2ecc71;
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: scaleUp 0.3s ease-out;
}

@keyframes scaleUp {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

#success-msg {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.success-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .om-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    header nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

    #cart-panel {
        width: 100%;
    }
}