:root {
    --bg: #F5F2ED;
    --surface: #fff;
    --soft: #EFE9E2;
    --border: #DDD4C8;
    --primary: #7A8A6B;
    --hover: #6A7A5C;
    --text: #2F2F2F;
    --light: #6F6F6F;
    --shadow: 0 12px 34px rgba(47, 47, 47, .06);
    --container: 1180px
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, sans-serif
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: auto
}

.tiny-topbar {
    padding: 8px 16px;
    text-align: center;
    background: #ECE6DE;
    color: var(--light);
    font-size: 13px
}

.shop-header {
    background: rgba(255, 255, 255, .82);
    border-bottom: 1px solid rgba(0, 0, 0, .05)
}

.header-inner {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.brand,
.cart-link {
    text-decoration: none;
    font-weight: 700
}

.brand img {
    width: 92px
}

.intro {
    padding: 60px 0 34px;
    text-align: center
}

.eyebrow {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--light);
    font-size: 13px;
    font-weight: 700
}

h1,
h2 {
    font-family: "Playfair Display", serif;
    margin: 0;
    line-height: 1.08
}

h1 {
    font-size: clamp(42px, 6vw, 72px)
}

h1 span {
    color: var(--primary)
}

.intro p:last-child,
.product-card-body p,
.product-config>p,
small {
    color: var(--light)
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 70px
}

.product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow)
}

.product-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover
}

.product-card-body {
    padding: 24px
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 22px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer
}

.btn:hover {
    background: var(--hover)
}

.btn-full {
    width: 100%
}

.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding: 52px 0 76px
}

.product-gallery {
    min-width: 0;
    outline: none
}

.product-gallery:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
    border-radius: 28px
}

.product-config {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow)
}

form {
    display: grid;
    gap: 18px;
    margin-top: 26px
}

label span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700
}

select,
input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 16px;
    font: inherit
}

small {
    display: block;
    margin-top: 6px
}

.price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: var(--soft)
}

.price-box strong {
    font-size: 24px
}

.error-box {
    padding: 14px;
    border-radius: 14px;
    background: #F7E5E1;
    margin-top: 18px
}

.cart-page {
    padding: 52px 0 76px
}

.cart-list {
    display: grid;
    gap: 16px;
    margin-top: 28px
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px
}

.cart-item img {
    width: 120px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px
}

.cart-item ul {
    padding-left: 18px;
    color: var(--light)
}

.cart-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin: 24px 0;
    padding: 20px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--border);
    font-size: 20px
}

.empty-cart {
    margin-top: 28px;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border)
}

@media(max-width:760px) {
    .container {
        width: min(var(--container), calc(100% - 24px))
    }

    .product-grid,
    .product-page {
        grid-template-columns: 1fr
    }

    .cart-item {
        grid-template-columns: 80px 1fr
    }

    .cart-item-price {
        grid-column: 2;
        align-items: flex-start
    }
}

/* Produktdetails und dynamische Personalisierungsfelder */
.product-details {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--light);
    line-height: 1.65
}

.product-option[hidden] {
    display: none
}

textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px 16px;
    font: inherit
}

select:focus,
input:focus,
textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 2px;
    border-color: var(--primary)
}


/* Produktgalerie */
.product-gallery-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    touch-action: pan-y
}

.product-gallery-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    animation: gallery-fade .22s ease
}

.product-gallery-image[hidden] {
    display: none
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--text);
    font: inherit;
    font-size: 20px;
    box-shadow: 0 5px 20px rgba(47, 47, 47, .12);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px)
}

.gallery-arrow:hover {
    background: #fff
}

.gallery-arrow:focus-visible,
.gallery-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px
}

.gallery-arrow-prev {
    left: 16px
}

.gallery-arrow-next {
    right: 16px
}

.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 16px 8px 0
}

.gallery-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: width .2s ease, background .2s ease
}

.gallery-dot.is-active {
    width: 24px;
    border-radius: 999px;
    background: var(--primary)
}

@keyframes gallery-fade {
    from {
        opacity: .55
    }

    to {
        opacity: 1
    }
}

@media(max-width:760px) {
    .gallery-arrow {
        width: 40px;
        height: 40px
    }

    .gallery-arrow-prev {
        left: 10px
    }

    .gallery-arrow-next {
        right: 10px
    }
}

@media(prefers-reduced-motion:reduce) {
    .product-gallery-image {
        animation: none
    }

    .gallery-dot {
        transition: none
    }
}

/* Produkt-Badges */
.product-card-media {
    position: relative
}

.product-badges {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: calc(100% - 32px);
    pointer-events: none
}

.product-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 5px 18px rgba(47, 47, 47, .1);
    backdrop-filter: blur(8px)
}

.product-badges-gallery {
    top: 18px;
    left: 18px
}

@media(max-width:760px) {
    .product-badges {
        top: 11px;
        left: 11px;
        gap: 6px;
        max-width: calc(100% - 22px)
    }

    .product-badge {
        min-height: 27px;
        padding: 5px 9px;
        font-size: 11px
    }

    .product-badges-gallery {
        top: 12px;
        left: 12px
    }
}