@keyframes pop {
    50% {
        transform: translate(0, -4px);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes scale-center {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    10% {
        opacity: 90%;
    }
    25% {
        opacity: 100%;
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.0);
    }
    75% {
        opacity: 100%;
        transform: scale(1.0);
    }
    90% {
        opacity: 90%;
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

@layer theme {
    html {
        body {
            display: flex;
            justify-content: flex-start;
            flex-direction: column;
            background-color: var(--color-lightest-gray);

            &.debug {
                #header-section {
                    svg {
                        filter: hue-rotate(180deg);
                    }
                }
            }

            .content {
                padding: 0;
                margin-left: auto;
                margin-right: auto;
                max-width: 1280px;
            }

            .header-image {
                width: 100%;
                min-height: 300px;
                max-height: 400px;
                object-fit: cover;
            }

            #header-section {
                height: 112px;
                width: 100%;
                background-color: white;

                > div.content {
                    display: flex;
                    width: 100%;
                    padding: var(--space-xxs);
                    flex-flow: row nowrap;
                }

                @media (width <= 768px) {
                    display: none;
                }

                svg {
                    width: 96px;
                    height: 96px;
                }

                #search-and-accounts {
                    margin-left: auto;

                    label:has(> input[type=search]):has(+ input[type=submit]) {
                        display: inline-block;
                    }

                    label + input[type=submit] {

                    }

                    label > input[type=search] {
                        margin: 0;
                    }
                }
            }

            #navigation-section {
                position: sticky;
                top: 0;
                z-index: 1000;
                background-color: white;
                box-shadow: 0 var(--space-xs) var(--space-xs) rgba(0, 0, 0, 0.1);
                font-size: var(--font-size-s);

                & > .navigation-content {
                    display: flex;
                    flex-direction: row;
                    height: 48px;
                }

                a {
                    text-decoration: none;
                    color: var(--color-dark-gray);

                    &:visited {
                        color: var(--color-dark-gray);
                    }
                }

                .responsive-menu {
                    display: none;

                    > a {
                        display: none;
                    }

                    ul {
                        list-style: none;
                        margin: 0;
                    }

                    #menu-responsive-navigation {
                        a {
                            display: block;
                            padding: 8px 16px 4px;
                            height: 32px;
                            align-content: center;
                            text-align: left;
                            box-sizing: content-box;

                            &:hover {
                                color: var(--color-primary);
                            }
                        }
                    }

                    @media (width <= 768px) {
                        inset: unset;
                        border: 0;

                        display: flex;
                        position: fixed;
                        top: 0;
                        bottom: 0;
                        width: min(400px, 85dvw);
                        background-color: #ffffff;
                        height: 100%;
                        z-index: 200;
                        flex-direction: column;
                        justify-content: start;
                        left: max(-400px, -85dvw);
                        transition: all 200ms ease-in;

                        &:popover-open {
                            box-shadow: 10px 0 10px rgba(0, 0, 0, 0.1);
                            left: 0;
                        }

                        .responsive-side-menu-top {
                            display: block;
                            margin: 8px auto;

                            svg {
                                width: 96px;
                                height: 96px;
                            }

                            .close-button {
                                background-color: #ffffff;
                                border: 0;
                                cursor: pointer;
                                position: absolute;
                                top: 16px;
                                right: 16px;

                                svg {
                                    width: 32px;
                                    height: 32px;
                                    stroke: var(--color-gray);
                                }
                            }
                        }
                    }
                }

                .regular-menu {
                    height: 48px;

                    > a {
                        display: none;
                    }

                    #menu-navigation {
                        list-style: none;
                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        margin: 0;
                        padding: 0;


                        > li {
                            display: inline-block;
                            padding-right: var(--space-s);

                            a {
                                display: inline-block;
                                padding: 8px 8px 4px 8px;
                                height: 32px;
                                align-content: center;
                                box-sizing: content-box;
                                width: stretch;
                                background-color: white;
                            }

                            > a {
                                border-bottom: 4px solid transparent;

                                &:hover {
                                    color: var(--color-primary);
                                    border-bottom: 4px solid var(--color-primary);
                                }
                            }

                            > ul {
                                display: none;
                                background-color: white;
                                list-style: none;
                                padding: 0;
                                box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);

                                li {
                                    padding: 0;
                                }

                                a {
                                    &:hover {
                                        background-color: var(--color-primary);
                                        color: white;
                                    }
                                }
                            }

                            &:hover {
                                > ul {
                                    display: block;
                                }
                            }
                        }
                    }

                    @media (width <= 768px) {
                        display: none;
                    }


                }

                .store-links {
                    display: flex;
                    flex-direction: row;
                    justify-content: space-between;
                    margin-left: auto;
                    margin-right: 16px;

                    @media (width <= 768px) {
                        margin-left: 16px;
                        width: 100%;
                    }


                    form[action='/search'] {
                        display: block;

                        #search-input {
                            width: 0;
                            margin: 6px 0 6px 0;
                            transition: width 500ms ease-in-out, opacity 200ms ease-in;
                            opacity: 0;
                            display: inline-block;

                            &.active {
                                opacity: 1;
                                width: 150px;
                            }
                        }

                        #search-input.active + #search-button svg {
                            stroke: var(--color-primary);
                        }
                    }

                    a, button.menu-button {
                        display: inline-block;
                        width: 48px;
                        height: 48px;
                        margin: 0;
                        padding: 0;
                        border: 0;
                        position: relative;
                        background-color: transparent;
                        
                        
                        
                        
                        
                        
                        
                        

                        &:hover svg {
                            color: var(--color-primary);
                        }

                        svg {
                            width: 48px;
                            height: 48px;
                            padding: 8px;
                            color: var(--color-dark-gray);
                        }
                    }

                    .cart {
                        position: relative;
                        background-color: transparent;
                        
                        

                        .badge {
                            position: absolute;
                            top: 2px;
                            right: 2px;
                            box-sizing: content-box;
                            background-color: var(--color-red);
                            border: 2px solid #ffffff;
                            color: #ffffff;
                            padding: 0 4px;
                            border-radius: var(--border-rounding);
                            font-size: 14px;
                            line-height: 16px;
                            height: 16px;
                            font-weight: bold;
                        }

                        &:hover {
                            animation-name: pop;
                            animation-duration: 500ms;
                            animation-timing-function: linear;
                            animation-iteration-count: 1;
                        }
                    }

                    @media (width > 768px) {
                        button.menu-button {
                            display: none;
                        }
                    }
                }

                @media not screen {
                    display: none;
                }
            }

            #main-section {
                padding: var(--space-m);
                padding-top: var(--space-xxs);

                @media (width <= 768px) {
                    padding: var(--space-xxs);
                }
            }

            .page-content {
                display: flex;
                justify-content: space-between;
                flex-grow: 1;
                flex-direction: column;
                width: 100%;
                padding: var(--space-l) var(--space-s) 0 var(--space-s);

                img {
                    max-width: 100%;
                }

                &.missing {
                    #main-section {
                        width: max-content;
                        margin-left: auto;
                        margin-right: auto;
                        padding-top: var(--space-l);
                        text-align: center;

                        h1.huge {
                            font-size: 96pt;
                            margin-bottom: 0;
                        }
                    }
                }

                &.qr-thanks {
                    #main-section {
                        max-width: 896px;
                        margin-left: auto;
                        margin-right: auto;
                        background-color: white;
                        border-radius: var(--border-rounding);
                        border: 1px solid var(--color-light-gray);

                        .center-form {
                            max-width: 680px;
                            padding: var(--space-s);
                            margin: var(--space-m) auto;
                            border: 1px solid var(--color-light-gray);
                            border-radius: var(--border-rounding);

                            .sidenote {
                                font-style: italic;
                                font-size: var(--font-size-xxs);
                                color: var(--color-gray);
                            }
                        }
                    }
                }

                &.contact {
                    #main-section {
                        background-color: white;
                        margin-top: var(--space-m);
                        margin-bottom: var(--space-m);
                        padding: var(--space-l);
                        border-radius: var(--border-rounding);
                        width: max-content;
                        max-width: 100%;
                        margin-left: auto;
                        margin-right: auto;
                        border: 1px solid var(--color-light-gray);

                        text-align: center;

                        h1 {
                            font-size: 28pt;
                        }

                        svg {
                            width: 48px;
                            height: 48px;
                        }

                        .contact-items {
                            gap: var(--space-xxl);
                        }
                    }
                }

                &.page {
                    #main-section {
                        max-width: 896px;
                        width: 100%;
                        background-color: white;
                        margin-top: var(--space-m);
                        margin-bottom: var(--space-m);
                        border-radius: var(--border-rounding);
                        border: 1px solid var(--color-light-gray);
                        margin-left: auto;
                        margin-right: auto;
                        padding: var(--space-l);
                    }
                }

                &.home {
                    width: 100%;
                    padding: 0;

                    #main-section {
                        padding: 0;

                        img.banner {
                            width: 100%;
                            height: auto;

                            &.mobile {
                                display: none;
                            }

                            @media (width <= 768px) {
                                &.mobile {
                                    display: block;
                                }

                                &.desktop {
                                    display: none;
                                }
                            }
                        }

                        .main-categories {
                            max-width: 1080px;
                            margin-left: auto;
                            margin-right: auto;

                            .category-section {
                                border: 1px solid var(--color-light-gray);
                                overflow: clip;
                                cursor: pointer;
                                position: relative;
                                display: block;
                                /*max-height: 400px;*/
                                /*max-width: 100%;*/

                                .title {
                                    position: absolute;
                                    top: 0;
                                    left: 0;
                                    right: 0;
                                    bottom: 0;
                                    background: linear-gradient(340deg,rgba(255, 255, 255, 0) 60%, var(--color-primary-dark) 100%);

                                    h2 {
                                        margin-top: var(--space-m);
                                        margin-left: var(--space-m);
                                        color: white;
                                        padding-bottom: var(--space-s);
                                        margin-bottom: var(--space-s);
                                        border-bottom: 2px solid white;
                                        display: inline-block;
                                    }
                                }

                                .goto {
                                    display: none;
                                }

                                img {
                                    height: 100%;
                                    width: 100%;
                                    aspect-ratio: 16 / 9;
                                    transition: 0.5s;
                                    object-fit: cover;
                                }

                                &:hover {
                                    img {
                                        background-color: white;
                                        transform: scale(1.1);
                                        filter: brightness(60%);
                                    }

                                    .goto {
                                        display: block;
                                        position: absolute;
                                        transform: translate(-50%, -50%);
                                        top: 50%;
                                        left: 50%;
                                        fill: white;

                                        svg {
                                            width: 72px;
                                            height: 72px;
                                        }
                                    }
                                }
                            }
                        }

                        .features {
                            margin-top: var(--space-xl);
                            margin-bottom: var(--space-xl);
                            width: contain;
                            border: 1px solid var(--color-light-gray);
                            border-radius: var(--border-rounding);
                            padding: var(--space-m) var(--space-xxl);
                            background-color: white;
                            display: flex;
                            flex-direction: row;

                            @media (width <= 768px) {
                                flex-direction: column;
                            }

                            .feature {
                                padding: var(--space-m) var(--space-m);
                                text-align: center;
                                text-wrap: balance;
                                flex: 1;

                                &:hover {
                                    svg {
                                        transform: scale(1.2);
                                    }
                                }

                                .h3 {
                                    margin-bottom: var(--space-xxs);
                                }

                                svg {
                                    transition: 0.4s;
                                    width: 96px;
                                    height: 96px;
                                    padding: var(--space-s);
                                }
                            }
                        }

                        .newest-products {
                            > h2 {
                                text-align: center;
                                font-size: var(--font-size-xxl);
                            }
                        }

                        .reviews {
                            margin-top: var(--space-xl);
                            width: 100%;

                            @media (width <= 768px) {
                                padding-left: var(--space-s);
                                padding-right: var(--space-s);
                            }

                            > h2 {
                                text-align: center;
                                font-size: var(--font-size-xxl);
                            }

                            .cards {
                                display: flex;
                                flex-direction: row;
                                overflow-x: auto;
                                scrollbar-width: none;
                                user-select: none;
                                width: 100%;
                                padding-left: var(--space-l);
                                padding-right: var(--space-l);

                                div.card {
                                    > div {
                                        position: relative;
                                        background-color: white;
                                        border-radius: var(--border-rounding);
                                        border: 1px solid var(--color-light-gray);
                                        padding: var(--space-xl);
                                        min-width: 300px;
                                        max-width: 300px;
                                        width: 300px;
                                        height: 300px;

                                    }
                                    min-width: 350px;
                                    max-width: 350px;
                                    width: 350px;
                                    height: 350px;
                                    padding: var(--space-xl);
                                    will-change: scroll-position, opacity, transform;
                                    animation: scale-center linear both;
                                    animation-timeline: view(x);

                                    .stars {
                                        position: absolute;
                                        top: -8px;
                                        right: -8px;
                                        background-color: white;
                                        border-radius: var(--border-rounding);
                                        border: 1px solid var(--color-light-gray);
                                        padding: var(--space-xxs);

                                        img {
                                            width: 16px;
                                            height: 16px;
                                        }
                                    }

                                    .card-content {
                                        display: flex;
                                        justify-content: space-between;
                                        flex-direction: column;
                                        width: 100%;
                                        height: 100%;

                                        img {
                                            display: block;
                                            border-radius: 50%;
                                            border: 2px solid white;
                                            width: 48px;
                                            height: 48px;
                                            margin-left: auto;
                                            margin-right: auto;
                                            object-fit: cover;
                                        }

                                        .comment {
                                            font-size: var(--font-size-xxs);
                                            font-style: italic;
                                            text-wrap: pretty;
                                            text-align: justify;
                                        }

                                        .name {
                                            text-align: right;
                                            font-weight: 600;
                                            font-size: var(--font-size-xxs);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }

            .shop-page {
                max-width: 1920px;
                padding-left: 0;
                padding-right: 0;

                #main-section {
                    display: grid;
                    grid-template-columns: 2fr 9fr 1fr;
                    gap: var(--space-s);
                    padding-left: 0;
                    padding-right: 0;

                    @media (width <= 1280px) {
                        grid-template-columns: 2fr 6fr 0.2fr;
                    }

                    @media (width <= 768px) {
                        grid-template-columns: 1fr;
                        padding-left: var(--space-m);
                        padding-right: var(--space-m);
                    }

                    .left-content {
                        padding: 0 0;
                        padding-top: 70px;

                        .filters {
                            padding: var(--space-m) var(--space-l);
                            background-color: white;
                            border: solid 1px var(--color-light-gray);
                            border-radius: var(--border-rounding);
                            overflow-y: auto;

                            span.title {
                                display: block;
                                font-weight: 600;
                                font-size: var(--font-size-s);
                                font-family: var(--font-family-sans) sans-serif;
                                color: var(--color-gray);
                                margin-bottom: var(--space-xxs);

                                &:not(&:first-child) {
                                    margin-top: var(--space-m);
                                }
                            }

                            label {
                                padding-bottom: 0;
                                padding-left: var(--space-xs);

                                span {
                                    display: inline-block;

                                    &:first-letter {
                                        text-transform: uppercase;
                                    }
                                }

                                &:hover {
                                    background-color: var(--color-primary-lightest);
                                    cursor: pointer;
                                }

                                &:has(:checked) {
                                    color: var(--color-primary);
                                }
                            }

                            &.empty {
                                display: none;
                            }
                        }

                        @media (width <= 768px) {
                            padding: 0;

                            .filters {
                                position: static;
                                box-shadow: none;
                                background-color: transparent;
                                display: none;
                                max-height: unset;

                                &.active {
                                    display: block;
                                    position: fixed;
                                    left: 0;
                                    bottom: 0;
                                    top: 0;
                                    width: min(400px, 85dvw);
                                    padding-top: var(--space-l);
                                    background-color: white;
                                    z-index: 100;
                                    backdrop-filter: blur(2px);
                                    padding-left: var(--space-l);
                                    padding-right: var(--space-s);
                                    box-shadow: 10px 0 10px rgba(0, 0, 0, 0.1);
                                }
                            }
                        }
                    }
                }
            }

            .products {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
                gap: 16px;
                margin-bottom: var(--space-l);

                @media (width <= 768px) {
                    padding-left: var(--space-s);
                    padding-right: var(--space-s);
                }

                :has(> &) {
                    container-type: inline-size;
                }

                &::before {
                    display: none;
                }

                &::after {
                    display: none;
                }

                .product {
                    --translation-y: calc(var(--space-xxs) * -1);
                    display: flex;
                    flex-direction: column;
                    padding: 0;
                    width: 100%;
                    min-width: 280px;
                    position: relative;
                    border: 1px solid var(--color-light-gray);
                    border-radius: var(--border-rounding);
                    background-color: white;
                    transition: translate 250ms ease-in-out;
                    overflow: clip;

                    &:hover {
                        translate: 0 var(--translation-y);
                    }

                    .product-display {
                        overflow: clip;
                        border: 0;
                        aspect-ratio: 1 / 1;
                        position: relative;
                        margin: 0 0 var(--space-xs);

                        img {
                            margin: 0;
                            padding: 0;
                            border: 0;
                            height: 100%;
                            width: 100%;
                            object-fit: cover;
                            aspect-ratio: 1 / 1;
                            background-color: white;
                        }

                        .cup-options {
                            position: absolute;
                            bottom: var(--space-xs);
                            right: var(--space-xs);
                            padding-top: var(--space-xxs);
                            padding-right: var(--space-xxs);
                            padding-left: var(--space-xxs);
                            z-index: 100;
                            border-radius: var(--border-rounding);

                            span {
                                display: inline-block;
                                min-width: 16px;
                                min-height: 16px;

                                svg {
                                    width: 20px;
                                    height: 20px;
                                }

                                &[data-value='#ff0000'] {
                                    svg {
                                        fill: var(--color-red);
                                    }
                                }

                                &[data-value='#006600'] {
                                    svg {
                                        fill: var(--color-green);
                                    }
                                }

                                &[data-value='#0099ff'] {
                                    svg {
                                        fill: var(--color-blue);
                                    }
                                }

                                &[data-value='#ff6699'] {
                                    svg {
                                        fill: #ff6699;
                                    }
                                }

                                &[data-value='#ffffff'] {
                                    svg {
                                        fill: white;
                                    }
                                }
                            }
                        }
                    }

                    .product-info {
                        padding: var(--space-xs);
                        padding-top: var(--space-xxs);
                        font-size: var(--font-size-xs);
                        display: flex;
                        flex-direction: column;
                        height: 100%;
                        justify-content: space-between;

                        > a {
                            text-decoration: none;
                            color: inherit;
                            margin-bottom: var(--space-s);

                            &:hover {
                                color: var(--color-primary);
                            }
                        }

                        h2 {
                            margin: 0;
                            text-wrap: stable;
                            font-size: var(
                                    --font-size-s);
                            line-height: 1em;
                            min-height: 2em;
                        }

                        .cart-info {
                            margin-top: var(--space-xxs);
                            display: flex;
                            justify-content: space-between;
                            align-items: center;

                            a {
                                margin: 0;
                                padding: var(--space-xxs);
                            }

                            .button-part {
                                display: flex;
                                flex-direction: row;
                                align-items: center;
                            }
                        }
                    }
                }
            }

            .single-product {
                .main-product {
                    display: grid;
                    grid-template-columns: minmax(350px, 3fr) minmax(350px, 4fr);
                    gap: var(--space-l);

                    @media (width <= 768px) {
                        grid-template-columns: 1fr;
                    }

                    .product-gallery {
                        width: 100%;
                        display: grid;
                        grid-template-rows: auto 1fr;
                        gap: var(--space-xs);

                        .product-gallery-thumbnails {
                            display: grid;
                            grid-template-columns: repeat(auto-fill, 80px);
                            gap: var(--space-xxs);

                            .product-image-holder {
                                display: inline-block;
                                width: 80px;
                                height: 80px;
                                background-color: var(--color-light-gray);

                                img {
                                    width: 100%;
                                    height: 100%;
                                    object-fit: cover;
                                    border: 2px solid var(--color-light-gray);
                                    background-color: white;

                                    &.selected {
                                        border-color: var(--color-primary);
                                    }

                                    &:not(.selected) {
                                        filter: brightness(0.9) grayscale(0.2);
                                    }

                                    &:hover:not(.selected) {
                                        filter: brightness(1) grayscale(0);
                                    }
                                }
                            }
                        }

                        .product-gallery-popover {
                            border: 0;
                            padding: 0;
                            overflow: hidden;
                            background-color: transparent;

                            &::backdrop {
                                backdrop-filter: blur(2px) brightness(50%);
                            }

                            :popover-open {
                                display: block;
                            }

                            img {
                                position: fixed;
                                top: 50%;
                                left: 50%;
                                transform: translate(-50%, -50%);
                                max-width: min(85svw, 85svh);
                                height: auto;
                                background-color: white;
                                object-fit: contain;
                            }
                        }

                        .product-gallery-main {
                            width: 100%;
                            aspect-ratio: 1 / 1;
                            object-fit: contain;
                            cursor: pointer;
                            border: 1px solid var(--color-light-gray);
                            background-color: white;
                        }
                    }

                    .product-content {
                        display: inline-block;
                        background-color: white;
                        padding: var(--space-m);
                        border-radius: var(--border-rounding);
                        border: 1px solid var(--color-light-gray);

                        h1 {
                            margin-bottom: var(--space-xxs);
                        }

                        .product-buy-controls {
                            margin-top: var(--space-s);
                            margin-bottom: var(--space-s);

                            .price {
                                margin-bottom: var(--space-xxs);
                            }
                        }

                        .color-customizations {
                            display: flex;
                            gap: var(--space-m);

                            label {
                                background-color: var(--color-lightest-gray);
                                padding: 4px;
                                margin: 0;
                                width: 42px;
                                height: 42px;
                                border: 1px solid var(--color-lightest-gray);
                                border-radius: var(--border-rounding);

                                &:has(input:checked) {
                                    border-color: var(--color-primary);

                                    .color-display {
                                        filter: none;
                                    }
                                }

                                &:hover {
                                    border-color: var(--color-primary-light);

                                    .color-display {
                                        filter: none;
                                    }
                                }
                            }

                            input {
                                display: none;
                            }

                            .color-display {
                                display: inline-block;
                                width: 32px;
                                height: 32px;
                                border-radius: var(--border-rounding);
                                filter: grayscale(20%);
                            }
                        }
                    }

                    .product-description {
                        grid-column: 1 / -1;
                        background-color: white;
                        padding: var(--space-m);
                        border-radius: var(--border-rounding);
                        border: 1px solid var(--color-light-gray);
                    }
                }

                .related-products {
                    margin-top: var(--space-xxl);
                }
            }

            .price {
                color: var(--color-primary);
                font-weight: 800;
                font-size: var(--font-size-s);
                margin: 0;
                padding-top: var(--space-xxs);
                padding-right: var(--space-xs);
            }

            .cart-page {
                .cart-summary {
                    background-color: white;
                    border-radius: var(--border-rounding);
                    border: 1px solid var(--color-light-gray);
                    padding: var(--space-s);

                    #cart-items {
                        .cart-item {
                            display: grid;
                            grid-template-columns: 80px 1fr auto;
                            gap: var(--space-xs);
                            margin-bottom: var(--space-s);
                            border-bottom: 1px solid var(--color-light-gray);
                            padding-bottom: var(--space-xs);

                            .product-image {
                                box-sizing: content-box;

                                img {
                                    object-fit: cover;
                                    border-radius: var(--border-rounding);
                                }
                            }

                            .product-details {
                                a {
                                    text-decoration: none;
                                    color: var(--color-dark-gray);

                                    &:hover {
                                        color: var(--color-primary);
                                    }
                                }

                                p {
                                    margin: 0;
                                    font-size: var(--font-size-xs);
                                }

                                .color-display {
                                    display: inline-block;
                                    width: 16px;
                                    height: 16px;
                                    padding: 0;
                                    border-radius: var(--border-rounding);
                                }
                            }

                            .product-actions {
                                font-size: var(--font-size-xs);
                                text-align: right;
                            }

                            @media (width <= 768px) {
                                grid-template-columns: 80px 1fr;

                                .product-actions {
                                    padding-bottom: var(--space-s);
                                    margin-bottom: var(--space-l);
                                }

                                .product-image {
                                    grid-row: auto / span 2;
                                    grid-column: 1 / span 1;
                                }
                            }
                        }
                    }

                    .cart-totals {
                        padding-bottom: var(--space-m);
                        max-width: 480px;
                        margin-left: auto;
                        font-size: var(--font-size-xs);

                        .total {
                            font-weight: 800;
                        }

                        td:nth-child(1) {
                            text-align: right;
                        }

                        td:nth-child(2) {
                            text-align: right;
                            max-width: 100%;
                            white-space: nowrap;
                        }
                    }

                    .cart-actions {
                        text-align: right;
                    }
                }
            }

            .checkout-page {
                p {
                    font-size: var(--font-size-xs);
                }

                p.subheading {
                    font-size: var(--font-size-xxs);
                    font-weight: 400;
                }

                .checkout-form {
                    display: grid;
                    grid-template-columns: 3fr 2fr;
                    gap: var(--space-m);

                    @media (width <= 768px) {
                        grid-template-columns: 1fr;
                    }

                    #error-messages {
                        grid-column: 1 / -1;
                    }

                    .split-inputs {
                        display: grid;
                        grid-template-columns: 1fr 1fr;
                        gap: var(--space-xs);

                        @media (width <= 768px) {
                            grid-template-columns: 1fr;
                        }
                    }

                    .user-data, .delivery-data, #checkout-information {
                        background-color: white;
                        border-radius: var(--border-rounding);
                        border: 1px solid var(--color-light-gray);
                        padding: var(--space-s);
                    }

                    .delivery-data {
                        .payment-types {
                            display: grid;
                            grid-template-columns: 1fr 1fr;
                            gap: var(--space-xxs);

                            @media (width <= 768px) {
                                grid-template-columns: 1fr;
                                grid-auto-rows: 1fr;
                            }

                            label {
                                border-radius: var(--border-rounding);
                                border: 1px solid var(--color-light-gray);
                                padding: var(--space-xs);
                                margin: 0;
                                text-align: center;
                                align-content: center;

                                &:has(svg) {
                                    padding: var(--space-xxs);
                                }

                                svg {
                                    height: 32px;
                                }

                                &:has(input:checked) {
                                    border-color: var(--color-primary);
                                    color: var(--color-primary);
                                }

                                &:not(:has(input:checked)):hover {
                                    border-color: var(--color-primary-light);
                                    color: var(--color-primary);
                                }

                                &:has([disabled]) {
                                    color: var(--color-light-gray);

                                    &:hover {
                                        color: var(--color-light-gray) !important;
                                        border-color: var(--color-light-gray) !important;
                                        cursor: not-allowed;
                                    }
                                }

                                input {
                                    margin: 0;
                                    display: none;
                                }
                            }
                        }

                        .irispay-info {
                            font-size: var(--font-size-xxs);
                            color: var(--color-gray);
                            margin-top: var(--space-l);
                        }
                    }

                    .user-data {
                        margin-bottom: var(--space-m);
                    }

                    .cart-totals {
                        font-size: var(--font-size-xs);
                        margin-bottom: var(--space-s);

                        .total {
                            font-weight: 800;
                        }
                    }

                    [type=submit] {
                        width: 100%;
                    }

                    label[for=subscribe], label[for=gdpr] {
                        &:hover {
                            cursor: pointer;
                            color: var(--color-primary);

                            input {
                                border-color: var(--color-primary);
                            }
                        }
                    }

                    #checkout-information {
                        position: relative;

                        .loading-overlay {
                            display: none;
                            position: absolute;
                            top: 1%;
                            left: 1%;
                            width: 98%;
                            height: 98%;
                            border-radius: var(--border-rounding);
                            background-color: rgba(0, 0, 0, 0.25);
                            justify-content: center;
                            align-items: center;

                            &.htmx-request {
                                display: flex;
                            }
                        }
                    }
                }
            }

            .cart-totals {
                tr {
                    &:hover {
                        color: var(--color-primary);
                    }
                }
            }

            .thank-you {
                background-color: white;
                border-radius: var(--border-rounding);
                border: 1px solid var(--color-light-gray);
                padding: var(--space-s);
                max-width: 512px;
                margin: auto;

                > img {
                    aspect-ratio: 1 / 1;
                    margin: auto;
                    width: 240px;
                    height: 240px;
                    display: block;
                }

                > h1 {
                    font-size: calc(var(--font-size-xl) * 1.2);
                    color: var(--color-primary);
                }

                p {
                    font-size: var(--font-size-xs);
                }
            }

            #admin-section {
                position: fixed;
                top: 0;
                left: calc(100vw / 2 - 12px);
                display: inline-block;
                width: 24px;
                right: 0;
                z-index: 1000;

                .central-link {
                    width: 24px;
                    height: 24px;
                    background-color: color-mix(in hsl, var(--color-primary) 80%, transparent 20%);
                    backdrop-filter: blur(4px);
                    padding: 2px;
                    border-radius: 0 0 6px 6px;
                    box-shadow: 0 0 10px color-mix(in hsl, var(--color-dark-gray) 20%, transparent 80%);

                    a svg {
                        stroke: white;
                        width: 100%;
                        height: 100%;
                    }
                }
            }

            .controls {
                display: flex;
                justify-content: space-between;
                flex-direction: row;

                @media (width <= 768px) {
                    flex-direction: column;
                }

                .title {
                    color: var(--color-gray);
                }

                .sort-and-filter {
                    display: flex;
                    gap: var(--space-s);
                    margin-bottom: var(--space-s);

                    .filter-button {
                        display: inline-block;
                        padding: 10px 8px 5px;
                        background-color: var(--color-light-gray);
                        color: var(--color-gray);
                        border-radius: var(--border-rounding);

                        @media (width > 768px) {
                            display: none;
                        }

                        &:hover {
                            background-color: var(--color-primary);
                            color: white;
                        }

                        svg {
                            width: 22px;
                            height: 22px;
                        }
                    }
                }

                .sort-select {
                    display: inline-flex;
                    align-items: center;
                    justify-content: end;

                    label {
                        display: inline-block;
                        font-size: var(--font-size-s);
                        height: 100%;
                        padding-right: var(--space-xs);
                    }

                    select {
                        display: inline-block;
                        width: 200px;
                    }
                }

                @media (width <= 768px) {
                    .pagination {
                        display: none;
                    }

                    .sort-select {
                        width: 100%;

                        select {
                            flex-grow: 1;
                        }
                    }
                }
            }

            .consent-box {
                position: fixed;
                left: var(--space-s);
                bottom: var(--space-s);
                right: var(--space-s);

                .content {
                    border-radius: var(--border-rounding);
                    background-color: color-mix(in hsl, var(--color-primary-lighter) 75%, transparent 25%);
                    backdrop-filter: blur(8px);
                    padding: var(--space-xs);
                    box-shadow: 0 0 10px var(--color-gray), 5px 5px 25px rgba(var(--color-primary-light), 32) inset;
                    font-family: var(--font-family-sans), sans-serif;
                    font-weight: 600;

                    label {
                        color: var(--color-dark-gray);
                        background-color: color-mix(in hsl, white 75%, transparent 25%);
                        border-radius: var(--border-rounding);
                        margin-bottom: var(--space-xxs);
                        padding: var(--space-xs);

                        &:has(input:checked) {
                            background-color: color-mix(in hsl, var(--color-primary) 75%, transparent 25%);
                            color: white;
                        }

                        &:has(input:not(:checked)):hover {
                            background-color: color-mix(in hsl, var(--color-primary-lightest) 70%, transparent 30%);
                        }
                    }

                    .consent-actions {
                        display: flex;
                        justify-content: end;

                        button {
                            margin-left: var(--space-xs);
                        }
                    }
                }
            }

            #page-footer {
                margin-top: var(--space-m);
                border: 1px solid var(--color-light-gray);
                border-top-left-radius: var(--border-rounding);
                border-top-right-radius: var(--border-rounding);
                border-bottom: none;
                padding: var(--space-m);
                max-width: 1280px;
                margin-left: auto;
                margin-right: auto;
                width: 100%;
                background-color: white;

                .footer-bottom {
                    width: 100%;
                    padding-left: var(--space-l);
                    padding-right: var(--space-l);
                }

                .footer-top {
                    display: flex;
                    flex-direction: row;
                    border-bottom: 1px solid var(--color-light-gray);
                    padding-bottom: var(--space-m);
                    margin-bottom: var(--space-s);
                    justify-content: space-between;

                    .company {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        gap: var(--space-s);

                        img, svg {
                            width: 64px;
                            height: 64px;
                        }

                        .slogan {
                            font-size: var(--font-size-m);
                            font-weight: 300;
                        }
                    }

                    .social-media-links {
                        display: flex;
                        flex-direction: row;
                        align-items: center;

                        svg {
                            fill: var(--color-dark-gray);
                            width: 32px;
                            height: 32px;
                            transition: rotate 200ms ease-in-out, fill 200ms linear;

                            &:hover {
                                rotate: 15deg;
                            }
                        }

                        a {
                            margin-right: var(--space-xs);

                            &:hover svg {
                                fill: var(--color-primary);
                            }
                        }
                    }
                }

                @media (width <= 768px) {
                    grid-template-columns: 1fr;
                }

                .email-contact {
                    span, svg {
                        width: var(--font-size-xs);
                        height: var(--font-size-xs);
                    }

                    span, a {
                        display: inline-block;
                        vertical-align: middle;
                    }

                    padding: var(--space-xs) 0 var(--space-m) 0;
                }

                .footer-navigation {
                    display: flex;
                    flex-direction: row;
                    justify-content: flex-start;
                    gap: var(--space-m);
                    margin-bottom: var(--space-m);

                    @media (width <= 768px) {
                        flex-direction: column;
                        border-top: 1px solid var(--color-light-gray);
                        margin-top: var(--space-l);
                        padding-top: var(--space-s);
                    }

                    .footer-menu {
                        min-width: 200px;
                    }
                }

                .subscription {
                    margin-left: auto;
                    width: 300px;

                    @media (width <= 768px) {
                        margin-left: unset;
                    }

                    h2 {
                        margin-bottom: var(--space-xxs);
                    }

                    h2 + p {
                        font-size: var(--font-size-xxs);
                        color: var(--color-gray);
                    }

                    label {
                        font-size: var(--font-size-xs);
                    }
                }

                ul.menu {
                    list-style: none;
                    padding: 0;
                    margin: 0;

                    li {
                        margin-top: var(--space-xs);

                        a {
                            text-decoration: none;
                        }
                    }
                }
            }
        }
    }
}