body {
    min-height: 100vh;
    color: var(--ad-vinyl-black);
    background:
        var(--ad-body-overlay),
        var(--ad-hero-image, none) center center / cover fixed,
        var(--ad-body-gradient);
    font-family: var(--ad-font-family);
}

.identity-bar {
    background: var(--ad-identity-bg);
    color: var(--ad-sleeve-cream);
    border: 1px solid var(--ad-identity-border);
    border-bottom: 3px solid var(--ad-gold);
    border-radius: 0 0 var(--ad-radius-lg) var(--ad-radius-lg);
    box-shadow: 0 10px 30px var(--ad-shadow);
}

.identity-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}

.identity-logo-wrap { flex: 0 0 auto; }

.identity-logo-img {
    width: 112px;
    height: 112px;
    border-radius: var(--ad-radius-md);
    background: var(--ad-logo-bg);
    border: 1px solid var(--ad-identity-border);
    object-fit: contain;
    display: block;
    padding: 8px;
}

.identity-logo-text {
    width: 112px;
    height: 112px;
    border-radius: var(--ad-radius-md);
    background: var(--ad-logo-bg);
    border: 1px solid var(--ad-identity-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ad-gold);
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    overflow: hidden;
    text-align: center;
}

.identity-content {
    flex: 1 1 auto;
    min-width: 0;
}

.identity-title {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ad-gold);
    letter-spacing: 0.02em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.identity-address,
.identity-bio {
    color: var(--ad-identity-text-muted);
    overflow-wrap: anywhere;
}

.identity-address {
    margin-top: 4px;
    font-size: 0.96rem;
}

.identity-bio {
    margin-top: 8px;
    max-width: 960px;
    line-height: 1.5;
}

.store-panel {
    background: var(--ad-panel);
    border: 1px solid var(--ad-panel-border);
    border-radius: var(--ad-radius-md);
    box-shadow: 0 8px 28px rgba(0,0,0,0.20);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.panel-header {
    background: var(--ad-panel-header-bg);
    color: var(--ad-sleeve-cream);
    border-bottom: 3px solid var(--ad-gold);
    padding: 14px 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.panel-body { padding: 18px; }

label {
    font-weight: 700;
    color: var(--ad-deep-purple);
}

.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--ad-border);
    background-color: var(--ad-input-bg);
    color: var(--ad-vinyl-black);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ad-gold);
    box-shadow: 0 0 0 .25rem var(--ad-focus-shadow);
}

.btn-store-primary {
    background: var(--ad-gold);
    border: none;
    color: var(--ad-primary-button-text);
    font-weight: 800;
    border-radius: 10px;
}

.btn-store-primary:hover {
    background: var(--ad-gold-hover);
    color: var(--ad-primary-button-text);
}

.btn-store-secondary {
    background: var(--ad-midnight-blue);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
}

.btn-store-secondary:hover {
    background: var(--ad-mellotron-indigo);
    color: #fff;
}

.result-card {
    background: var(--ad-result-card-bg);
    border: 1px solid var(--ad-result-card-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
}

.result-cover {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--ad-cover-placeholder-bg);
}

.result-cover-placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--ad-sleeve-cream);
    background: var(--ad-cover-placeholder-bg);
    font-weight: 800;
}

.result-body { padding: 14px; }

.result-title {
    color: var(--ad-deep-purple);
    font-weight: 800;
    margin-bottom: 4px;
}

.result-artist {
    color: var(--ad-result-artist);
    font-weight: 700;
}

.meta-line {
    font-size: 0.92rem;
    color: var(--ad-muted-text);
}

.price-pill,
.stock-pill,
.theme-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.price-pill {
    background: var(--ad-price-bg);
    color: var(--ad-price-text);
}

.stock-pill {
    background: var(--ad-stock-bg);
    color: var(--ad-stock-text);
}

.theme-pill {
    background: var(--ad-theme-pill-bg);
    color: var(--ad-theme-pill-text);
    text-decoration: none;
    margin: 0 0.35rem 0.5rem 0;
}

.theme-pill.active,
.theme-pill:hover {
    background: var(--ad-gold);
    color: var(--ad-primary-button-text);
}

.promo-card {
    background: var(--ad-promo-bg);
    border-left: 5px solid var(--ad-rose);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 1rem;
    color: var(--ad-promo-text);
}

.promo-card.gold {
    border-left-color: var(--ad-gold);
    color: var(--ad-price-text);
}

.promo-card.moss {
    border-left-color: var(--ad-moss);
    color: var(--ad-stock-text);
}

.small-muted {
    color: var(--ad-muted-text);
    font-size: 0.92rem;
}

.debug-note {
    background: var(--ad-warning-bg);
    color: var(--ad-warning-text);
    border-left: 5px solid var(--ad-rose);
    border-radius: 10px;
    padding: 12px 14px;
}

footer {
    color: var(--ad-footer-text);
    background: var(--ad-footer-bg);
    border-top: 1px solid var(--ad-footer-border);
}

@media (max-width: 767px) {
    .identity-inner {
        align-items: flex-start;
        gap: 14px;
    }

    .identity-logo-img {
    width: 112px;
    height: 112px;
    border-radius: var(--ad-radius-md);
    background: var(--ad-logo-bg);
    border: 1px solid var(--ad-identity-border);
    object-fit: contain;
    display: block;
    padding: 8px;
}

.identity-logo-text {
        width: 78px;
        height: 78px;
        font-size: 1.45rem;
        border-radius: 14px;
    }

    .identity-address,
    .identity-bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .identity-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .identity-bio { max-width: 100%; }
}

/* Phase 4: Latest arrivals compact list */
.latest-arrivals-body {
    max-height: 390px;
    overflow-y: auto;
}

.latest-arrivals-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.latest-arrival-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--ad-result-card-border);
    border-radius: 12px;
    background: var(--ad-result-card-bg);
}

.latest-arrival-cover-link {
    display: block;
    width: 58px;
    height: 58px;
    text-decoration: none;
}

.latest-arrival-cover {
    width: 58px;
    height: 58px;
    object-fit: cover;
    flex-shrink: 0;
}

.latest-arrival-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ad-sleeve-cream);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px;
}
.latest-arrival-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.latest-arrival-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.latest-arrival-title {
    color: var(--ad-deep-purple);
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.latest-arrival-title:hover {
    color: var(--ad-psychedelic-plum);
    text-decoration: underline;
}

.latest-arrival-price {
    white-space: nowrap;
    font-weight: 900;
    color: var(--ad-price-text);
    background: var(--ad-price-bg);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.88rem;
}

@media (max-width: 575px) {
    .latest-arrival-row {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .latest-arrival-cover-link,
    .latest-arrival-cover {
        width: 52px;
        height: 52px;
    }

    .latest-arrival-price {
        grid-column: 2;
        justify-self: start;
        margin-top: -4px;
    }
}
