/* ==========================================================================
   Causey Audio - product listings, product detail, audio demos
   ========================================================================== */

.product-grid {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    border-top: 1px solid var(--line);
}

/* Hairline gutters between tiles instead of drop shadows. */
.product-tile {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    transition: background 160ms ease;
}

.product-tile:hover { background: var(--bg-soft); }

.product-visual {
    aspect-ratio: 16 / 10;
    background: var(--bg-tint);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

/* Sits on top of the fallback mark, so a missing screenshot degrades cleanly. */
.product-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fallback mark when there's no screenshot yet. */
.product-visual .mark {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.product-visual .badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-tile h3 { margin-bottom: 0.25rem; font-size: 1.2rem; }

.product-tile .kicker {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-light);
    margin-bottom: 0.5rem;
}

.product-tile p {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.product-meta .price { font-size: 1.35rem; }

/* Product detail --------------------------------------------------------- */

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--line);
}

.product-hero .visual {
    background: var(--bg-tint);
    border: 1px solid var(--line);
    min-height: 380px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1.25rem;
}

.product-hero .visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-hero .visual .plug {
    width: min(100%, 260px);
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
}

.product-hero .visual .plug div {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.spec-list { margin: 0; }

.spec-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
}

.spec-list div:first-child { border-top: 0; }
.spec-list dt { margin: 0; color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }

/* Feature bullets */
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.feature-list li:first-child { border-top: 0; }

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.feature-list li strong { color: var(--text); }

/* Audio demo rows -------------------------------------------------------- */

.audio-list { margin: 0; }

.audio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.audio-item:first-child { border-top: 0; padding-top: 0; }
.audio-item strong { display: block; }
.audio-item span { color: var(--muted); font-size: 0.92rem; }
.audio-item audio { max-width: 100%; }

@media (max-width: 860px) {
    .product-hero { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.75rem 0; }
    .product-hero .visual { min-height: 260px; }
    .product-tile { border-right: 0; }
}
