/* Shop page – extends project-composings.css (nav, footer, fonts, colors) */

.shop-hero {
    padding: 100px 40px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.shop-hero p {
    max-width: 640px;
    color: var(--fc-muted);
    font-size: 1.05rem;
}

/* Sticky Filter-Leiste: deckt den gesamten Bereich vom Viewport-Rand (wo der
   transparente Header sitzt) bis unter die Buttons blickdicht ab, damit beim
   Scrollen keine Bilder dahinter/darüber durchscheinen. shop-hero bekommt
   dafür genug padding-bottom, damit der Hochzug hier nicht den Absatztext
   überlappt. */
.shop-filter-nav {
    max-width: 1400px;
    margin: 0 auto;
    margin-top: -90px;
    padding: 90px 40px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 15;
}

.shop-filter-nav button {
    font-family: "Switzer", "Avenir Next", "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    background: #f0f0f0;
    border: none;
    padding: 9px 16px;
    white-space: nowrap;
    cursor: pointer;
    color: #000;
}

.shop-filter-nav button:hover {
    color: #fc3c48;
}

.shop-filter-nav button.active {
    background: #0f0f0f;
    color: #fff;
}

.shop-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 60px;
    column-width: 300px;
    column-gap: 44px;
}

.product-category-tag {
    font-family: "Switzer", "Avenir Next", "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: var(--fc-muted);
    margin-bottom: 6px;
}

.shop-card {
    display: block;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 44px;
}

.shop-card.is-hidden {
    display: none;
}

/* Puzzle-Rhythmus: wechselnde Höhen + leichter Versatz, kein offensichtlich sich wiederholendes Muster */
.shop-card:nth-child(9n+1) { height: 520px; }
.shop-card:nth-child(9n+2) { height: 310px; }
.shop-card:nth-child(9n+3) { height: 440px; }
.shop-card:nth-child(9n+4) { height: 600px; transform: translateY(-30px); }
.shop-card:nth-child(9n+5) { height: 300px; }
.shop-card:nth-child(9n+6) { height: 480px; transform: translateY(25px); }
.shop-card:nth-child(9n+7) { height: 360px; }
.shop-card:nth-child(9n+8) { height: 560px; transform: translateY(-15px); }
.shop-card:nth-child(9n+9) { height: 420px; }

.shop-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.shop-card:hover img {
    transform: scale(1.06);
}

.shop-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.05) 55%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-card:hover .shop-card-overlay {
    opacity: 1;
}

.shop-card-overlay .shop-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: "Switzer", "Avenir Next", "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    background: #fff;
    padding: 4px 9px;
}

.shop-card-overlay .shop-card-title {
    color: #fff;
    font-family: "Switzer", "Avenir Next", "Helvetica Neue", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

/* Detail overlay, shown via CSS :target */
.product-detail {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    overflow-y: auto;
    padding: 90px 24px 60px;
}

.product-detail:target {
    display: block;
}

.product-detail-inner {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
}

.product-detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 100%;
}

.product-detail-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.product-detail-info {
    padding: 40px;
}

.product-detail-info h2 {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.product-formats {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-formats label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
}

.product-detail-info .shipping-note {
    font-size: 0.8rem;
    color: var(--fc-muted);
    margin-bottom: 24px;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.inquiry-form input,
.inquiry-form textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 14px;
    border: 1px solid #ddd;
    background: #fafafa;
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 80px;
}

.inquiry-form button {
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    background: #0f0f0f;
    color: #fff;
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.inquiry-form button:hover {
    background: #fc3c48;
}

.product-close {
    position: sticky;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 1.3rem;
    line-height: 1;
    background: #fff;
    margin-bottom: 14px;
    float: right;
}

.product-close:hover {
    color: #fc3c48;
}

@media (max-width: 760px) {
    .shop-hero {
        padding: 120px 20px 30px;
    }
    .shop-grid {
        padding: 10px 20px 80px;
        column-width: 100%;
        column-gap: 16px;
    }
    .shop-card:nth-child(5n+1) { height: 320px; }
    .shop-card:nth-child(5n+2) { height: 260px; }
    .shop-card:nth-child(5n+3) { height: 360px; }
    .shop-card:nth-child(5n+4) { height: 280px; }
    .shop-card:nth-child(5n+5) { height: 320px; }
    .product-detail {
        padding: 70px 12px 40px;
    }
    .product-detail-inner {
        grid-template-columns: 1fr;
    }
}
