@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;600&family=Quicksand:wght@400;700&display=swap');

:root {
    --primary-color: #ff00cc;
    --secondary-color: #3333ff;
    --accent-color: #00ff00;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-magical: 0 15px 50px rgba(255, 0, 204, 0.2);
    --radius-lg: 30px;
    --radius-sm: 15px;
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    color: #2d3436;
    /* Super fargerik og magisk bakgrunn som beveger seg */
    background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #a18cd1, #fbc2eb, #84fab0, #fdcbf1);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    min-height: 100vh;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 40px;
    animation: float 6s ease-in-out infinite;
}

.unicorn-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
    animation: bounce 2s infinite;
}

h1.logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 4.5rem;
    color: white;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1);
    margin: 0;
    /* Regnbue tekst */
    background: linear-gradient(to right, #ff00cc, #3333ff, #00ccff, #00ff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tagline {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    background: white;
    color: #ff00cc;
    padding: 10px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding-bottom: 80px;
}

/* Magic Card */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 3px solid white;
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--shadow-magical);
    border-color: #ff00cc;
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: rotate(2deg) scale(1.1);
}

.card h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    margin: 20px 0 10px;
    color: #444;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff00cc;
    display: block;
    margin-bottom: 10px;
}

/* Detail Page */
.detail-box {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 40px;
    padding: 40px;
    margin-top: 20px;
    box-shadow: var(--shadow-magical);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    border: 4px solid white;
}

.detail-img-container {
    flex: 1 1 400px;
    cursor: zoom-in;
    /* Viser at man kan trykke */
    position: relative;
}

.detail-img-container img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.detail-img-container:hover img {
    transform: scale(1.02);
}

.detail-img-container::after {
    content: '🔍 Trykk for å se stort';
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.8;
}

.detail-content {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-content h1 {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    color: #333;
    margin: 0;
}

.detail-price-lg {
    font-size: 2.5rem;
    color: #ff00cc;
    font-weight: bold;
    margin: 20px 0;
}

.description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 20px;
}

.buy-btn {
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    color: white;
    font-size: 1.5rem;
    padding: 20px 50px;
    border-radius: 100px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(255, 0, 204, 0.4);
    transition: all 0.3s ease;
    border: 4px solid rgba(255, 255, 255, 0.5);
    display: inline-block;
    cursor: pointer;
}

.buy-btn:hover {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 20px 50px rgba(255, 0, 204, 0.6);
    background: linear-gradient(45deg, #3333ff, #ff00cc);
}

.back-link {
    display: inline-block;
    background: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.back-link:hover {
    transform: scale(1.1);
    color: #ff00cc;
}

/* Lightbox (Fullskjerm bilde) */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 20px;
    border: 5px solid white;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}